├── .gitignore ├── README.md ├── SpaceEngineers.sln └── SpaceEngineers ├── SpaceEngineers.csproj └── starter-template.cs /.gitignore: -------------------------------------------------------------------------------- 1 | obj/* 2 | SpaceEngineers/obj/* 3 | 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Here are the steps to set up Visual Studio Code for Space Engineers ingame 2 | script development. 3 | 4 | This will provide an environment where autocompletion / intelisense and 5 | syntax checking work. 6 | 7 | * I'll assume you already have SE installed! 8 | * Install Visual Studio Code (VSC) 9 | * Install the following VSC Extensions 10 | * install c# extension in VSC (OmniSharp) 11 | * install NuGet Package manager VSC Extension 12 | * install .net cli tools / SDK (needed?) 13 | * install net framwork devpack 4.6.1 14 | * https://www.microsoft.com/en-us/download/confirmation.aspx?id=49978 15 | 16 | 17 | * Then clone this directory structure. 18 | * If you have a non-standard SE location, change `SpaceEngineers.csproj` 19 | * 'open folder' (this folder) from VSC. 20 | * copy `starter-template.cs` to a new file for each script you create 21 | * change the `namespace` 22 | * Put your code changes between the region tags (see comment in template) 23 | 24 | 25 | Credit to https://github.com/mrdaemon for the working `.csproj` file. 26 | -------------------------------------------------------------------------------- /SpaceEngineers.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio 15 3 | VisualStudioVersion = 15.0.27130.0 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpaceEngineers", "SpaceEngineers\SpaceEngineers.csproj", "{45952BF7-80C5-4844-A209-3DBF8363B08F}" 6 | EndProject 7 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D3A66CBF-E4F5-471A-8D75-77C0152DFC95}" 8 | ProjectSection(SolutionItems) = preProject 9 | README.md = README.md 10 | EndProjectSection 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Release|Any CPU = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {45952BF7-80C5-4844-A209-3DBF8363B08F}.Debug|Any CPU.ActiveCfg = Debug|x64 19 | {45952BF7-80C5-4844-A209-3DBF8363B08F}.Debug|Any CPU.Build.0 = Debug|x64 20 | {45952BF7-80C5-4844-A209-3DBF8363B08F}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {45952BF7-80C5-4844-A209-3DBF8363B08F}.Release|Any CPU.Build.0 = Release|Any CPU 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | GlobalSection(ExtensibilityGlobals) = postSolution 27 | SolutionGuid = {C85F3256-AB4C-4443-93F2-326DF8793B39} 28 | EndGlobalSection 29 | EndGlobal -------------------------------------------------------------------------------- /SpaceEngineers/SpaceEngineers.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {45952BF7-80C5-4844-A209-3DBF8363B08F} 8 | Library 9 | Properties 10 | SpaceEngineers 11 | SpaceEngineers 12 | v4.6.1 13 | 512 14 | 15 | 16 | true 17 | full 18 | false 19 | bin\Debug\ 20 | DEBUG;TRACE 21 | prompt 22 | 4 23 | 24 | 25 | pdbonly 26 | true 27 | bin\Release\ 28 | TRACE 29 | prompt 30 | 4 31 | 32 | 33 | x64 34 | bin\x64\Debug\ 35 | 36 | 37 | x64 38 | bin\x64\Release\ 39 | 40 | 41 | 42 | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\Sandbox.Common.dll 43 | 44 | 45 | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\Sandbox.Game.dll 46 | 47 | 48 | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\SpaceEngineers.exe 49 | 50 | 51 | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\SpaceEngineers.Game.dll 52 | 53 | 54 | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\SpaceEngineers.ObjectBuilders.dll 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\VRage.dll 66 | 67 | 68 | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\VRage.Game.dll 69 | 70 | 71 | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\VRage.Library.dll 72 | 73 | 74 | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Bin64\VRage.Math.dll 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /SpaceEngineers/starter-template.cs: -------------------------------------------------------------------------------- 1 | #region Prelude 2 | using System; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | 8 | using VRageMath; 9 | using VRage.Game; 10 | using VRage.Collections; 11 | using Sandbox.ModAPI.Ingame; 12 | using VRage.Game.Components; 13 | using VRage.Game.ModAPI.Ingame; 14 | using Sandbox.ModAPI.Interfaces; 15 | using Sandbox.Game.EntityComponents; 16 | using SpaceEngineers.Game.ModAPI.Ingame; 17 | using VRage.Game.ObjectBuilders.Definitions; 18 | 19 | // Change this namespace for each script you create. 20 | namespace SpaceEngineers.UWBlockPrograms.BatteryMonitor { 21 | public sealed class Program : MyGridProgram { 22 | // Your code goes between the next #endregion and #region 23 | #endregion 24 | 25 | public Program() { 26 | } 27 | 28 | public void Main(string args) { 29 | } 30 | 31 | #region PreludeFooter 32 | } 33 | } 34 | #endregion --------------------------------------------------------------------------------