Results 1 to 5 of 5

Thread: Lumbridge to GE Walker Need Help

  1. #1
    Join Date
    Jan 2019
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Lumbridge to GE Walker Need Help

    Hi,

    New to programming and decided to start with simba to try something fun. Having a hardtime picking this stuff up, and decided to start with something small like an auto walker from lumbridge to the GE in Varrock. Cant seem to figure out the problem and tried to do as much as I could on my own.

    When I run it, it says the following

    "Setting up SRL for OSR'
    "Waiting for client to load"

    Also, I did try removing "SRL.Setup();" and that did manage to get the mouse clicking but it was not accurate at all and my character was not going the right way. Seemed to be completely broken.

    If you have any ideas on how to fix this, I would appreciate any help. Here is the code.
    Code:
    program VarrockWalker;
    {$I SRL/OSR.simba}
    {$I RSWalker/Walker.simba}
    
    var
    
      Walker: TRSWalker;
      Path: TPointArray;
    
    procedure DeclarePlayers();
    
    begin
    
    end;
    
    procedure WalkTo(Path: TPointArray);
    
    begin
      Walker.WalkPath(Path);
    end;
    
    begin
      SRL.Setup();
      Walker.Init('World.png', -1);
      Path := [[4697, 3576], [4747, 3575], [4747, 3546], [4803, 3545], [4844, 3536], [4848, 3504], [4831, 3462], [4814, 3428], [4813, 3398], [4800, 3369], [4783, 3347], [4774, 3324], [4763, 3310], [4766, 3287], [4764, 3260], [4764, 3238], [4773, 3222], [4788, 3208], [4796, 3197], [4810, 3180], [4822, 3168], [4838, 3155], [4865, 3149], [4885, 3133], [4861, 3116], [4831, 3112], [4801, 3104], [4745, 3106], [4713, 3076], [4707, 3032], [4674, 2996], [4659, 2952], [4655, 2902], [4654, 2848], [4652, 2810], [4654, 2778], [4645, 2750], [4624, 2732], [4599, 2731], [4587, 2688], [4561, 2647], [4526, 2629], [4473, 2615], [4467, 2589], [4470, 2533], [4470, 2515]];
    
    end;
    
    
    
    
    begin
    
      DeclarePlayers();
      Walkto(Path);
    
    end.
    Thanks,

    Spacecowboy20
    Attached Files Attached Files
    Last edited by spacecowboy20; 01-17-2019 at 05:52 AM.

  2. #2
    Join Date
    Jun 2015
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    You don't have a procedure declaration for what I believe is your setup procedure. Then you will need to call it in your main loop.
    Code:
    procedure MySetup(); //you forgot this declartion
    begin
      SRL.Setup();
      Walker.Init('World.png', -1);
      Path := [[4697, 3576], [4747, 3575], [4747, 3546], [4803, 3545], [4844, 3536], [4848, 3504], [4831, 3462], [4814, 3428], [4813, 3398], [4800, 3369], [4783, 3347], [4774, 3324], [4763, 3310], [4766, 3287], [4764, 3260], [4764, 3238], [4773, 3222], [4788, 3208], [4796, 3197], [4810, 3180], [4822, 3168], [4838, 3155], [4865, 3149], [4885, 3133], [4861, 3116], [4831, 3112], [4801, 3104], [4745, 3106], [4713, 3076], [4707, 3032], [4674, 2996], [4659, 2952], [4655, 2902], [4654, 2848], [4652, 2810], [4654, 2778], [4645, 2750], [4624, 2732], [4599, 2731], [4587, 2688], [4561, 2647], [4526, 2629], [4473, 2615], [4467, 2589], [4470, 2533], [4470, 2515]];
    
    end;
    I would also recommend putting DeclarePlayers() in the MySetup procedure after SRL.Setup(), and calling MySetup() in the main loop.
    What version of Simba are you using? With 1.3 you don't need the -1 in the Walker.Init statement.
    EDIT: Also, are you sure you dragged the cross-hairs over the RS client before you started the script. From your issue it sounds like its not detecting the client.
    Last edited by daileyj93; 01-17-2019 at 01:42 PM.

  3. #3
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    If I had your issue, here's what I might do:

    -It seems like it's stuck at loading.
    -I should check to make sure I haven't messed up something on my end. Are my interfaces setup properly? Is simba getting the screen images passed to it? *Googles around for other potential problems related to this issue*
    Let's assume I believe everything on my end seems fine after checking and my problem isn't solved from anything I googled.
    -You're lucky, there's discord nowadays. At this point I could drop a message in discord, trying to get help/input from others.
    -Time to try to debug the problem myself. Writeln() statements added to the code (including the include's code, wherever relevant) so that I can find out where exactly the code is having a problem.

    p.s a video of you running the code can help people that want to try to help you. They can see potential problems and rule out potential problems, without asking extra questions. A picture says a thousand words and all that jazz. Sharex is pretty nice for easily creating video recordings.

    best of luck

  4. #4
    Join Date
    Jan 2019
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I shouldve probably replied back to this awhile ago but I figured it out with some help from someone

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
  •