(Malware's Development Kit for SE)
A toolkit to help with ingame script (programmable block) development for Keen Software House's space sandbox Space Engineers. It helps you create a ready-to-code project for writing ingame scripts, and provides an analyzer which warns you if you're trying to use something that is not allowed in Space Engineers. It also provides a code minifier to make your deployed script as small as possible - albeit somewhat unreadable.
- Helps you create a fully connected script project in Visual Studio, with all references in place
- Class templates for normal utility classes and extension classes
- Tells you if you're using code that's not allowed in Space Engineers (whitelist checker)
- Deploys multiple classes into a single PB script, which then is placed in the local Workshop space for easy access in-game - no copy/paste needed
- Supports optional code minifying: Fit more code within the limits of the programmable block
- Allows real reusable code libraries through the use of Visual Studio's Shared Project
- Requires that you have the game installed, but does not require you to have it running
This is a project I pretty much made for myself. I'm publishing it in case someone else might have a use for it. Fair warning: Make requests, by all means, but if your request is not something I myself have any use for, someone else is gonna have to do the work. I'm fully employed, and this is a spare-time project. I'll be working on it on and off.
Sure thing! I'd be happy to accept contributions to the project. I'm especially grateful for help with features that I might not personally need. Since my time is limited, I mostly focus on features I plan to use. So, extra features, like mod support, depend on community contributions. However, I won't merge contributions blindly. They need to meet a certain standard, and I reserve the right to reject features I don't like. Just a heads-up! 😄
An installer will be available soon, but you can manually install the template for now:
- Open a terminal or console:
- Press the Windows
Start
button, typecmd
, and press enter to openCommand Prompt
.
- Press the Windows
- In the console, type
dotnet new install Mal.Mdk2.ScriptTemplates
and press enter. - You should now find the templates in Visual Studio and can create fully modern MDK2 projects.
- JetBrains Rider should also have this template available now, so you no longer need to use Visual Studio.
- VSCode too! While I'm not too familiar with VSCode, I believe you'll have to use the
dotnet new
command directly with the new templates to create new projects:dotnet new mdk2pbscript
creates a new script project in the current folder.dotnet new mdk2pbmixin
creates a new mixin project in the current folder.
Note: This is not the recommended course of action at this point.
- Right-click on your MDK1 project.
- Select
Manage NuGet Packages
. - Find the search bar. To the right of the search bar, check the "Include prerelease" checkbox, then search for
Mal.
. - Install the
Mal.MDK2.PbPackager
package into your project. - Rebuild your project.
Space Engineers is trademarked to Keen Software House. This toolkit is fan-made, and its developer has no relation to Keen Software House.