SRL Archive - MSI Bugs

Runtime Error


Camaro'

2010-09-28 17:56:30

program MSI_Script;

const
DEBUG_SMART = False; // Debugs things onto SMART (may cause lag)
BREAK_TIME = 15; // Single player only - how long to break for (in minutes)
SAVE_DEBUG = True; // Save's the debug box text to a file
ENABLE_REMOTE = False; // Do you want to enable the Player Remote?
LEVEL_TO_DEBUG = 5; // The lower the number, the less the script will debug
HUMAN_BREAKING = True; // Take more human like breaks
ANTIBAN_MIN_WAIT = 10000; // Minimum time to wait between antibans

WORLD_SMART = 90;

STATS_ID = '387'; // Temporary stats ID (2 digit number)
STATS_PASS = ''; // Temporary stats password

{$i MSI/Setup.simba}

procedure DeclarePlayers;
var
i: Integer;
begin
HowManyPlayers := 3;
NumberOfPlayers(HowManyPlayers);
SetLength(MSI_Players, HowManyPlayers);
SetLength(ProgressReportArray, HowManyPlayers);

CurrentPlayer := 2;
CurrentScript := 0;

with MSI_Players[0] do
begin
Name := 'solnt'; // Username
Pass := 'dj'; // Password
Nick := 'lemn'; // Nickname (3-4 lowercase letters from username)
Pin := ''; // Bank pin; leave as '' if player doesn't have one
Active := True; // Use this player?
Member := False; // Is this player a member?
Location := LOC_DB_BANK; // See instructions at the top
Scripts := [SCRIPT_DB_WILLOWS]; // See instructions at the top
Objects := [[TREE_WILLOW]]; // See instructions at the top
Priority := [[]]; // See instructions at the top
DontDrop := [HATCHET_RUNE]; // See instructions at the top
Loads[0] := 7; // Amount of loads before breaking/switching players
Loads[1] := 5555; // Total loads for the player to do
end;

with MSI_Players[1] do
begin
Name := 'lu3';
Pass := 'jj';
Nick := 'prop';
Pin := '';
Active := True;
Member := False;
Location := LOC_DB_BANK;
Scripts := [SCRIPT_DB_FISHER];
Objects := [[FISHSPOT_NET]];
Priority := [[]];
DontDrop := [FISH_SMALLNET];
Loads[0] := 7;
Loads[1] := 5555;
end;
with MSI_Players[2] do
begin
Name := 'l5'; // Username
Pass := 'h77'; // Password
Nick := 'rop'; // Nickname (3-4 lowercase letters from username)
Pin := ''; // Bank pin; leave as '' if player doesn't have one
Active := True; // Use this player?
Member := False; // Is this player a member?
Location := LOC_VE_BANK; // See instructions at the top
Scripts := [SCRIPT_VE_OAKS]; // See instructions at the top
Objects := [[TREE_OAK]]; // See instructions at the top
Priority := [[]]; // See instructions at the top
DontDrop := [HATCHET_RUNE, HATCHET_MITHRIL, HATCHET_ADAMANT ]; // See instructions at the top
Loads[0] := 7; // Amount of loads before breaking/switching players
Loads[1] := 5555; // Total loads for the player to do
end;

Either it will start walking player 2 to the Oaks, after the first click, it will right click the minimap, and then give me

Error: Out Of Range at line 68

on the Players[1].Pin line

but if I don't get that, it will call SetUpPlayer and get a runtime error on debuging, the line that has 'RewriteFile()'
This hasn't happened in a while ^^.

Player[2] is at Varrock East chopping Oaks, everything was working good this morning.

NCDS

2010-09-28 17:59:57

Revert to Rev# 312 if you've updated to #313 and see if it works then. Coh3n may have forgotten to add something when he committed TomTuff's script records for Draynor.

Also, you shouldn't need to put your tools in the 'DontDrop' array as MSI already checks to make sure it doesn't drop any tools.

Camaro'

2010-09-28 18:03:14


