GitHub-TC / EmpyrionScripting

Displays various informations directly and live on LCD screens and will support conveyor and construction control
GNU General Public License v3.0
34 stars 5 forks source link

Create FactionGlobalFiles.cs #7

Closed sixtysixone closed 2 years ago

sixtysixone commented 2 years ago

Just a totally untested (I don't have a setup to compile it), first stab at a suggestion for File/Message I/O.

On ship 1, anywhere in game, add an LCD named "Write:FromSixty". Set its text to "Hello!"

On ship 2, anywhere in game, add an LCD named "Read:FromSixty". Its text will be auto-set to the contents of above message.

On either ship, add an LCD named "FileIO" for debug information. This can get spammy.

This is limited to Factions. Factions can only see their own files. Over reboots, a Reader might blink, due to the Writer not being read yet.

Why add this?

Other possible ideas/changes to this code:

GitHub-TC commented 2 years ago

This already exists as SaveGame Script and is called Send/ReceiveData