Space Engineers

Space Engineers

Not enough ratings
(DevTool) Programmable Block auto-reload
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script, Other
File Size
Posted
Updated
12.943 KB
5 Jul, 2023 @ 9:27pm
4 Oct, 2024 @ 4:51am
4 Change Notes ( view )

Subscribe to download
(DevTool) Programmable Block auto-reload

In 1 collection by Digi
Digi's Space Engineers mods
50 items
Description
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]