Results 1 to 12 of 12

Thread: Really weird error when trying to use MouseBox.

  1. #1
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default Really weird error when trying to use MouseBox.

    ** Warning in GaussBox: Point invalid (323, 552) **

    The point changes every time I run my script.
    The point isn't invalid. I've checked four times.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  2. #2
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Help?
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  3. #3
    Join Date
    Dec 2011
    Posts
    571
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    try doing // at the line that usually works for me ha
    created my mr[s]

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Make sure (x1, y1) values are lower integers compared to (x2, y2);

    Also, how are you using the aforementioned 'error' code? More would help (i.e. if it's being passed wrong parameters with a function/procedure from the include

  5. #5
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by print123 View Post
    try doing // at the line that usually works for me ha
    But I need the line.

    Quote Originally Posted by Le Jingle View Post
    Make sure (x1, y1) values are lower integers compared to (x2, y2);
    They are.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  6. #6
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Could you post the line / relevant lines?

  7. #7
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Runaway View Post
    Could you post the line / relevant lines?
    Oh, sorry. Never mind. Fixed it lmao.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  8. #8
    Join Date
    Mar 2007
    Posts
    393
    Mentioned
    1 Post(s)
    Quoted
    98 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Oh, sorry. Never mind. Fixed it lmao.
    How did you fix it, Iam facing the same problem?

  9. #9
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by t4q View Post
    How did you fix it, Iam facing the same problem?
    Post the relevant code please

  10. #10
    Join Date
    Mar 2007
    Posts
    393
    Mentioned
    1 Post(s)
    Quoted
    98 Post(s)

    Default

    Code:
     SetColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.05, 0.23);
      if findcolorsspiraltolerance(x, y, DoorTPA, 2184045, MSX1, MSY1, MSX2, MSY2, 5) then
      begin
        DoorATPA := SplitTPAEx(DoorTPA, 8, 8);
        SortATPASize(DoorATPA, true);
        for i := 0 to high(DoorATPA) do
        begin
          DoorBox := GetTPABounds(DoorATPA[i]);
          SMART_DebugATPA(true, DoorATPA);
            SetColorToleranceSpeed(1);
            SetColorSpeed2Modifiers(0.02, 0.02);
            mousebox(DoorBox.x1 + 2, Doorbox.Y1 + 2, Doorbox.X2 - 2, Doorbox.Y2 - 2, mouse_move);
    That's the code.. It started to work when i replaced last line with
    Code:
    mousebox(DoorBox.x1, Doorbox.Y1, Doorbox.X2, Doorbox.Y2, mouse_move);
    Thing is I don't understand why I got that error beause door was big enough to use those +2's and -2's
    Last edited by t4q; 04-08-2013 at 02:44 PM.

  11. #11
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by t4q View Post
    Code:
     SetColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.05, 0.23);
      if findcolorsspiraltolerance(x, y, DoorTPA, 2184045, MSX1, MSY1, MSX2, MSY2, 5) then
      begin
        DoorATPA := SplitTPAEx(DoorTPA, 8, 8);
        SortATPASize(DoorATPA, true);
        for i := 0 to high(DoorATPA) do
        begin
          DoorBox := GetTPABounds(DoorATPA[i]);
          SMART_DebugATPA(true, DoorATPA);
            SetColorToleranceSpeed(1);
            SetColorSpeed2Modifiers(0.02, 0.02);
            mousebox(DoorBox.x1 + 2, Doorbox.Y1 + 2, Doorbox.X2 - 2, Doorbox.Y2 - 2, mouse_move);
    That's the code.. It started to work when i replaced last line with
    Code:
    mousebox(DoorBox.x1, Doorbox.Y1, Doorbox.X2, Doorbox.Y2, mouse_move);
    Thing is I don't understand why I got that error beause door was big enough to use those +2's and -2's
    Try putting the math in the brackets like so:
    Simba Code:
    MouseBox((DoorBox.x1 + 2), (Doorbox.Y1 + 2), (Doorbox.X2 - 2), (Doorbox.Y2 - 2), mouse_move);

  12. #12
    Join Date
    Mar 2007
    Posts
    393
    Mentioned
    1 Post(s)
    Quoted
    98 Post(s)

    Default

    of corse lol, tnx

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
  •