{"action":"created","issue":{"url":"https://api.github.com/repos/sarbian/ModularFlightIntegrator/issues/1","labels_url":"https://api.github.com/repos/sarbian/ModularFlightIntegrator/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/sarbian/ModularFlightIntegrator/issues/1/comments","events_url":"https://api.github.com/repos/sarbian/ModularFlightIntegrator/issues/1/events","html_url":"https://github.com/sarbian/ModularFlightIntegrator/issues/1","id":72388753,"number":1,"title":"declaring an MFI as a field causes error","user":{"login":"Starwaster","id":5440121,"avatar_url":"https://avatars.githubusercontent.com/u/5440121?v=3","gravatar_id":"","url":"https://api.github.com/users/Starwaster","html_url":"https://github.com/Starwaster","followers_url":"https://api.github.com/users/Starwaster/followers","following_url":"https://api.github.com/users/Starwaster/following{/other_user}","gists_url":"https://api.github.com/users/Starwaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Starwaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starwaster/subscriptions","organizations_url":"https://api.github.com/users/Starwaster/orgs","repos_url":"https://api.github.com/users/Starwaster/repos","events_url":"https://api.github.com/users/Starwaster/events{/privacy}","received_events_url":"https://api.github.com/users/Starwaster/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-01T09:03:42Z","updated_at":"2015-05-01T09:49:40Z","closed_at":"2015-05-01T09:49:40Z","body":"declaring a ModularFlightIntegrator field\r\n```\r\n        public ModularFlightIntegrator fi;\r\n```\r\nproduces the following error\r\n(it was in a PartModule derived  class; I was going to try to cache the FI there for access in methods outside the delegates. Not a biggie, I'll do things differently but this seemed odd and it'd be nice to know why it happened)\r\nlog here: https://www.dropbox.com/s/2c5h53nergs11tp/output_log.MFI.txt?dl=0\r\n```\r\nNon platform assembly: C:\\Games\\KSP_win_1.0\\GameData\\ModuleManager.dll (this message is harmless)\r\nNon platform assembly: C:\\Games\\KSP_win_1.0\\GameData\\DeadlyReentry\\Plugins\\DeadlyReentry.dll (this message is harmless)\r\nAssemblyLoader: Exception loading 'DeadlyReentry': System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.\r\n\r\n  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)\r\n\r\n  at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0 \r\n\r\n  at AssemblyLoader.LoadAssemblies () [0x00000] in <filename unknown>:0 \r\n\r\nAdditional information about this exception:\r\n\r\n System.TypeLoadException: Could not load type 'DeadlyReentry.ModuleAeroReentry' from assembly 'DeadlyReentry, Version=6.6.5599.6759, Culture=neutral, PublicKeyToken=null'.\r\n ```\r\n"},"comment":{"url":"https://api.github.com/repos/sarbian/ModularFlightIntegrator/issues/comments/98086640","html_url":"https://github.com/sarbian/ModularFlightIntegrator/issues/1#issuecomment-98086640","issue_url":"https://api.github.com/repos/sarbian/ModularFlightIntegrator/issues/1","id":98086640,"user":{"login":"sarbian","id":4083375,"avatar_url":"https://avatars.githubusercontent.com/u/4083375?v=3","gravatar_id":"","url":"https://api.github.com/users/sarbian","html_url":"https://github.com/sarbian","followers_url":"https://api.github.com/users/sarbian/followers","following_url":"https://api.github.com/users/sarbian/following{/other_user}","gists_url":"https://api.github.com/users/sarbian/gists{/gist_id}","starred_url":"https://api.github.com/users/sarbian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarbian/subscriptions","organizations_url":"https://api.github.com/users/sarbian/orgs","repos_url":"https://api.github.com/users/sarbian/repos","events_url":"https://api.github.com/users/sarbian/events{/privacy}","received_events_url":"https://api.github.com/users/sarbian/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T09:49:40Z","updated_at":"2015-05-01T09:49:40Z","body":"I guess it s a loading order problem. I added a KSPAssembly tag to the Assembly info so if you add that to yours they should load in the right order : \r\n\r\n[assembly: KSPAssemblyDependency(\"ModularFlightIntegrator\", 1, 0)]"}}