Jump to content

[0.23]asmi's ECLSS Mod (current version - 1.0.15) - Life Support Mod


asmi

Recommended Posts

Eh, did you miss my previous post? Electricity would be best used for oxygen flow. No power, no flow, but if you've got some other supply (oxygen bottles and candles, cabin air), you'll be fine unless thermal control fails.

You should really read Mike Foale's memoirs, and you'll know how he and his crewmates were ventilating the station without electricity for 2 days :) And thermal control is usually not an issue since when there is no electricity, no devices are working and generating that heat either (since they use that very electricity), besides space stations are usually quite large so it will take a long time for them to cool down enough to cause any concern for the crew.

But all of that is beside the point anyways. I do want to eventually implement proper atmosphere modeling, but not in this version for sure.

Link to comment
Share on other sites

Yeah, the system I propose could simulate that, too. Just transfer air around manually, using the alt-click system that is usually used for fuel transfer. Without power, the only thing that really goes out is automation. Death due to running out of power for a certain amount of time would be a really bad idea.

Link to comment
Share on other sites

Death due to running out of power for a certain amount of time would be a really bad idea.

That is why I'm not going to introduce power requirements until I get around to simulating internal atmosphere. With that said, I'm not gonna stop anyone from modifying configs in whatever way they see fit.

Link to comment
Share on other sites

So I don't know if this has been posted before, and I realize there's a new version in the works, but, I have discovered a bug, and I was wondering if there's a way to fix, this:5n2ijjf.jpg

If you leave a Kerbal EVA and go back to the space center, the ship he came out of explodes, and he loses all semblance of structure? I don't know if the fault is in this mod, or a conflict with other mods I use, but without this mod, this doesn't happen. I love this mod. Can anyone help? ;.;

Link to comment
Share on other sites

Bug to report: In tracking station it wont let me terminate anything. And the little popup status window has the close button greyed out, so it cant be closed.

edit: P.S. Love this mod.

Same here, and i've also just noticed the EVA mono-propellant dumping bug. Does anyone know if its up for being patched in the next release?

Link to comment
Share on other sites

Pretty sure it is was thinking there was a patch for the EVA mono-propellant.

Patching the bug where nearly half of your total ships RCS fuel disappears, every time you go on a EVA? I saw a workaround by disabling access to the tanks with the little green arrow-togglething before leaving - but that's about it.

Link to comment
Share on other sites

Bug to report: In tracking station it wont let me terminate anything. And the little popup status window has the close button greyed out, so it cant be closed.

edit: P.S. Love this mod.

Sadly, I think this is tied to the whole "Cannot close Windows" bugs that I've mentioned in the past.

Link to comment
Share on other sites

So I don't know if this has been posted before, and I realize there's a new version in the works, but, I have discovered a bug, and I was wondering if there's a way to fix, this:

If you leave a Kerbal EVA and go back to the space center, the ship he came out of explodes, and he loses all semblance of structure? I don't know if the fault is in this mod, or a conflict with other mods I use, but without this mod, this doesn't happen. I love this mod. Can anyone help? ;.;

Yes I know about this bug and I've been trying to fix it for the whole this weekend, unsuccessfully so far :( But I won't release anything until I fix it.

Link to comment
Share on other sites

Thanks for the update asmi. Keep up the great work :cool:

I don't now if this will help, but I have no need for that popup window in the tracking station. It would not be a problem if it didn't come up in there. (for me, others may feel different)

Also, it would be great if this was integrated into the new toolbar app that everyone is using. Maybe you can find a solution there? Regardless, ill be using the mod with or without bugs, as "life support" is a must have in my book. Thank You.

Link to comment
Share on other sites

Thanks for the update asmi. Keep up the great work :cool:

I don't now if this will help, but I have no need for that popup window in the tracking station. It would not be a problem if it didn't come up in there. (for me, others may feel different)

Also, it would be great if this was integrated into the new toolbar app that everyone is using. Maybe you can find a solution there? Regardless, ill be using the mod with or without bugs, as "life support" is a must have in my book. Thank You.

In 2.0 I will integrate toolbar support, so you would be able to hide that window.

Link to comment
Share on other sites

Great! Keep up the good work, we're all patiently waiting for the ECLSS 2.0 :)

Hear hear - this is one of my favourite mods, right next to kethane. Amazing job Asmi :)

Edited by Daishi
Link to comment
Share on other sites

Yes I know about this bug and I've been trying to fix it for the whole this weekend, unsuccessfully so far :( But I won't release anything until I fix it.

Can't ask for more than that, Thanks. I'll just play without this mod for now, but I'll keep an eye out here, and as soon as there's a fix, or the new version, I'll go back to using my favorite life support mod. :D

