Results 1 to 9 of 9

Thread: Cross communication

  1. #1
    Join Date
    Aug 2012
    Location
    127.0.0.1
    Posts
    74
    Mentioned
    1 Post(s)
    Quoted
    26 Post(s)

    Default Cross communication

    Is it possible in Simba for me to communicate between scripts. I already know there is a sort of way of doing it by talking through friends chats and having all your bots in the same fc, but is there another way that this can be accomplished?

  2. #2
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    This is interesting, there's been alot of speculation on it. But yes, one of the best ways would be to post to a site and have scripts read commands from there.

  3. #3
    Join Date
    Mar 2011
    Location
    Somerset, UK
    Posts
    304
    Mentioned
    0 Post(s)
    Quoted
    24 Post(s)

    Default

    If the scripts are on the same machine the write Data to a ini something like

    [Bot1]
    Update = 1
    Command = LogOutin5

    [Bot2]
    Update = 0
    Command = null;


    then read from another script and if update = 1 do whatever set in Command =
    just remember to set update = back to 0 to stop it just repeating

    they can send the messages as often as you call the procedure
    Last edited by sm0k3; 06-22-2013 at 05:52 PM.

  4. #4
    Join Date
    Aug 2012
    Location
    127.0.0.1
    Posts
    74
    Mentioned
    1 Post(s)
    Quoted
    26 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    This is interesting, there's been alot of speculation on it. But yes, one of the best ways would be to post to a site and have scripts read commands from there.
    Could this work so it runs automatically in a result of game activity? Anyway I've added you on skype - MilleniumGP and I'll tell you more about it there

  5. #5
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    In order from least efficient to most efficient:

    1. Read/Write to INI file.
    2. Read/Write to Socket.
    3. Read/Write to Shared Memory.


    The first two can be done in Simba alone.. The last option can only be done through a plugin.
    I am Ggzz..
    Hackintosher

  6. #6
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Like smok3 points out, while on the same machine, ini files are a method of inter-script communication, however the same machine means the scripts can't be on the same world, which I believe your goal is.

    The two other big options are the RemoteControl include which is designed to have commands sent from one script to another via a private chat. Or, using asynchronous sockets connected across said machines (which is a method I very much so plan on implementing as soon as asynchronous sockets are finished for simba).

    Edit: Brandon just ninja'd me.

  7. #7
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    In order from least efficient to most efficient:

    1. Read/Write to INI file.
    2. Read/Write to Socket.
    3. Read/Write to Shared Memory.


    The first two can be done in Simba alone.. The last option can only be done through a plugin.
    and a 1.5 would be database with tcp requests, like a socket it could work across multiple machines

    if same system, shared memory definitely the way to go IMO
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  8. #8
    Join Date
    Aug 2012
    Location
    127.0.0.1
    Posts
    74
    Mentioned
    1 Post(s)
    Quoted
    26 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    In order from least efficient to most efficient:

    1. Read/Write to INI file.
    2. Read/Write to Socket.
    3. Read/Write to Shared Memory.


    The first two can be done in Simba alone.. The last option can only be done through a plugin.
    Thanks a lot for the help I'll let you know when I get to implement it.

    Another side note, I noticed you're OpenGL dev, How stable is OpenGL atm?

  9. #9
    Join Date
    Aug 2012
    Location
    127.0.0.1
    Posts
    74
    Mentioned
    1 Post(s)
    Quoted
    26 Post(s)

    Default

    Quote Originally Posted by grats View Post
    and a 1.5 would be database with tcp requests, like a socket it could work across multiple machines

    if same system, shared memory definitely the way to go IMO
    Thanks for the additional tips

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
  •