-
Notifications
You must be signed in to change notification settings - Fork 12
9. Transcript of Keen Software Modding Tutorial
Mareks Tutorial youtube transcribed in summary - https://www.youtube.com/watch?v=gAh1bNfRLPw YouTube™ Video: Space Engineers - How to setup Visual Studio and create a simple mod Views: 33,378 This is a short tutorial that shows how to create a simple mod by using the API tools released in the last update 01.048.
install web edition of visual studio 2012 Folder layout %appdata% -> space engineers -> mods -> modname -> data -> scripts
new project
Project type c#
Type class library
location (script folder)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestScript1
{
public class Class1
{
}
}
TestScript -> properties -> assemblyinfo.cs -> delete it!
References -> properties -> references (rightclick add reference)
Game folder -> bin ->
Sandbox.Common.dll
Sandbox.Game.dll
VRage.Common.dll
VRage.Library.dll
VRage.Math.dll
adds:
using Sandbox.Common;
using Sandbox.Common.Components;
using Sandbox.Common.ObjectBuilders;
using Sandbox.Common.Definitions;
using Sandbox.Engine;
using Sandbox.Game;
using Sandbox.ModAPI;
using Sandbox.ModAPI.Ingame;
using Sandbox.ModAPI.Interface;
Save project?
Check scripts folder remove bin/obj/properties
//Alters
namespace TestScript1
{
[MyEntityComponentDescriptor(typeof(MyObjectBuilder_SensorBlock))] public class Class1 : MyGameLogicComponent
{
//Creates list:
public override void Close() {}
public override void Init(MyObjectBuilder_EntityBase objectBuilder) {}
public override void MarkforClose() {}
public override void UpdateAfterSimulation() {}
public override void UpdateAfterSimulation10() {}
public override void UpdateAfterSimulation100() {}
public override void UpdateBeforeSimulation() {}
public override void UpdateBeforeSimulation10() {}
public override void UpdateBeforeSimulation100() {}
public override void UpdateOnceBeforeFrame() {} } }