KSP Interstellar Extended

KSP Interstellar Extended

1M Downloads

Dry cost on switched parts and cost scaling seems incorrect

JonnyOThan opened this issue · 4 comments

commented

https://github.com/sswelm/KSP-Interstellar-Extended/blob/8a55a180d0f940510ffc508df90e915c05dd81b8/FuelSwitch/InterstellarFuelSwitch.cs#L941C106-L941C106

I don't understand the logic behind this line...if you switch a FL-t400 tank to monoprop, it costs 536 funds dry (why? a dry fl-t400 with LFOX costs 316). Then scaling it up to 2.5m (2x linear scale, 8x volume scale) makes it cost 3531. This is the result of 316.4 * 8 + 500*2. I would have expected the cost to be either 2531 (if the unscaled cost is supposed to be 316), or 4288 (if the unscaled cost really is supposed to be 536). Or maybe even 536 + 1500 or something (if you're trying to make the dry cost scale with the surface area).

commented

The code may look weird but originaly its was is to compensate for Tweaksize scaling.

commented
commented

Well sure, but the behavior I described is with tweakscale installed (and IFS depends on tweakscale in ckan at least). So is there a bug here, or in tweakscale?

is the dry coat supposed to increase with scale factor squared or cubed?

commented

Well my main concern was wether or not it worked orrectly for the realy expansive containers, like with antimatter. By default cost grows by cube, but for some realy cheap resources this was different. By I admit I forgot the exact intricaties. Just know that if you want to use or modify it, you need to test it with a wide variarity of containers and resources.