Jump to content

Basic cfg Mod the Mod question


Businfu

Recommended Posts

EDIT: Finished this project and playtested. Makes for an awesomely fun, challenging and balanced early Career mode. For anyone interested, mod list is very simple: InterstellarLS, DRE, Tantares. Follow this link to my post on tantares page for the cfgs: http://forum.kerbalspaceprogram.com/threads/81537-0-90-Tantares-Stockalike-Soyuz-and-MIR-12-3-2-Crew-1-25m-Pod-Fuji-Re-Dev%21?p=1612021#post1612021

note: I also tweaked some stuff in DRE so the decouplers aren't so OP compared to stock, and so that heatsheilds can't be exploited for staging at start.

Starting up a new pseudo-realistic Career on Hard with a handful of mods, two of which are Interstellar (life support interstellar) and Tantares Space Exploration which gives some interesting early game pods and station parts.

I wanted to add some additional built in life support capacity to some of the early station parts to make their gameplay more meaningful & interesting. There is a cfg titled ModuleManader_ADD_IFL.cfg that adds basic functionality to any parts based on number of crew. I wanted to add specific amounts to specific parts. I can see that DRE does a similar thing in the following format:

@PART[noseCone]

{

@maxTemp = 1250 // 1700

MODULE

{

name = ModuleHeatShield

direction = 0, 0, 0 // full-surface coating

reflective = 0.1

}

}

The format for the Interstellar cfg is different, and I'm worried about conflicts with the existing module. I don't have experience with how the formatting and stuff works so I'm not sure how to go about this. Any help or links would be appreciated!

Edited by Businfu
Link to comment
Share on other sites

You might try something like

@PART[your part name]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]

RESOURCE
{
name = LifeSupport
amount = * <----- what you want
maxAmount = * <----- what you want
}
}

EDIT- Yes that would be better thanks NathanKell but don't the !RESOURCE if it's missing ?

Edited by Mecripp2
Link to comment
Share on other sites

Ok, so thanks for the help guys, it worked but not completely. There is a cfg built in for InterstellarLS that adds LifeSupport based on number of crew and it seems to be overriding this cfg (ill include it at the bottom). The following config works but only for the uncrewed modules


@PART[Tantares_Orbital_A]:HAS[!RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 6
maxAmount = 6
}
}




@PART[Alnair_Orbital_*]:HAS[!RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 18
maxAmount = 18
}
}

@PART[Hamal_Orbital_A]:HAS[!RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 18
maxAmount = 18
}
}


@PART[Vega_Crew_A]:HAS[!RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 15
maxAmount = 15
}
}




@PART[Vega_Crew_B]:HAS[!RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 15
maxAmount = 15
}
}


@PART[Vega_Crew_C]:HAS[!RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 27
maxAmount = 27
}
}


@PART[Libra_Crew_A]:HAS[!RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 18

Is there a way to override the following config which came with interstellarLS or do I need to go through each manned pod individually?


@PART
[*]:HAS[~CrewCapacity[0],#CrewCapacity
[*],!MODULE[IFILifeSupport]]
{
MODULE
{
name = IFILifeSupport
}


}
@PART
[*]:HAS[#CrewCapacity[1],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 3
maxAmount = 3
}
}
@PART
[*]:HAS[#CrewCapacity[2],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 6
maxAmount = 6
}
}
@PART
[*]:HAS[#CrewCapacity[3],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 9
maxAmount = 9
}
}
@PART
[*]:HAS[#CrewCapacity[4],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 12
maxAmount = 12
}
}
@PART
[*]:HAS[#CrewCapacity[5],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 15
maxAmount = 15
}
}
@PART
[*]:HAS[#CrewCapacity[6],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 18
maxAmount = 18
}
}
@PART
[*]:HAS[#CrewCapacity[7],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 21
maxAmount = 21
}
}
@PART
[*]:HAS[#CrewCapacity[8],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 24
maxAmount = 24
}
}
@PART
[*]:HAS[#CrewCapacity[9],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 30
maxAmount = 30
}
}
@PART
[*]:HAS[#CrewCapacity[10],!RESOURCE[LifeSupport]]
{

RESOURCE
{
name = LifeSupport
amount = 33
maxAmount = 33
}
}

EDIT: I tried deleting the config entirely and that resulting in nothing having any life support

Edited by Businfu
Link to comment
Share on other sites

You need the bottom cfg it's just getting the top to override what you want.

@PART[Tantares_Orbital_A]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 6
maxAmount = 6
}
}

@PART[Alnair_Orbital_*]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 18
maxAmount = 18
}
}

@PART[Hamal_Orbital_A]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 18
maxAmount = 18
}
}

@PART[Vega_Crew_A]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 15
maxAmount = 15
}
}

@PART[Vega_Crew_B]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 15
maxAmount = 15
}
}

@PART[Vega_Crew_C]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = 27
maxAmount = 27
}
}

Missing the lower half of there post but this didn't work ?

Link to comment
Share on other sites

Yep I entered that verbatim, with @ instead of !. With @, crewed parts have the values assigned by the interstellar LS config, and uncrewed parts have no life support. With a !, crewed parts are also the Intersteller LS value, but uncrewed parts show up correctly with the value of LS that I entered in my config...

Of course, I'm a newb at this and I don't actually know what the symbols specifically do..? I assume that ! creates the resource if its not there, and @ is supposed to replace it if it's already there? I checked a couple CFG tutorial pages on the wiki but didn't see that part, I'd love a link if you have it.

Link to comment
Share on other sites

Yep I entered that verbatim, with @ instead of !. With @, crewed parts have the values assigned by the interstellar LS config, and uncrewed parts have no life support. With a !, crewed parts are also the Intersteller LS value, but uncrewed parts show up correctly with the value of LS that I entered in my config...

Of course, I'm a newb at this and I don't actually know what the symbols specifically do..? I assume that ! creates the resource if its not there, and @ is supposed to replace it if it's already there? I checked a couple CFG tutorial pages on the wiki but didn't see that part, I'd love a link if you have it.

As far as, I thought ! was if it was missing @ if it's there but might need a little more help the % will add if not there and change if it is

@PART[Tantares_Orbital_A]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
%RESOURCE
{
name = LifeSupport
amount = 6
maxAmount = 6
}
}

@PART[Alnair_Orbital_*]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
%RESOURCE
{
name = LifeSupport
amount = 18
maxAmount = 18
}
}

@PART[Hamal_Orbital_A]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
%RESOURCE
{
name = LifeSupport
amount = 18
maxAmount = 18
}
}

@PART[Vega_Crew_A]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
%RESOURCE
{
name = LifeSupport
amount = 15
maxAmount = 15
}
}

@PART[Vega_Crew_B]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
%RESOURCE
{
name = LifeSupport
amount = 15
maxAmount = 15
}
}

@PART[Vega_Crew_C]:HAS[@RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
%RESOURCE
{
name = LifeSupport
amount = 27
maxAmount = 27
}
}

Link to comment
Share on other sites

Aha! That did it! And so I'm assuming if the part doesn't already have life support, the syntax is:


@PART[part name]:HAS[!RESOURCE[LifeSupport]]:AFTER[IFILifeSupport]
{
RESOURCE
{
name = LifeSupport
amount = number
maxAmount = number
}
}

Thanks a bunch to both of you guys, I'll work the numbers out and pass on the config in case others want it as well. Nathan your mods are incredible by the way. DRE should be stock...

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