Jump to content

[1.8.1 - 1.12.5] Interstellar Fuel Switch (IFS) 3.29.5


FreeThinker

Recommended Posts

2 minutes ago, Gordon Dry said:

@FletcherDragon da fuq - there is a Spacedock link? No sign of it on the OP or the update announcement post.

Spacedock is so specialised for kerbal mods. Because of this mod makers don't always announce updates on it because it has far less exposure to the masses. Its far more likely to reach more people on curse than spacedock.

But of course I can only guess at the mod makers motivations.

Link to comment
Share on other sites

@FletcherDragon imho Curse is the worst, it does not support download manager addons etc.
I like to have the original timestamp on downloaded files, and the "native" download of the browser (which is supported by Curse) does not take the timestamp from the server.
I prefer Spacedock over Curse.
I prefer a well looked after Github release page over Spacedock.

Link to comment
Share on other sites

1 minute ago, Gordon Dry said:

I prefer Spacedock over Curse.
I prefer a well looked after Github release page over Spacedock.

Very much agreed. I signed up just to watch mods update.. 
However... literally the only reason I touch Github is to grab USI-LS when the version changes.

Link to comment
Share on other sites

On 12/21/2018 at 12:37 PM, FreeThinker said:
@Gordon Dry I added IFSinfoPopup  which function exactly like FSinfoPopup, except it will persists its window position, can handle multiple instances and the InfoButton is always visible and allows disabling the associated window. Let me know if it works as desired

I just recognized that I never replied to this ...

Yes, it works.

Link to comment
Share on other sites

Has anyone else had issues where you select 'switch tank' from the menu, change a tank to one of the other options, and it looks fine in the VAB, but once you get to the pad, or while in flight, it shows the original contents? For example I was changing a stock LFO tank to hold hydrazine for some new thrusters. Looks fine in the VAB, but once the vessel is moved to the pad, the tank now shows a full load of LFO, and my thrusters don't work, because they don't have the right fuel. Same holds true if I go with stock thrusters, and change the tank to monoprop.

 

Link to comment
Share on other sites

  • 2 weeks later...

@FreeThinker

Tried installing IFS on a new 1.8.1, along with Colorful Fuel Lines from @NecroBones

Got the following error:

AssemblyLoader: Exception loading 'InterstellarFuelSwitch': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader.LoadAssemblies () [0x000e6] in <9d71e4043e394d78a6cf9193ad011698>:0 

and it wasn't working when I tested.

Here is the full log file: https://www.dropbox.com/s/5adjj3b4gbvs6nz/IFS Error.zip?dl=0

Edited by linuxgurugamer
Link to comment
Share on other sites

Hello,

4 hours ago, linuxgurugamer said:

@FreeThinker

Tried installing IFS on a new 1.8.1, along with Colorful Fuel Lines from @NecroBones

Got the following error:


AssemblyLoader: Exception loading 'InterstellarFuelSwitch': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader.LoadAssemblies () [0x000e6] in <9d71e4043e394d78a6cf9193ad011698>:0 

and it wasn't working when I tested.

Here is the full log file: https://www.dropbox.com/s/5adjj3b4gbvs6nz/IFS Error.zip?dl=0


Hello @linuxgurugamer, the add-on developer record breaker ;) I think that I have more add-ons from you and freethinker and read more posts than any one :)

"Sharing my experience, with those errors:", because I also had that problem too, the installation that you have is in a very bad shape mostly because:
ModuleManager.4.1.2.dll if you roll back to ModuleManager.4.1.1.dll

All of this should disaperar and ModuleManager.4.1.1.dll work really well on 1.8.1 and I have 70 addons.
  UnityEngine.DebugLogHandler:LogException(Exception, Object)
        ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)

About the InterstellarFuelSwitch, It's very strange, but most certain is not InterstellarFuelSwitch, that is working really fine, in my installation.
I also had that error in early days of 1.8.1 but don't remind how solve it, but it was another add-on conflict.

