Skip to content
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

Compatibilities with KSP1.2.1 #1150

Closed
msnbcorp opened this issue Nov 5, 2016 · 4 comments
Closed

Compatibilities with KSP1.2.1 #1150

msnbcorp opened this issue Nov 5, 2016 · 4 comments

Comments

@msnbcorp
Copy link

msnbcorp commented Nov 5, 2016

Hi, just to put a post it here to make it compatible with the lasts version of KSP.
Currently it give a
Kerbal Space Program\GameData\Principia\x64\principia.dll:
System.BadImageFormatException:

error in the log.

;)

@StollD
Copy link

StollD commented Nov 5, 2016

That error means nothing, it is always there, since Unity / KSP expect a CLR assembly (C# or other .NET lang), but principia uses a native .dll (C++) and a small C# adapter.

So nothing 1.2(.1) specific

@msnbcorp
Copy link
Author

msnbcorp commented Nov 6, 2016

Hum, sorry, i don't understand, you mean the error is launched but the program is loaded anyway ? In fact i was able to check that the program is NOT loaded ...
I don't really understand why the error is launched as unity should mostly detect that it is a C# piece of code (the adaptateur part) and absolutly not the fact that it could called a C++ ...
[edit : in fact may be i understand : it's juste the native load of ALL dll in gamedata that trigger the error, the C# module dll don't launch this type of error so i guess it's that ... ]

Anyway, i am very interested by the cause of the error but the fact remain that, for some reason, it don't work on 1.2.1 ... not natively at least ...

@pleroy
Copy link
Member

pleroy commented Nov 6, 2016

If you use the binary for Cantor (our latest official version) there is no chance of it working with 1.2.1: it was built against the 1.1 KSP APIs and those have changed in major ways.

If you build your own binary using the latest commit (beware, that's complicated) it will kind-of work with 1.2.1 except that you won't be able to warp when there are two vessels in the physics bubble.

Major work is needed to properly handle the physics bubble, collisions and non-conservative forces. We started working on this but I don't think we'll have a version ready before the end of the year.

@pleroy
Copy link
Member

pleroy commented Mar 27, 2017

Cardano, the first version of Principia to support KSP 1.2.2, is available here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants