-
Notifications
You must be signed in to change notification settings - Fork 123
Quick Introduction to Space Engineers Ingame Scripts
This is a simplistic attempt to explain the various parts of an ingame script and how it works. It is by no means a complete explanation. To get further help, I recommend connecting to Keen's official Discord and asking in the #programming-in-game channel. There's usually plenty of people there to help you. I will be assuming that you're familiar with the game itself, and how to use scripts, and how to load a script into a programmable block via the workshop button.
First of all: The programmable block uses the programming language C# in order to provide high-performance automation for your builds. Before continuing you should get a basic grasp of the language itself. There are several tutorials on the web dealing with this, including Microsoft's own. You might be able to find some tutorials which are better at explaining than them though, they tend to be rather obtuse. In the following tutorials I will be assuming at least a basic grasp of C#. If you find I don't explain some things well enough, please let me know - I might try to improve it.
- The Anatomy of a Script
- The Grid Terminal System
- Terminal Properties and Actions
- The Running Programmable Block
- The Runtime
- The Storage String
- Your First Script
- Debugging Your Scripts
- Making Your Script Run Faster
- Advanced: The EntityId
- [Advanced: Easy and Powerful State Machine Using "yield return"](https://github.com/malware-dev/MDK- SE/wiki/Advanced:-Easy-and-Powerful-State-Machine-Using-%22yield-return%22)
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!