"I can't explain philotic physics to you. Half of it nobody understands anyway. What matters is we built the ansible. The official name is Philotic Parallax Instantaneous Communicator, but somebody dredged the name ansible out of an old book somewhere and it caught on. Not that most people even know the machine exists."
"That means that ships could talk to each other even when they're across the solar system." said Ender.
"It means," said Graff, "that ships could talk to each other even when they're across the galaxy."
SR2 Ansible is a mod for SimpleRockets 2 that makes it possible for Flight Programs to broadcast and receive messages to and from other crafts. Unfortunately, it doesn't currently live up to its name in that it's only relevant when the crafts are within 10 kilometers of eachother (closer if they are within the atmosphere).
Ansible.sr2-mod file and save it to the SimpleRockets 2 Mods folder (
C:\Users\[YOUR_USER_NAME]\AppData\LocalLow\Jundroo\Mods\ on Windows, or
/Users/[YOUR_USER_NAME]/Library/Application Support/com.jundroo.SimpleRockets2/Mods/ on Mac OS). Start SimpleRockets 2 and enable the Mod using the Mods main menu option.
Once Installed the Ansible part will be available at the top of the Gizmos part list (sorry it currently just looks like a block). To use the Ansible you will need to edit the Flight Program on the Ansible part. This Flight Program can act like a relay between the Flight Program on your Command Pod and other crafts.
Transmitting a Message
To broadcast a message to other crafts it must be broadcast from the Flight Program on the Ansible part, and the message string must start with "tx_". Restricting inter-craft broadcasts to those messages with this prefix prevents excessive cross talk between Flight Programs with existing messages. Broadcasting messages uses power, so don't forget to include a battery in your craft, and broadcast messages wisely.
You can tweak the amount of power used for each message with the following XML:
<!-- 1000 is the default power consumption -->
<Ansible.PhiloticParallax powerConsumptionPerMessage="1000" />
Receiving a Message
To receive an inter-craft message, and a
receive instruction with the message string
rx_[your-message-name]. The Ansible automatically matches any message sent as
tx_foo with receivers for
rx_foo (this is necessary to prevent feedback loops in the message transmission mechanism). You can then execute any code you like when that
receiver is triggered. Receiving messages does not require any power.
- Mod Version: 0.2-beta
- Required SR2 Version: 0.9.40x.x
- Published: 5/9/2020
- Downloads: 1171
- Log in to leave a comment
Perhaps there is a way to write down a message, and whos able to get it, so that later if you load that craft into physics range it can receive the messages?
Soo android version now plz?
@stuwart I haven't tested lately. If you have reason to believe it is broken please let me know.
Hello is this working on the new released Beta 0.802?
Early concept of SR2 ksp-ing
Love this mod
Can someone post an example. Something simple like sending a message to lower landing gear on a rocket or something similar. Thanks.
Update: new release works on SimpleRockets 2 v 0.9.404
Yeeeeaaah cool book. Now I am reading the second pf the saga.
@zeropol I completely agree. And I just finished
I love the Ender sage quote ^_^. And I'm sure I'll love this mod.
Thanks for this !
It really depends on what lengths you're willing to go to with your Vizzy. There are some significant hurdles regarding complex operations on non-player-controlled craft like formation flying. One thing I think this would enable is to get the position of a specific part on another craft. Let's say I'm approaching a craft I want to dock with. I can find out the location of that craft, but not the actual position and orientation of the docking port. I think, although I haven't tested it, that a craft could use Ansible to broadcast the vector for its docking port such that an approaching craft can know how to orient itself for docking.
What kind of commands that I can send to the other craft ? Can it be as complex as flying formation of 2 crafts?
@ComputerErika this should be totally possible. Just need to add some a publisher-subscriber queue type data structure instead of the current event handler mechanism https://github.com/sflanker/sr2-ansible/blob/988eb4d40d2317b736a294ad777af969fee622f0/Assets/Scripts/Craft/Parts/Modifiers/PhiloticParallaxScript.cs#L16
If anybody submits a pull request to one of my mods I will come out of retirement to take a look 😅