-
Notifications
You must be signed in to change notification settings - Fork 2
Running in Console
If you clone this repository and open it in Visual Studio, you can find a GridOS.ConsoleTest
project in it which you can use to run and test the script in a console window.
This console runner essentially extracts the textural content of the written GUI elements, and displays them in the console window.
- If it's not yet selected, select
GridOS.ConsoleTest
in the Startup Project dropdown menu at the top of the Visual Studio window. - Click Start to start run the project.
- Up arrow key moves up in the menu
- Down arrow key moves down in the menu
-
Enter key selects the menu item in focus
- Only command and group items are actionable (this is indicated by a » suffix).
- Esc key quits the console app.
The console runner is currently designed to be independent of the Space Engineers DLL files that are normally required for running scripts like this.
This is made possible by including the SE-Mocks
shared project, which contains mock versions of the original game interfaces and structs.
The console runner itself also contains fake implementations of some components, most notably the IMyTextSurface
, to display content in the console.
This means that if you add a reference to any other game component not currently present as a mock or fake, you won't be able to compile and run the project. In this case you'll need to provide the necessary mocks yourself, or add references to the game DLLs.