Results 1 to 9 of 9

Thread: DTM Error

  1. #1
    Join Date
    Oct 2011
    Posts
    192
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default DTM Error

    After making some DTMs, I decided to try them out. I get an error whenever I try finding the DTMs. I've tried several scripts to test DTMs, and I get a similar error, pointing to any FindDTM method.

    Using my script, I get this error:
    Code:
    Error: Exception: Invalid pointer operation at line 64
    The error is shown in C:\Simba\Includes\SRL\SRL\core\amount.scar, at line 64, containing:

    Simba Code:
    'dtm': Result := FindDTM(Ident, x, y, Area.x1, Area.y1, Area.x2, Area.y2);

    And when I run this code:
    Simba Code:
    program New;
    var Vial,x,y:integer;
    begin
     Vial := DTMFromString('78DA63AC666460286740017509960CFF81345' + '086E13F1030B663AA81C8C248205D0B64D51050934F849A2A202B' + '8B809A26202B13BF1A0034E80BCD');
    if FindDTM(Vial,x, y,1, 1, 200, 200) then
    writeln('Found DTM')
     end.

    I get:
    Code:
    Error: Exception: Invalid pointer operation at line 5
    Care to help? I've been working on this issue for like an hours now, lol. Trying to figure out what's wrong. Figured I'd post before bed. It's probably something completely retarded.
    Last edited by Aegis; 11-04-2011 at 05:07 AM.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    I copy pasted
    Simba Code:
    program New;
    var Vial,x,y:integer;
    begin
     Vial := DTMFromString('78DA63AC666460286740017509960CFF81345' + '086E13F1030B663AA81C8C248205D0B64D51050934F849A2A202B' + '8B809A26202B13BF1A0034E80BCD');
    if FindDTM(Vial,x, y,1, 1, 200, 200) then
    writeln('Found DTM')
     end.

    Into simba, and I got not compiling errors.

  3. #3
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    I have the same exact error when calling "FindNormalRandoms" at this line:
    Simba Code:
    if (FindDTM(Lamp, x, y, MIX1, MIY1, MIX2, MIY2) or

    It makes me wonder if it's a problem within Simba.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Simba Code:
    if (FindDTM(Lamp, x, y, MIX1, MIY1, MIX2, MIY2) or
    Missing a closing pretense?
    I assume it probably appears later on in the next few lines though....

  5. #5
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Yep. Run any script and call "findnormalrandoms", you'll get the same error on line 408 in antirandoms.scar.

    Simba Code:
    if (FindDTM(Lamp, x, y, MIX1, MIY1, MIX2, MIY2) or
          FindDTM(BookOfKnowledge, x, y, MIX1, MIY1, MIX2, MIY2)) then

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


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

    Default

    What Simba is this? (Version 0.98-rc1 / 980?) Where did you get it?

    E: I am pretty sure this happens only with Simba > 0.98-rc1.
    In my testing 0.98-rc1 gives an access violation, and 0.97.3 just works fine.
    I'll get around fixing this in a bit.

    Meanwhile, use the Stable simba version. (0.97.3)
    Last edited by Wizzup?; 11-04-2011 at 12:45 PM.



    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)

  7. #7
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Yes I'm using 0.98-rc(1?).

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  8. #8
    Join Date
    Oct 2011
    Posts
    192
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Yes I'm using 0.98-rc(1?).
    Yup, same here. Well, it's a relief to know it's not a problem on my end! I'll try out the non rc version.

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

    Default

    I have fixed this in Simba-Next. Try the Simba.exe (i386, win32) from https://www.moparisthebest.com/jenki...Simba_Next/14/ ?
    Let me know if it actually finds the dtm though. (It should)
    Last edited by Wizzup?; 11-05-2011 at 12:02 PM.



    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)

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
  •