+ Reply to Thread
Results 1 to 5 of 5

Thread: Error: Out Of Range at line 123

  1. #1
    Join Date
    Oct 2006
    Posts
    313
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default Error: Out Of Range at line 123

    Can this bug be reproduced?

    yes, everytime


    Script & Location

    Mining Guild Miner


    Bug Description

    Goes into the mine and runs to the rocks but doesnt mine any of them and the error occurs.


    Debug Text

    Progress Report:
    Distance to the end: 13 pixels
    [0:03:20]: [  ] ---------- Scanning for randoms...
    [0:03:20]: [  ] -------- Next Point: 4 (375, 531)
    [0:03:22]: [  ] ---------- Average pixel shift: 79
    [0:03:22]: [  ] ---------- Average pixel shift: 201
    [0:03:23]: [  ] ---------- Average pixel shift: 136
    [0:03:23]: [  ] ---------- Average pixel shift: 174
    [0:03:23]: [  ] ---------- Average pixel shift: 217
    [0:03:23]: [  ] ---------- Average pixel shift: 150
    [0:03:23]: [  ] ---------- Average pixel shift: 61
    [0:03:23]: [  ] ---------- Player animation: Player Idle
    [0:03:24]: [  ] ---------- MSI_GetMyPos(): (371, 527)
    [0:03:24]: [  ] -------- Distance to the end: 6 pixels
    [0:03:24]: [  ] ------ MSI_WalkTPA: True
    [0:03:24]: [  ] ---- MSI_WalkPath: True
    [0:03:24]: [  ] -- MSI_Walk: True
    [0:03:24]: [  ] -- MSI_AutoObjects
    [0:03:24]: [  ] ---- MSI_FindObjectTPA: ROCK_COAL
    [0:03:24]: [  ] ------ Found: 4, NOT ENOUGH
    [0:03:24]: [  ] ------ Took 63 ms to complete
    [0:03:24]: [  ] ---- MSI_FindObjectTPA: False
    [0:03:25]: [  ] ------ Scanning for randoms...
    [0:03:25]: [  ] ------ Scanning for randoms...
    [0:03:25]: [  ] ------ MSI_AntiBan
    [0:03:27]: [  ] ------ Scanning for randoms...
    [0:03:27]: [  ] ---- MSI_Relocate (Mining Guild)
    [0:03:28]: [  ] -------- MSI_GetMyPos(): (371, 527)
    [0:03:28]: [  ] -------- Scanning for randoms...
    [0:03:28]: [  ] ------ MSI_WalkTPA: Path: [(371, 527), (340, 539)]
    [0:03:28]: [  ] ---------- MSI_GetMyPos(): (371, 527)
    [0:03:28]: [  ] ---------- MSI_PointOnPath: Index = 2
    [0:03:28]: [  ] ---------- MSI_PointOnPath: Index = 0
    [0:03:29]: [  ] ---------- Scanning for randoms...
    [0:03:29]: [  ] -------- Next Point: 2 (340, 539)
    [0:03:35]: [  ] ---------- MSI_GetMyPos(): (335, 543)
    [0:03:35]: [  ] -------- Distance to the end: 6 pixels
    [0:03:35]: [  ] ------ MSI_WalkTPA: True
    [0:03:35]: [  ] ------ Relocating to sub-location: Mining Guild West
    [0:03:37]: [  ] -------- Average pixel shift: 40
    [0:03:37]: [  ] -------- Player animation: Player Idle
    [0:03:39]: [  ] ---- MSI_Relocate: True
    [0:03:39]: [  ] ---- MSI_FindObjectTPA: ROCK_COAL
    [0:03:39]: [  ] ------ Found: 95, ROCK_COAL found
    [0:03:39]: [  ] ------ Found: 72, ROCK_COAL found
    [0:03:39]: [  ] ------ Found: 109, ROCK_COAL found
    [0:03:39]: [  ] ------ Objects found: 3
    [0:03:39]: [  ] ------ Took 94 ms to complete
    [0:03:39]: [  ] ---- MSI_FindObjectTPA: True
    [0:03:39]: [  ] ------ Uptext: Mine Coal rocks / 5 more options
    [0:03:41]: [  ] ---- MSI_TrackObject
    [0:03:41]: [  ] ------ Failed to find color
    [0:03:41]: [  ] ------ Failed to find color
    [0:03:41]: [  ] ------ Lost track of object
    [0:03:41]: [  ] ------ ~ Track Record
    [0:03:41]: [  ] ------ ~ ~ TrackObject
    [0:03:41]: [  ] ------ ~ ~ Searches: 1
    [0:03:41]: [  ] ------ ~ ~ Successes: 0
    [0:03:41]: [  ] ------ ~ ~ Success %: 0
    [0:03:41]: [  ] ---- MSI_TrackObject: False
    [0:03:42]: [  ] ---- MSI_WaitWhileMining
    [0:03:42]: [  ] ------ Distance from tracking box to player = 16
    [0:03:42]: [  ] ------ InvCount: 1
    Error: Out Of Range at line 123

    Additional Information




    Thanks,
    sk80rdie76

  2. #2
    Join Date
    May 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    same here its a common problem at the moment

  3. #3
    Join Date
    Apr 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    (I am moving this post here, to add to it, thanks.)

    Hello, I'm kinda new, but have been trying out different scripts to see how they work. I came across what seems to be a bug in the new update to MSI. I've tried to search for answers already, and have tried to include my troubleshooting here. Hope it helps, thanks.

    while using MSI to mine coal and mithril in the mining guild, i am getting this error in Mining.simba

    Error: Out Of Range at line 123

    it happens right after it starts mining the first rock

    It started after the latest update to msi
    I have the graphics set right
    I've already tried removing player.txt as per the common problems
    it is happening on multiple computers

    here is a snip of that code
    Code:
    116   setColorToleranceSpeed(2);
    117   setToleranceSpeed2Modifiers(rock.hue[0], rock.sat[0]);
    118
    119   setLength(ATPA, length(rock.colors));
    120   h := high(ATPA);
         
    122   for i := 0 to h do
    123     findColorsTolerance(ATPA[i], rock.colors[i],
    124                        rock.searchArea.x1, rock.searchArea.y1,
    125                        rock.searchArea.x2, rock.searchArea.y2, rock.tol[i]);

  4. #4
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    I'm pushing a fix for this right now. Either manually update from the git repo in ~10 mins or wait an hour for the auto update.

    Sorry for the inconvenience.

  5. #5
    Join Date
    Apr 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    thanks for the quick turnaround! working great now!
    awesome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may post attachments
  • You may edit your posts
  •