Some antimatter containers extremely expensive while empty.
embermctillhawk opened this issue ยท 6 comments
KSP 1.10.1.2939
KSPIE 1.25.27
AntiProton Bose Einstein Condensate (AP-BEC-3)
costs $6,029,999, empty.
With tech level 5, it can store 60,000 units of Antimatter, at which point it costs $12,030,000.
I believe the $12,030,000 while full is intended. I do not believe the $6,029,999 while empty is. The cost line in the file says
cost = 12030000 // 30000 + 100 * 120000 = 12030000
Which would indicate that the cost should be more like $30,000 empty.
Electrostatic Antiproton Storage Ring
costs $1,006,875 empty. With tech level 3, it can store 31.25 units of Antimatter, which brings the total to $1,010,000.
Electrostatic Particle Trap (CPT2501)
costs $10,000 empty. It can store 500 units of Antimatter, which brings the cost up to $60,000.
Either the AP-BEC-3 is wrong, the Storage Ring is extremely wrong, and the CPT2501 is normal, or the reverse is the case.
I think I fixed it with 5f2c8be
I don't know if that fix was included in 1.25.28 or not, but, after updating to 1.25.28, the behavior is still present, with one odd exception.
If the AP-BEC-3 is the first part placed, then it will cost $30,000. Adding any other part to the craft or changing the amount of antimatter or hydrogen in the tank will revert the cost to $6,030,000. Notably, rescaling the part does not break the cost.
I notice if you scale the container, it gets the correct value, only if you add it, it has the wrong value
Alright, I figured KSP start to behave weirdly when you lower the maximum resource, which only happens when the part isn't fully upgraded. Could you please test with the latest dll at https://github.com/sswelm/KSP-Interstellar-Extended/tree/master/GameData/WarpPlugin/Plugins
Testing with the latest DLL, seems to work fine now for tech 5.
Started a test save and gave enough science to buy Extreme Fuel Storage but only have tech 1, works fine as well. Nice.