The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

🧱 5.4.2.5.2 - Better Troops Deployment (LF Style), Fixed Train Troops

Started by safar46 · Jan 25, 2015

546 replies7,799,713 viewsLocked
Jan 31, 2015#241

i've just edit the latest release by @safar46

-faster train mod
-clan castle drop troop

please give feedback on CCdrop as im try to include all clan logo detection and its workng perfect with mine.

Thanks to safar for his great work.

[color=#ff3333]DOWNLOAD HERE[/color]

I wonder what codes did you edit to achieve this fast training speed? Can someone help me with this?

Jan 31, 2015#242

@safar46, thanks for posting your version.
In 5.4.2.4 Safar46, when attacking with All Troops and Custom Troop setup, it will crash on deploying Wall Breakers. Here is the log:

2015-01-31 14:27:45 : ~~~~~~~Dead Base Found!~~~~~~~
2015-01-31 14:27:47 : ===============Searching Complete===============
2015-01-31 14:27:48 : Preparing to attack
2015-01-31 14:27:48 : -Barbarian 141
2015-01-31 14:27:48 : -Archer 44
2015-01-31 14:27:48 : -Giant 3
2015-01-31 14:27:49 : -Wallbreaker 10
2015-01-31 14:27:50 : ======Beginning Attack======
2015-01-31 14:27:50 : ~Attacking in three sides...
2015-01-31 14:27:51 : Dropping first wave of Giants
2015-01-31 14:27:54 : Dropping first wave of Barbarians
2015-01-31 14:27:58 : Dropping first wave of Archers
2015-01-31 14:28:02 : Dropping second wave of Giants
2015-01-31 14:28:05 : Dropping second wave of Barbarians
2015-01-31 14:28:08 : Dropping second wave of Archers
2015-01-31 14:28:10 : Dropping Wall Breakers

I can't attach files to this post so here is a link to google drive:
>> Error Capture
The error message is:

Line 1699
Click($TopLeft[2][0], $TopLeft[2][1], $numWBPerSpot, 1)
Click($TopLeft[2][0], $TopLeft[2][1], ^ ERROR
Error: Variable used without being declared.

I'll try globally declaring it to see if that works but just FYI.

Yes I agree with you, also experience that error.

it will drop barb and arch after dropping them if u have goblin or giant the error appears and the bot automatically exit

But with the attack combination of barb+arch only everything works well...

great share @safar46

Jan 31, 2015#243

This version is working flawlessly for me. Thank you so much Safar. You da man!

One suggestion though if possible. Drop maybe 20 or so troops on the town hall and then wait a little while. Run a town hall check and if it is still there drop 20 more just in case there were bombs or something that killed your troops and wait a while longer. If its still there, likely due to teslas or something, drop the remaining troops. If the town hall is missing for any of these checks either use the rest of the troops in the normal attack algorithm or end battle. Right now I'm using barbarians because of the update so the turn over is incredibly fast so it doesn't really matter but it would be a waste to use the entire army in most other situations. None the less, this resolved all issues I had previously and I would really like to thank you for all your hard work here.

edit: An issue I just ran into. When the client desyncs the bot continues trying to search and gets stuck at the home base clicking where the next button would be. It however doesn't happen every time and I'm not sure why.

Jan 31, 2015#244

thnx for new options...happy to see some main problems fix like 1:working bot in background mode.... 2:working dead base option in 32bit ...
a little problem in dead base is lvl 12 collectors
and i've add attacked zombies and skipped zombies it is working in background mode also....
thnx for this nice update 🙂

Jan 31, 2015#245

hmm issue with manual collector thingie i locate the them all but on the last one it just starts over agian

Similar here, but on barracks...When train troops, just hangs on last barrack. Never had any issues with previous safar's mods... I've tried to reposition them, and to manually select them again...same thing. Looks like it doesn't "exit" barrack after train.

Jan 31, 2015#246

Hello Safar, the new update is great but bot stop working when out of sync

Feb 1, 2015#247

thnx for new options...happy to see some main problems fix like 1:working bot in background mode.... 2:working dead base option in 32bit ...
a little problem in dead base is lvl 12 collectors
and i've add attacked zombies and skipped zombies it is working in background mode also....
thnx for this nice update 🙂

Is there anything I need to do to get background mode running? If I press hide it can no longer detect barracks. Or background mode is only for when it searches for raid and I need to let it detect the windows after raid and let it train troops? Awesome update btw, this is the greatest bot ever.

Edit: Tried hiding main window after search started and it doesn't work.

Feb 1, 2015#248

Work Perfect ..

Question:

What is your setting in this bot version?

Me:

Trophy: 1450 <<< i upgrade it because there is already an option maximal th
Maximal th: 7 <<< because i'm th 8
King setting: attack all bases
Queen setting: attack all bases
Checked: Attack townhall outside
Checked: Meet townhall outside
Minimum Gold: 100k
Minimum elixir: 100k
Attack mode: All bases
Troops: Barb and Arch
Checked: Background mode

What do you think the best setting for trophy?

**@General Sam
**
I'm agree with you .. i can't imagine that this bot will become improve / better like this ..

if lightning spell can hit the town hall .. i think developer can make lightning spell for dark elixir storage ..

Feb 1, 2015#249

A1ex wrote:

Coldpaw wrote:

hmm issue with manual collector thingie i locate the them all but on the last one it just starts over agian

Similar here, but on barracks...When train troops, just hangs on last barrack. Never had any issues with previous safar's mods... I've tried to reposition them, and to manually select them again...same thing. Looks like it doesn't "exit" barrack after train.

I also noticed these errors.

-Position of collectors does not save, I solved this by replacing the function LocateCollectors()
-Request Castle troops because just hangs on last barrack, and it´s correct never had this issue with previous mod´s. -> Func Train() !!?

Feb 1, 2015#250

Thanks for the hard work. The latest 5.4.2.4 Safar46's Mods works good. A question here. In search setting, I've selected Meet Gold or Elixir (150000 & 200000) and Meet townhall Level (Max TH Level (EIGHT)). When it search:
2015-02-01 09:16:10 : Training Troops Complete
2015-02-01 09:16:11 : Find a match...
2015-02-01 09:16:17 : ============Searching For All Base============
2015-02-01 09:16:17 : ~Gold: 150000; Elixir: 200000; Dark: 0; Trophy: 0; Townhall: 8
2015-02-01 09:16:19 : (1) [G]: 26362 [E]: 32286 [D]: 87 [T]: 16 [TH]: 7 [THL]: Inside
2015-02-01 09:16:20 : ===============Searching Complete===============
2015-02-01 09:16:22 : Preparing to attack
2015-02-01 09:16:22 : -Barbarian 122
2015-02-01 09:16:22 : -Archer 78
2015-02-01 09:16:22 : -Clan Castle 1
2015-02-01 09:16:22 : -King 1
2015-02-01 09:16:22 : -Queen 1
2015-02-01 09:16:23 : ======Beginning Attack======
2015-02-01 09:16:23 : Townhall location (430, 302)
2015-02-01 09:16:23 : ~Attacking in three sides...
My question, it seems that the BOT search like "meet Gold" OR "meet Elixir" OR "meet TH". In my opinion, it should be "meet Gold" OR "meet Elixir" AND "meet TH".
Please advice.
Thank you.

This discussion is closed.