New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API FrozenKerbals lists not working #71
Comments
I can only assume that the reason is that |
I know of several mods that do. Including two of my own. |
This is what I use (the code is here in
Whether I use FrozenKerbals or FrozenKerbalsList, it doesn't work. The former returns an empty Vocabulary, the latter returns null. |
Where do you initialize the Reflection wrapper class? |
I do it in a method called by Start(), FixedUpdate() and OnSave(). The initializer works ok and DFWrapper.APIReady() then returns true, but the frozen kerbals collections are either empty or null. I will try it all again when 1.3 comes out (and DF is updated). |
I don't think that will change anything to be honest. and refer to here on how it works: |
Thanks, will try. |
I know of two other mods that integrate with DF, and they are working fine. |
It looks like you can't access DF's FrozenKerbals list through the DFWrapper class.
When using
DFWrapper.DeepFreezeAPI.FrozenKerbals
(the dictionary), it always has 0 members. ReferringDFWrapper.DeepFreezeAPI.FrozenKerbalsList
causes an exception like this:InvalidCastException: Cannot cast from source type to destination type. at DeepFreezeWrapper.DFWrapper+DFAPI.get_FrozenKerbalsList () [0x00000] in <filename unknown>:0
The text was updated successfully, but these errors were encountered: