Lately Ive been running into a lot of GW crashes and I cant pinpoint where its at really. It happens with the easiest bot that ports to a town, leaves it and runs a few seconds using the MoveTo function of GWA2. All headers are updated as well as the latest GWA2.
Guild Wars error log states: (2) Client pathing data out of sync with server. You may observe your character 'warping' during movement.
(2) Sequence queue congestion.
I cant really pinpoint whats going wrong even with logging certain functions. I assume it has to do with getting body blocked but im not sure.
Any help?
It could be the MoveTo function. If you use a gate with this one it will crash. Use Move instead to go through gates.
Another thing causing crashes is a map to (probably in that MAPDT() function then moving right after when you come back to the runto() function... need to make sure your using waitmaploading it may fix the issue but can't see that function, so you could maybe c&p that for us to look at...
I think Phat34 is correct with the maploading as the portal zoning uses the "Move" function and should not cause DC.
Code:
Func ExitDT() ;Leaves Maatu Keep by "Move" function
If GetMapID() = $Town_ID_Maatu Then
Out("Exiting Outpost")
Move(-13343, 11430)
WaitMapLoading($MAP_ID_Pongmei)
Sleep(GetPing()+1000)
EndIf
EndFunc
I see tha MapLoading is used elsewhere, just not when you travel back. You only have sleep(500) and when you have lag then that might now be enough. The script thinks you are loaded and starts to issue commands to the bot when it is not ready. Then DC can happen. I often use Sleep(GetPing()+500) and this will check your ping rate and add the lag to your called sleep time. You can even get fancy with something like Sleep(GetPing()*3+500). This will multiply your ping and add your time. I find it helpful to resolve DC when you have lag or poor internet connectivity. You should also add in the Disconnect function.
Code:
Func MapDT()
;~ Checks if you are already in Longeye's Ledge, if not then you travel to Longeye's Ledge
If GetMapID() <> $Town_ID_Maatu and GetMapID() <> 0 Then
Out("Travelling to Maatu")
RndTravel($Town_ID_Maatu)
Sleep(500)
EndIf
EndFunc
Func ExitDT() ;Leaves Maatu Keep by "Move" function
If GetMapID() = $Town_ID_Maatu Then
Out("Exiting Outpost")
Move(-13343, 11430)
WaitMapLoading($MAP_ID_Pongmei)
Sleep(GetPing()+1000)
EndIf
EndFunc
I would double check your RndTravel function to see if it includes WaitMapLoading and if not then I wold make the change.
Thanks everyone for your help, really appreciate it. The RndTravel does use WaitMapLoading and additional sleeps with GetPing().
I found out that the Bot only crashes while rendering is disabled, if it is enabled it runs for hours without crashing.
So I compiled the bot as Riflemanx suggested and am running it (with rendering disabled) now for about an hour already and it did not crash (yet).
I'll let it run for a while and update you guys.
Quote:
Originally Posted by phat34
Another thing causing crashes is a map to (probably in that MAPDT() function then moving right after when you come back to the runto() function... need to make sure your using waitmaploading it may fix the issue but can't see that function, so you could maybe c&p that for us to look at...
Thanks for the info, I just realized my bot doesnt always exit the outpost properly, then uses the runto() function to run to the supposedly first coordinate, but runs straight into the portal (loading screen). It did not crash while rendering was enabled though but thats something i still need to fix anyway.
Edit2: Nvm bot just crashed. I'm pretty confident it has to do with the ClearMemory function though. Or maybe something else I am overlooking that has to do with rendering being disabled...
@, upload your script again with the most recent edits and I will look at it again. Include your gwa2 and I will compare it with my most stable version.
I happened to fix the issue, sadly I have no clue why it works now. I made 3 changes
- used TravelTo instead of RndTravel (although I cant see anything wrong with that function)...
- updated the exit function to first move near the gate using MoveTo, then using Move to exit the gate (was previously only Move)
- only used UseSkillEx for using IAU
I really dont know why any of this would fix the issue, but it has been up and running for 5+ hours.
i tried getting a few sniff on the packet but couldn't find much, maybe if i had that library i could get deeper.
i get the same headers as you but cant figure out if the rest of the values are on the info i have atm. im still very new to this stuff
Anyone knows why OpenChest() won't open a NM chest (with a key)? Is there a different function for that?
Here is my function:
Code:
Func CheckChest()
If GetIsDeadEx() Then Return
If CountKeys() > 0 Then
Local $Chest = GetNearestSignpostToAgent(-2)
Local $ChestX = DllStructGetData($Chest, 'X')
Local $ChestY = DllStructGetData($Chest, 'Y')
If $ChestX <> 0 Then
UpdateAction("Chest found")
MoveAndUseRunSkills($ChestX, $ChestY)
GoSignPost($Chest) ; open chest
PingSleep(1500)
OpenChest()
EndIf
PingSleep(2000)
EndIf
EndFunc
Anyone knows why OpenChest() won't open a NM chest (with a key)? Is there a different function for that?
Here is my function:
Code:
Func CheckChest()
If GetIsDeadEx() Then Return
If CountKeys() > 0 Then
Local $Chest = GetNearestSignpostToAgent(-2)
Local $ChestX = DllStructGetData($Chest, 'X')
Local $ChestY = DllStructGetData($Chest, 'Y')
If $ChestX <> 0 Then
UpdateAction("Chest found")
MoveAndUseRunSkills($ChestX, $ChestY)
GoSignPost($Chest) ; open chest
PingSleep(1500)
OpenChest()
EndIf
PingSleep(2000)
EndIf
EndFunc
I can help you out, easy. The OpenChest() function always tries to use a lockpick.
This one will always use a key and does nothing if none are present.
hello please i must get help for problem with bots: 1 is when try an salvagfe purple item game give me an confirmation window and crash bot also how i know if item is weapon i try write all id for weapon with toolbox but is maybe easier??
yes it working for blue item all good but when i have purple it has confirmation meassage and bot always has dc currently i just not make salvage on purple item and make sell just like gold
yes it working for blue item all good but when i have purple it has confirmation meassage and bot always has dc currently i just not make salvage on purple item and make sell just like gold
Hello guys, i got hacked and gm didnt help me :( so i ask for help here 12/22/2009 - Kal Online - 25 Replies Hello guys, i got hacked 7 days ago, i sent a c/s to gms connected my id card, they told me twrite back after 7 days...
GM Reply
Hello.
This is Kalonline.
We checked over your report and blocked hackers.
HELP! I need help scripting 02/06/2007 - Conquer Online 2 - 1 Replies OK, I want to know how u ppl do it! I what program do u use to make them? cause i wanna help but i dun know how... somone plz reply!
L2Walker, scripting questions/help 12/13/2006 - Lineage 2 - 0 Replies Hey, just asking a few questions hope you don't mind ^_^
I'm looking to make a script so when I cast magic on something, the walker bot will cast, say Wind Strike, on the same thing, at the same time.
I've looked through the options in walker and have it setup now, but it doesn't cast at the same time, but when I've finished casting.
If this isn't possible, last time I checked Walker scripts could not pickup what was said in chat, is this still the case?
Thanks. ^_^
Note: If you...
I need help scripting 09/05/2006 - General Coding - 0 Replies Ok I am tired of leeching I am ready to try my hand at scripting but I dont know where to start and I was wondering if someone could help me get started or tell me a website that can help me learn so I can make my own hacks and contribute to the epvp community that we all love :D