The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

v 5.3.4

Started by Antidote · Jan 4, 2015

72 replies1,162,850 viewsLocked
Jan 5, 2015#41

been trying for hours to get this shit to set the right resuliton but always the same fucking shit...

Jan 5, 2015#42

Anyone else having problems with trophy dropping?
It drops mine (which are at 944) even though I set them to 1300.

Jan 5, 2015#43

@TheBeardWoman That problem can be fixed if you replace the DropTrophy() function (Line 1305):

Func DropTrophy()
	Local $TrophyCount = getOther($BSpos[0] + 50, $BSpos[1] + 74, "Trophy")
	While Number($TrophyCount) > Number($itxtMaxTrophy)
		getBSPos()
		$TrophyCount = getOther($BSpos[0] + 50, $BSpos[1] + 74, "Trophy")
		SetLog("Trophy Count : " & $TrophyCount)
		If Number($TrophyCount) > Number($itxtMaxTrophy) Then
			SetLog("Dropping Trophies")
			getBSPos()
			If _Sleep(2000) Or $RunState = False Then ExitLoop

			ZoomOut()
			PrepareSearch()

			While Not checkNextButton()
				If _Sleep(500) Or $RunState = False Then ExitLoop
			WEnd

			Click(34, 310) ;Drop one troop

			If _Sleep(1000) Or $RunState = False Then ExitLoop

			ReturnHome(False, False) ;Return home no screenshot
		Else
			SetLog("Trophy Drop Complete")
		EndIf
	WEnd
EndFunc   ;==>DropTrophy
Jan 5, 2015#44

@Coldpaw Did you run the 860x720.reg that was in the link posted when you get the message? Also if you did, when does the bot fail... Post the log if possible.

Jan 5, 2015#45

I managed to reproduce the blank GUI after letting it run for all night. Here's the last logs before it went blank: (after around 8 hours)

2015-01-05 09:10:15 : Cannot locate Next button, Restarting Bot
2015-01-05 09:10:15 : Trying to get to main screen
2015-01-05 09:15:20 : Could not automatically load Clash Of Clans
2015-01-05 09:15:21 : Restarting BlueStacks
2015-01-05 09:15:41 : Trying to get to main screen
2015-01-05 09:20:47 : Could not automatically load Clash Of Clans
2015-01-05 09:20:48 : Restarting BlueStacks
2015-01-05 09:21:08 : Trying to get to main screen
2015-01-05 09:26:14 : Could not automatically load Clash Of Clans
2015-01-05 09:26:15 : Restarting BlueStacks
2015-01-05 09:26:35 : Trying to get to main screen
2015-01-05 09:31:41 : Could not automatically load Clash Of Clans
2015-01-05 09:31:42 : Restarting BlueStacks
2015-01-05 09:32:02 : Trying to get to main screen
2015-01-05 09:37:08 : Could not automatically load Clash Of Clans
2015-01-05 09:37:09 : Restarting BlueStacks
2015-01-05 09:37:29 : Trying to get to main screen
2015-01-05 09:42:35 : Could not automatically load Clash Of Clans
2015-01-05 09:42:36 : Restarting BlueStacks
2015-01-05 09:42:56 : Trying to get to main screen
2015-01-05 09:48:02 : Could not automatically load Clash Of Clans
2015-01-05 09:48:03 : Restarting BlueStacks
2015-01-05 09:48:23 : Trying to get to main screen
2015-01-05 09:53:29 : Could not automatically load Clash Of Clans
2015-01-05 09:53:30 : Restarting BlueStacks
2015-01-05 09:53:50 : Trying to get to main screen

so it has to be a specific event in game that messed up the program flow and trigger repeated restart of BS hence the memory issue. I wlll try to add screenshots function at main screen check to see what causes it.

about 6 hour break I didn't monitor it closely but since it can run past the 6 hour mark I think it's working lol (though not very elegant as it's just bruteforcing to main screen). But I believe with the backgrounding that GkevinOD is developing, it will become much easier for everyone to test since it can be run 24/24 without interfering with daily use. Also I kinda mixed up version number (not sure 5.3.1 or 5.3.4 but a member sent me the 5.3.3 release which I did a file compare with no difference except for the one I edited so I guess 5.3.4 is the one. However there are update on other dev as well that I haven't managed to grab so I'll create a separate thread so if anyone has other modifications I'll try to integrate it. But I think the code will soon be going through major rewrite nevertheless.

Jan 5, 2015#46

@Coldpaw Did you run the 860x720.reg that was in the link posted when you get the message? Also if you did, when does the bot fail... Post the log if possible.

Yes i do run the 860x720 and my regedit match the one that was linked here but it wont be 860x720, i have no idea whats wrong. also i have tryed to reinstall BS newest ver and some old but its not working however im doing it

Jan 5, 2015#47

@Coldpaw: did you manually restart BS? (right click on icon in system tray, restart)

Jan 5, 2015#48

@Coldpaw: did you manually restart BS? (right click on icon in system tray, restart)

yhep,even restared pc and ran both as ADMIN

Jan 5, 2015#49

@Coldpaw Can you post the log that is produced.

Jan 5, 2015#50

@Coldpaw Can you post the log that is produced.

yhep give me a min

This discussion is closed.