Page 1 of 1

Infinite resources without "yield"

Posted: Tue Oct 31, 2023 1:34 pm
by Noobrzor
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

Re: Infinite resources without "yield"

Posted: Tue Oct 31, 2023 2:42 pm
by FuryoftheStars
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.

Re: Infinite resources without "yield"

Posted: Wed Nov 01, 2023 8:16 am
by Koub
[Koub] Moved to modding interface requests.