linuxgurugamer

[1.3.1,1.4.5, 1.5.1, 1.6.1, 1.7.2] EvaFuel Continued. No more infinite EVA Fuel!

Recommended Posts

Continuing @AliceTheGorgon's work, I bring you EVA Fuel Continued.  Original thread here:  http://forum.kerbalspaceprogram.com/index.php?/topic/138474-122-

Important note! Do not use on KSP 1.1.0! Weird things will happen, and it won't work! It requires at least KSP 1.1.1!

About:
This is an update of Vendan's mod of the same name.
Like the original, Kerbals will now use Monopropellant for EVA fuel, instead of getting unlimited free fuel. The Kerbals take 5 units with them when they leave the ship, and return any leftover fuel back to the ship when they re-enter.
New to this updated version:
Rescue contract ships will give Kerbals 1 unit of fuel to reach safety, instead of leaving them totally stranded.
Kerbal Inventory System's EVA tanks will also use Monopropellant to refill. (Props to IgorZ for the help.)
The fuel type and fuel conversion ratio is configurable. (Much thanks to Shinsaka.)

Changes from previous

  •     Added log.cs (easier internal logging)
  •     Saves data to a file
  •     Adds mission limited fuel
  •     Moved all settings into KSP settings page
  •     Deleted EvaFuelSettings class

License & source code:
The license is still MIT, like Vendan's original.
The code is now at: https://github.com/linuxgurugamer/EvaFuel

Downloads:https://spacedock.info/mod/1274

CKAN:
The version for KSP 1.2.2 is live on CKAN.

Edited by linuxgurugamer

Share this post


Link to post
Share on other sites

Hey linux here is something for you.

i cant pinpoint what causes it, and i don't see any errors in game, just the message appears when entering/exiting a vessel.

Spoiler

