SRL Archive - OSR Help

Findnormalrandoms not working.


Cage

2013-10-20 13:54:37

Hello :)

Every time findnormalrandom detects a talking event. (Be it mine or someone elses) I keep getting this error


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


This is the code its highlighting.

 if FindBitmapMaskTolerance(NickNameBMP, ax, ay, gtalksBox[yCount].x1, gtalksBox[yCount].y1, gtalksBox[yCount].x2, gtalksBox[yCount].y2, 0, 40) then                      

Any ideas on why this is happening? I have my nickname set up correctly.

okokokok

2013-10-20 13:59:51

Make sure to fill in your nickname. Usually 4 letters of your username.
If you don't do this, it can't find the randoms and will give this error.

Sjoe

2013-10-20 14:20:57

and call DeclarePlayers; before SetupSRL; in your mainloop.

Cage

2013-10-20 14:34:03

From: Sjoe
and call DeclarePlayers; before SetupSRL; in your mainloop.


That's most likely it. Cheers. :)