Page 1 of 1

[0.14.22] setting resource.x.infinite=true, items/s is wrong

Posted: Thu Feb 23, 2017 12:36 am
by thuejk
I am using the "EndlessResourcesWithFullYield" mod, which is useful for testing base designs without miners running out of ore.

However, the mod makes electric miners show wrong "Expected resources" when hovering over an electric miner with the mouse. For example, it can show "248/s". The actual output is normal, not changed by the mod, and most definitely not 248/s.

The wrong display in electric miners is caused by setting "data.raw.resource[k].infinite = true" in the mod. The whole code of the "EndlessResourcesWithFullYield" is:

Code: Select all

for k, v in pairs(data.raw.resource) do
   data.raw.resource[k].infinite = true
   data.raw.resource[k].minimum  = 100
   data.raw.resource[k].normal   = 100
end
The fix seems easy enough - just don't change the "Expected resources" display of electric miners just because infinite=true.

Re: [0.14.22] setting resource.x.infinite=true, items/s is wrong

Posted: Wed Mar 08, 2017 7:25 pm
by thuejk
The number X/s when hovering over miners is actually OreCount*((MiningSpeed-MiningHardness)*MiningSpeed/MiningTime)/normal. Which is meaningless.

Re: [0.14.22] setting resource.x.infinite=true, items/s is wrong

Posted: Fri Apr 14, 2017 11:57 am
by Rseding91
We may fix this one day but for now it's actually showing the items/second accounting for every resource under the mining drill (which as you've said is mostly meaningless).