The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

v 5.4.1

Started by GkevinOD Β· Jan 8, 2015

103 replies1,599,154 viewsLocked
Jan 9, 2015#61

I will stop adding anymore functions and focus on fixing the hang problem.

About the hang or white screen, it is due to memory leak of the functions that locate color pixels. When it uses DLLCall it uses up memory and it is not properly disposed therefore memory leak. I'll look into this more later but that is the reason my version hangs earlier as it uses that function more often.

Jan 9, 2015#62

I was monitoring the memory usage of the bot and whenever traning troops and "not dead base, skipping" gets triggered the memory usage blows up and never goes down. In training troops, the moment it clicks a unit Β it adds .03-.05 and everytime i see "not dead base , skipping" it adds .30-.40 of mem.

Jan 9, 2015#63

So it must be the dllcall for pixel search then. Traintroop use pixelsearch repeatedly for recognizing available troop for training and so does village search. It takes up memory after each call which can cause memory problem in long run
@GkevinOD: Have you tried calling dll once with dllopen at the start of the script then only close it at exit instead of calling it everytime? I figure that could help

Jan 9, 2015#64

not sure if my computers bad or its a glitch but when the bot started to attack it froze my computer

i had same problem.after i deleted ddl files than it works for me

Jan 9, 2015#65

Do you think it would be ideal to do the old way of LF robot style where we force close the script and reopen it in case it freezes? like most of the time its building anyway

Jan 9, 2015#66

whats the best tolerance for you guys ? its been attacking people with the least uncollected resource for me and detects it as dead bases.

the old version only attacked bases like this

Jan 9, 2015#68

tested it out again. no run longer than 1.5 hours.
2015-01-09 16:04:13 : Trying to get to main screen
2015-01-09 16:09:23 : Could not automatically load Clash Of Clans
2015-01-09 16:09:24 : Restarting BlueStacks
2015-01-09 16:09:40 : Trying to get to main screen
it always has something to to with the main screen func as i stated yesterday. @GkevinOD you got any idea about that already?

cause this seems not to be memory related to me.

Jan 9, 2015#69

☒️

does not attack when I get that kind of error will make the bot attack and closing

Jan 9, 2015#70

@sefa96 dont put it on drop all troops!
put it on barbs and archer only

This discussion is closed.