Jump to content

[1.8-1.9] Modular Fuel Tanks v5.13.1


taniwha

Recommended Posts

It turns out I broke things in 5.9.1, but nothing /too/ serious: MFT tanks start out with no resources at all, but once filled, they work. Until I get it fixed (hopefully soon), you can use the auto-fill buttons in the PAW (right-click menu).

Edited by taniwha
Link to comment
Share on other sites

I think i mentioned something similar to this a while back but Nertea's Cryo engines call for a "cryogenic" tank that isn't define by MTF, 

He said he doesn't maintain the patch for mtf, so i didn't think mentioning it here would hurt, If i knew how to modify them i wouldn't have issues doing it but i'm not code literate at the this time.

Edited by Grease1991
Link to comment
Share on other sites

Is this TAC-LS issue because of a quirk with MFT? I'm not sure where to look:

Edit:

it seems that TAC-LS itself does this with GameData\ThunderAerospace\TacLifeSupportMFT\MM_AddResourcesMFT.cfg

actually I'm trying to create a patch for MFT

Edit:

I need help, I have problems with the recursion variable stuff in my try to create that patch:
GameData\ModularFuelTanks\TAC_LS_modularFuelTanks.cfg

@PART[*]:HAS[MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]:BEFORE[zzz_modularFuelTanks]
{
	!MODULE[ModuleFuelTanks] { }
	!TANK_DEFINITION[Default] { }
}

@PART[*]:HAS[!MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]:FOR[zzz_modularFuelTanks]
{
	MODULE
	{
		name = ModuleFuelTanks
		volume = 3.549
		@volume *= #$/CrewCapacity$
		type = Default
//		typeAvailable = LifeSupportAll
	}
	TANK_DEFINITION {
		name = Default
		basemass = 0.0003125 * #$/MODULE[ModuleFuelTanks]/volume$
	}
}

@PART[*]:HAS[MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels]:AFTER[zzz_modularFuelTanks]
{
	@MODULE[ModuleFuelTanks]
	{
		@volume += #$/RESOURCE[MonoPropellant]/maxAmount$
	}
}

@TANK_DEFINITION[Default]:NEEDS[modularFuelTanks|!RealFuels]
{
	@basemass = 0.0003125 * #$/MODULE[ModuleFuelTanks]/volume$
	TANK {
		name = MonoPropellant
		amount = 0
		@amount = #$../RESOURCE[MonoPropellant]/amount$
		maxamount = 0
		@maxamount = #$../RESOURCE[MonoPropellant]/maxAmount$
		note = Also MonoPropellant is needed to survive
	}
}

@PART[*]:HAS[MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels]:AFTER[zzz_modularFuelTanks]
{
	@MODULE[ModuleFuelTanks]
	{
		@volume += #$/RESOURCE[ElectricCharge]/maxAmount$
	}
}

@TANK_DEFINITION[Default]:NEEDS[modularFuelTanks|!RealFuels]
{
	@basemass = 0.0003125 * #$/MODULE[ModuleFuelTanks]/volume$
	TANK {
		name = ElectricCharge
		amount = 0
		@amount = #$../RESOURCE[ElectricCharge]/amount$
		maxamount = 0
		@maxamount = #$../RESOURCE[ElectricCharge]/maxAmount$
		note = Also ElectricCharge is needed to survive
	}
}

@PART[*]:HAS[MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]:AFTER[zzz_modularFuelTanks]
{
	@MODULE[ModuleFuelTanks]
	{
		@volume += #$/RESOURCE[Food]/maxAmount$
	}
}

@TANK_DEFINITION[Default]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]
{
	@basemass = 0.0003125 * #$/MODULE[ModuleFuelTanks]/volume$
	TANK {
		name = Food
		amount = 0
		@amount = #$../RESOURCE[Food]/amount$
		maxamount = 0
		@maxamount = #$../RESOURCE[Food]/maxAmount$
		note = (TAC Life Support Mod Required)
	}
}

@PART[*]:HAS[MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]:AFTER[zzz_modularFuelTanks]
{
	@MODULE[ModuleFuelTanks]
	{
		@volume += #$/RESOURCE[Water]/maxAmount$
	}
}

@TANK_DEFINITION[Default]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]
{
	@basemass = 0.0003125 * #$/MODULE[ModuleFuelTanks]/volume$
	TANK {
		name = Water
		amount = 0
		@amount = #$../RESOURCE[Water]/amount$
		maxamount = 0
		@maxamount = #$../RESOURCE[Water]/maxAmount$
		note = (TAC Life Support Mod Required)
	}
}

