The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Faster deployment speed

Started by jondra · Feb 4, 2015

52 replies722,396 views
Feb 5, 2015#11

@SongHyeKyo where can i find this??also tell me the version plz???  🙂

Func algorithm_AllTroops()

@Topic

In 2nd wave of barbarian there is a little delay ..

What do you think i need to change in script?

algorithmTH()
		 if LauchTroop($eGiant, $nbSides, 1, 1, 1) Then
			If _Sleep(1000) Then Return
			   EndIf
		 if LauchTroop($eBarbarian, $nbSides, 1, 2) Then
			If _Sleep(100) Then Return
			   EndIf
		 if LauchTroop($eArcher, $nbSides, 1, 2) Then
			If _Sleep(75) Then Return
			   EndIf
		 If _Sleep(2000) Then Return
		 If LauchTroop($eBarbarian, $nbSides, 2, 2) Then
			If _Sleep(50) 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(25) Then Return
			   EndIf
		 If LauchTroop($eGoblin, $nbSides, 2, 2) Then
			If _Sleep(500) Then Return
			   EndIf
Feb 5, 2015#12

wow thnx.... now it is able to break walls even....the speed is good now...will try to fast more
thank you so much 🙂 .....loot time :D

Feb 5, 2015#13

Could you tell me what exactly do you change there ? I've found that line before, but I don't know what to do with it 😛 Could any of you post the changed code here ? Thanks.

Feb 5, 2015#14

Could you tell me what exactly do you change there ? I've found that line before, but I don't know what to do with it 😛 Could any of you post the changed code here ? Thanks.

The code i posted i change already the speed ..

if sleep = 100 barb
if sleep = 75 arch
if sleep = 50 barb
if sleep = 25 arch

the original script ( not yet edited )

if sleep = 300 barb
if sleep = 200 arch
if sleep = 100 barb
if sleep = 50 arch

Feb 5, 2015#15

Which version of the bot are you using ? If I change any of those values and then compile the script it gives me error when searching "Error cannot check for Dead Base, Attacking..." (works good with the orginal script).

Code in v5.4.2.4.2 by safar46 looks like this. For me changing any of those values results in error.

atkAlgorithmTH()
			PrepareAttack(True) ;Check remaining quantities
		EndIf
		 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($eWallbreaker, $nbSides, 1, 1, 1) Then
			If _Sleep(500) 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($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#16

Hi,
I changed the values but the attack is exactly the same as before any idea why ?

Feb 5, 2015#17

Which version of the bot are you using ? If I change any of those values and then compile the script it gives me error when searching "Error cannot check for Dead Base, Attacking..." (works good with the orginal script).

Code in v5.4.2.4.2 by safar46 looks like this. For me changing any of those values results in error.

atkAlgorithmTH()
 PrepareAttack(True) ;Check remaining quantities
 EndIf
 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($eWallbreaker, $nbSides, 1, 1, 1) Then
 If _Sleep(500) 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($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

5.5v version
5.4.5.1 safar bot

i try to lower to 1 for more speed but there is a delay between deploying barb > arch > barb .. anybody where i can edit that so i can increase the speed?

Feb 5, 2015#18

you're looking at the wrong function! this one is called only for th sniping..

look for algorithm_AllTroops

Feb 5, 2015#19

@indy i was also thinking the same but i decrease more sleep time and it is attacking more fast...(thnx to songhyekyo)
@jondra dont copy the code just decrease the sleep time of barbarians ,then archer , then barbarians and then archers and dont change the sleep time of giants , wall breakers and other troops(i am also using v5.4.2.4.2)

Got something to add?

Log in to post a reply.

Join the conversation