reksar / SpaceEngineers

Space Engineers game scripts
30 stars 22 forks source link
intellisense space-engineers vscode

Space Engineers scripts

Toolkit for scripting a Programmable Block in the Space Engineers game.

Features

Requirements

Usage

Create a new script

Run the Create Space Engineers script task from the Terminal -> Run Task... menu, then enter a name for the new script. This name will be used as the dir name and C# namespace/region identifier.

You can copy scripts\Template -> scripts\[NewName] manually and replace all Template entries with [NewName] in Script.cs file.

Save and Export

Add the following key binding to %userprofile%\AppData\Roaming\Code\User\keybindings.json:

{
  "key": "ctrl+s",
  "command": "workbench.action.tasks.runTask",
  "args": "Export Space Engineers script",
  "when": "resourceFilename == Script.cs && editorTextFocus"
}

When you save the Script.cs by pressing Ctrl+S, its dir will be copied to the game local storage.

Git filters (optional)

To prevent committing your local settings, run utils\git\config.bat.