Jump to content

[1.9.x] EvaFuel Continued. No more infinite EVA Fuel!


linuxgurugamer

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
Link to comment
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

 

Link to comment
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?

Link to comment
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?

Link to comment
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 

Link to comment
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! :)

Link to comment
Share on other sites

  • 3 weeks later...

@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
Link to comment
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
Link to comment
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!

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...