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

This subforum contains all the issues which we already resolved.
Post Reply
thuejk
Fast Inserter
Fast Inserter
Posts: 113
Joined: Fri Feb 13, 2015 8:41 pm
Contact:

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

Post 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.

thuejk
Fast Inserter
Fast Inserter
Posts: 113
Joined: Fri Feb 13, 2015 8:41 pm
Contact:

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

Post by thuejk »

The number X/s when hovering over miners is actually OreCount*((MiningSpeed-MiningHardness)*MiningSpeed/MiningTime)/normal. Which is meaningless.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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).
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”