[0:00:26]: { }
[0:00:26]: {----------------------------------------------------------------}
[0:00:26]: { }
[0:00:26]: { Player 2: }
[0:00:26]: { Location: Varrock east bank }
[0:00:26]: { Time: 00s }
[0:00:26]: { Total Loads: 0 }
[0:00:26]: { Active: True }
[0:00:26]: { }
[0:00:26]: { Script: Varrock East Oaks }
[0:00:26]: { Time: 00s }
[0:00:26]: { Skill: Woodcutting }
[0:00:26]: { Loads: 0 }
[0:00:26]: { Exp: 0 }
[0:00:26]: { Level: Not yet defined }
[0:00:26]: { Item: Oak logs }
[0:00:26]: { Amount: 0 }
[0:00:26]: { }
[0:00:26]: {----------------------------------------------------------------}
[0:00:26]: {----------------------------------------------------------------}
[0:00:26]: [ Rop ] -- MSI_SetupPlayer
[0:00:26]: [ Rop ] ---- Player is not logged in
[0:00:27]: Welcome to Runescape.
[0:00:28]: Luvpropel5
[0:00:43]: [ Rop ] ------ Scanning for randoms...
[0:00:45]: [ Rop ] ---- MSI_BestTool
[0:00:46]: [ Rop ] ------ CurrentSkill level: 21
[0:00:46]: [ Rop ] ---- MSI_BestTool: Mithril Hatchet
[0:00:46]: [ Rop ] ---- MSI_FindTool - GameTab: 26
[0:00:47]: [ Rop ] ------ Found DTM: Mithril Hatchet
[0:00:47]: [ Rop ] ---- MSI_FindTool: True
[0:00:47]: [ Rop ] -- MSI_SetupPlayer: True
[0:00:48]: [ Rop ] -- MSI_FindItemSlots: Found 0 Bronze Hatchet in inventory slot(s) []
[0:00:48]: [ Rop ] -- MSI_FindItemSlots: Found 0 Iron Hatchet in inventory slot(s) []
[0:00:48]: [ Rop ] -- MSI_FindItemSlots: Found 0 Steel Hatchet in inventory slot(s) []
[0:00:48]: [ Rop ] -- MSI_FindItemSlots: Found 0 Mithril Hatchet in inventory slot(s) []
[0:00:48]: [ Rop ] -- MSI_FindItemSlots: Found 0 Adamant Hatchet in inventory slot(s) []
[0:00:48]: [ Rop ] -- MSI_FindItemSlots: Found 0 Rune Hatchet in inventory slot(s) []
[0:00:48]: [ Rop ] -- MSI_FindItemSlots: Found 0 Dragon Hatchet in inventory slot(s) []
[0:00:48]: [ Rop ] -- MSI_Walk
[0:00:48]: [ Rop ] ---- Player's Location = Varrock east bank
[0:00:48]: [ Rop ] ---- MSI_PerfomWalk
[0:00:48]: [ Rop ] ------ MSI_ColorWalk
[0:00:48]: [ Rop ] -------- MSI_CreateWalkFailsafe
[0:00:48]: [ Rop ] ---------- MSI_WC_VEPoints
[0:00:49]: ** Warning in LoadAutoColor: Function Successful: Found Color = 8750732 **
Error: Out of Global Vars range at line 56
The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]

Now I got the debug run time error, its must be my new setup, its my first time with more then one player.


Now I got the debug run time error, its must be my new setup, its my first time with more then one player.

Coh3n

2010-09-28 19:51:46

It may be something in the color walking. Are the hooks outdated or are you just not using reflection?

E: I just tested. I'm not getting any error and my hooks are working. I'll take a look at the color part.

Camaro'

2010-09-28 19:56:15

From: Coh3n
It may be something in the color walking. Are the hooks outdated or are you just not using reflection?


What? The hooks are outdated but I don't think I'm using reflection. How do you check?

Well, I revised back to 312, no runtime errors any more.

Coh3n

2010-09-28 19:58:53