[ERR 14:46:21.037] Exception handling event onVesselSwitching in class EvaFuelManager:System.TypeLoadException: Could not load type 'System.Func`2' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
  at EventData`2[Vessel,Vessel].Fire (.Vessel data0, .Vessel data1) [0x00000] in <filename unknown>:0

 

Share this post


Link to post
Share on other sites
On 3/26/2017 at 11:08 AM, dtoxic said:

Hey linux here is something for you.

i cant pinpoint what causes it, and i don't see any errors in game, just the message appears when entering/exiting a vessel.

  Hide contents

[ERR 14:46:21.037] Exception handling event onVesselSwitching in class EvaFuelManager:System.TypeLoadException: Could not load type 'System.Func`2' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
  at EventData`2[Vessel,Vessel].Fire (.Vessel data0, .Vessel data1) [0x00000] in <filename unknown>:0

 

 

1 hour ago, dtoxic said:

@linuxgurugamer i don't want to be a pain in the behind :) just wanted to divert your attention to this :)

Thanks, always helpful to ping me when you post.

I don't know what's going on (yet), but will figure it out.

Is this every time you enter/exit?

Share this post


Link to post
Share on other sites

New release, 1.4.3.1:

  • Fixed isse with onVesselSwitching, function wasn't being removed from event
  • Fixed issue with multiple fucntions being called for onCrewOnEVA

Share this post


Link to post
Share on other sites
15 minutes ago, linuxgurugamer said:

New release, 1.4.3.1:

  • Fixed isse with onVesselSwitching, function wasn't being removed from event
  • Fixed issue with multiple fucntions being called for onCrewOnEVA

hey sorry i was not at home, was this the problem?

Share this post


Link to post
Share on other sites
1 hour ago, dtoxic said:

hey sorry i was not at home, was this the problem?

Yes

Share this post


Link to post
Share on other sites
1 hour ago, danielboro said:

will this read the old configs?
 

Old configs from where?  The original version?

It should, but no guarantees.

Share this post


Link to post
Share on other sites
8 hours ago, linuxgurugamer said:

Yes

can confirm, errors are gone! thx linux :), on a side note may i know what the problem was?

Share this post


Link to post
Share on other sites

Functions were being added to events, but not removed, so nonexistent functions were being called when you were switching 

Share this post


Link to post
Share on other sites

@linuxgurugamer i think you have introduced now a new problem, the monoprop is not taken from the vessel in other word's it like stock now, i just noticed it.

Share this post


Link to post
Share on other sites
15 minutes ago, dtoxic said:

@linuxgurugamer i think you have introduced now a new problem, the monoprop is not taken from the vessel in other word's it like stock now, i just noticed it.

Make sure you don't have the option set which limits the eva fuel for the entire mission

Also,do you have EVA Enhancements installed?  If so, check it as well for the same option 

Share this post


Link to post
Share on other sites

hmmm let me check,will get back to you

is this ok? i belive it is.

i don't have eva Enhancements.

Spoiler

 

 

Edited by dtoxic

Share this post


Link to post
Share on other sites

Looks OK.  Thanks for checking, I'll look into it

Share this post


Link to post
Share on other sites

It's taken a bit longer to fix than I thought.  I just finished, but haven't had time to do a full test.  I hope to get it out by tomorrow eve at the latest.

Share this post


Link to post
Share on other sites

New Release, 1.4.3.2:

  • Fixed build environment (was building for .net 4)
  • Fixed EVA fuel not being used
  • Fixed EVA fuels being preserved when entering vessel which doesn't have storage
     

Please test and let me know if you see any problems

Share this post


Link to post
Share on other sites
6 hours ago, linuxgurugamer said:

New Release, 1.4.3.2:

  • Fixed build environment (was building for .net 4)
  • Fixed EVA fuel not being used
  • Fixed EVA fuels being preserved when entering vessel which doesn't have storage
     

Please test and let me know if you see any problems

It works, thx man! :)

Share this post


Link to post
Share on other sites

@GenryRar look for a .cfg file

if this version uses the same cfg as the EvaFuel mod you can set the fuel ther

or chack the game mod options it could have been moved to ther

edit:

i had a look in settings

cant chainge it ther but it writs  what you are using

edit 2:

get the old version from https://github.com/AliceTheGorgon/EvaFuel/releases
and use the setting .cfg from ther. see if it works

Edited by danielboro

Share this post


Link to post
Share on other sites
57 minutes ago, GenryRar said:

@linuxgurugamer thx for supporting this mod!

Is it possible to add ability for changing, what propellant this mod uses? For now it not compatible with RO..

Not too difficult.

The only issue will be to find the correct propellants, I may just show a list of all resources in game.

For now, you can edit the save file, look for the string

EvaPropellantName

and change the value to what you want.

I've added this as an enhancement request, but it will probably wait until after 1.3 drops

Edited by linuxgurugamer

Share this post


Link to post
Share on other sites
5 hours ago, linuxgurugamer said:

Not too difficult.

The only issue will be to find the correct propellants, I may just show a list of all resources in game.

For now, you can edit the save file, look for the string

EvaPropellantName

and change the value to what you want.

I've added this as an enhancement request, but it will probably wait until after 1.3 drops

It works, thx!

I also need to change 'ShipPropellantName' to same fuel type, without it kerbals take propellant "from air".

I think, best solution is "just show a list of all resources". It add best compatibility for future mods too.

Only one problem for now - RO allow us to change, what type of propellant we use for rcs (in VAB and SPH). So every time we build new ship we need to adjust settings for EvaFuel...

6 hours ago, danielboro said:

@GenryRar look for a .cfg file

if this version uses the same cfg as the EvaFuel mod you can set the fuel ther

or chack the game mod options it could have been moved to ther

edit:

i had a look in settings

cant chainge it ther but it writs  what you are using

edit 2:

get the old version from https://github.com/AliceTheGorgon/EvaFuel/releases
and use the setting .cfg from ther. see if it works

also thx for help!

Share this post


Link to post
Share on other sites

Each ship can use different propellant for RCS?

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.