Let's wait and see what freethinker have to say, I hope i had helped.

Link to comment
Share on other sites

15 hours ago, pmborg said:

Hello @linuxgurugamer, the add-on developer record breaker ;) I think that I have more add-ons from you and freethinker and read more posts than any one :)

"Sharing my experience, with those errors:", because I also had that problem too, the installation that you have is in a very bad shape mostly because:
ModuleManager.4.1.2.dll if you roll back to ModuleManager.4.1.1.dll

All of this should disaperar and ModuleManager.4.1.1.dll work really well on 1.8.1 and I have 70 addons.
  UnityEngine.DebugLogHandler:LogException(Exception, Object)
        ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)

I posted in MM thread about this but it is quite unlikely that MM 4.1.2 break anything. You see the "ModuleManager.UnityLogHandle.InterceptLogHandler:LogException" because an other mod did not catch an Exception and that MM version has some code that intercepts unhanded Exception to diagnose them. I can not look at the dropbox file from work but I suspect there is a useful line just after that Exception.

Link to comment
Share on other sites

IFS/KSPI-E is still breaking some things in two of my mods (Dynamic Battery Storage and Cryo Tanks) because it's using the CryoTanks module specification incorrectly. I thought we had solved this but it looks like this is still happening in the latest master from your git.

Specifically, here. Please review the CT documentation.

In summary, the issues are:

  • You should not use multiple instance of ModuleCryoTank, for multiple resources use several BoiloffConfigs. Your example uses a different module for each fuel, which is not good. 
  • If you must use multiple instances of ModuleCryoTank (not recommended for performance reasons) they need to have a unique moduleID
Edited by Nertea
Link to comment
Share on other sites

15 hours ago, Nertea said:

IFS/KSPI-E is still breaking some things in two of my mods (Dynamic Battery Storage and Cryo Tanks) because it's using the CryoTanks module specification incorrectly. I thought we had solved this but it looks like this is still happening in the latest master from your git.

Specifically, here. Please review the CT documentation.

In summary, the issues are:

  • You should not use multiple instance of ModuleCryoTank, for multiple resources use several BoiloffConfigs. Your example uses a different module for each fuel, which is not good. 
  • If you must use multiple instances of ModuleCryoTank (not recommended for performance reasons) they need to have a unique moduleID

Oh, I wasn't aware you could put multiple configs on a single partmodule, that indeed better. I beleive I copied this config from your own mod, so perhaps you want to verify them yourself aswel

Link to comment
Share on other sites

8 hours ago, FreeThinker said:

Oh, I wasn't aware you could put multiple configs on a single partmodule, that indeed better. I beleive I copied this config from your own mod, so perhaps you want to verify them yourself aswel

It does look like you copied the whole config file, but then you replicated the whole partmodule versus just the config :). 

Link to comment
Share on other sites

  • 1 month later...

How do I figure out how to unlock other fuel types?

I'm sure this has been answered elsewhere, but I can't find an answer after searching for a while.

I'm stuck with LFO, LF & O, as the three fuel types my tanks can switch between. I've unlocked LH2O engines, but can't select that fuel type for my tanks. I've opened sandbox, and the full selection is working fine there, so I guess it's a tech unlock issue. However after trolling through a couple dozen likely looking tech nodes, can't find which ones unlock new fuel types for tanks.

Does anyone know where I could find this out? Maybe which config files to look for to find where the tank type unlocks are set?

Link to comment
Share on other sites

On 1/16/2020 at 6:41 PM, Snoman314 said:

How do I figure out how to unlock other fuel types?

I'm sure this has been answered elsewhere, but I can't find an answer after searching for a while.

I'm stuck with LFO, LF & O, as the three fuel types my tanks can switch between. I've unlocked LH2O engines, but can't select that fuel type for my tanks. I've opened sandbox, and the full selection is working fine there, so I guess it's a tech unlock issue. However after trolling through a couple dozen likely looking tech nodes, can't find which ones unlock new fuel types for tanks.