Link to comment
Share on other sites

So I don't know if this has been posted before, and I realize there's a new version in the works, but, I have discovered a bug, and I was wondering if there's a way to fix, this:http://i.imgur.com/5n2ijjf.jpg

If you leave a Kerbal EVA and go back to the space center, the ship he came out of explodes, and he loses all semblance of structure? I don't know if the fault is in this mod, or a conflict with other mods I use, but without this mod, this doesn't happen. I love this mod. Can anyone help? ;.;

You haven't seen anything. This is all that remains of Mitfrod and Milson Kerman:

screenshot244.png

Samkin was the only survivor. She's probably having serious PTSD now. Hope you can find the issue asmi!

EDIT READ THIS:

So I was looking at my persistence file and I noticed a few things odd. My two affected Kerbals have an index of -1; a value assigned to Kerbals not on active flights.

		CREW
{
name = Milson Kerman
brave = 0.002429366
dumb = 0.04996848
badS = True
state = 1
ToD = 171799.064053344
[B]idx = -1[/B]
}
CREW
{
name = Samkin Kerman
brave = 0.4851007
dumb = 0.1659292
badS = False
state = 1
ToD = 146178.974331665
idx = 0
}
CREW
{
name = Mitfrod Kerman
brave = 0.4192132
dumb = 0.8211466
badS = False
state = 1
ToD = 262772.380627441
[B]idx = -1[/B]
}
CREW [COLOR="#00FF00"]//Actual inactive crewmember for reference[/COLOR]
{
name = Doodfurt Kerman
brave = 0.4957256
dumb = 0.7158839
badS = True
state = 0
ToD = 156374.547756958
idx = -1
}

INGNORE

Also I noticed something strange in the kerbalEVA module. A single kerbal has a crew of five. No idea if this will help. Gonna try to see if a persistent edit will work as a temporary solution.

Damn. No luck. :(

Edited by Nutt007
Link to comment
Share on other sites

yea, I've tried everything I could think of, and no luck either. But I won't stop trying until I succeed.

i thought id give this a go and compile the source to try help debugging this. some/all im going to say here im sure you probably know but ill try to give my limited insight nonetheless.

first some notes on the issue

the issue accurs when you:

* eva a kerbal, go to the spacecenter and go back to the kerbal via the trackingcenter

* eva a kerbal, jump off vessel and fly/move to outside off-rails range and switch back to vessel while still outside off-rails range

* fly a ship up to orbit, eva a kerbal. go to the spacecenter and launch a new vessel and rendezvous with the kerbal(issue accurs as soon as you get within off-rails range)

* fly two ships to orbit and rendezvous within off rails range, eva a kerbal from one ship, switch to the other ship and fly outside off-rails range. fly back into off-rails range and the issue accurs.

the issue does not accur in similar situations when you:

* eva a kerbal, stay on ladder and board

* eva a kerbal, jump off the vessel and fly/walk around(even outside off rails range) fly back to the vessel and board

* eva a kerbal, jump off the vessel and fly/walk around(even outside off rails range) fly back to the vessel within off-rails range and switch back, as long as you board the kerbal before going to another vessel outside off rails range or go to the space center the issue dont accur.

notes:

*vessels with crew or no crew are not effected by the bug but when you have the bug accur with a eva'ed kerbal close to a vessel he will make all or most of the vessel explode, probably because he is snapping all over the place.

the nullref that marks the onset of all the havok usually starts and the following log here in this scenario(tried to make it as readable as possible:-P):

--------------------------vessel "test"(containing Herfrey Kerman) and "test"(2) are orbiting within off rails range, Herfrey Kerman goes on eva and lets go of the ship----------------------

[LOG 06:00:04.601] About to transfer 137.5 of oxygen
[LOG 06:00:04.602] Vessel 'Herfrey Kerman', O2 137.50000000/137.50000000, CO2 0.00000000/137.50000000
[LOG 06:00:04.602] RCS taken to EVA: 100.00000000
[LOG 06:00:04.603] [00:01:17]: Herfrey Kerman from test went on EVA.
[LOG 06:00:04.605] LifeSupportEVAModule::OnStart
[ERR 06:00:04.607] Can not find extensions container for vessel Herfrey Kerman
[LOG 06:00:04.607] Vessel extension is null - this is normal if this message is only displayed once
[LOG 06:00:04.642] [FLIGHT GLOBALS]: Switching To Vessel Herfrey Kerman ---------------------

------------------------------flying around/doing stuff(all is normal)-----------------------------

[LOG 06:00:23.376] [FLIGHT GLOBALS]: Switching To Vessel test ---------------------- 

------------------------------(now the ship "test"(2) is flown outside off-rails range from Herfrey Kerman and the vessel "test"---------------------------------------

[LOG 06:02:54.567] test Unloaded
[LOG 06:02:54.570] Packing test for orbit
[LOG 06:02:55.358] Herfrey Kerman Unloaded
[LOG 06:02:55.359] Packing Herfrey Kerman for orbit
[LOG 06:02:55.361] LifeSupportEVAModule::OnDestroy
Lifesupportevamodule::ondestroy

-----------------------------(from now on the unity output_log.txt gets spammed with this)-----------------------

(Filename: C:/BuildAgent/work/ea95e74f6e5f192d/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)

Updating vessel 'Herfrey Kerman': 0 modules found

----------------------------------------------------------------------------------------------------------------

but there are no nullrefs anywhere yet, and nothing out of the ordinary in ksp.log----------------------------------

------------------------------still nothing going on other than the continuing spam in the unity log--------

(Filename: C:/BuildAgent/work/ea95e74f6e5f192d/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)

Updating vessel 'Herfrey Kerman': 0 modules found

-----------------------------("test2" flies back into off-rails range of Herfrey Kerman)---------------------

-----------------------------(the ksp.log now gets spammed with this segement repeating over and over:)---------------------------------------

[LOG 06:05:36.789] Can't add component 'Animation' to Herfrey Kerman (Unloaded) because such a component is already added to the game object!
[EXC 06:05:36.799] FieldAccessException: Cannot set a constant field
[EXC 06:05:36.802] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.803] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.805] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.806] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.818] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.819] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.820] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.820] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.825] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.826] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.827] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.827] NullReferenceException: Object reference not set to an instance of an object
[LOG 06:05:36.842] Can't add component 'Animation' to Herfrey Kerman (Unloaded) because such a component is already added to the game object!
[WRN 06:05:36.845] Part already contains resource 'EVA Propellant'
[WRN 06:05:36.846] Part already contains resource 'Oxygen'
[WRN 06:05:36.846] Part already contains resource 'CO2'
[EXC 06:05:36.921] FieldAccessException: Cannot set a constant field
[EXC 06:05:36.924] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.924] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.926] NullReferenceException: Object reference not set to an instance of an object
[EXC 06:05:36.927] NullReferenceException: Object reference not set to an instance of an object

