Results 1 to 14 of 14

Thread: SRL/Skill/Mining.Scar

  1. #1
    Join Date
    Sep 2008
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SRL/Skill/Mining.Scar

    I'm almost positive that FindPick, doesn't work anymore. I have tried implimenting it into my script as part of a findallrandoms procedure and every time my pick head flies off it runtime errors out into mining.scar.

    I'm not sure if anyone knows if this is true or not but I just thought I would let someone know...

    I feel bad for being the first one to post a potential bug. Feel free to remove this thread if i'm wrong and I am just retarded and not doing it right.

    This is basically my findallrandoms procedure with some stuff taken out

    Code:
    Procedure FindAllRandoms;
    Begin
      FindNormalRandoms;
      FindPick;
      If FindFight then
      Begin
    I have had this problem 6/6 of the times and I got a 10 day ban because of it.

    Edit Here is the runtime error:

    [Runtime Error] : Exception: Access violation at address 006D5360 in module 'scar.exe'. Read of address 00000034 in line 223 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Skill/Mining.Scar
    Free Scripts Pl0x!

  2. #2
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You don't know whether or not you got the ban because of the FindPick; being broken.

  3. #3
    Join Date
    Sep 2008
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, I actually do because I didn't use the character for anything for three weeks except for when I was testing the script. The only thing that went wrong was that and the script would end right afterwards.

    I'm pretty sure that it is a problem with finding the broken pick part because the two times I watched it, that is where it would fail.

    Edit: I'm not blaming anyone but myself for using it, i'm just saying that is the primary reason for my 10 day ban, argue with me if you want to or actually help solve the problem. Either way I still believe it is broken.
    Free Scripts Pl0x!

  4. #4
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well. I believe someone posted a working one in the Public SVN.

  5. #5
    Join Date
    Sep 2008
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I couldn't find it, post a link please. I feel foolish if someone already fixed it
    Free Scripts Pl0x!

  6. #6
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  7. #7
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Isn't that for WC.scar? "Find Broken Axe"
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  8. #8
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ohhh. Sorry.

  9. #9
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Did you save the error message? Usually it will tell you the exact line of code that's stuffing up.


  10. #10
    Join Date
    Sep 2008
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by tarajunky View Post
    Did you save the error message? Usually it will tell you the exact line of code that's stuffing up.
    I didn't think about it, I was in a hurry to get off to school. It opened up to the part where it looks for the broken pick though, I remember that. I will test it again on a different character and see if I can reproduce it. I thought I was just being retaded and not setting it up right (Which may be the case).

    Edit: I recreted it and here it is
    [Runtime Error] : Exception: Access violation at address 006D5360 in module 'scar.exe'. Read of address 00000034 in line 223 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Skill/Mining.Scar
    Free Scripts Pl0x!

  11. #11
    Join Date
    Sep 2008
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This is the line it is having trouble with:
    Code:
    if FindBitmapMaskTolerance(BrokenPick, dx, dy, EC.x1, EC.y1, EC.x2, EC.y2, 10, 10) then
    Free Scripts Pl0x!

  12. #12
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Isn't there supposted to be one 10 in that line?
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  13. #13
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    Isn't there supposted to be one 10 in that line?
    Tolerance, ContourTolerance. No.
    I'll test FindPick out soon.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  14. #14
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    You need to call SetupMining or LoadMiningBitmaps before you call FindPick. Otherwise your bitmaps aren't loaded into memory and you get a runtime error when you try to use them.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. include SRL\SRL\Skill\Fighting.Scar
    By Thivan in forum OSR Help
    Replies: 3
    Last Post: 11-23-2006, 05:58 PM

Posting Permissions

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