Space Engineers

Space Engineers

评价数不足
(DevTool) Programmable Block auto-reload
   
奖励
收藏
已收藏
取消收藏
Type: Mod
Mod category: Script, Other
文件大小
发表于
更新日期
12.943 KB
2023 年 7 月 5 日 下午 9:27
2024 年 10 月 4 日 上午 4:51
4 项改动说明 ( 查看 )

订阅以下载
(DevTool) Programmable Block auto-reload

在 Digi 的 1 个合集中
Digi's Space Engineers mods
51 件物品
描述
This mod is for programmable block developers and only works with files from player-host, therefore it should not be used in MP/DS.

Usage

You can type /pbq in game chat to see these instructions there aswell.

1. Place the script(s) in:
%appdata%\SpaceEngineers\Storage\2999829512.sbm_PBQuickLoad\
With any file name you wish, but they must not be in subfolders.

There's a few ways of automatically placing the script there, see the sections below for that.

2. In game edit PB's CustomData to contain:
[Script] Load=somefile.cs
Nothing is case-sensitive here.
It's using MyIni so your script's config can still be in the same CustomData.

3. You're done!
That file is loaded every 100 ticks in a thread and compared against current script, if it differs then it will replace the script in PB and recompile it. It also prints a chat message when it does this.


Alternative to copying: change MDK2's output folder
If using MDK2 you can change where the script is placed by editing the *.mdk.local.ini file from your project.
Inside that file, the output= key can be set to the real path.

To get the real path first paste %appdata%\SpaceEngineers\Storage\2999829512.sbm_PBQuickLoad\ in folder explorer and press enter, after that you can copy the path it went to and paste that in the output's value.


Alternative to copying: Sym-link
The file can be linked to storage folder using symbolic linking.

A GUI-friendly way is with a program like Link Shell Extension[schinagl.priv.at] which adds itself to rightclick menu so it's a matter of drag with rightclick and drop as symbolic link.
I've personally used this software for years so I sure as heck hope it's safe =)

Can also be done manually via admin commandline (you should google this yourself as there's many ways of explaining it, in all the different levels of knowledge).
A quick example of the command:
mklink "%appdata%\SpaceEngineers\Storage\2999829512.sbm_PBQuickLoad\test.cs" "%appdata%\SpaceEngineers\IngameScripts\local\SomeScriptName\script.cs"


mod io?
Please read[gist.github.com]