SRL Archive - OSR Help

Error:


Atomsk

2013-04-20 12:05:17

Everyimte im using PowerFlop i get this error

Error: Exception: Mask is invalid. Width/Height: (9,6). WhiteHi/BlackHi: (-1,53) at line 778
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap]

and the bot stops. any help?

King

2013-04-20 12:14:56

Its the randoms include make sure you have a nickname filled out here

Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := ''; // ***Username***
Players[0].Pass := ''; // ***PW***
Players[0].WorldInfo := []; // ***Desired World, leave blank if random***
Players[0].Nick := 'man88'; // ***Portion of display name, IMPORTANT FOR RANDOMS***
Players[0].LampSkill := Skill_Slayer;
Players[0].Active := True;
End;


then make sure

From: Ashaman88
2) You MUST call declareplayers BEFORE you call setupsrl. setupsrl handles setting the nickname and will also cause a runtime error if you do not do it in that order (this also may be made to be more flexible in the future). If you still get the runtime error, redownload the include!


Like this

 begin
DeclarePlayers;
SetupSRL;

At the beginning of the main loop at the bottom of the script, Ashamans guide here