randomly crashes when traveling to outpost

02/15/2023 00:02 Akame95#1
Hello
I'm currently using the OmniFarmbot and I'm having crashes when traveling back to outpost but the weird part is that it happens randomly (like once every xx hundreds run)

Any idea what could cause such behaviour ?
02/15/2023 09:38 JohnyDee#2
Short sleep times when ping is high? I would recommend using PingSleep() instead of RndSleep() in general...
02/15/2023 09:44 Akame95#3
Quote:
Originally Posted by JohnyDee View Post
Short sleep times when ping is high? I would recommend using PingSleep() instead of RndSleep() in general...
This was the very first thing I tried, sadly it didn't make much difference
02/15/2023 13:42 JohnyDee#4
Then maybe something odd is happening with your waitmaploading(). I am using these custom-made funcs instead:

Code:
Func MapLoadExplorable($aMapID, $aSleep = 2500)
	Local $lDeadlock = TimerInit()
	Do
		PingSleep(1000)
	Until (GetMapLoading() = 1 And GetMapID() = $aMapID And GetAgentExists(-2)) Or TimerDiff($lDeadlock) > 120000
	PingSleep($aSleep)
EndFunc

Func MapLoadOutpost($aMapID, $aSleep = 2500)
	Local $lDeadlock = TimerInit()
	Do
		PingSleep(1000)
	Until (GetMapLoading() = 0 And GetMapID() = $aMapID And GetAgentExists(-2)) Or TimerDiff($lDeadlock) > 120000
	PingSleep($aSleep)
EndFunc
02/15/2023 19:15 Akame95#5
Still getting random crashes :( this is what my function looks like
Code:
Func Travel($aMapID)
        MoveMap($aMapID, 2, 0,2)
        PingSleep(500)
        #WaitMapLoading($aMapID) (I replaced this one with yours)
        MapLoadOutpost($aMapID)
        Do
		 PingSleep(500)
	  Until GetMapIsLoaded() == True
EndFunc