@PART[*]:HAS[MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]:AFTER[zzz_modularFuelTanks]
{
	@MODULE[ModuleFuelTanks]
	{
		@volume += #$/RESOURCE[Oxygen]/maxAmount$
	}
}

@TANK_DEFINITION[Default]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]
{
	@basemass = 0.0003125 * #$/MODULE[ModuleFuelTanks]/volume$
	TANK {
		name = Oxygen
		amount = 0
		@amount = #$../RESOURCE[Oxygen]/amount$
		maxamount = 0
		@maxamount = #$../RESOURCE[Oxygen]/maxAmount$
		note = (TAC Life Support Mod Required)
	}
}

@PART[*]:HAS[MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]:AFTER[zzz_modularFuelTanks]
{
	@MODULE[ModuleFuelTanks]
	{
		@volume += #$/RESOURCE[CarbonDioxide]/maxAmount$
	}
}

@TANK_DEFINITION[Default]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]
{
	@basemass = 0.0003125 * #$/MODULE[ModuleFuelTanks]/volume$
	TANK {
		name = CarbonDioxide
		amount = 0
		maxamount = 0
		@maxamount = #$../RESOURCE[CarbonDioxide]/maxAmount$
		note = (TAC Life Support Mod Required)
	}
}

@PART[*]:HAS[MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]:AFTER[zzz_modularFuelTanks]
{
	@MODULE[ModuleFuelTanks]
	{
		@volume += #$/RESOURCE[Waste]/maxAmount$
	}
}

@TANK_DEFINITION[Default]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]
{
	@basemass = 0.0003125 * #$/MODULE[ModuleFuelTanks]/volume$
	TANK {
		name = Waste
		amount = 0
		maxamount = 0
		@maxamount = #$../RESOURCE[Waste]/maxAmount$
		note = (TAC Life Support Mod Required)
	}
}

@PART[*]:HAS[MODULE[ModuleFuelTanks],@MODULE[ModuleCommand],#CrewCapacity[>0],~RSSROConfig[]]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]:AFTER[zzz_modularFuelTanks]
{
	@MODULE[ModuleFuelTanks]
	{
		@volume += #$/RESOURCE[WasteWater]/maxAmount$
	}
}

@TANK_DEFINITION[Default]:NEEDS[modularFuelTanks|!RealFuels,TacLifeSupport]
{
	@basemass = 0.0003125 * #$/MODULE[ModuleFuelTanks]/volume$
	TANK {
		name = WasteWater
		amount = 0
		maxamount = 0
		@maxamount = #$../RESOURCE[WasteWater]/maxAmount$
		note = (TAC Life Support Mod Required)
	}
}

// If tank volume is still zero than non of the above resources where present and we delete ModuleFuelTanks
@PART[*]:HAS[@MODULE[ModuleFuelTanks]:HAS[#volume[0]]]:FINAL
{
	!MODULE[ModuleFuelTanks] {}
	!TANK_DEFINITION[*] { }
}

It's the variants of
amount = #$../RESOURCE[MonoPropellant]/amount$
maxamount = #$../RESOURCE[MonoPropellant]/maxAmount$

I tried

  • without ../
  • with ../
  • with ../../
  • with ../../../

I'm lost now.

Edited by Gordon Dry
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 3 weeks later...
  • 2 weeks later...

3 MM errors. related to MFTX_ModularFuelTanks.cfg

 

Spoiler

[ERR 00:06:48.878] [ModuleManager] Error - more than one pass specifier on a node: MunarIndustries/MFTX_ModularFuelTanks/@PART[MI*]:FOR[MunarIndustries]:HAS[@RESOURCE[LiquidFuel],@RESOURCE[Oxidizer],!MODULE[ModuleFuelTanks]]:AFTER[ModularFuelTanks]
 

my bad, this was meant for Fuel Tank Expansion Rebuilt

Edited by Jesusthebird
durp
Link to comment
Share on other sites

However, it is just a message to not be surprised if there are problems, not a guarantee that there will be problems. There is one problem, mostly harmless, in that the editor filter doesn't get setup correctly. I have it fixed locally but have not had the time to do a release.

This means that despite the warning (and the NRE on entry to the editor), MFT 5.9.1 does work in 1.3.1.

Link to comment
Share on other sites

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