Jump to content

I Compiled MechJeb2 Source but Nothing Happens.


iamchairs

Recommended Posts

Hello. First experience with Kerbal mods. First experience with C#. First experience with Mono (on a Mac).

I got MechJeb2 from it's source on github. Following these instructions (https://github.com/MuMech/MechJeb2/wiki/Compiling-MechJeb-2) I compiled a MechJeb2.dll in MechJeb2/bin/Release/ and replaced the GameData/MechJeb2/Plugins/MechJeb2.dll file. The resulting dll file was nearly twice of the size of the prebuilt one already in there.

Nothing is happening. The MechJeb2 parts are available and I can add them to my ship but KSP 1.0.2 no longer complains about the MechJeb2 1.0.0 and the MechJeb2 windows aren't available.

How do I debug this situation? It doesn't look like there are any errors.

Link to comment
Share on other sites

Your compiled DLL is probably larger because you've got debugging symbols turned on.

You'd have to dig through your KSP startup log looking for where the mechjeb DLL is being loaded and see what it has to say there.

Link to comment
Share on other sites

Found some more information in the KSP.log file. Though it's not very helpful.


[LOG 19:54:39.817] Load(Assembly): MechJeb2/Plugins/MechJeb2
[LOG 19:54:39.819] AssemblyLoader: Loading assembly at /Users/micahwilliamson/Library/Application Support/Steam/SteamApps/common/Kerbal Space Program/GameData/MechJeb2/Plugins/MechJeb2.dll
[LOG 19:54:39.866] AssemblyLoader: KSPAssembly 'MechJeb2' V2.5
[LOG 19:54:39.868] AssemblyLoader: Loading assemblies
[ERR 19:54:39.899] AssemblyLoader: Exception loading 'MechJeb2': System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
at AssemblyLoader.LoadAssemblies () [0x00000] in <filename unknown>:0


Additional information about this exception:


System.TypeLoadException: Could not load type 'MuMech.CompatibilityChecker' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.InstallChecker' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebCore' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleCustomWindowEditor' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.ValueInfoItem' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.ActionInfoItem' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.GeneralInfoItem' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleDockingGuidance' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleInfoItems' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleLandingGuidance' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleMenu' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleRoverController' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleRoverWindow' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleSpaceplaneAutopilot' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleSpaceplaneGuidance' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleStagingController' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleThrustController' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebModuleWaypointWindow' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebRouteRenderer' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.MechJebPod' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.ToolbarTypes' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'MuMech.VesselExtensions' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'KerbalEngineer.Extensions.PartExtensions' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'KerbalEngineer.VesselSimulator.PartSim' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'KerbalEngineer.VesselSimulator.Simulation' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'DisplayOrder' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'pages' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'State' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'ProtoModuleDecoupler' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type 'ProtoModuleEngine' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<getAllTypes>c__Iterator0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<GetComputerModule>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<OnLoad>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<ValueInfoItem>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<AllStageStats>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<InitLandingSitesList>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<InitLandingSitesList>c__AnonStorey1' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<InitLandingSitesList>c__AnonStorey2' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<SetupToolBarButtons>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<InitRunwaysList>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<HasStayingChutes>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<DrawPageWaypoints>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<DrawPageRoutes>c__AnonStorey1' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<DrawPageRoutes>c__AnonStorey2' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<DrawPageRoutes>c__AnonStorey3' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<getType>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<GetPatchAtUT>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<GetNextPatch>c__AnonStorey1' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.


System.TypeLoadException: Could not load type '<GetModuleMultiModeEngine>c__AnonStorey0' from assembly 'MechJeb2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'.

EDIT:

That's what I get for skipping one instruction. When to Project -> MechJeb2 Options -> Build: General. Set Target Framework to .NET 3.5

Thanks for your help. I can now start messing with it.

Edited by sumghai
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...