The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Developing Bot

Started by Antidote · Dec 5, 2014

1,033 replies21,297,466 viewsLocked
Dec 23, 2014#301

@Antidote,

Yes, the correction fix the giant issue. Thanks for the fix. I can enjoy my Giant troops now. I will report back if it should fix the out of sync issue.

Dec 23, 2014#302

Glad to have all errors fixed for you guys. I just tested and out of sync error is handled properly (if stuck in search screen for more than 30 seconds it will click Reload and run from beginning). To look for deadfish (or specific town hall, defense, ..) it will have to do imagesearch and I haven't got into it. But it will definitely be worked on soon.
I have to break shield to test and my village got raided constantly after the 1 gem barrack boost lol

Dec 23, 2014#303

just got out of sync error.
restarted, worked 🙂 if you implement the same counter to the mainscreen function you would probably even fix the "forced break"-message wich appears after 6 hours and lasts about 5-20 minutes

Dec 23, 2014#304

@Antidote, I have tested your script with new coc account but there problem with troop training selection.
When press start button, it zoom out and pop up msg asking for barrack location. Continue and pressed the location of 1st barrack, 2nd barrack and press cancel for 3rd and 4th. (NOTE: I have only 2 barrack).

Once selection done, bot status, "Begin Training..". It clicked somewhere middle coordinate multiple times.

Dec 23, 2014#305

can you described how the forced break message looks like (from what I remember there's a warning message before that). And does it appear only in main screen or anywhere when it reaches 6 hours limit? The out of sync is easy to fix as it only happens in search screen, if it can happen anywhere it would require tedious check 🙁
@odySSeys: there are check in the code for barrack availability but I haven't tested on less than 4 barracks. I will look into the code again and will let you know when I found the problem

Dec 23, 2014#306

I think I know what the problem is. Barrack's location is stored in configs.ini file, when you run the bot on your new village, it will overwrite values for your first 2 barracks but the other 2 are still there, (bot was clicking on what supposed to be your barrack's location in your previous account). I will update the code to handle this, for now you can just simply delete configs.ini and run it again, it should fix the issue

Dec 23, 2014#307

same here new account coc th4 with 3barracks bot click on stone after finishing configuration the location of the barracks but..on the TH8 with 4 barracks was working perfectly...thanks @antidote and other dev for this advance christmas gift hehe.. i hope you will add more function on this bot 🙂 sorry for my bad english 🙂

Dec 23, 2014#308

@bushido-21 the error is cause because at low level barracks the buttons are in different positions. afaik low level barracks only have 3 buttons and higher level barracks have 5 buttons.
because the bot is using coordinates and not image or pixelsearch your only option is to manually level up those 2 barracks until they get high level.

just tick your 2 high level barracks for botting until then.
maybe bot getting changed to pixelsearch but until then use my solution above 😉

Dec 23, 2014#309

Suggestet config for good attacks?

Dec 23, 2014#310

Suggestet config for good attacks?

right now use 2x barbarian and 2x archer.
gold and elixir depends on your level. 80.000 is a good value.
im playing in silver II and mostly use 100.000 for both and gut hughe loot with it 😉

This discussion is closed.