[QUOTE=Camaro';739820]What? The hooks are outdated but I don't think I'm using reflection. How do you check?
Hooks are working for me. And I just noticed because it says MSI_ColorWalk in your debug. If your hooks are outdated it will automatically use color walking (if available for that script).

From: NCDS
Also, you shouldn't need to put your tools in the 'DontDrop' array as MSI already checks to make sure it doesn't drop any tools.

It's also only used in power scripts. You don't need to fill it out if you're using a script that banks.

Camaro'

2010-09-28 20:25:14

From: Coh3n
Hooks are working for me. And I just noticed because it says MSI_ColorWalk in your debug. If your hooks are outdated it will automatically use color walking (if available for that script).


It's also only used in power scripts. You don't need to fill it out if you're using a script that banks.


Ok , thanks, I don't have reflection on my computer so I would rather it use color anyway.

No more error by the way. Revised back to 312.

Coh3n

2010-09-28 20:33:52

[QUOTE=Camaro';739834]Ok , thanks, I don't have reflection on my computer so I would rather it use color anyway.

No more error by the way. Revised back to 312.
Weird. I didn't change anything that would cause this I don't think… I can't see anything, maybe someone else can?

Index: C:/Simba/Includes/MSI/Scripts.simba
===================================================================
--- C:/Simba/Includes/MSI/Scripts.simba (revision 312)
+++ C:/Simba/Includes/MSI/Scripts.simba (revision 313)
@@ -158,6 +158,67 @@
end;
end;

+ SCRIPT_DB_TREES:
+ with MSI_Scripts[whichScript] do
+ begin
+ Name := 'Draynor Normals';
+ Constant := SCRIPT_DB_TREES;
+ Tools := [TOOL_HATCHET];
+ SkillName := 'Woodcutting';
+ SkillConstant := SKILL_WOODCUTTING;
+ Objects := [TREE_NORMAL];
+ Items := [[LOGS_NORMAL]];
+ BankType := Bank;
+ WhichBank := MSI_BANK_DB;
+ CompassAng := -1;
+ AutoObjects := @MSI_ChopInvFull;
+
+ with PathInfo do
+ begin
+ StartLoc := LOC_DB_BANK;
+ EndLoc := LOC_DB_TREES;
+
+ Reflection := [
+ Point(3092, 3244), Point(3078, 3253),
+ Point(3081, 3269)
+ ];
+
+ // ObstaclePoints := [];
+ // Obstacles := [];
+ // DoObstacles := [];
+ end;
+ end;
+
+ SCRIPT_DB_OAKS:
+ With MSI_Scripts[WhichScript] do
+ begin
+ Name := 'Draynor Oaks';
+ Constant := SCRIPT_DB_OAKS;
+ Tools := [TOOL_HATCHET];
+ SkillName := 'Woodcutting';
+ SkillConstant := SKILL_WOODCUTTING;
+ Objects := [TREE_OAK];
+ Items := [[LOGS_OAK]];
+ BankType := Bank;
+ WhichBank := MSI_BANK_DB;
+ CompassAng := 'w';
+ AutoObjects := @MSI_ChopInvFull;
+
+ with PathInfo do
+ begin
+ StartLoc := LOC_DB_BANK;
+ EndLoc := LOC_DB_OAKS;
+
+ Reflection := [
+ Point(3092, 3244), Point(3101, 3244)
+ ];
+
+ // ObstaclePoints := [];
+ // Obstacles := [];
+ // DoObstacles := [];
+ end;
+ end;
+
SCRIPT_DB_WILLOWS:
with MSI_Scripts[whichScript] do
begin
Index: C:/Simba/Includes/MSI/Locations.simba
===================================================================
--- C:/Simba/Includes/MSI/Locations.simba (revision 312)
+++ C:/Simba/Includes/MSI/Locations.simba (revision 313)
@@ -118,6 +118,22 @@
AtBank := False;
end;

+ LOC_DB_TREES:
+ with MSI_Locations[Which] do
+ begin
+ Name := 'Draynor Village trees';
+ Constant := LOC_DB_TREES;
+ AtBank := False;
+ end;
+
+ LOC_DB_OAKS:
+ with MSI_Locations[Which] do
+ begin
+ Name := 'Draynor Village oaks';
+ Constant := LOC_DB_OAKS;
+ AtBank := False;
+ end;
+
LOC_DB_FISH:
with MSI_Locations[Which] do
begin
Index: C:/Simba/Includes/MSI/Globals.simba
===================================================================
--- C:/Simba/Includes/MSI/Globals.simba (revision 312)
+++ C:/Simba/Includes/MSI/Globals.simba (revision 313)
@@ -43,10 +43,12 @@
SCRIPT_VE_OAKS = 12;
SCRIPT_GE_YEWS = 13;
SCRIPT_DB_WILLOWS = 14;
- SCRIPT_RM_YEWS = 15;
- SCRIPT_PS_WILLOWS = 16;
- SCRIPT_PS_YEWS = 17;
- SCRIPT_SV_MAGICS = 18;
+ SCRIPT_DB_TREES = 15;
+ SCRIPT_DB_OAKS = 16;
+ SCRIPT_RM_YEWS = 17;
+ SCRIPT_PS_WILLOWS = 18;
+ SCRIPT_PS_YEWS = 19;
+ SCRIPT_SV_MAGICS = 20;

// Mining
SCRIPT_POWER_MINER = 30;
@@ -125,7 +127,9 @@
// Draynor
LOC_DB_BANK = 30;
LOC_DB_WILLOWS = 31;
- LOC_DB_FISH = 32;
+ LOC_DB_TREES = 32;
+ LOC_DB_OAKS = 33;
+ LOC_DB_FISH = 34;

// Rimmington
LOC_RM_YEWS = 40;


Camaro'

2010-09-28 20:35:31

From: Coh3n
Weird. I didn't change anything that would cause this I don't think… I can't see anything, maybe someone else can?

Index: C:/Simba/Includes/MSI/Scripts.simba
===================================================================
--- C:/Simba/Includes/MSI/Scripts.simba (revision 312)
+++ C:/Simba/Includes/MSI/Scripts.simba (revision 313)
@@ -158,6 +158,67 @@
end;
end;

+ SCRIPT_DB_TREES:
+ with MSI_Scripts[whichScript] do
+ begin
+ Name := 'Draynor Normals';
+ Constant := SCRIPT_DB_TREES;
+ Tools := [TOOL_HATCHET];
+ SkillName := 'Woodcutting';
+ SkillConstant := SKILL_WOODCUTTING;
+ Objects := [TREE_NORMAL];
+ Items := [[LOGS_NORMAL]];
+ BankType := Bank;
+ WhichBank := MSI_BANK_DB;
+ CompassAng := -1;
+ AutoObjects := @MSI_ChopInvFull;
+
+ with PathInfo do
+ begin
+ StartLoc := LOC_DB_BANK;
+ EndLoc := LOC_DB_TREES;
+
+ Reflection := [
+ Point(3092, 3244), Point(3078, 3253),
+ Point(3081, 3269)
+ ];
+
+ // ObstaclePoints := [];
+ // Obstacles := [];
+ // DoObstacles := [];
+ end;
+ end;
+
+ SCRIPT_DB_OAKS:
+ With MSI_Scripts[WhichScript] do
+ begin
+ Name := 'Draynor Oaks';
+ Constant := SCRIPT_DB_OAKS;
+ Tools := [TOOL_HATCHET];
+ SkillName := 'Woodcutting';
+ SkillConstant := SKILL_WOODCUTTING;
+ Objects := [TREE_OAK];
+ Items := [[LOGS_OAK]];
+ BankType := Bank;
+ WhichBank := MSI_BANK_DB;
+ CompassAng := 'w';
+ AutoObjects := @MSI_ChopInvFull;
+
+ with PathInfo do
+ begin
+ StartLoc := LOC_DB_BANK;
+ EndLoc := LOC_DB_OAKS;
+
+ Reflection := [
+ Point(3092, 3244), Point(3101, 3244)
+ ];
+
+ // ObstaclePoints := [];
+ // Obstacles := [];
+ // DoObstacles := [];
+ end;
+ end;
+
SCRIPT_DB_WILLOWS:
with MSI_Scripts[whichScript] do
begin
Index: C:/Simba/Includes/MSI/Locations.simba
===================================================================
--- C:/Simba/Includes/MSI/Locations.simba (revision 312)
+++ C:/Simba/Includes/MSI/Locations.simba (revision 313)
@@ -118,6 +118,22 @@
AtBank := False;
end;

+ LOC_DB_TREES:
+ with MSI_Locations[Which] do
+ begin
+ Name := 'Draynor Village trees';
+ Constant := LOC_DB_TREES;
+ AtBank := False;
+ end;
+
+ LOC_DB_OAKS:
+ with MSI_Locations[Which] do
+ begin
+ Name := 'Draynor Village oaks';
+ Constant := LOC_DB_OAKS;
+ AtBank := False;
+ end;
+
LOC_DB_FISH:
with MSI_Locations[Which] do
begin
Index: C:/Simba/Includes/MSI/Globals.simba
===================================================================
--- C:/Simba/Includes/MSI/Globals.simba (revision 312)
+++ C:/Simba/Includes/MSI/Globals.simba (revision 313)
@@ -43,10 +43,12 @@
SCRIPT_VE_OAKS = 12;
SCRIPT_GE_YEWS = 13;
SCRIPT_DB_WILLOWS = 14;
- SCRIPT_RM_YEWS = 15;
- SCRIPT_PS_WILLOWS = 16;
- SCRIPT_PS_YEWS = 17;
- SCRIPT_SV_MAGICS = 18;
+ SCRIPT_DB_TREES = 15;
+ SCRIPT_DB_OAKS = 16;
+ SCRIPT_RM_YEWS = 17;
+ SCRIPT_PS_WILLOWS = 18;
+ SCRIPT_PS_YEWS = 19;
+ SCRIPT_SV_MAGICS = 20;

// Mining
SCRIPT_POWER_MINER = 30;
@@ -125,7 +127,9 @@
// Draynor
LOC_DB_BANK = 30;
LOC_DB_WILLOWS = 31;
- LOC_DB_FISH = 32;
+ LOC_DB_TREES = 32;
+ LOC_DB_OAKS = 33;
+ LOC_DB_FISH = 34;

// Rimmington
LOC_RM_YEWS = 40;



It doesn't look like it, but maybe it just needed a 'refresh' checkout, or whatever.

Coh3n

2010-10-03 21:36:57

Does this still happen?

Camaro'

2010-10-05 20:47:39

From: Coh3n
Does this still happen?



No, but the only thing I have run lately is the power miner. Perfect by the way.

Coh3n

2010-10-05 22:14:40

[QUOTE=Camaro';741433]No, but the only thing I have run lately is the power miner. Perfect by the way.[/QUOTE]
Wonderful. :)