The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

BUG: 5.3.1: Bot hang/ blank windows

Started by dinobot · Jan 4, 2015

72 replies951,380 views
Jan 9, 2015#71

Try this StopStart MOD:

Declaration:
Global $StopStart=0

Replace the $nMsg in the button section:

  If $StopStart=1 Then
  runBot() ; Or $nMsg=$btnStart
  Else
 $nMsg = GUIGetMsg()
  EndIf

Add this line at the first section after 'While 1' in Func Runbot()

 $StopStart=0

Add this line at the last section before Exitloop (or replace it) in the func attackmain()

 $StopStart=1
 $RunState = False

I think these codes will delete existing loops every attack and still maintain your log file unlike the restart bot.

Jan 11, 2015#72

^^ This seemed to work reallllly well for me.

Jan 29, 2015#73

hello there, good day. i just want to ask how to increase the waiting time? can you point me on how to do it? im new here and i really dont have any idea in coding. thanks

About it failing to detect Next button, I think it's because GkevinOD set maximum waiting time to 10 seconds (including loading time and reading resource) so in some instances on slow machines or slow connection next village hasn't loaded --> 10 seconds passed --> bot restart.
Actually you can increase waiting time to 15 or 20 seconds (as long as < 30 seconds count down before battle start) but it's not failproof

Got something to add?

Log in to post a reply.

Join the conversation