01-07-2015, 12:48 AM
01-07-2015, 01:12 AM
01-07-2015, 01:47 AM
01-07-2015, 02:46 AM
(01-07-2015, 01:47 AM)Kaz Wrote: [ -> ]@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/sour...ec=svn1076
Added self the missing file - but same result :o
//
Changed to 1, but its come the same Error.... Confuse
01-07-2015, 04:01 AM
01-07-2015, 05:11 AM
(01-07-2015, 04:01 AM)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
But what you mean with ''17''?
For $i = 0 To UBound($posCollector,$UBOUND_ROWS) - 17
so? when yes, same error as above
01-07-2015, 07:05 AM
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:
This is my fix from my end.
Try this fix and let us know if this works to you.
Replace the ZoomOut() Function into:
AUTOIT Programming
- While 1
- getBSPos()
- If PixelGetColor($BSpos[0] + 1, $BSpos[1] + 1) = 0x000000 And PixelGetColor($BSpos[0] + 850, $BSpos[1] + 1) = 0x000000 Then
- $i += 1
01-07-2015, 07:32 AM
(01-07-2015, 05:11 AM)Kingchen Wrote: [ -> ](01-07-2015, 04:01 AM)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
But what you mean with ''17''?
For $i = 0 To UBound($posCollector,$UBOUND_ROWS) - 17
so? when yes, same error as above
Replace UBound($posCollector,$UBOUND_ROWS) with 17 entirely.
01-07-2015, 08:20 AM
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
01-07-2015, 08:25 AM
(01-07-2015, 07:05 AM)marvinPRO Wrote: [ -> ]For those who have issues about Collectors/Locate Barracksfixed 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 is my fix from my end.
Try this fix and let us know if this works to you.
Replace the ZoomOut() Function into:
Code: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