sarbian/ModuleManager

Makefile seems to mess up compilation?

Closed this issue · 1 comments

m4v commented

If I compile MM using make, the assembly fails to load in KSP with the following error:

AddonLoader: Instantiating addon 'ModuleManager' from assembly 'ModuleManager'
[ModuleManager] Adding ModuleManager to the loading screen 2
MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "ModuleManager.Properties.Resources.resources" was correctly embedded or linked into assembly "ModuleManager" at compile time, or that all the satellite assemblies required are loadable and fully signed.
at System.Resources.ResourceManager.AssemblyResourceMissing (System.String fileName) [0x00000] in :0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) [0x00000] in :0
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture) [0x00000] in :0
at ModuleManager.Properties.Resources.get_cat () [0x00000] in :0
at ModuleManager.ModuleManager.Awake () [0x00000] in :0
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
AddonLoader:StartAddon(LoadedAssembly, Type, KSPAddon, Startup)
AddonLoader:StartAddons(Startup)
^^C:MoveNext()
UnityEngine.MonoBehaviour:StartCoroutine_Auto(IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
ESC^C:MoveNext()
UnityEngine.MonoBehaviour:StartCoroutine_Auto(IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
GameDatabase:StartLoad()
^C^E:MoveNext()
UnityEngine.MonoBehaviour:StartCoroutine_Auto(IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
LoadingScreen:Start()

Since it appears related to a localization error I can point that my default locale is Spanish, although I run KSP in an English one.

If I compile from MonoDevelop I don't run into the same issue.

The Makefile was not up to date and did not include the resource generation. It should work now