• Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About GrinningHermit

  • Rank
    Bottle Rocketeer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks a lot for the detailed answer. I need a little time to poke at it and see if this gets me further. Really appreciated!
  2. We probably are talking about different things... I meant the KSP console. According to an old tutorial the .cs file I posted should produce result in the KSP console log. Your target framework v3.5 reference gives an error unfortunately: Invalid target framework 'unsupported'.
  3. Thanks for the reply. I installed the Mono .net framework and found the additional references and am able to build without errors in Visual Studio Community and Visual Studio Code... The resulting dll does not seem to work though. Can't get a 'Hello Kerbin' in the console log. I'm unsure what to do with the target framework reference. .cs file: using UnityEngine; namespace MyMod { public class MyMod : PartModule { public override void OnStart(StartState state) { print("Hello Kerbin!"); } } } .csproj file: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net35</TargetFramework> </PropertyGroup> <ItemGroup> <Reference Include="Assembly-CSharp"> <HintPath>..\..\KerbalSpaceProgram\\Contents\Resources\Data\Managed\Assembly-CSharp.dll</HintPath> <Private>False</Private> </Reference> <Reference Include="UnityEngine.CoreModule"> <HintPath>..\..\KerbalSpaceProgram\\Contents\Resources\Data\Managed\UnityEngine.CoreModule.dll</HintPath> <Private>False</Private> </Reference> <Reference Include="UnityEngine"> <HintPath>..\..\KerbalSpaceProgram\\Contents\Resources\Data\Managed\UnityEngine.dll</HintPath> <Private>False</Private> </Reference> </ItemGroup> </Project> The VS Code build fails with target framework net35, but runs when targeting netcoreapp3.0. VS Community builds with the .csproj as seen above
  4. While trying to create a proper setup for mod development in VS Code, I found that Assembly-CSharp.dll and UnityEngine.dll need to be referenced. As far as I can discover, the references need to be in the .csproj file like this: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> </PropertyGroup> <ItemGroup> <Reference Include="Assembly-CSharp"> <HintPath>../KerbalSpaceProgram/</HintPath> <SpecificVersion>False</SpecificVersion> </Reference> </ItemGroup> <ItemGroup> <Reference Include="UnityEngine"> <HintPath>../KerbalSpaceProgram/</HintPath> <SpecificVersion>False</SpecificVersion> </Reference> </ItemGroup> </Project> I'm on Mac, so it seems the dlls need to be targeted inside the .app file. The problem is, that despite these lines I keep getting the error "The type 'MonoBehaviour' is defined in an assembly that is not referenced. You must add a reference to assembly ..." when building or restoring (dotnet build / dotnet restore commands) Does anyone have a clue what I'm missing?
  5. While writing that I still could not find them, I wondered if they could be inside the file, which is a package/bundle file. Turns out that's actually where they're located. So thanks for answering me, it kept me thinking in other ways For anyone encountering this particular problem: right clicking the file in Finder and choosing 'Show Package Contents' made it possible to search for it the regular way.
  6. Thanks for answering. I think I should have mentioned I'm on a Mac and I really do not see the folder. So that's the point I'm stuck at.
  7. In the tutorial on how to create a mod ( - setting up visual studio), it is mentioned the UnityEngine.dll and Assembly-CSharp.dll should be referenced. However, the paths (KSP_Data or KSP_X64_Data mentioned are not visible to me, nor can I find the files when doing a search. Have things changed since this tutorial has been written? I'd love to know what works in 2019, since all the info on the 'how-to's' seems very old.
  8. Hello everyone, What I want to know is the proper way to get a working part from Blender into KSP. This may be the umptieth time the question has been asked, but... I cannot find the answer when searching this forum or Google for the current solution (KSP 1.3.1). So it is either not there or, more likely, I'm looking in the wrong place and asking the wrong questions. 1. Is a direct export for KSP possible or is Unity required as a step in between? If possible, what are the steps and requirements to do so? 2. If an export from Blender to Unity using Part Tools is necessary, how do i get that to work on a Mac? The version of Unity needed seems to be 5.4.0 and PartTools need to be installed. I found this link: ... but the zip file seems unusable,it does not unzip into a bundle file that I can install in Unity (at least not on a Mac). Any help is greatly appreciated. EDIT: I finally got it working through Unity. It would be great if the instructions in the Modeling and Texturing Discussion section on the sticky post would be updated for 1.3. It cost quite a bit of digging through thread posts. My conclusion is that using the search function of the forum and with Google only brings up outdated information. SOLUTION: Downloaded Unity 5.2.4 and used these posts: