malte0811 / ControlEngineering

MIT License
5 stars 2 forks source link

[Suggestion] Mechinism to import/export the contents of a punched tape between saves/worlds #26

Open keifhausin opened 2 years ago

keifhausin commented 2 years ago

Being able to import and export punched tape data, will allow for easily moving control panels and sequencer programs between games and players. It will also allow for an easier view of long tapes (things like panel tapes) in external tools like notepad or vscode

I see two simple-ish ways to serialize the tape each with pros and cons

  1. use ASCII pros

    • easy to read

    cons

    • not all of the 256 ASCII chars are printing so some creative escaping will be needed
  2. use hex values pros

    • captures all of the possible tape values

    cons

    • much harder to read and edit by humans
keifhausin commented 4 months ago

Thinking about this base 64 of the raw bytes of the punches is most likely the best option for import/export