Does anyone know where I could find this out? Maybe which config files to look for to find where the tank type unlocks are set?

What version of IFS are you using? In an ongoing career save (1.8.1), after coming back from a month or so off, and updating a few mods via CKAN, I noticed that I had craft with tanks that should have been loaded with LH2 and Oxidizer that had either no LH2, or would have LH2, LF and Oxi,. And like in your situation, you could no longer change the fuel types on many tanks.  After a few hours of troubleshooting, I figured out that if I rolled IFS back to a version older than 3.13.3.5  everything works as expected.  I tested 3.13.0.5 and 3.13.2.5, and they both seem ok.  Its worth a shot.

Link to comment
Share on other sites

6 hours ago, Jade_Falcon said:

What version of IFS are you using? In an ongoing career save (1.8.1), after coming back from a month or so off, and updating a few mods via CKAN, I noticed that I had craft with tanks that should have been loaded with LH2 and Oxidizer that had either no LH2, or would have LH2, LF and Oxi,. And like in your situation, you could no longer change the fuel types on many tanks.  After a few hours of troubleshooting, I figured out that if I rolled IFS back to a version older than 3.13.3.5  everything works as expected.  I tested 3.13.0.5 and 3.13.2.5, and they both seem ok.  Its worth a shot.

After trying to figure it out for a couple of evenings I gave up and installed modular fuel tanks so I could play again. I was using 3.13.3.5, so I'll give an older version a try, thanks.

Link to comment
Share on other sites

  • 2 weeks later...

 

@FreeThinker I just returned to KSP, have not been playing since version 1.4.5....

I have a personal mod, which add's fuel switch to all kinds of different tanks, but it does not seem to work anymore. As far as I can see, the "InterstellarFuelSwitch" node is applied to the parts - go MM - but I get no switching feature in game. I guessing that something in InterstellarFuelSwitch has changed since I used it last, and am hoping you could point it out to me.

My MM

@PART[*]:HAS[@RESOURCE[LiquidFuel],@RESOURCE[Oxidizer],!RESOURCE[MonoPropellant]&!MODULE[InterstellarFuelSwitch]&!MODULE[FSfuelSwitch]]:NEEDS[InterstellarFuelSwitch]:FOR[GTI]
{
	%LF = #$RESOURCE[LiquidFuel]/maxAmount$
	%OX = #$RESOURCE[Oxidizer]/maxAmount$
	%totalCap = #$RESOURCE[LiquidFuel]/maxAmount$
	@totalCap += #$RESOURCE[Oxidizer]/maxAmount$
	
	%LFORE = #$totalCap$
	@LFORE *= 3
	@LFORE /= 5.7
	%ORELF = #$totalCap$
	@ORELF *= 2.7
	@ORELF /= 5.7
	
	%LFDG = #$totalCap$
	
	%DGLF = #$totalCap$
	@DGLF /= 8
	
	MODULE
	{
		name = InterstellarFuelSwitch
		
		tankSwitchNames = LiquidFuel,Oxidizer;LiquidFuel;LiquidFuel,Ore;LiquidFuel,DarkGoo;MonoPropellant;Structural
		resourceGui = LiquidFuel, Oxidizer;LiquidFuel;LiquidFuel, Ore;LiquidFuel, Dark Goo;MonoPropellant;Structural
		resourceNames = LiquidFuel,Oxidizer;LiquidFuel;LiquidFuel,Ore;LiquidFuel,DarkGoo;MonoPropellant;Structural
		initialResourceAmounts = #$../LF$,$../OX$;$../totalCap$;$../LFORE$,$../ORELF$;$../LFDG$,0;$../totalCap$;0
		resourceAmounts = #$../LF$,$../OX$;$../totalCap$;$../LFORE$,$../ORELF$;$../LFDG$,$../DGLF$;$../totalCap$;0
		
		//basePartMass = 2
		
		availableInFlight = true
		availableInEditor = true
		inFlightSwitchingTechReq = highPerformanceFuelSystems
		
		displayCurrentTankCost = false
		hasGUI = true
		showInfo = true
		hasSwitchChooseOption = true
	}
}

 

