SRL Archive - MSI Bugs

Cooking


Smidqe

2011-07-19 06:14:18

When I have more than one account set to cook it throws an out of range error on Mainloop.simba on line 852. It works with one account but doesn't work when others have been set.
Error: Out Of Range at line 852


The line 852 in Mainloop.simba is this:
 if (Length(Scripts[i].Materials) <= 0) then 

TomTuff

2011-07-19 06:26:36

I'm not positive what number it is, but in runme change the number of players.

Smidqe

2011-07-19 06:53:05

From: TomTuff
I'm not positive what number it is, but in runme change the number of players.


Everything else is set correctly. I'm using form.
          SKILL_COOKING:
begin
MSI_SetReportInfo(i, j, Scripts[j].CookingSpot, MSI_Scripts[Scripts[j].Name].Defaults.CookingSpot, newObjs);
Scripts[j].CookingSpot := newObjs;

if (Length(Scripts[i].Materials) <= 0) then // Here's the problem (E: Should be j inside the brackets not i)
Scripts[j].Materials := MSI_Scripts[Scripts[j].Name].Defaults.Materials;
end;

E: Aha! Found the problem, on line 852 it should be Scripts[j] not Scripts

masterBB

2011-07-19 07:00:35

^nice find

Coh3n

2011-07-19 07:27:13

Great find! :) I'll be making several updates after work tonight so I'll be sure to do this as well.

E: This is fixed in the latest version. See the update thread here.