diff --git a/.gitignore b/.gitignore
index fd94567..13d93d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -263,4 +263,7 @@ __pycache__/
# Ignore the game lib files (since I'm not allowed to distribute them)
gamelibs/
-gamelibs
\ No newline at end of file
+gamelibs
+
+# Don't include the paths properties file, the MDK will regenerate it on first load.
+/src/MDK/mdk.paths.props
diff --git a/README.md b/README.md
index 7c9426d..8619000 100644
--- a/README.md
+++ b/README.md
@@ -8,24 +8,13 @@ The workshop item can be found [here](http://steamcommunity.com/sharedfiles/file
## Intellisense
-To make the repo better for anyone to grab and use, I've set up the .csproj file to look for the game libraries in the `(repo location)/gamelibs` location. I recommend that you use a symbolic link to the `(game install folder)/Bin64` folder (since it will then also allow for game updates), however, if that is not possible, then you need to copy the following files into it:
-
-* `Sandbox.Common.dll`
-* `Sandbox.Common.xml`
-* `Sandbox.Game.dll`
-* `SpaceEngineers.Game.dll`
-* `SpaceEngineers.Game.xml`
-* `VRage.dll`
-* `VRage.Game.dll`
-* `VRage.Game.xml`
-* `VRage.Library.dll`
-* `VRage.Library.xml`
-* `VRage.Math.dll`
-* `VRage.Math.xml`
+To make the repo better for anyone to grab and use, I've set up the project to use the [MDK-SE](https://github.com/malware-dev/MDK-SE). Install the [latest release](https://github.com/malware-dev/MDK-SE/releases) to your visual studio 2019 instance to get the tools set uup.
+
+Once installed the first time you open the project it will ask you to repair the project, it should automatically pick up your install location of your Space Engineers game and use it during the development process. You may need to close and re-open the project after doing this to get Intellisense to work. If it did not automatically pick up the settings or you would like it to use a different installation of Space Engineers you can right click on the project and choose "MDK Script Options" to change the settings.
## Building
-To generate a PB-compatible file, build the project and use the source generated in `bin/out/Script.cs`. To build, use Visual Studio, as I have set up the project to run the necessary commands that are needed to build the script. This can be done via Build->Build Solution via the top dropdowns, or Ctrl-Shift-B.
+To generate a PB-compatible file, right click on the project and choose "MDK Deploy Script" and it will automatically deploy the script to a location that can be picked up by the game automatically.
## Todo
diff --git a/TaledensInvManagerUpdated.sln b/TaledensInvManagerUpdated.sln
index 4b6fcbb..c23880d 100644
--- a/TaledensInvManagerUpdated.sln
+++ b/TaledensInvManagerUpdated.sln
@@ -1,25 +1,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.27130.2020
+# Visual Studio 16
+VisualStudioVersion = 16.0.29424.173
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TIM", "src\TIM.csproj", "{A4D165AF-E180-4224-8C3C-9FED915FE024}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TIM", "src\TIM.csproj", "{61B0117B-706A-4930-A099-1F13F476201C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
+ Debug|x64 = Debug|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {A4D165AF-E180-4224-8C3C-9FED915FE024}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {A4D165AF-E180-4224-8C3C-9FED915FE024}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {A4D165AF-E180-4224-8C3C-9FED915FE024}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {A4D165AF-E180-4224-8C3C-9FED915FE024}.Release|Any CPU.Build.0 = Release|Any CPU
+ {61B0117B-706A-4930-A099-1F13F476201C}.Debug|x64.ActiveCfg = Debug|x64
+ {61B0117B-706A-4930-A099-1F13F476201C}.Debug|x64.Build.0 = Debug|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {46443B6E-DB0F-4D0F-8A53-17FCD3E9D7A7}
+ SolutionGuid = {EF8D87F2-834F-432F-840C-1DA4968A6E25}
EndGlobalSection
EndGlobal
diff --git a/build/Build.exe b/build/Build.exe
deleted file mode 100644
index 6470b6c..0000000
Binary files a/build/Build.exe and /dev/null differ
diff --git a/build/CSharpMinifier.dll b/build/CSharpMinifier.dll
deleted file mode 100644
index ace0182..0000000
Binary files a/build/CSharpMinifier.dll and /dev/null differ
diff --git a/build/ICSharpCode.NRefactory.CSharp.dll b/build/ICSharpCode.NRefactory.CSharp.dll
deleted file mode 100644
index db211ea..0000000
Binary files a/build/ICSharpCode.NRefactory.CSharp.dll and /dev/null differ
diff --git a/build/ICSharpCode.NRefactory.Cecil.dll b/build/ICSharpCode.NRefactory.Cecil.dll
deleted file mode 100644
index c5eabfb..0000000
Binary files a/build/ICSharpCode.NRefactory.Cecil.dll and /dev/null differ
diff --git a/build/ICSharpCode.NRefactory.Xml.dll b/build/ICSharpCode.NRefactory.Xml.dll
deleted file mode 100644
index 1f07e70..0000000
Binary files a/build/ICSharpCode.NRefactory.Xml.dll and /dev/null differ
diff --git a/build/ICSharpCode.NRefactory.dll b/build/ICSharpCode.NRefactory.dll
deleted file mode 100644
index d6114ae..0000000
Binary files a/build/ICSharpCode.NRefactory.dll and /dev/null differ
diff --git a/build/Mono.Cecil.Mdb.dll b/build/Mono.Cecil.Mdb.dll
deleted file mode 100644
index 285d9da..0000000
Binary files a/build/Mono.Cecil.Mdb.dll and /dev/null differ
diff --git a/build/Mono.Cecil.Pdb.dll b/build/Mono.Cecil.Pdb.dll
deleted file mode 100644
index 75787ad..0000000
Binary files a/build/Mono.Cecil.Pdb.dll and /dev/null differ
diff --git a/build/Mono.Cecil.Rocks.dll b/build/Mono.Cecil.Rocks.dll
deleted file mode 100644
index 9871bea..0000000
Binary files a/build/Mono.Cecil.Rocks.dll and /dev/null differ
diff --git a/build/Mono.Cecil.dll b/build/Mono.Cecil.dll
deleted file mode 100644
index b0691e8..0000000
Binary files a/build/Mono.Cecil.dll and /dev/null differ
diff --git a/build/settings.xml b/build/settings.xml
deleted file mode 100644
index bf7e825..0000000
--- a/build/settings.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
- ..\src
- ..\bin\out
-
- BaseProgram.cs
-
- false
- false
- false
- true
- 130
-
\ No newline at end of file
diff --git a/src/MDK/Bootstrapper.cs b/src/MDK/Bootstrapper.cs
new file mode 100644
index 0000000..dd86886
--- /dev/null
+++ b/src/MDK/Bootstrapper.cs
@@ -0,0 +1,27 @@
+using Malware.MDKUtilities;
+
+namespace IngameScript.MDK
+{
+ public class TestBootstrapper
+ {
+ // All the files in this folder, as well as all files containing the file ".debug.", will be excluded
+ // from the build process. You can use this to create utilites for testing your scripts directly in
+ // Visual Studio.
+
+ static TestBootstrapper()
+ {
+ // Initialize the MDK utility framework
+ MDKUtilityFramework.Load();
+ }
+
+ public static void Main()
+ {
+ // In order for your program to actually run, you will need to provide a mockup of all the facilities
+ // your script uses from the game, since they're not available outside of the game.
+
+ // Create and configure the desired program.
+ var program = MDKFactory.CreateProgram();
+ MDKFactory.Run(program);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/MDK/MDK.options.props b/src/MDK/MDK.options.props
new file mode 100644
index 0000000..55e916c
--- /dev/null
+++ b/src/MDK/MDK.options.props
@@ -0,0 +1,18 @@
+
+
+
+
+ 1.2.22
+
+ yes
+
+
+ yes
+
+
+ mdk
+
+
+
\ No newline at end of file
diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs
deleted file mode 100644
index 7c2bb91..0000000
--- a/src/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Scripts")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Scripts")]
-[assembly: AssemblyCopyright("Copyright © 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("a4d165af-e180-4224-8c3c-9fed915fe024")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/src/Script.cs b/src/Script.cs
index 08b3272..e23ce30 100644
--- a/src/Script.cs
+++ b/src/Script.cs
@@ -1,27 +1,28 @@
-/*-*/
-// Base file from
-// https://github.com/Gorea235/SpaceEngineers_IngameScriptingBase
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Sandbox.Common;
-using Sandbox.Common.ObjectBuilders;
-using Sandbox.Definitions;
-using Sandbox.Engine;
+// Base file from
+// https://github.com/Gorea235/SpaceEngineers_IngameScriptingBaseusing Sandbox.Game.EntityComponents;
using Sandbox.ModAPI.Ingame;
using Sandbox.ModAPI.Interfaces;
-using Sandbox.Game;
using SpaceEngineers.Game.ModAPI.Ingame;
-using VRageMath;
+using System.Collections.Generic;
+using System.Collections;
+using System.Linq;
+using System.Text;
+using System;
+using VRage.Collections;
+using VRage.Game.Components;
+using VRage.Game.GUI.TextPanel;
+using VRage.Game.ModAPI.Ingame.Utilities;
using VRage.Game.ModAPI.Ingame;
+using VRage.Game.ObjectBuilders.Definitions;
using VRage.Game;
+using VRage;
+using VRageMath;
-namespace Scripts.TIM
+namespace IngameScript
{
- class Program : MyGridProgram
+ class Program : MyGridProgram
{
- /*-*/
+ #region mdk preserve
/*
Taleden's Inventory Manager - Updated (Unofficial)
version 1.7.7 (2019-03-07)
@@ -208,7 +209,8 @@ that any changes will be reverted when you update the script from the workshop.
// =================================================
const string MOB = "MyObjectBuilder_";
const string NON_AMMO = "Component,GasContainerObject,Ingot,Ore,OxygenContainerObject,PhysicalGunObject\n";
- /*m*/
+ #endregion mdk preserve
+
#region Fields
#region Version
@@ -3545,4 +3547,3 @@ public string ToString(int width = 0)
/*-*/
}
}
-/*-*/
diff --git a/src/TIM.csproj b/src/TIM.csproj
index 40b0ef7..7fd1614 100644
--- a/src/TIM.csproj
+++ b/src/TIM.csproj
@@ -5,45 +5,27 @@
Debug
AnyCPU
{A4D165AF-E180-4224-8C3C-9FED915FE024}
- Library
- Properties
- Scripts
- Scripts
+ Exe
+ IngameScript
+ TaledensInvManagerUpdated
v4.6.1
512
+ true
+
-
+
true
- full
- false
- ..\bin\
+ bin\
DEBUG;TRACE
- prompt
- 4
- Off
- 7
+ full
x64
-
-
- pdbonly
- true
- ..\bin\
- TRACE
prompt
- 4
- Auto
+ MinimumRecommendedRules.ruleset
+ true
6
-
- ..\gamelibs\Sandbox.Common.dll
-
-
- ..\gamelibs\Sandbox.Game.dll
-
-
- ..\gamelibs\SpaceEngineers.Game.dll
-
+
@@ -52,31 +34,24 @@
-
- ..\gamelibs\VRage.dll
-
-
- ..\gamelibs\VRage.Game.dll
-
-
- ..\gamelibs\VRage.Library.dll
-
-
- ..\gamelibs\VRage.Math.dll
-
+
+
+
-
+
+ Always
+
+
+ Always
+
+
+
-
- "$(SolutionDir)build\Build.exe"
-copy /Y "$(SolutionDir)workshop\*" "$(TargetDir)workshop"
-copy /Y "$(TargetDir)out\*" "$(TargetDir)workshop"
-
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/workshop/thumb.png b/src/thumb.png
similarity index 100%
rename from workshop/thumb.png
rename to src/thumb.png