(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?
(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.
- 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, 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
(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