SRL Archive - MSI Bugs

Error: Out Of Range at line 123


sk80rdie76

2012-05-19 12:58:03

Can this bug be reproduced?

[INDENT]yes, everytime[/INDENT]


Script & Location

[INDENT]Mining Guild Miner[/INDENT]


Bug Description

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


Debug Text

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

[INDENT][/INDENT]



Thanks,
sk80rdie76

cokezone

2012-05-19 16:04:39

same here its a common problem at the moment

adam2348

2012-05-19 21:11:51

(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
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]);

NCDS

2012-05-19 21:54:32

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.

adam2348

2012-05-20 01:17:31

thanks for the quick turnaround! working great now!
awesome :D