The Bytecode Club - Reverse Engineering Forum
Developing Bot - Printable Version

+- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club)
+-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1)
+--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97)
+--- Thread: Developing Bot (/showthread.php?tid=155)



RE: Developing Bot - mine214 - 12-30-2014

Hey there all, I'm so excited about the bot's performance I followed it around for about 8 hours (with some lagging and crashing in between). In the meantime I come up with some ideas which would be great to implement. Not all at this stage but some are maybe handy to implement in the unstable version.

- placement of troops as close as possible to base
- when skipping too much bases (defined by user) switch to different mode (bully, attack all)
- max trophy mode, disable gold count and wait till attack or time ends
- only trophy mode; don't mind gold/elixer/dark elixer
- logging enabled so all actions in bot's screen will be logged
- when failing on attack or something keep alive only plus gold/elixer/dark elixer collecting

I will post my findings and ideas here when I come up with more improvements.

Keep up the GREAT work


RE: Developing Bot - promac - 12-30-2014

I have followed this topic from the beginning and test all realeses and mods , and just want to leave here my pleasure to see a lot of people involved , thanks a lot to : Antidote / GkevinOD / AtoZ / kojometa and others ....

BTW : make a ToDo list in the first post and Updated list also ....there are many answers/replays LOL , I have followed answer the answer because I'm loving this pure sharing environment but following this threat its a hard job


RE: Developing Bot - harshil0014 - 12-30-2014

Just tried to run bot but end up in repeating cycles of training troops,pls let me know what i am missing.

[Image: 4qJgIO7.jpg]


RE: Developing Bot - mine214 - 12-31-2014




RE: Developing Bot - Kaz - 12-31-2014




RE: Developing Bot - GkevinOD - 12-31-2014

Hello everyone, I can see that speed is a concern now. I actually tried increasing the speed in the next version because it can run on my computer with no problem, doubling the speed and I couldn't see that it was an issue then. Next version I'll add more options for speed due to slow computers and for longer run time. When I changed the speed in the battle, I removed all delays between troop drops and it increased the chances of me getting close to 100% with B.Arch everytime.

About the two compiled versions 64 and 32-bit. There is a thing with ImageSearch.dll (renamed COCBot32/64.dll) that is specific for which type of system you have. I can't really anything about it, but we'll find a better approach to this later.

Finally, about the repeating restarting BlueStacks, I know the source of the problem. If you can edit the script you can make it work for your computer:

Code:
            If FileExists(@HomeDrive & "\" & $ProgramFileDir & "\BlueStacks\HD-RunApp.exe") Then
               Run(@HomeDrive & "\" & $ProgramFileDir & "\BlueStacks\HD-RunApp.exe -p com.supercell.clashofclans -a com.supercell.clashofclans.GameApp")

The bot tries to re-run the process by using this, but the directory is different for everyone. You can try changing to it the HD-RunApp.exe for your computer if you can find it. ie Mine is "C:\Program Files (x86)\BlueStacks\HD-RunApp.exe" (Don't remove the other parts. It runs the game)


RE: Developing Bot - GkevinOD - 12-31-2014

Can you guys give me more detail on when and where the lag occurs?


RE: Developing Bot - bushido-21 - 12-31-2014




RE: Developing Bot - bushido-21 - 12-31-2014

If FileExists(@HomeDrive & "\" & $ProgramFileDir & "\BlueStacks\HD-RunApp.exe") Then
Run(@HomeDrive & "\" & $ProgramFileDir & "\BlueStacks\HD-RunApp.exe -p com.supercell.clashofclans -a com.supercell.clashofclans.GameApp")

If FileExists(@HomeDrive & "\" & $C:\Program Files (x86) & "\BlueStacks\HD-RunApp.exe") Then
Run(@HomeDrive & "\" & C:\Program Files (x86) & "\BlueStacks\HD-RunApp.exe -p com.supercell.clashofclans -a com.supercell.clashofclans.GameApp")

correct me if im wrong..thanks for the info Smile


RE: Developing Bot - GkevinOD - 12-31-2014