Skip to content

ImUnlikely/SpaceEngineers

 
 

Repository files navigation

Space Engineers scripts

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

Features

  • IntelliSense for the game API (DLLs are plugged in SpaceEngineers.csproj)

  • Automatic export to game local storage when saving a Script.cs

Requirements

  • Git for Windows

  • .NET SDK (notice <TargetFramework>net6.0</TargetFramework> in SpaceEngineers.csproj)

  • VS Code with C# extension (build and debug assets are not required)

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.

About

Space Engineers game scripts

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 92.9%
  • Batchfile 6.9%
  • Shell 0.2%