Results 1 to 3 of 3

Thread: SafeMode?

  1. #1
    Join Date
    Aug 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SafeMode?

    What is the difference between SafeMode and the other options? Also how do people get their bots to run for so long? I'm lucky if I get 900 lobsters in a run, but I average way less.

  2. #2
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Safemode is the graphics mode that SRL5 worked in, but SRL6 will be made to work in OpenGL mode so that we can use OGL to find things as well as color if we want. DirectX is another mode, as is software. I think that OSR can only use Software, but I'm not sure about that.

    As for getting bots to run so long, it's all about failsafes in the scripts. Imaging that you're making a lobster fishing script and you need to fish, run to stiles to get them noted, and run back before starting to fish again.

    If your account for some reason only runs back part way, this will cause it not not find the fishing spot. If the script is told to terminate when it can't find the fishing spot, the script will end. If you use better failsafes, you can make the script try to find out where in the process that it went wrong and then correct itself.

    So imagine you can't find a fishing spot. The first thing I would do is check if my inventory is filled with lobsters or not. If it is, then I need to go to the bank then bank them, or just bank them if I'm already at the bank. So check whether you can find the bank. If you can't, then have the script walk to the bank. If you can, then bank. Now if the inventory was empty of lobsters but you couldn't find the fishing spot, that means that the script wan't successful in walking from the bank to the spot. You can try to find out where along the path it got lost, but the easiest way is to tell the script to use SPS_WalkPath from the bank to the spot. SPS_WalkPath will walk to the furthest point, so as long as you're on the path it should simply pick up where it left off and walk you to the fishing spot.

    That's just a basic idea of what failsafes you can use to get your script back on track, hope that this helps you

  3. #3
    Join Date
    Aug 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the response!

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
  •