Resource drain tech modifier

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 285
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Resource drain tech modifier

Post by Stargateur »

TL;DR
Having a way to improve resource drain of all drills with a tech modifier.
Purpose favor resource drain mechanism instead of infinite mining productivity.
What?
Add resource drain modifier to https://lua-api.factorio.com/latest/types/Modifier.html working as such:

f(0) = 1
f(1) = 0.9
f(10) = 0.5 (like +100% productivity but without the speed)

After 10 you will get less that what would give you productivity bonus but close enough I think.

f(20) = 0.37
formule math resource drain.png
formule math resource drain.png (3.99 KiB) Viewed 279 times
y is the base resource drain of a drill.
x is the modifier.
f(x) would give final resource drain of a drill
92b25f5e-bb56-45da-bce9-5c3ae2b187a0.png
92b25f5e-bb56-45da-bce9-5c3ae2b187a0.png (100.39 KiB) Viewed 279 times
Require resource_drain_rate_percent to be a double type.
Why?
Mining productivity (and all productivity research of space age... but I will skip this part) break the game a little, after enough research like +200% productivity, one miner == 3 miners. While it's very cool to have ore patch last longer, I always feel it was a bit sad to only see few of my drill working in late game. I end up with >+500% productivity and then only few drill are enough to fill my turbo belt. Say otherwise, late game, mining productivity make the size of ore field irrelevant. Also, since you have way less drill working you reduce your energy consumption and your pollution.

The new resource drain mechanism would allow for mostly the same effect but without the insane output of mining productivity. It would be nice to have a tech that improve resource drain of all drills. Cause quality is optional we can't rely only on quality feature to implement this.

This would also make a purpose to put productivity module on drill (since it multiply with rss drain it's would actually be a very nice module on drill).

This also make new oil field relevant since with current mining productivity even an "depleted" oil field can produce tons of oil.

I would like this as modding feature first to try out this way of playing. Also, my number are completely arbitrary and I'm lacking a lot in math science so if you have better formula please advice.
Last edited by Stargateur on Fri Aug 08, 2025 9:11 am, edited 1 time in total.
User avatar
Stargateur
Filter Inserter
Filter Inserter
Posts: 285
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Re: Resource drain tech modifier

Post by Stargateur »

Actually maybe just:
lagrida_latex_editor.png
lagrida_latex_editor.png (2.91 KiB) Viewed 261 times
4f667844-d7c7-4193-90bd-9ac2d93a3435.png
4f667844-d7c7-4193-90bd-9ac2d93a3435.png (90.5 KiB) Viewed 261 times
It should be exactly the same number than current mining productivity. But this doesn't have diminish return the more you upgrade.
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 147
Joined: Sat Aug 05, 2023 1:20 am
Contact:

Re: Resource drain tech modifier

Post by MrSmoothieHuman »

+1, im all for more types of technology bonus modifiers, and it'd be nice to be able to do more with miners then just productivity.
coder? i hardly know her!
Asmodian
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Aug 18, 2025 7:24 pm
Contact:

Re: Resource drain tech modifier

Post by Asmodian »

I’d like to add my support for this idea. Right now, the way the productivity modifier works means that with every +10% step, the cost for the next level always increases. Because of this, you can’t ever reach a truly infinite resource output just by stacking productivity — there will always be a point (even if astronomically high) where you run out of resources before reaching the next level.

A simple fix would be to let the modifier also reduce resource drain. That way modders could build their own growth formulas on top of it. For example:
y = 100% * 0.94^x, where x is the tech level.
Last edited by Asmodian on Mon Aug 18, 2025 7:40 pm, edited 1 time in total.
Post Reply

Return to “Modding interface requests”