Error - Label: SkillLogReturn not provided

05/10/2018 02:24 itswardo#1
New to botting and scripts so forgive my ignorance here if this is an obvious fix. I've tried running a couple of different bots (example attached) and get the Label:SkillLogReturn not provided error after I try to start the bot.

Fixes I've tried:
  • Updating the script headers using Rheek's patcher.
  • Replacing the API, which didn't give me a SkillLogReturn error but a duplicate agent ID error.
  • Redownloading the DLL and reinjecting to make sure I didn't make an error initially since I had no idea what I was doing.
  • Removing the SkillLogReturn lines from the API.

So far I've been unable to run any bots I've tried because of this. Appreciate any info anyone can provide!
05/10/2018 03:55 rheek#2
So I downloaded the bot you attached, used the patcher on all files and it didnt throw me any errors so far.

Did you patch all files of the bot, including all API files?
When do you get the error? Does the bot do anything at all, or does it throw the error instantly?

What do you mean with "the DLL"? A GWCA.dll version? How do you inject it?

Removing the SkillLogReturn lines from the API wont really help, as those lines are usually needed by the API to make functions work.


I just edited the patcher to patch the whole bot at once instead of each file individually.
Will upload in the next few minutes. Maybe that will help you.

//edit: Its on github now
05/10/2018 07:20 itswardo#3
I just patched the bot with your updated patcher. I downloaded the DLL from here: [Only registered and activated users can see links. Click Here To Register...] and injected it with DLLInjector. Injection does not give any errors.

All files and folders are contained under the Program Files x86 folder tree, if that matters, running off AutoIT(x86).

The error is given right when I start the bot.

Might be unrelated but something I tried anyways: when I inject the Gw.exe (not Gw MC.exe) I get a hooking error: HeroSkillFunction could not be found, then it says injected successfully. If the game doesn't crash it gives the same error as above when I run the bot.

Thank you for your help!
05/10/2018 15:48 rheek#4
Quote:
Originally Posted by itswardo View Post
I just patched the bot with your updated patcher. I downloaded the DLL from here: [Only registered and activated users can see links. Click Here To Register...] and injected it with DLLInjector. Injection does not give any errors.
That dll is very outdated. I'd be surprised if it still works at all.
So you inject the dll and then run the bot you uploaded?
GWCA is a different API than gwapi, no need to run both. You might even run into errors if you use both at the same time.

The bot already contains all it needs to inject itself into GW and run. No need for dll's and external injecting.

Quote:
Originally Posted by itswardo View Post
All files and folders are contained under the Program Files x86 folder tree, if that matters, running off AutoIT(x86).
You're using the correct version of autoit. Yes, it does matter. You will have to run bots always in x86 mode. gwapi and co will give you an error message if you dont run them in x86 mode.

Quote:
Originally Posted by itswardo View Post
The error is given right when I start the bot.

Might be unrelated but something I tried anyways: when I inject the Gw.exe (not Gw MC.exe) I get a hooking error: HeroSkillFunction could not be found, then it says injected successfully. If the game doesn't crash it gives the same error as above when I run the bot.

Thank you for your help!
Did you try injecting into GW MC? That can not work. You will have to inject stuff into GW, and not the thirdparty launcher. No idea if that would throw errors though. The hooking error could result from the dll not being uptodate.

Well, as I said I patched the bot with my patcher and it didnt throw me any errors and started with what I would consider expected behaviour from said bot. It traveled to the correct outpost and started the mission. Stopped it after that.

Please use fresh copy of the bot, where you didnt modify anything. Run the newest version of the patcher on the folder. Start GW, select a character and then just doubleclick the bot's main au3 file.

Ill attach the patched version. If that doesnt work for you too, something in setup seems to be broken.
05/10/2018 17:44 itswardo#5
Rheek, you are the man! It works when I don't do anything and breaks when I touch it. Typical lol. The only problem is running it when I have a character from another campaign - the prompt to enter the mission pops up and I have to click it myself to enter. Thank you for the thorough walk-through :)
05/10/2018 18:29 rheek#6
Quote:
Originally Posted by itswardo View Post
Rheek, you are the man! It works when I don't do anything and breaks when I touch it. Typical lol. The only problem is running it when I have a character from another campaign - the prompt to enter the mission pops up and I have to click it myself to enter. Thank you for the thorough walk-through :)
Glad it works. Then just using the patcher should get most of your bots to run again.

gwapi should have two functions regarding entering missions, EnterChallenge and EnterChallengeForeign.

Try replacing EnterChallenge with EnterChallengeForeign inside the main bot file. Never really knew what EnterChallengeForeign was for, now that I think about it, it could be exactly for this warning.
05/10/2018 18:47 itswardo#7
That did the trick! Glad we are both gaining something from this :)
05/11/2018 10:46 yuramisu#8
hello, i got too this error : Label: SkillLogReturn Label not provided

When i start my VQ script and when my bot has finished, I restart the same bot, it say this error.

i don't unterstand why this error appears since may 9th update.

i searched label in gwapi.au3, in #Region Declarations gwAPI_basics
:

Code:
Global $mSkillLogStruct = DllStructCreate('dword;dword;dword;float')
Global $mSkillLogStructPtr = DllStructGetPtr($mSkillLogStruct)
Global $mChatLogStruct = DllStructCreate('dword;wchar[256]')
Global $mChatLogStructPtr = DllStructGetPtr($mChatLogStruct)
these are the only lines that are similar to skilllogreturn and not label skilllogreturn declared ?
05/11/2018 18:52 Underavelvetmoon#9
I have been getting this Error too, but only when trying to restart a bot after a DC/Crash. If you just close Guild Wars and re open it, it will all work fine until another DC/Crash. Just a minor inconvenience really, and patching the scripts will probably fix it I would assume.
05/11/2018 23:28 criticalism#10
Quote:
Originally Posted by Underavelvetmoon View Post
I have been getting this Error too, but only when trying to restart a bot after a DC/Crash. If you just close Guild Wars and re open it, it will all work fine until another DC/Crash. Just a minor inconvenience really, and patching the scripts will probably fix it I would assume.
It also happens if you manually close bot and try to reopen it. I'm having problems with followbot, I can open the leader au3 but when I open the follower one I get the same error..
05/11/2018 23:30 afmart#11
i've been getting this "error" too, its annoying when you make a minor change to a script and have to relaunch the client to run a new version of the script, apart from this i just want to learn how to avoid the random crashes, if possible