Jump to content

How to intercept the automatic loading of EVA Propellent


Recommended Posts

I'm working on bring forward the functionality of the old EVAManager mod.  Specifically, the EVA Propellent.

I haven't figured out any way to stop the auto-loading of EVA Propellent.  What I've done for now is to simply bypass it, and after the kerbal goes EVA I update the values on both the Kerbal and the vessel.  But the message is still posted that 5 units of EVA Propellent are loaded.

So, the best way would be to intercept the automatic loading.

Alternatively, if I could just prevent that message from displaying, I could just continue to work around it.

Thanks in advance

Link to comment
Share on other sites

2 hours ago, sarbian said:

Did you try to change the EVA parts propellantResourceDefaultAmount  ?


PART[kerbalEVA|kerbalEVAfemale]
{
    @MODULE[KerbalEVA]
    {
        %propellantResourceDefaultAmount = 0
    }
}

 

Gaaah!  Can it be that simple?

Maybe I was misled by the old mod EVAManager, which apparently was set up because MM couldn't do anything with the kerbalEVA.

Thanks

No, it isn't that simple.

I needed to add an at (@) in front of the PART

Thanks for the help

Edited by linuxgurugamer
Link to comment
Share on other sites

2 minutes ago, sarbian said:

Seems I did not validate my edit :)

Not a problem.

the real problem is that even though I see it in the MM cache file, it isn't working, the Kerbals are still getting 5 units of resource.

Not really a problem, I just (after a good nights sleep) figured out where those dang-blasted messages were coming from.  I had another mod  installed, EVAFuel, which was posting the messages, once I removed it, the messages went away.  Since I need to keep track of the EVA propellent anyway for each Kerbal, I just catch the onVesselSwitching and then adjust the amounts.

Now, EVAFuel is another problem, but I'll contact the author about that, I've already been giving him a little help regarding the settings window

Link to comment
Share on other sites

1 hour ago, linuxgurugamer said:

Not a problem.

the real problem is that even though I see it in the MM cache file, it isn't working, the Kerbals are still getting 5 units of resource.

Not really a problem, I just (after a good nights sleep) figured out where those dang-blasted messages were coming from.  I had another mod  installed, EVAFuel, which was posting the messages, once I removed it, the messages went away.  Since I need to keep track of the EVA propellent anyway for each Kerbal, I just catch the onVesselSwitching and then adjust the amounts.

Now, EVAFuel is another problem, but I'll contact the author about that, I've already been giving him a little help regarding the settings window

and, after further investigation, I can confirm your patch DOES work.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

×
×
  • Create New...