Jump to content

Add life support to NFT mk3-9. Need help


Sokar408

Recommended Posts

Can anyone tell me why this isn't working?

// Adds life support to NFT Mk3 pod

@PART[mk3-9pod]:FINAL
{
RESOURCE
{
name = Food
amount = 1.097
maxAmount = 1.097
@amount *= 2
@maxAmount *= 2
}
RESOURCE
{
name = Water
amount = 0.725
maxAmount = 0.725
@amount *= 2
@maxAmount *= 2
}
RESOURCE
{
name = Oxygen
amount = 111.038
maxAmount = 111.038
@amount *= 2
@maxAmount *= 2
}
RESOURCE
{
name = CarbonDioxide
amount = 0
maxAmount = 95.913
@maxAmount *= 2
}
RESOURCE
{
name = Waste
amount = 0
maxAmount = 0.1
@maxAmount *= 2
}
RESOURCE
{
name = WasteWater
amount = 0
maxAmount = 0.924
@maxAmount *= 2
}
}

To my knowledge this should add the lifesupport resources to the pod, but for some reason it doesn't.

Link to comment
Share on other sites

Make sure that you have TACLS installed. I also have the Mk3-9 pod, but it includes 2 days of LS without having to add anything.

Lemme check my file real quick though.

Edit: OK... pulled up the part, doesnt show. HOWEVER, TACLS does include a config that will automatically add LS to anything that is crewed. Its located in the folder of TACLS, titled MM_AddResources.cfg. If you do not have this file, try adding this to a cfg file

// Add life support resources to every command pod with crew capacity and minimum crew > 0, unless it already has Food.
@PART[*]:HAS[#CrewCapacity[>0],@MODULE[ModuleCommand]:HAS[#minimumCrew[>0]],!RESOURCE[Food]]:FOR[TacLifeSupport]
{
RESOURCE
{
name = Food
amount = 1.097
maxAmount = 1.097
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Water
amount = 0.725
maxAmount = 0.725
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Oxygen
amount = 111.038
maxAmount = 111.038
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = CarbonDioxide
amount = 0
maxAmount = 95.913
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Waste
amount = 0
maxAmount = 0.1
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = WasteWater
amount = 0
maxAmount = 0.924
@maxAmount *= #$/CrewCapacity$
}
}

Edited by Sovek
Link to comment
Share on other sites

Make sure that you have TACLS installed. I also have the Mk3-9 pod, but it includes 2 days of LS without having to add anything.

Lemme check my file real quick though.

Edit: OK... pulled up the part, doesnt show. HOWEVER, TACLS does include a config that will automatically add LS to anything that is crewed. Its located in the folder of TACLS, titled MM_AddResources.cfg. If you do not have this file, try adding this to a cfg file

// Add life support resources to every command pod with crew capacity and minimum crew > 0, unless it already has Food.
@PART[*]:HAS[#CrewCapacity[>0],@MODULE[ModuleCommand]:HAS[#minimumCrew[>0]],!RESOURCE[Food]]:FOR[TacLifeSupport]
{
RESOURCE
{
name = Food
amount = 1.097
maxAmount = 1.097
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Water
amount = 0.725
maxAmount = 0.725
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Oxygen
amount = 111.038
maxAmount = 111.038
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = CarbonDioxide
amount = 0
maxAmount = 95.913
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Waste
amount = 0
maxAmount = 0.1
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = WasteWater
amount = 0
maxAmount = 0.924
@maxAmount *= #$/CrewCapacity$
}
}

I have this ofc, as it comes with the mod, however the mk3-9 pod for some reason doesn't get any. I'm assuming its because its doubling as probe core, and has a minimum crew = 0.

*= just multiplies the defined amount. There is no need to do that if you are defining the amount, just double the number. It's just shorthand for x = x * 2

I did this because the code it copied and only slightly modified from the file that comes with TACLS, use usually looks like what Sovek linked.

Link to comment
Share on other sites

All you have to do is change minimumCrew = 0 to minimumCrew = 1, and you'll have life support.

Otherwise,if you still want to use it as probe core,then you need the whole patch.


@PART[mk3-9pod]:FOR[TacLifeSupport]
{
RESOURCE
{
name = Food
amount = 1.097
maxAmount = 1.097
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Water
amount = 0.725
maxAmount = 0.725
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Oxygen
amount = 111.038
maxAmount = 111.038
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = CarbonDioxide
amount = 0
maxAmount = 95.913
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Waste
amount = 0
maxAmount = 0.1
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = WasteWater
amount = 0
maxAmount = 0.924
@maxAmount *= #$/CrewCapacity$
}
}

Edited by sebi.zzr
Link to comment
Share on other sites

All you have to do is change minimumCrew = 0 to minimumCrew = 1, and you'll have life support.

Otherwise,if you still want to use it as probe core,then you need the whole patch.


@PART[mk3-9pod]:FOR[TacLifeSupport]
{
RESOURCE
{
name = Food
amount = 1.097
maxAmount = 1.097
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Water
amount = 0.725
maxAmount = 0.725
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Oxygen
amount = 111.038
maxAmount = 111.038
@amount *= #$/CrewCapacity$
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = CarbonDioxide
amount = 0
maxAmount = 95.913
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = Waste
amount = 0
maxAmount = 0.1
@maxAmount *= #$/CrewCapacity$
}
RESOURCE
{
name = WasteWater
amount = 0
maxAmount = 0.924
@maxAmount *= #$/CrewCapacity$
}
}

That was the first thing I tried. It didn't work, and I assumed it might be because of the "#$/CrewCapacity$" modifier, as minimum crew = 0, hence the changes you see in my version of the code.

EDIT: Problem found. Turns out I had forgotten a "}" in a previous entry.

Edited by Sokar408
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...