DESCRIPTION
"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
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).
Installation
Download the 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.
Usage
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.
GENERAL INFO
- Mod Version: 0.2-beta
- Required Juno: New Origins Version: 0.9.40x.x
- Published: 5/9/2020
- Downloads: 1470
DOWNLOADS
TAGS
15 Comments
- 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?
-
-
-
10.4k sflanker
@stuwart I haven't tested lately. If you have reason to believe it is broken please let me know.
-
-
-
1,467 RikHar
Can someone post an example. Something simple like sending a message to lower landing gear on a rocket or something similar. Thanks.
-
-
-
-
1,148 NebulaEngineer
@zeropol I completely agree. And I just finished
Ender’s Game
And
Ender’s Shadow
-
373 zeropol
I love the Ender sage quote ^_^. And I'm sure I'll love this mod.
Thanks for this ! -
10.4k sflanker
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.
-
8,458 crowxe
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 😅