Millenium
2013-06-22 13:37:09
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?
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.
sm0k3
2013-06-22 13:50:26
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
Millenium
2013-06-22 14:26:11
From: Sin
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 :)
Brandon
2013-06-22 14:50:24
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.
Kevin
2013-06-22 14:59:02
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.
grats
2013-06-22 15:20:29
From: Brandon
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
Millenium
2013-06-22 16:59:20
From: Brandon
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?
Millenium
2013-06-22 17:00:21
From: grats
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 :)