SRL Archive - OSR Help

Error Exception: Mask Is Invalid


Sjoe

2013-08-06 21:28:27

@Flight
I am using Flight's C_AntiRandoms if this matter, didn't really have this problem with the normal findnormalrandoms;

I've set playernick: Players[0].Nick :='rot';

DeclarePlayers; before SetupSRL; in the mainloop.

Still I get error.
Error: Exception: Mask is invalid. Width/Height: (518,138). WhiteHi/BlackHi: (-1,71483) at line 298

where it highlights this in C_AntiRandoms;
if FindBitmapMaskTolerance(EC_ScreenText, x, y, MSX1, MSY1, MSX2, MSY2, 0, 40) then

Help is appreciated :)

Flight

2013-08-06 21:45:09

Yeah it's definitely something in my C_AntiRandoms file, probably the Evil Chicken detector like what it mentions here. Let me ask you this; are you using the original UpChars07 font files, the black & white ones?

Sjoe

2013-08-06 22:00:59

From: Flight
Yeah it's definitely something in my C_AntiRandoms file, probably the Evil Chicken detector like what it mentions here. Let me ask you this; are you using the original UpChars07 font files, the black & white ones?


yes using original one, it just happened again when a random popped up. Shall I try with your uptexts? :)

Flight

2013-08-06 22:03:31

From: Sjoe
yes using original one, it just happened again when a random popped up. Shall I try with your uptexts? :)


Absolutely. Use the C_AntiRandoms & UpChars07 from NatCrafter posted in the JR. Member section. Because that's the latest script it's the latest version of C_AntiRandoms.

Sjoe

2013-08-06 22:05:06

From: Flight
Absolutely. Use the C_AntiRandoms & UpChars07 from NatCrafter posted in the JR. Member section. Because that's the latest script it's the latest version of C_AntiRandoms.


Alright thanks, gonna give it a go!

Sjoe

2013-08-06 22:31:23

From: Flight
Absolutely. Use the C_AntiRandoms & UpChars07 from NatCrafter posted in the JR. Member section. Because that's the latest script it's the latest version of C_AntiRandoms.


Double posting , oh well :p

Well a random just popped up and the same thing happened, I replaced the Upchars and restarted simba to make sure beforehands.
I'm not sure what's causing this.

EDIT: seems like every text said by players is causing this error.

Flight

2013-08-06 22:39:02

From: Sjoe
Double posting , oh well :p

Well a random just popped up and the same thing happened, I replaced the Upchars and restarted simba to make sure beforehands.
I'm not sure what's causing this.


The only other thing I can suggest is using Simba 992 and using AL_Function's "setupUpText" to set the OCR, but honestly it'd be taking a step backwards to use 992. If only we had the SPS plugin compiled with Simba 1.0 then there'd be no reason we all shouldn't be using the newest Simba. :/

If you want to fix this problem just down to "FindCustomRandoms" in C_AntiRandoms and find this line:

if (foundEvilChicken or SRL_infight) then
…and remove the part that detects the Evil Chicken; like so:

if SRL_infight then
…but afterwards your script won't detect the Evil Chicken just by chat alone.

Sjoe

2013-08-06 22:43:51

From: Flight
The only other thing I can suggest is using Simba 992 and using AL_Function's "setupUpText" to set the OCR, but honestly it'd be taking a step backwards to use 992. If only we had the SPS plugin compiled with Simba 1.0 then there'd be no reason we all shouldn't be using the newest Simba. :/

If you want to fix this problem just down to "FindCustomRandoms" in C_AntiRandoms and find this line:

if (foundEvilChicken or SRL_infight) then
…and remove the part that detects the Evil Chicken; like so:

if SRL_infight then
…but afterwards your script won't detect the Evil Chicken just by chat alone.


lol sorry Flight for bothering u, I derped. Forgot SetupCustomRandoms; it's working now :p thx again