The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

v5.3.5 - many new features

Started by Kaz · Jan 6, 2015

70 replies1,223,062 viewsLocked
Jan 6, 2015#11

Moved to announcements, I have also given you TBC Dev rank, this should fix the problem for future releases.

Jan 6, 2015#12

@Kaz check the 5.3.4 release by antidote it has heroes drop feature.
And yes it takes
15 seconds before it click return home after the raid.

Jan 6, 2015#13

@k3iroll I had this issue before but it's because I didn't realize I had to click on "Continue" first before clicking on the barracks. Is this what's happening to you?

@pinay26 It waits 30 seconds instead now. I noticed sometimes that the troops need just a bit more time to hit the storages and 15 seconds just wasn't enough. If you want to change it, just change the _Sleep(30000) to _Sleep(15000) in Func ResourceChange()
I'll look into making this configurable in the GUI if there's enough interest. But I don't see the downside of just waiting that extra 15 seconds. Your troops are still training while you are attacking.

As for the heroes, I'll look into it. I was using that version as my base. Maybe I accidentally changed something, I'll look into it. Thanks!

@konloch Thanks!

@Kingchen So weird! Try changing all instances of $UBOUND_ROWS to 1 Also can you check if in your Autoit folder\Include contains the file AutoItConstants.au3?

Jan 6, 2015#14

@Kingchen So weird! Try changing all instances of $UBOUND_ROWS to 1 Also can you check if in your Autoit folder\Include contains the file AutoItConstants.au3?

Hmm yea very confuse, also i cant find AutoItConstants.au3, but i can find Constants.au3, is it what u mean? 😉

Edit; Nope, i tested it on my on my Computer/Vm! But when i start come on startup a error, they cannot find ''autoitconstants.au3''... buton my laptop come this message not,*lol but file is missing O.o

// https://code.google.com/p/autoit-cn/source/browse/trunk/Include/AutoItConstants.au3?r=1071&spec=svn1076

Added self the missing file - but same result :o

//

Changed to 1, but its come the same Error.... Confuse 😭

Jan 6, 2015#15

@Kingchen This is so weird!! Yup, it is in fact AutoItConstants.au3. And it is in fact in /include folder?

It's even weirder that replacing it to 1 has the same error. Can you post that error?

OK, it was supposed to be good code, but if it doesn't work, replace all instances of
UBound($posCollectors,$UBOUND_ROWS)
to
17
and see if this resolves the issue. If it does, it can give me a better idea why this is happening.

I am not at home right now, can't confirm the code exactly but that should be it.

Jan 6, 2015#16

Kaz wrote:

@Kingchen This is so weird!! Yup, it is in fact AutoItConstants.au3. And it is in fact in /include folder?

It's even weirder that replacing it to 1 has the same error. Can you post that error?

OK, it was supposed to be good code, but if it doesn't work, replace all instances of
UBound($posCollectors,$UBOUND_ROWS)
to
17
and see if this resolves the issue. If it does, it can give me a better idea why this is happening.

I am not at home right now, can't confirm the code exactly but that should be it.

Yes Kaz, i replaced the missed file in Autoit /include folder.

Replaced //UBound($posCollectors,$UBOUND_ROWS) or UBound($posCollector,$UBOUND_ROWS) has no good effect, same error 😮  :deadtongue:  
But what you mean with ''17''?

For $i = 0 To UBound($posCollector,$UBOUND_ROWS) - 17

so? when yes, same error as above  :deadtongue:

Jan 6, 2015#17

For those who have issues about Collectors/Locate Barracks
This is my fix from my end.
Try this fix and let us know if this works to you.

Replace the ZoomOut() Function into:

Func ZoomOut()
	Local $i = 0
	While 1
		getBSPos()
		If _Sleep(500) Then ExitLoop
		If PixelGetColor($BSpos[0] + 1, $BSpos[1] + 1) = 0x000000 And PixelGetColor($BSpos[0] + 850, $BSpos[1] + 1) = 0x000000 Then
			ExitLoop
		Else
			ControlSend("BlueStacks App Player", "", "", "{DOWN}", 0)
			$i += 1
			If $i = 30 Then
				ExitLoop
			EndIf
		EndIf
	WEnd
EndFunc 
Jan 6, 2015#18

Kingchen wrote:

Kaz wrote:

@Kingchen This is so weird!! Yup, it is in fact AutoItConstants.au3. And it is in fact in /include folder?

It's even weirder that replacing it to 1 has the same error. Can you post that error?

OK, it was supposed to be good code, but if it doesn't work, replace all instances of
UBound($posCollectors,$UBOUND_ROWS)
to
17
and see if this resolves the issue. If it does, it can give me a better idea why this is happening.

I am not at home right now, can't confirm the code exactly but that should be it.

Yes Kaz, i replaced the missed file in Autoit /include folder.

Replaced //UBound($posCollectors,$UBOUND_ROWS) or UBound($posCollector,$UBOUND_ROWS) has no good effect, same error 😮  :deadtongue:  
But what you mean with ''17''?

For $i = 0 To UBound($posCollector,$UBOUND_ROWS) - 17

so? when yes, same error as above  :deadtongue:

Replace UBound($posCollector,$UBOUND_ROWS) with 17 entirely.

Jan 6, 2015#19

hmm i get Bot is already running on my PC i tryed restart it but still give the same error when i try to open it

Jan 6, 2015#20

For those who have issues about Collectors/Locate Barracks
This is my fix from my end.
Try this fix and let us know if this works to you.
Replace the ZoomOut() Function into:

Func ZoomOut()
Local $i = 0
While 1
getBSPos()
If _Sleep(500) Then ExitLoop
If PixelGetColor($BSpos[0] + 1, $BSpos[1] + 1) = 0x000000 And PixelGetColor($BSpos[0] + 850, $BSpos[1] + 1) = 0x000000 Then
ExitLoop
Else
ControlSend("BlueStacks App Player", "", "", "{DOWN}", 0)
$i += 1
If $i = 30 Then
ExitLoop
EndIf
EndIf
WEnd
EndFunc

fixed the problem, works well.. but after like 10-15 searches.. the bot says tries to get to the main screen and restarts the game for some reason all the time.. thats the only prob i got..

This discussion is closed.