Results 1 to 13 of 13

Thread: How does one go about Multithreading SIMBA?

  1. #1
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default How does one go about Multithreading SIMBA?

    Multi-Threading, Operating 2 Task's at the same time

    This is the way I have had in theory


    Left Hand script
    ----------
    Find's Random event's constantly
    Find's When HP Bar Goes up and Down
    writes to a .txt information that can be read by brain

    Brain Script
    -----------
    Read's .txt'z Constantly and Comparing each one to eachother before sending out Commands to mouse, keyboard, like a normal script
    but Ticked like a motor it only does one movement/click after not two and compares again before making another move

    Right Hand Script
    -------------
    Find's NPC Colours
    Find's DTM's
    Walk's SPS
    Count's things etc etc
    writes to left .txt

    Does anyone else have a better method?

  2. #2
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by leetsxc View Post
    Multi-Threading, Operating 2 Task's at the same time

    This is the way I have had in theory


    Left Hand script
    ----------
    Find's Random event's constantly
    Find's When HP Bar Goes up and Down
    writes to a .txt information that can be read by brain

    Brain Script
    -----------
    Read's .txt'z Constantly and Comparing each one to eachother before sending out Commands to mouse, keyboard, like a normal script
    but Ticked like a motor it only does one movement/click after not two and compares again before making another move

    Right Hand Script
    -------------
    Find's NPC Colours
    Find's DTM's
    Walk's SPS
    Count's things etc etc
    writes to left .txt

    Does anyone else have a better method?
    your hp and randoms don't need checked every millisecond. a proper main loop will not last longer then a second. i believe multi-threading is kinda over-kill...
    besides two simbas = tons of memory...

  3. #3
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Its only an example of course of how it would work

  4. #4
    Join Date
    Oct 2007
    Location
    The deep web
    Posts
    2,496
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    this can all happen in one open simba programme?
    Did someone say GDK?

  5. #5
    Join Date
    Jun 2006
    Location
    N Wales
    Posts
    558
    Mentioned
    2 Post(s)
    Quoted
    56 Post(s)

    Default

    Quote Originally Posted by jakeyboy29 View Post
    this can all happen in one open simba programme?
    in a way yes http://villavu.com/forum/showthread.php?t=51578 but this still isn't true multi threading... still more than enough though.

  6. #6
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by the flea View Post
    in a way yes http://villavu.com/forum/showthread.php?t=51578 but this still isn't true multi threading... still more than enough though.
    Won't work. See this bug.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  7. #7
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by jakeyboy29 View Post
    this can all happen in one open simba programme?
    Yeh, you can run 3 thread's of scripts at once in one program

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

    Default

    It would sure be nice...

    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..."


  9. #9
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by leetsxc View Post
    Yeh, you can run 3 thread's of scripts at once in one program
    Can 2 Simba's scripts use the same smart window at once?

  10. #10
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Not currently, but I'm sure it could be added?

  11. #11
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by leetsxc View Post
    Not currently, but I'm sure it could be added?
    Not with the way how SMART is currently loaded, and BenLand100 is unwilling to change this method.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  12. #12
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    You dont need 2 scripts to access smart. You need one script to act as an intermediary bbetween smart and multiple other scripts.

    The scripts can communicate between each other as far as I know. This was done in Scar using interscar messages

    Im sure simba has the same capability. If not, it should be added

  13. #13
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    The problem is only 1 can read colors and stuff.. that's what would be needed in the, you literally need 3 scripts running to multi thread, it can of course be done on a normal rs client or inside a virtual machine but cannot be done with S.M.A.RT at the moment the way it is loaded etc

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
  •