TAC Life Support

TAC Life Support

347k Downloads

Missing kerbalEVAVintage and kerbalEVAfemaleVintage

linuxgurugamer opened this issue ยท 7 comments

commented

The expansion added these two new kerbal parts, you don't have them in the code as of now, at this location:

IEnumerable<AvailablePart> evaParts = PartLoader.LoadedPartsList.Where(p => p.name.Contains("kerbalEVA"));

I also didn't see the kerbalEVAfemale there

commented

Yeah they should try using null checks.

commented

because that's not how it works.
There was an issue regarding MH kerbals if you didn't have MH installed which has already been fixed.

commented

how does it work? Maybe you could provide some insight into this problem.

commented

And I see that I misread the line, sorry for the false alarm

commented

What was the issue about missing MH kerbals, apparently one of my mods is running up against that as well.
Thanks

commented

PartLoader.LoadedPartsList contains a reference to the Kerbal prefabs for Making History even if they are not installed.
So you have to null check them.
OR... you can just use MM to amend the Prebuilt parts in stock and MH and not have to do it in code.
TAC LS doesn't do that because it adds different resource amounts to the Kerbal parts depending on user settings.

commented

Thanks.