The result in the config file (example)

MODULE
{
  name = InterstellarFuelSwitch
  tankSwitchNames = LiquidFuel,Oxidizer;LiquidFuel;LiquidFuel,Ore;LiquidFuel,DarkGoo;MonoPropellant;Structural
  resourceGui = LiquidFuel, Oxidizer;LiquidFuel;LiquidFuel, Ore;LiquidFuel, Dark Goo;MonoPropellant;Structural
  resourceNames = LiquidFuel,Oxidizer;LiquidFuel;LiquidFuel,Ore;LiquidFuel,DarkGoo;MonoPropellant;Structural
  initialResourceAmounts = 45,55;100;52.6315789473684,47.3684210526316;100,0;100;0
  resourceAmounts = 45,55;100;52.6315789473684,47.3684210526316;100,12.5;100;0
  availableInFlight = true
  availableInEditor = true
  inFlightSwitchingTechReq = highPerformanceFuelSystems
  displayCurrentTankCost = false
  hasGUI = true
  showInfo = true
}

Or the full example of the FL-T100 Fuel Tank

Spoiler

UrlConfig
{
	parentUrl = Squad/Parts/FuelTank/Size1_Tanks/fuelTankT100.cfg
	PART
	{
		name = fuelTankSmallFlat
		module = Part
		author = RoverDude
		rescaleFactor = 1.0
		node_stack_top = 0.0, 0.3125, 0.0, 0.0, 1.0, 0.0, 1
		node_stack_bottom = 0.0, -0.3125, 0.0, 0.0, -1.0, 0.0, 1
		node_attach = 0.625, 0.0, 0.0, 1.0, 0.0, 0.0
		TechRequired = basicRocketry
		entryCost = 1200
		cost = 150
		category = FuelTank
		subcategory = 0
		title = FL-T100 Fuel Tank
		manufacturer = Jebediah Kerman's Junkyard and Spacecraft Parts Co
		description = The T100 is a miniature fuel tank made to be even more adorable than its bigger brother, the T200. Handle stoically and with care.
		attachRules = 1,1,1,1,0
		mass = 0.0625
		dragModelType = default
		maximum_drag = 0.2
		minimum_drag = 0.2
		angularDrag = 2
		crashTolerance = 6
		maxTemp = 2000
		breakingForce = 50
		breakingTorque = 50
		bulkheadProfiles = size1, srf
		tags = fueltank ?lfo liquid oxidizer propellant rocket
		MODEL
		{
			model = Squad/Parts/FuelTank/Size1_Tanks/Size1Tank_01
		}
		RESOURCE
		{
			name = LiquidFuel
			amount = 45
			maxAmount = 45
		}
		RESOURCE
		{
			name = Oxidizer
			amount = 55
			maxAmount = 55
		}
		MODULE
		{
			name = ModulePartVariants
			primaryColor = #4c4f47
			secondaryColor = #4c4f47
			baseDisplayName = Dark
			baseThemeName = Dark
			VARIANT
			{
				name = BlackAndWhite
				displayName = Black and White
				themeName = BlackAndWhite
				primaryColor = #ffffff
				secondaryColor = #000000
				TEXTURE
				{
					mainTextureURL = Squad/Parts/FuelTank/Size1_Tanks/125Tanks_BW
					_BumpMap = Squad/Parts/FuelTank/Size1_Tanks/125Tanks_N
					shader = KSP/Bumped Specular
				}
			}
			VARIANT
			{
				name = White
				displayName = White
				themeName = White
				primaryColor = #ffffff
				secondaryColor = #ffffff
				TEXTURE
				{
					mainTextureURL = Squad/Parts/FuelTank/Size1_Tanks/125Tanks_W
					shader = KSP/Specular
				}
			}
			VARIANT
			{
				name = GrayAndOrange
				displayName = Gray and Orange
				themeName = GrayAndOrange
				primaryColor = #4c4f47
				secondaryColor = #f49841
				TEXTURE
				{
					mainTextureURL = Squad/Parts/FuelTank/Size1_Tanks/125Tanks_O
					shader = KSP/Specular
				}
			}
		}
		MODULE
		{
			name = ModuleAGX
		}
		MODULE
		{
			name = KRnDModule
		}
		MODULE
		{
			name = InterstellarFuelSwitch
			tankSwitchNames = LiquidFuel,Oxidizer;LiquidFuel;LiquidFuel,Ore;LiquidFuel,DarkGoo;MonoPropellant;Structural
			resourceGui = LiquidFuel, Oxidizer;LiquidFuel;LiquidFuel, Ore;LiquidFuel, Dark Goo;MonoPropellant;Structural
			resourceNames = LiquidFuel,Oxidizer;LiquidFuel;LiquidFuel,Ore;LiquidFuel,DarkGoo;MonoPropellant;Structural
			initialResourceAmounts = 45,55;100;52.6315789473684,47.3684210526316;100,0;100;0
			resourceAmounts = 45,55;100;52.6315789473684,47.3684210526316;100,12.5;100;0
			availableInFlight = true
			availableInEditor = true
			inFlightSwitchingTechReq = highPerformanceFuelSystems
			displayCurrentTankCost = false
			hasGUI = true
			showInfo = true
		}
	}
}

 

 

