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...