Problem with Qt version
Hi, i wanna try to use your bot, but have a problem with Qt version and can't do a single thing with it. So, my problem: There's no Qt version assigned to project L2Bot.vcxproj for configuration Debug/x64. Please assign a Qt installation in 'Qt Project Settings' in ....\QtMsBuild\qt_vars.targets 68 Can u help me, cause i'm not a C++ dev and google can't help me, thx
Have you tried this https://stackoverflow.com/a/10553236? If you did and get nothing, it probably means you did not install Qt or did not install it properly.
Thx for feedback. I solve this problem and start the bot, but it didn't work at the server (l2 classic 2.0). It's just attached to l2, but there is nothing active: https://prnt.sc/187hq84 Am i doing something wrong or there is some protection ?
Do you have anything relevant in the Log window?
Anyways as mentioned in my blogpost, you might need to adjust the offsets for the receive and send functions here: https://github.com/xarkes/L2Bot/blob/master/L2BotLib/dllmain.cpp#L239
Those are not dynamically detected for now, only hardcoded, so if your l2.exe binary differs from the one I tried you need to fix it :)
In order to find it just read my blogpost, basically all you have to do is to break on send and recv from ws2_32.dll and find the calling function that needs to be hooked.
@viketvova Please do the following:
a) Right click on L2Bot in Solution Explorer (should be at left side by default)
b) Press properties
c) At the left menu side select Qt Project Settings
d) In general there is a section "Qt Installation" please select a valid one, in my example it is 5.12.11_msvc2017
e) in "Qt Modules" add core;gui;widgets
Important note - I tried to compile it using 64 bit version and it didn't work for me. So all the libs should be 32 bits(x86) For me the bot launches but freezes during detachement process, still trying to figure it out.
@viketvova edit - it works by launching via debbuger.