Stationeers

Stationeers

评价数不足
IC10Sync
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
398.552 KB
9 月 13 日 上午 7:23
10 月 7 日 下午 2:48
4 项改动说明 ( 查看 )

订阅以下载
IC10Sync

描述
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
15 条留言
Semoro  [作者] 10 月 19 日 下午 1:06 
>-Try using absolute custom path in config
That solded it. Not sure why it didn't work but I blame microsoft. Thanks!

Maybe some issues if you have non-english letters in profile name
Amazing! :)
silent1 10 月 17 日 下午 3:11 
-Try using absolute custom path in config
That solded it. Not sure why it didn't work but I blame microsoft. Thanks!
silent1 10 月 16 日 下午 12:40 
Yes I just mentioned the bepinex folder because the presence of the config file seems to imply that the mod is both installed and runs to an extent... Still no chipdata folder in mydocuments after multiple restarts and trying to unsub/resub...

I'll dig around further this weekend.
Semoro  [作者] 10 月 11 日 上午 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 月 10 日 下午 1:43 
Tested starting a new game. No cigar...
silent1 10 月 9 日 下午 9: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  [作者] 10 月 7 日 下午 2: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  [作者] 10 月 6 日 下午 2: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  [作者] 10 月 6 日 下午 2: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 9 月 23 日 上午 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