Stationeers

Stationeers

Yeterli oy yok
IC10Sync
   
Ödül
Favorilere Ekle
Favorilere Eklendi
Favorilerden Çıkar
Dosya Boyutu
Gönderilme
Güncellenme
398.552 KB
13 Eyl @ 7:23
7 Eki @ 14:48
4 Değişiklik Notu ( görüntüle )

İndirmek için abone ol
IC10Sync

Açıklama
IC10Sync
This is a Plugin Mod.
It requires BepInEx to be installed with the StationeersLaunchPad plugin. See: https://github.com/StationeersLaunchPad/StationeersLaunchPad


Tired of endlessly copy-pasting code between in-game editor and your programming editor?
What this mod adds
- Syncs IC10 chip/Computer/Laptop source code between the game and plain text files on disk (default: "%USERPROFILE%\Documents\My Games\Stationeers\chipdata").
- Lets you edit chip source code in your favorite text editor and apply changes to the running game automatically.
- Works in multiplayer and singleplayer.

Survival mode: edit code from computers and laptops
You can edit source code in an in-game computer or laptop directly from your text editor.

Step-by-step (Survival):
  • 1. Put IC Editor Motherboard into a computer or laptop
  • 2. The mod will export the current source as a file to the chipdata folder.
  • 3. Open that .ic10 file in Notepad (or any editor), edit, and save. Tip! You can use labeler to set a custom name for the laptop/IC Editor Motherboard to make it easier to find.
  • 4. The mod watches the file and will load the saved contents back into the game. The change is applied automatically within 10 seconds. You can see the message in the F3 log.

When AllowDirectChipEditingInSurvival is enabled (Currently by default) or in Creative mode
Every new IC10 you craft is exported into the chipdata folder so you can edit it immediately.

Step-by-step (Creative / direct editing):
  • 1. Craft or create a new IC in-game.
  • 2. The mod will write the IC source into the chipdata folder automatically. Look in "%USERPROFILE%\Documents\My Games\Stationeers\chipdata" (or your configured path).
  • 3. Open the exported .ic10 file in your editor, change the code, and save. Tip! You can use labeler to set a custom name for the IC to make it easier to find.
  • 4. The mod will detect the change and push the updated source code to the game. The change is applied automatically within 10 seconds. You can see the message in the F3 log.

Change the mod configuration
The mod config file: "BepInEx/config/IC10Sync.cfg". The keys are:
  • Output - ChipDataPath — Path where .ic10 files are written (default: "%USERPROFILE%\Documents\My Games\Stationeers\chipdata"). You may use environment variables like %USERPROFILE%.
  • Settings - AllowDirectChipEditingInSurvival — When true, the mod allows direct editing of ICs in Survival mode. Default is true.

Notes
- Files in the chipdata folder will be overwritten when the game (or a save/load) refreshes chips. Keep backups if you need them.
- The mod updates at most one chip per second to reduce network spamming on multiplayer servers; when editing multiple chips, it will take few seconds to upload all changes.

GitHub: https://github.com/semoro/stationeers.ic10sync
12 Yorum
Semoro  [yaratıcı] 11 Eki @ 6:06 
>Love the idea. The chipdata folder does not appear for me... Should it work when added to an existing world?
Should appear once you start the game. Try using absolute custom path in config.
- To be clear - chipdata folder should be in Documents\My games\Stationeers, not where the BepInEx folder
silent1 10 Eki @ 13:43 
Tested starting a new game. No cigar...
silent1 9 Eki @ 21:16 
Love the idea. The chipdata folder does not appear for me... Should it work when added to an existing world? Tried making new chips, still no folders. I can see the config file in the BepInEx folder.
Semoro  [yaratıcı] 7 Eki @ 14:50 
So, the new function to restrict editing in survival is implemented - To use it - set AllowDirectChipEditingInSurvival to false in the config or on the workshop page in-game and restart. It should only allow to edit laptops/computers with it set
Semoro  [yaratıcı] 6 Eki @ 14:56 
>Can you add two buttons on the in-game code editor UI, one that automatically open the file I'm currently on in /chipdata using the windows default program, the other button just open /chipdata folder in explore?

Sounds useful and great idea, but I'm not sure if I'll be able to add buttons to the ingame editor reliably - the mod is supposed to be simple to avoid breaking anything
Semoro  [yaratıcı] 6 Eki @ 14:55 
>Could just make it so the sync is to the "code" on the computer/laptop itself? So then it could do the export/import to the IC10 chip

Thanks for the idea! Working to implement it - going to make it an option for survival mode
Vendan 23 Eyl @ 11:58 
Could just make it so the sync is to the "code" on the computer/laptop itself? So then it could do the export/import to the IC10 chip
George C. Barnes 23 Eyl @ 6:52 
Can you add two buttons on the in-game code editor UI, one that automatically open the file I'm currently on in /chipdata using the windows default program, the other button just open /chipdata folder in explore?
they call me shid 15 Eyl @ 12:36 
for those of us using linux it popped up in the compatdata location.
Semoro  [yaratıcı] 14 Eyl @ 4:04 
Agree that it makes process a little bit simpler, yet I'd say most fun and struggles comes from the coding itself :)
How do you imagine the flow with computers? Only allow to edit/read chips that's somehow connected to laptop or computer?