SRL Archive - MSI Bugs

Closing square bracket (']') expected at line 638


TomTuff

2010-09-26 11:48:07

So I was trying to get my AK_MINER to work in MSI, (turns out i had ROCK_ instead of ORE_ in a lot of places) and when i fixed everything i thought was wrong, i compiled, and got this error:
[Error] C:\Simba\Includes\MSI/Scripts.simba(639:49): Closing square bracket (']') expected at line 638
so, to check it wasn't my modifications, i checked out a fresh MSI to a new folder, compiled runme.simba, and got the same exact error.

is anyone else having this problem?

Overtime

2010-09-26 11:54:46

Hmm nope.

Sure your running the new Runme.simba and not the old one from the old folder?

TomTuff

2010-09-26 11:55:33

yes, 100% positive.

E: Got a fresh checkout of MSI AND SRL AND Reflection, and it worked …

E2: with a fresh install of reflection, srl, and MSI, i re-integrated my fisher first, worked like a charm
then i attempted to re-integrate the AK Miner, but it didn't work… However the error line is in one of the rimmington scripts, which i didn't write. Perhaps it's one of those?

E3: did some tedious searching with N++ and found 2 missing brackets (well 1 extra [ and 1 missing ])… but now i'm getting a syntax error

[Error] C:\Simba\Includes\MSI/Scripts.simba(599:13): Syntax error at line 598
[Error] C:\Simba\Includes\MSI/Scripts.simba(599:13): Syntax error at line 598
Compiling failed.

line 598: (in SCRIPT_RM_IRON_1)
    SCRIPT_RM_IRON_1:
with MSI_Scripts[whichScript] do
begin // line 558
Name := 'Rimmington Iron Miner 1';
Constant := SCRIPT_RM_IRON_1;
Tools := [TOOL_PICKAXE];
SkillName := 'Mining';
SkillConstant := SKILL_MINING;
Objects := [ROCK_IRON];
Items := [[ORE_IRON]];
BankType := DBox;
WhichBank := DBOX_PS;
CompassAng := -1;
AutoObjects := @MSI_MineInvFull;

with PathInfo do
begin
StartLoc := LOC_PS_DBOX;
EndLoc := LOC_RM_IRON_1;

Reflection := [
Point(3047, 3234), Point(3033, 3234),
Point(3021, 3233), Point(3008, 3231),
Point(2996, 3231), Point(2983, 3233)
];

// ObstaclePoints := [];
// Obstacles := [];
// DoObstacles := [];
end;
end;

NCDS

2010-09-26 18:08:34

Put all your edited folders in a different folder, then Commit to head revision of MSI and see if you still have errors.

Overtime

2010-09-26 18:45:11

I think he did that NC, but he is trying to put his AK Miner to work with MSI

NCDS

2010-09-26 18:54:36

I get no compiling errors with the current MSI.

Running the lumbridge west swamp miner as we speak actually.

Coh3n

2010-09-28 14:25:06

Tom, the only thing you should have to add is the script record and locations (plus their constants). MSI already supports all the rocks. Can you post your Miner record?

Since you've added other scripts, I'm assuming this has been resolved. :)