Results 1 to 4 of 4

Thread: Newb trying to set up AeroLib + Walker, "access violation"

  1. #1
    Join Date
    Aug 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Newb trying to set up AeroLib + Walker, "access violation"

    Hi, I've followed this tutorial (showthread.php?t=108953) and downloaded all the necessary plugins and library files for AeroLib, and Walker is supposed to be included in that. Simba, SRL, SPS, plugins are all up-to-date. Interpreter is set to 'Lape'. I'm running Win10 64-bit with Java 7 32-bit. Simba is running in Administrator mode.

    The following code runs no problems:
    Code:
    program new;
    {$DEFINE SMART}
    {$DEFINE WALKER}
    {$i AeroLib/AeroLib.simba}
    
    begin
      initAL(); 
    end;
    However, whenever I try to use the Walker by adding something after the initAL();, such as TRSWalker.init('WorldMap.png'); or TRSWalker.GetMyPos(); I get an access violation error.

    "Error: Access violation at line 167" in Walker -> base.pas, and "Error: Access violation at line 225" in Walker.simba respectively.

    What can I do? Any help is appreciated.
    Last edited by shrolozoro; 08-23-2016 at 01:38 PM.

  2. #2
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    You need to declare a variable for TRSWalker and then call it like variableName.Init('map.png');
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  3. #3
    Join Date
    Aug 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Code:
    program new;
    {$DEFINE SMART}
    {$DEFINE WALKER}
    {$i AeroLib/AeroLib.simba}
    
    var RSW:TRSWalker;
    
    begin
      initAL();
      RSW.init('WorldMap');
    end;
    The code above WORKS! (I'll leave this up for anybody else having the same problem)

  4. #4
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    That's the spirit
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

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
  •