Results 1 to 8 of 8

Thread: Mining.scar problem...

  1. #1
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Mining.scar problem...

    My script was running, then got stopped because of this error:

    [Runtime Error] : Exception: Access violation at address 006D5360 in module 'scar.exe'. Read of address 00000034 in line 246 in script C:\Program Files\SCAR 3.15\includes\SRL/srl/skill/mining.scar

    at this line:

    if FindBitmapMaskTolerance(BrokenPick, dx, dy, EC.x1, EC.y1, EC.x2, EC.y2, 10, 10) then

    Whats up?
    Extinct.

    Formally known as Drags111.

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Do you load the bitmap? or do you load it after freeing?


  3. #3
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ehh, I never loaded the bitmap lol. I didnt know that I needed to, I thought the function in Mining.scar did lol. But I DIDNT do FindPickHeadColor; I just put that in now so I'm wondering if that is the problem. Do I need to load the bitmaps before I call findpick?
    Extinct.

    Formally known as Drags111.

  4. #4
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    LoadMiningBitMaps;

    Call this to load all the mining bitmaps

  5. #5
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    setupMining

    EDIT: its same thing, but myles beat me!

  6. #6
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Call SetupMining to load the bitmap. Do not forget to free it.


  7. #7
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    They dont have FreeMiningBitmaps? lol ok...
    Extinct.

    Formally known as Drags111.

  8. #8
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Cazax View Post
    Call SetupMining to load the bitmap. Do not forget to free it.
    You just got double beet

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. mining.scar?
    By Jimmy5410 in forum OSR Help
    Replies: 14
    Last Post: 02-07-2009, 03:23 AM

Posting Permissions

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