Hello
This may be against the developers' vision (limited resource patches), but it seems like such a small change to make (I'm picturing just an additional if-else statement branch). It is hardcoded, though, so mods have to do funky workarounds and not change the exact calculations themselves.
Currently: When a "resource" is set to "infinite", it is automatically converted to "yield" based calculations, like oil. With typical solid resources, like ores, it makes drills do really funky things with ore production.
Suggested change: "infinite resource depletion" value (which is, for example, 10 for oil) be turned into just that - "resource depletion value" set to "1" for typical solids. Or, instead, add some "is_yield_based" variable to discern between typical mining and yield one. Maybe an additional if-else in the interface code to correctly show the amount as infinite or w/e. Ideally it would be selectable in map generation as final step of "richness" value (so 500%, 600%, infinite), but that may be unacceptable.
That is all, thank you for your time
Cheers
Infinite resources without "yield"
-
- Smart Inserter
- Posts: 2767
- Joined: Tue Apr 25, 2017 2:01 pm
- Contact:
Re: Infinite resources without "yield"
It would be nice, but this was how it actually used to work until the devs made a consistency change during one of the 0.17.x updates, so I wouldn't hold my breath on it. I have a mod that reverts this with minimal code overhead/hacky solutions: Infinite Resources - Normal Yield
It does keep ores looking non-infinite initially, but once you hit 0 ore on a tile, it replaces that tile with an infinite tile starting at 100%. From there, you have the option via mod settings to allow it to deplete, with settings for the minimum and rate of depletion. There's also a setting regarding whether this should affect all resources, starting only, or everything but starting, and a tool for removing infinite resource tiles (be careful, it works against all infinite resources, including oil, not just the ones the mod adds). Oh, and it does have an exclusion list if you're so inclined, but you need to know the internal name of the ore, not the localized one that's displayed in game.
It does keep ores looking non-infinite initially, but once you hit 0 ore on a tile, it replaces that tile with an infinite tile starting at 100%. From there, you have the option via mod settings to allow it to deplete, with settings for the minimum and rate of depletion. There's also a setting regarding whether this should affect all resources, starting only, or everything but starting, and a tool for removing infinite resource tiles (be careful, it works against all infinite resources, including oil, not just the ones the mod adds). Oh, and it does have an exclusion list if you're so inclined, but you need to know the internal name of the ore, not the localized one that's displayed in game.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics
Re: Infinite resources without "yield"
[Koub] Moved to modding interface requests.
Koub - Please consider English is not my native language.