Results 1 to 9 of 9

Thread: bitmap help please

  1. #1
    Join Date
    Oct 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default bitmap help please

    Scar gives me this error when it finds the bitmap i am looking for.
    Code:
    [Runtime Error] : Exception: Access violation at address 004BC4CD in module 'scar.exe'. Read of address 01B6EEAC in line 40 in script C:\Program Files\SCAR 3.12\Scripts\new.scar
    SCAR Code:
    40. if(FindBitmapToleranceIn(a, x, y, x-150,y-150,x+150,y+150, 5)) then writeln('found it');

  2. #2
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  3. #3
    Join Date
    Oct 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rikjess View Post
    you haven't declare the bitmap.
    SCAR Code:
    a:=LoadBitmap('.\image.bmp');

    ?

  4. #4
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    uhm... i think you havent read the whole tut

    go to:
    tools -->> picture to string -->> open -->> select the bitmap you want to make -->> put a name in this case thats a -->> click oke.

    but i suggest you to read this tut.
    http://www.villavu.com/forum/showthread.php?t=9453

  5. #5
    Join Date
    Oct 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i did it as it says though :O? (was just using the help file though)

    SCAR Code:
    program New;
    var
    image, x, y: Integer;
    begin
    image:=LoadBitmap('.\image.bmp');
    if(FindBitmapToleranceIn(image, x, y, 100, 100, 200, 200, 5)) then begin
    writeln('found it');
    end else
    writeln('couldnt find it');
    FreeBitmap(image);
    end.

    ok i have fixed it now, thanks for helping

  6. #6
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you have loaded it from you're computer.
    do this:
    tools -->> picture to string -->> open -->> select the bitmap you want to make -->> put a name in this case thats a (or image) -->> click oke.

    in the debug box theres a tekst. copy that and put it on the place wheres now standing
    SCAR Code:
    image:=

  7. #7
    Join Date
    Oct 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeh i know :P it's only for me! !

  8. #8
    Join Date
    Nov 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm getting the same problem and it's unclear how xFox fixed his problem.
    I've attatched my code.


    edit:
    my error is slightly different.

    [Runtime Error] : Exception: Access violation at address 004BC4CD in module 'scar.exe'. Read of address 0220D760 in line 35 in script C:\Documents and Settings\Stuart Taylor\Desktop\Spelunky\SCAR\AutoWhip.scar
    Last edited by zetsubouda; 11-14-2010 at 04:55 AM. Reason: I realized the error wasn't exactly the same

  9. #9
    Join Date
    Dec 2009
    Location
    Newcastle, Australia
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    check the dates before you post again on a topic, if you have an error, just post a new thread...

    Current Script Project
    Pot of flour gatherer - 95% done

    Can't get Simba to work? Click here for a tutorial

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find Bitmap in Bitmap file
    By fORCE_wORKS in forum RS3 Outdated / Broken Scripts
    Replies: 8
    Last Post: 12-13-2007, 11:04 PM
  2. using Bitmap?
    By legendaryhero90 in forum OSR Help
    Replies: 14
    Last Post: 03-16-2007, 02:18 PM
  3. Bitmap
    By whales in forum OSR Help
    Replies: 4
    Last Post: 12-20-2006, 12:16 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
  •