crashes after June 6, 2018 Update

06/15/2018 11:21 zoidberg1337#1
Hey,
after the June 6 Update some Bots that use Xunlai/merchant crash, everything worked fine before. I don't know what to look for to fix it, maybe some of you have the same issue and know how to fix it.

Also weird is, that the crash report comes 2 times.
I've added a bot for example, as soon as the inventory is full, it travels to gh and crashes instant.
06/15/2018 14:50 DerMoench14#2
For now you can comment out Line 6 in inventory.au3 (within gwAPI).
Should solve this Problem.
06/15/2018 15:07 zoidberg1337#3
Thanks it works now :)
But whats wrong with that funciton, that it doesn't work anymore?
06/15/2018 15:32 DerMoench14#4
Not sure as i dont have Information about what Function exactly got hooked.
As it is not really necessary for a bot to open the xunlai windows i've limited motivation to fix it ^^
06/15/2018 16:12 zoidberg1337#5
Yea i understand that, maybe i'll try to figure out myself what's wrong with that :D

Hmm i commented all OpenStorageWindow() calls out and it still doesn't work, it crashes right after the StoreItems function is called.
I think it has to do with one of these functions:
and the StoreItems function:
06/15/2018 18:34 DerMoench14#6
Not sure ... make sure that $HEADER_ITEM_MOVE is 0x77.
I've never used this Functions as there is a better way to move shit into storage ^^
06/15/2018 20:21 zoidberg1337#7
The headers are right, what is the better way to move items? :D
06/16/2018 03:52 3vangelist#8
Quote:
Originally Posted by zoidberg1337 View Post
Thanks it works now :)
But whats wrong with that funciton, that it doesn't work anymore?
OpenStorageWindow uses some ASM code injected into the game to open the chest for you. In the last few months there have been changes to the GW code meaning that some of these functions don't work or crash GW when called.

I don't think this function has been fixed because there isn't much need for bots.

I also don't think gwAPI is being worked on as much as GWA2 so you'll probably get more issues later down the line with new game updates.

The best thing to do is to migrate whatever bot you're using to use GWA2 instead of gwAPI, but you'll need to spend some time reading and understanding the code that you're trying to run to be able to do that. Search around on these forums to find a good version of the GWA2 library if you're up to the task.