-----------------------------(the unity debug_log.txt gets spammed with this)---------------------------------

Updating vessel 'Herfrey Kerman': 0 modules found

(Filename: C:/BuildAgent/work/ea95e74f6e5f192d/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)

Can't add component 'Animation' to Herfrey Kerman (Unloaded) because such a component is already added to the game object!

(Filename: Line: 79)

FieldAccessException: Cannot set a constant field
at System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

at System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) [0x00000] in <filename unknown>:0

at ProtoPartSnapshot.Load (.Vessel vesselRef, Boolean loadAsRootPart) [0x00000] in <filename unknown>:0

at ProtoVessel.LoadObjects () [0x00000] in <filename unknown>:0

at Vessel.Load () [0x00000] in <filename unknown>:0

at Vessel.Update () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at Part.ModulesOnStart () [0x00000] in <filename unknown>:0

at Part+.MoveNext () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at Part.ModulesOnStart () [0x00000] in <filename unknown>:0

at Part+.MoveNext () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at KerbalEVA.LateUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at KerbalEVA.LateUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

Updating vessel 'Herfrey Kerman': 0 modules found

(Filename: C:/BuildAgent/work/ea95e74f6e5f192d/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)

NullReferenceException: Object reference not set to an instance of an object
at PartBuoyancy.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at FlightIntegrator.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at KerbalEVA.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at KerbalEVA.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

Updating vessel 'Herfrey Kerman': 0 modules found

(Filename: C:/BuildAgent/work/ea95e74f6e5f192d/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)

NullReferenceException: Object reference not set to an instance of an object
at PartBuoyancy.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at FlightIntegrator.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at KerbalEVA.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object
at KerbalEVA.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

Can't add component 'Animation' to Herfrey Kerman (Unloaded) because such a component is already added to the game object!

and ofcourse while this is happening the kerbal is seen twisted into little pieces exploding anything that comes into contact with him

PS: i do not see any log showing that any of the two vessels are physics loaded so im thinking the nullrefs are overwhelming the gameengine from doing any other tasks

only way to end the two sets of constant spam loops above is to go to space center or end the game process

going to the space center produces this log after the loop

unity:



LifeSupportEVAModule::OnDestroy

(Filename: C:/BuildAgent/work/ea95e74f6e5f192d/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)

(Filename: Line: -1)

NullReferenceException
at (wrapper managed-to-native) UnityEngine.Component:InternalGetGameObject ()

