Originally Posted by
HiFi
You have it right on the money, it does have something to do tesseract.
On this call to function "GoldPerHour", on line 186:
If $runCount == 1 Then Call("GoldPerHour")
I am guessing some screen ratio calculation was incorrect which caused script to stop functioning.
This is copy/pasted from line 502:
-------------------------------------------------------
Func GoldPerHour()
Send("i")
Sleep(Random(700, 900))
$CurrentGold = _TesseractScreenCapture(0, "", 1, 2, 1450*$x_ratio, 504*$y_ratio, 1570*$x_ratio, 530*$y_ratio, 0, 150)
Send("i")
$CurrentGold = StringRegExpReplace($CurrentGold, "[^0-9]", "")
ConsoleWrite($CurrentGold & ", ")
$trt = TimerDiff($t)
$SecondsRan = $trt / 1000
If $StartingGold <= 0 Then $StartingGold = $CurrentGold
If $StartingGold > 0 Then $AccumulatedGold = $CurrentGold - $StartingGold
$GPH = $AccumulatedGold / $SecondsRan * 3600
If $GPH >= 0 and $AccumulatedGold >=0 then
UpdateTooltip()
EndIf
EndFunc
-------------------------------------------
I commented it out the body of this function, ran the bot, and it worked fine (on 1280x720). I could look into more on why this function caused the error, but I'm guessing @Shimizoki would have a better clue.