Jump to content

Array Subscript error crashes Bot 4.2, 4.2.1, 4.2.2


Recommended Posts

sorry, can't post image in this forum because there is no possibility.

So here is the message :

line 5 (File "c:\XX\functions\attack\RedArea\_FindPixelCloser.au3)

local $PixelCloser = $arrPixel[0]

Local $PixelCloser = ^ ERROR

Error :Array variable has incorrect number of subscripts or subscript dimension range exceeded

The bot is really cool, I reach 2400 troph with snippe TH Smile

Link to post
Share on other sites

sorry' date=' can't post image in this forum because there is no possibility.

So here is the message :

line 5 (File "c:\XX\functions\attack\RedArea\_FindPixelCloser.au3)

local $PixelCloser = $arrPixel[0']

Local $PixelCloser = ^ ERROR

Error :Array variable has incorrect number of subscripts or subscript dimension range exceeded

The bot is really cool, I reach 2400 troph with snippe TH Smile

This is a confirmed bug regarding Smart Attack and will be fixed in the next version.

Array Subscript error smart attack : https://mybot.run/forums/thread-9761.html

Link to post
Share on other sites
  • 2 weeks later...

I'm having the same issue on Windows 7 using this "test" version: https://gyazo.com/505c97ad01c431ef8fa1514d09244f3f

Look's like it only happen when I'm afk from computer' date=' while I'm here working it doesn't crash, but when I go sleep it crashs.

Here is the last log I got:

[i']2015-11-21 02:59:34 : ~~~~~~~~~~~~~~~~ Dead Base Found! ~~~~~~~~~~~~~~~~

2015-11-21 02:59:35 : ================ Search Complete =================

2015-11-21 02:59:36 : Checking Townhall location: TH is outside, Attacking Townhall!

2015-11-21 02:59:36 : Initiating attack for: Dead Base

2015-11-21 02:59:38 : -Barbarians 59

2015-11-21 02:59:38 : -Archers 141

2015-11-21 02:59:38 : -Clan Castle

2015-11-21 02:59:38 : ====== Start Attack ======

2015-11-21 02:59:40 : Sending 1st wave of archers.

2015-11-21 02:59:40 : Dropping First wave of 4 Archers

2015-11-21 02:59:41 : Deployment of 4 Archers was Successful!

2015-11-21 02:59:43 : Dropping First wave of 15 Archers

2015-11-21 02:59:46 : Deployment of 15 Archers was Successful!

2015-11-21 02:59:57 : Townhall has been destroyed!

2015-11-21 02:59:58 : Calculating Smart Attack Strategy

2015-11-21 02:59:58 : Calculated (in 0.17 seconds) :

2015-11-21 02:59:58 : Locating Mines, Collectors & Drills

2015-11-21 03:00:00 : Located (in 1.33 seconds) :

2015-11-21 03:00:00 : [0] Gold Mines

2015-11-21 03:00:00 : [0] Elixir Collectors

2015-11-21 03:00:00 : [2] Dark Elixir Drill/s

2015-11-21 03:00:00 : Attacking on all sides

2015-11-21 03:00:01 : Dropping 15 of Barbarians => on each side (side : 1)

2015-11-21 03:00:02 : Dropping 36 of Archers => on each side (side : 1)

2015-11-21 03:00:03 : Dropping Clan Castle

2015-11-21 03:00:04 : Dropping 15 of Barbarians => on each side (side : 2)

2015-11-21 03:00:05 : Dropping 36 of Archers => on each side (side : 2)

2015-11-21 03:00:07 : Dropping 15 of Barbarians => on each side (side : 1)

2015-11-21 03:00:08 : Dropping 36 of Archers => on each side (side : 1)

2015-11-21 03:00:10 : Dropping 15 of Barbarians => on each side (side : 2)

2015-11-21 03:00:11 : Dropping 36 of Archers => on each side (side : 2)

2015-11-21 03:00:14 : Dropping last 17 of Barbarians

2015-11-21 03:00:16 : Dropping last 50 of Archers

2015-11-21 03:00:18 : Dropping last 5 of Barbarians

2015-11-21 03:00:19 : Dropping last 14 of Archers

2015-11-21 03:00:20 : Dropping left over troops

2015-11-21 03:00:20 : Checking remaining unused troops for: Dead Base

2015-11-21 03:00:22 : -Barbarians 2

2015-11-21 03:00:22 : -Archers 5

2015-11-21 03:00:22 : -Clan Castle

2015-11-21 03:00:22 : Dropping last wave of 2 Barbarians

And the attack log shows only the attack before the error:

2015-11-21 02:36:48 : 02:36| 1379| 11| 95248| 92288| 557| 6|1| 8000| 8000| 0|G3|

Theoricaly, if the problem is with the smart attack, if I uncked the "Attack TH outside" the crash shouldn't happen? I will uncheck it for now just to make sure it's something related to that.

Edit: Nevermind about the "afk" part, just got the crash while on computer, gonna try to disable the "Attack TH outside" and see if its helps

Edit 2: Ye, after disable the "Attack TH outside" the crashs didn't happen anymore.

Link to post
Share on other sites
  • 2 weeks later...
×
×
  • Create New...