at UnityEngine.Component.get_gameObject () [0x00000] in <filename unknown>:0

at MapView.OnDestroy () [0x00000] in <filename unknown>:0

LifeSupportEVAModule::OnDestroy

(Filename: C:/BuildAgent/work/ea95e74f6e5f192d/Runtime/ExportGenerated/StandalonePlayer/UnityEngineDebug.cpp Line: 54)

(Filename: Line: -1)
--snip--

ksp.log:


[LOG 06:11:46.834] LifeSupportEVAModule::OnDestroy
[EXC 06:11:46.840] NullReferenceException
[LOG 06:11:46.852] LifeSupportEVAModule::OnDestroy
--snip--
[LOG 06:11:46.989] LifeSupportEVAModule::OnDestroy
[LOG 06:11:46.990] LifeSupportMapView::OnDestroy
[LOG 06:11:46.990] LifeSupportMapView::OnDestroy1
[LOG 06:11:46.991] LifeSupportMapView::OnDestroy
[LOG 06:11:46.991] LifeSupportMapView::OnDestroy2
[LOG 06:11:46.992] LifeSupportMapView::OnDestroy3

terminating the eva'ed kerbal from the tracking center sometimes fixes the problem and whatever is left of the vessel the kerbal eva'ed from is left working as expected. sometimes the kerbal cant be terminated and you need to edit the persistent files or start a new game to fix it(or perhaps you can restart the game didnt try that)

it seems there has been made a change in 0.23 in how "eva vessels" are handeled and the code isnt able to retrieve the correct info from the api, then the inactive consumption module proceeds to try reference the nonexisting object(?)

i havent gotten started trying to debug the code yet(i dont know the api well enough i think to find out whats causing the error, but ill try)

i hope atleast this helps you narrow it down

sorry for the uber long post btw.. trying to summarize everything i can think of:P

if you want i can upload the whole logs but they are both several mb(thats a looot of text)

Btw i didnt experience this bug before trying to reproduce it now. dispite using eclss since 0.23 was released. I guess its because i never leave kerbals eva'ed

Edited by landeTLS
Link to comment
Share on other sites

Wow... I too experienced "The Thing" Kerbal style... I thought maybe it was KAS.

I'm also having another problem that seems to have stumped addon-affairs so im gonna give it a go here.

So im using the HGR "Spud" Lander pod for a lander. Now HGR had its own LS module in it, but I removed that for my "All-Pods-Have-ECLSS" module. And it works. The pod in the VAB has the O2 an cO2 it needs. But.. after docking the lander with the station around minmus.. it disappeared. Now only containing 1 02 and 1 c02.. idk what happened.

qDgQMdT.jpg?1

Ive been pulling my hair out over this for over an hour now. Ive tried re-installing the mod using the supplied LS module HGR has in it, but nothing.. This ladner is supposed to go to and from the surface carrying data.. simple as that. What could be going on here? Has anyone come across this before with ECLSS?

Other mods that pertain are maybe.. MFT, Lazor System ( just the plugin ), CrewManifest, .. and that's about all I can think of at the moment.

And.. having just discovered from my own picture.. cO2 IS working with the 600 capacity. But no O2..

Edited by Motokid600
Link to comment
Share on other sites

A shot in the dark, but looking at the source code and what landeTLS posted, could it be that components are added where they only need to be changed?

I doubt it. After countless hours of staring at the code and tracing all code paths I've concluded that the problem is connected to kerbal's FSM initialization, which fails only when the "vessel" is being loaded from persistence. Now I'm focusing on trying to figure out why it happens.

Link to comment
Share on other sites

I doubt it. After countless hours of staring at the code and tracing all code paths I've concluded that the problem is connected to kerbal's FSM initialization, which fails only when the "vessel" is being loaded from persistence. Now I'm focusing on trying to figure out why it happens.

Sounds right. Im thinking tho that its related to the fact that each time you go on eva you grab more and more eva propellant even if youre not using any(excess resource not being deposited from the eva vessel to the ship) . Im thinking its some eva vessel id issue.

Tho there is another issue. The "not being able to close the eclss gui" issue due to the close button being grayed out. This one im not sure if its related to the eva issue

Edited by landeTLS
Link to comment
Share on other sites

Tho there is another issue. The "not being able to close the eclss gui" issue due to the close button being grayed out. This one im not sure if its related to the eva issue

This is not a bug - I've made it that way. There is, however, a way to close it - I'll leave finding it to you as an excersize :)

Link to comment
Share on other sites

This is not a bug - I've made it that way. There is, however, a way to close it - I'll leave finding it to you as an excersize :)

O thats a feature then:D

I did figure out how to close it before but i dont recall how i did it. Perhaps ill try again.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...