Results 1 to 9 of 9

Thread: FindNormalRandoms; Breaks my script.

  1. #1
    Join Date
    Aug 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default FindNormalRandoms; Breaks my script.

    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
    Code:
    if FindBitmapMaskTolerance(NickNameBMP, ax, ay, gtalksBox[yCount].x1, gtalksBox[yCount].y1, gtalksBox[yCount].x2, gtalksBox[yCount].y2, 0, 40) then

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by ralfpker View Post
    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
    Code:
    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 := '';

    Creds to DannyRS for this wonderful sig!

  3. #3
    Join Date
    Mar 2012
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    put in your main loop FindNormalRandoms;

  4. #4
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by marijuana420 View Post
    put in your main loop FindNormalRandoms;
    Irrelevant to his question/error

    Creds to DannyRS for this wonderful sig!

  5. #5
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  6. #6
    Join Date
    Aug 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

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

  7. #7
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  8. #8
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by Ashaman88 View Post
    Re download include then
    Setscreenname is not needed anymore?

    Creds to DannyRS for this wonderful sig!

  9. #9
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •