SRL Archive - OSR Help

FindNormalRandoms; Breaks my script.


ralfpker

2013-04-01 21:43:59

My script runs perfectly fine, yet for some reason whenever i put in my FindNormalRandoms the script comes up with an error from my antirandoms simba script.

Error: Exception: Mask is invalid. Width/Height: (9,6). WhiteHi/BlackHi: (-1,53) at line 780

Not sure if i have possibly implemented them wrong or if it is just an issue with the FindNormalRandoms since it isn't quiet complete yet. Anyone know what might be happening?

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

Sjoe

2013-04-01 21:47:13

From: ralfpker
My script runs perfectly fine, yet for some reason whenever i put in my FindNormalRandoms the script comes up with an error from my antirandoms simba script.

Error: Exception: Mask is invalid. Width/Height: (9,6). WhiteHi/BlackHi: (-1,53) at line 780

Not sure if i have possibly implemented them wrong or if it is just an issue with the FindNormalRandoms since it isn't quiet complete yet. Anyone know what might be happening?

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


This happens if u don't fill in your players nick : Player[0].nick := '';

marijuana420

2013-04-01 21:47:20

put in your main loop FindNormalRandoms;

Sjoe

2013-04-01 21:51:12

From: marijuana420
put in your main loop FindNormalRandoms;


Irrelevant to his question/error

Ashaman88

2013-04-01 22:02:17

And call declareplayers before setupsrl

ralfpker

2013-04-01 22:23:22

Hmm just added my player nickname to the equation but it still came up with the same error, i already had DeclarePlayers/SetupSrl implemented.

This is what i have as my DeclarePlayers.

Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].nick := '';
Players[0].Active := True;
end;

Ashaman88

2013-04-01 22:26:47

Re download include then

Sjoe

2013-04-01 22:43:49

From: Ashaman88
Re download include then


Setscreenname is not needed anymore?

King

2013-04-01 22:56:26

Not if you put DeclarePlayers before SetupSRL, has something to do with setting the name :P