I do get an exception which might be related, but I can't tell

Spoiler

[EXC 19:43:39.894] Add to mod list threw an exception in loading InterstellarFuelSwitch, Version=3.13.0.5, Culture=neutral, PublicKeyToken=null: System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at ModuleManager.ModListGenerator.GetAdditionalModsFromStaticMethods (ModuleManager.Logging.IBasicLogger logger) [0x00021] in <6cc6df54448a4c2b97e086234872a67b>:0 

 

[EXC 19:45:04.365] [ModuleManager] Post run call threw an exception in loading InterstellarFuelSwitch, Version=3.13.0.5, Culture=neutral, PublicKeyToken=null: System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at ModuleManager.PostPatchLoader+<Run>d__16.MoveNext () [0x0052c] in <6cc6df54448a4c2b97e086234872a67b>:0 
 

 

 

KSP Log if needed: Log File

Link to comment
Share on other sites

13 hours ago, FreeThinker said:

mmm, not sure but is should still work. Are you sure you have loaded the right version?  perhaps removing Structural will help

Ok, I just got the latest one again. Noticed that I had to go to the section for older versions, since the main link get's the old 1.13.0 version - now I have the 1.13.3 version for 1.8.1. However, it seems it is maybe not loading correctly?

I just noticed in the mod section of the log, it is not listed - which could explain why modulemanager fail when it tries to add it to the mod list....??? I wonder what could do this... It is compiled against the right version right? (guessing it is a stupid question...)

 

Regarding the Structural, this always worked in the past though... Are you sure is should here?

EDIT: Just tested against a clean install. Only my MM and Interstellar... Same result, so it should not be a mod incompatibility thing.

EDIT 2: I found it. I had not installed the "999_Scale_Redist.dll" file..... My bad!

Thanks for your help!

Edited by Warezcrawler
Link to comment
Share on other sites

20 hours ago, Warezcrawler said:

EDIT 2: I found it. I had not installed the "999_Scale_Redist.dll" file..... My bad!

Thanks for your help!

Yes that explains it, IFS has a hard dependancy on 999_Scale_Redist.dll  which if it isn't avaiable will not be able to load properly

Link to comment
Share on other sites

Hey, I installed the update of this and KSPIE today from the last versions and am running 1.8.1. All of my crafts will disappear because part "EC2502" is missing according to the game. Was that part of this mod?

Edit: Confirmed it was part of this mod. CKAN (for whatever reason) installed an older version and manually changing it to the latest fixed the problem.

Edited by shifty303
Figured it out
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...