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
Feb 5, 2015#511

How do we adjust the sleep? I read past pages and I can't figure it out. The deployment in the new version is great, just drops troops too slow.

Really? ok im upload new one.. if you want to change it by yourself search these code

			If _Sleep(100) Then Return
			If $edge2 <> -1 Then
			   Local $posX2 = $maxX2 - (($maxX2 - $minX2) * $i) / ($slotsPerEdge - 1)
			   Local $posY2 = $maxY2 - (($maxY2 - $minY2) * $i) / ($slotsPerEdge - 1)
			   Click($posX2, $posY2, $nbtroopPerSlot)
			   If _Sleep(100) Then Return
			   $nbTroopsLeft -= $nbtroopPerSlot
			Else
			   $nbTroopsLeft -= $nbtroopPerSlot
			EndIf

And then you know what will you do 😉

Im adjust sleep to 100 because my notebook so sloowww if attacking 🙁

Feb 5, 2015#512

Got it. I set it to 10 and I will test it out. Which reminds me...I have a TH7 I can lend you to test stuff, I remember you said you have a TH5. Will it help?

Feb 5, 2015#513

Think he referring more to the the delay between wave under Func algorithm_AllTroops()

		 if LauchTroop($eGiant, $nbSides, 1, 1, 1) Then
			If _Sleep(1000) Then Return
			   EndIf
		 if LauchTroop($eBarbarian, $nbSides, 1, 2) Then
			If _Sleep(1000) Then Return
			   EndIf
		 if LauchTroop($eArcher, $nbSides, 1, 2) Then
			If _Sleep(1000) Then Return
			   EndIf
		 If _Sleep(2000) Then Return
		 If LauchTroop($eBarbarian, $nbSides, 2, 2) Then
			If _Sleep(1000) Then Return
			EndIf
		 if LauchTroop($eWallbreaker, $nbSides, 1, 1, 1) Then
			If _Sleep(500) Then Return
			   EndIf
		 If LauchTroop($eGoblin, $nbSides, 1, 2) Then
			If _Sleep(500) Then Return
			   EndIf
		 If LauchTroop($eArcher, $nbSides, 2, 2) Then
			If _Sleep(500) Then Return
			   EndIf
		 If LauchTroop($eGoblin, $nbSides, 2, 2) Then
			If _Sleep(500) Then Return
			   EndIf
Feb 5, 2015#514

No, not between each wave. That is fine. I am talking about deploying troops, it puts one barb then waits too much for the next one. I want a wave launched faster. When I play on my phone I can launch them really fast.

Feb 5, 2015#516

Got it. I set it to 10 and I will test it out. Which reminds me...I have a TH7 I can lend you to test stuff, I remember you said you have a TH5. Will it help?

No, i cant make a more test stuff, because my notebook is slow....

It's a reason why i just release the bot though i'm not full testing the bot, lol

Feb 5, 2015#517

I get a lot of server out of sync with client errors when using this revision (almost every time I search for matches). Doesn't happen when I use 5.4.2.2 -- any suggestion?

Feb 5, 2015#518

moderator delete karino post on this thread #519

Feb 5, 2015#519

Troops deployment is perfect,Just needed a little push on the speed

Feb 5, 2015#520

Troops deployment is perfect,Just needed a little push on the speed

please see previous page for adjust delay

This discussion is closed.