Jump to content

Damian Storm

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Damian Storm

  1. Hello Everyone! I'm very new to modding and I'm hoping someone can help me over a hopefully small hurdle. I'm trying to work through the "Tutorial-Creating your first module" on the Kerbal Space Program Wiki. Here is where I'm stuck. 1. Used "Setting up Visual Studio" from the Kerbal Space Program Wiki. Using .NET Framework 3.5 with Visual Studio 2015 2. Referenced both KSP_INSTALL_FOLDER\KSP_Data\Managed\Assembly-CSharp.dll and KSP_INSTALL_FOLDER\KSP_Data\Managed\UnityEngine.dll. Both dlls are showing along with there paths. I'm using KSP 1.4.3. 3. My source code using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; namespace MyKSPProject { /// <summary> /// My first part! /// </summary> public class HelloKerbinMod : PartModule { /// <summary> /// Called when the part is started by Unity. /// </summary> public override void OnStart(StartState state) { // Add stuff to the log print("Hello, Kerbin!"); } } } 4. My error Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'PartModule' could not be found (are you missing a using directive or an assembly reference?) MyKSPProject C:\MyKSPProject\MyKSPProject\HelloKerbinMod.cs 12 Active Thanks to all in advance for any help!
×
×
  • Create New...