KSP Interstellar Extended

KSP Interstellar Extended

1M Downloads

KSPIE drills extremely slow

alismatales opened this issue ยท 8 comments

commented

I tracked this issue down to this code:

if (abundance < 1)
abundance = Math.Pow(abundance, 4);

(As well as further above in 585 and 586)

"abundance" is a decimal percentage (and therefore never larger than 1), and exponentiating that with the power of 4 makes it extremely small.

I dont quite understand what this bit of code was supposed to do, but i believe it can simply be removed, that gives the universal drill the same mining speed as a stock drill.

commented

Nope this is intentional, it is a way to create very low densities functional because the stock resource system does not allow densities below 0.001, which is not low enough

see alsi

https://forum.kerbalspaceprogram.com/index.php?/topic/83007-13-community-resource-pack/&do=findComment&comment=2961550

but I should probably replace the four by a 3

commented

The general idea is to make trace amount of rare resource available to such low density that make it not very worthwhile. For example Uranium is technically everywhere in the ground, it just in such low densities that you would be crazy to mine it.

commented

No offense, but do you even play KSP with your own mod?

if (abundance < 1)

does not make sense in this context since abundance is a decimal percentage - it is always less than one - a abundance of, say, 4,3% is reported as 0,043 - exponentiate that to the power of 4 and you get a value of 0,000000341.
The universal drill then takes that 0,000000341 and calculates the mined amount which is ridiculously low even for relatively high abundances.

The stock drill is thousands of times faster than the universal drill in the current state.

I understand what you are trying to do but the currecnt execution doesnt work properly.

commented

Always less than 1? I was under the impression it could go up to 100, meaning 100%, that also how they are defined.

commented

Decimal percentages:
1 = 100%
0.1 = 10%
0.05 = 5%

commented

I guess what you meant to write is
if (abundance < 0.01)

in words "if the abundance is less than 1%"

commented

lol, my own code at FNMassSpectrometer appears to confirm what your say, because I multiply it by 100 to convert it to a percentage. Good find!!