sarbian

[1.2.5-1.5.x] ModularFlightIntegrator 1.2.5 (March 23th)

Recommended Posts

No logs => No support

KSP 1.0 gave us VesselModules and the most important of them : FlightIntegrator. This module is the one that handles most of the aerodynamic and heating model.

As with all the VesselModules it is easy to replace it and we could have custom version that change only part of the model (Thanks Mu for the modularity). But a problem rise when more than one mod wants to change something in the FlightIntegrator. We know two ways of handling that properly in code and ModularFlightIntegrator is one of them that should avoid complex debugging later.

ModularFlightIntegrator is a VesselModules that allows multiples mods to override or insert code into various call of the stock FlightIntegrator. This was written in collaboration with Ferram4 and Starwaster.

Currently the code is in a rough shape and if multiple mods tries to override the same part then only the first one to try is allowed to. Later I plan to add a more complex system but we needed a first version out quickly.

This plugin is of no direct interest to end user but a least two mods using it should be out soon-ish so here it is.

1.1 Fix a bug that manifest mainly with wrong gimbal movement.

1.1.1 Fix the version info of the DLL so current mods work without a rebuild.

1.1.2 for KSP 1.0.5

1.1.3 KSP 1.1

1.1.4 KSP 1.1.2

1.1.5 Include a fix by @Thomas P. for the calculateSunBodyFLux delegate check

1.1.6 Rebuild so CKAN re index it

1.2.1 For KSP 1.2. Include a ModularVesselPrecalculate to override the stock VesselPrecalculate

1.2.2 Fix a nasty bug where MFI started on inactive object like flag prefabs

1.2.3 Fix the same nasty bug in an other part of the code. :huh:

1.2.4 Fix a few bugs that @eggrobin found out and add some code to help Pincipia integration.

1.2.5 Updated the AVC template.

Download : ModularFlightIntegrator-1.2.6.0.zip

Source : https://github.com/sarbian/ModularFlightIntegrator

License : MIT

Edited by sarbian

Share this post


Link to post
Share on other sites

Ooh what does it do? I'm curious, everything you release is amazing.

Share this post


Link to post
Share on other sites

For modders, it lets us replace certain parts of the Flight Integrator, which handles things like aerodynamics and thermodynamics

Share this post


Link to post
Share on other sites

so im assuming it will be used by NuFAR, right?

Edited by NoShotz

Share this post


Link to post
Share on other sites

Looks like it, and by DRE too i guess, and maybe Mechjeb ?

@Sarbian: you rock.

Share this post


Link to post
Share on other sites

everytime this starts, i get a message from KSP-AVC saying this was built for 1.0, since most use 1.0.2 now, perhaps a quick rebuild to get rid of the message?:)

Share this post


Link to post
Share on other sites

for now delete the .version file in the directory to remove the warning. I'll rebuild when 1.0.3 gets out

Share this post


Link to post
Share on other sites

1.1 Fix a bug that manifest mainly with wrong gimbal movement after a vessel load.

This one was quite nasty and I still suspect the real problem is in stock. The fix is a hack but seems to work fine.

Share this post


Link to post
Share on other sites

Thanks for the update, I can reinstall this and FAR now :)

Share this post


Link to post
Share on other sites
Thanks for the update, I can reinstall this and FAR now :)

Actually you can't untill FAR is recompiled for the new version. :)

Share this post


Link to post
Share on other sites

Has this mod been broken in 1.04 for anyone else? It brings my framerate down to <10 FPS, from +40? I managed to isolate it to this specific mod, folder by folder.

Share this post


Link to post
Share on other sites

That sounds like logspam, which makes me believe another mod of yours that uses this is not updated. Deadly Reentry, maybe? MFI alone simply won't do that.

Share this post


Link to post
Share on other sites

I tried playing with my 1.0.4 GameData folder in 1.0.5 earlier and was getting logspam that caused my game to run at 9 FPS on average, but now it's all good apparently... Thanks for the quick update!

Share this post


Link to post
Share on other sites

If the mods that uses MFI (mainly FAR) is not updated things are most likely broken even if you don't see errors.

Share this post


Link to post
Share on other sites

Is there a way this could be extended to all physics, to make things like Mechjeb better cooperate with other mods?

That is presuming the mods can add code to feedback their expected behavior to Mechjeb and other control mods.  Such a hook could easily be integrated (control response curves.)

Edited by Ruedii
add more detail.

Share this post


Link to post
Share on other sites

Hello!

I think you can change things for this mod at ckan, because it updated for ksp 1.1, i have ksp 1.0.99 and then nothing had drag anymore, so I destroyed some of my spaceships (luckily it was all not manned :D)

downgraded manually but it would be fine if you could fix things... (maby by adding more boosters XD )

Thanks LilaKuh

Share this post


Link to post
Share on other sites

I have the same problem as LilaKuh, killing two kerbal scientists returning from the Moon in RP0. (KSP1.05, Linux x64)

I just downgraded by hand to 1.1.0.0 and it didn't help.

@lila_kuh98, did you possibly also change something else to get back aero forces?

 

Edited by Lilienthal

Share this post


Link to post
Share on other sites
20 hours ago, Lilienthal said:

I just downgraded by hand to 1.1.0.0 and it didn't help.

 Try downgrade to 1.1.2.0 .
 It helped me. Other mods I have not changed.

Share this post


Link to post
Share on other sites

For KSP 1.0.5 use 1.1.2.0

For KSP 1.1-Pre use 1.1.3

Share this post


Link to post
Share on other sites

 

On 6.4.2016 at 2:29 AM, Lilienthal said:

Thanks. With 1.1.2.0 everything works fine for me again :).

Great, I had KSP 1.0.99 and have MFI 1.1.2.0 too, maby i was a little bit uncertain...

Share this post


Link to post
Share on other sites

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.