[MOD 1.1.x] Infinite Resources - Normal Yields (with optional depletion)

Topics and discussion about specific mods
Post Reply
FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2540
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

[MOD 1.1.x] Infinite Resources - Normal Yields (with optional depletion)

Post by FuryoftheStars »

Name: Infinite Resources - Normal Yields (with optional depletion)

Summary: An infinite resource mod that allows miners to continue mining ore resources at the normal vanilla rates (no insane yields!), and then can optionally start decreasing to lower yields after the initial spawned resource amounts are mined, with only a single code execution per resource tile. Includes settings for minimum depletion level and rate of depletion. This mod is for those that want the benefit of infinite resources (never running out), while preserving the vanilla rate and feel.

License: GNU GPLv3
Initial Release date: 2021/12/29
Version: 0.0.6
Current Version Release date: 2023/02/23
Tested with Factorio version: 1.1.76
Mod page: https://mods.factorio.com/mod/InfiniteR ... dDepletion
Description
This mod allows for infinite resources while keeping the per-mining operation yield at vanilla levels for ores (1 per) until depletion is triggered (then yields can optionally start dropping until the minimum percent is reached).

Inspired by the Infinite Resources - Depletion mod. After a change in Factorio version 0.17.65, infinite resource ore tiles with a percentage over 100% started popping out multiple resource items per mining cycle (as bonus items, so the extra resources did not count towards depletion), causing some pretty over the top insane yields. As such, this mod is for those that want the benefit of infinite resources (never running out, with optional depletion), but still preserving the vanilla rate and feel.

This mod should work with mod added resources as well, and only resources not already infinite (ie, iron & copper, but not oil).

By default, the minimum yield of the infinite resources added by this mod is 100%. You can lower this via mod settings.
Features
  • No insane mining yields from an infinite resource tile - All resource tiles affected by this mod start out as their normal, non-infinite selves, and only once completely drained do they switch over to infinite, but start at 100% to keep the 1 resource yield per mining operation.
  • Resource tallys on the map will still show resource amounts instead of weird, large percentages when first discovered.
  • All the resource tiles will have normal initial spawn amounts instead of being overridden and made whatever arbitrary and equal amount across all tiles.
  • Optional setting to allow infinite resource tiles added by this mod to drain below 100%.
  • Optional setting to control the rate at which the infinite resource tiles added by this mod drain from 100% to set minimum.
  • Change of minimum yield or depletion rate settings will retroactively affect infinite resource tiles added by this mod.
  • Use of on-demand code execution - no constant "on_tick" operations and holding each tile in memory to replenish. Code only fires once the resource tile hits 0!
  • Exclusion list in settings for any resources you don't want this mod affecting.
  • Infinite Resource Removal tool included in the shortcut toolbar for removal of any infinite resource tiles that you don't want anymore (like maybe the starting resources once you've expanded enough?).
Settings
  • Minimum yield - The minimum percent the infinite resource tiles added by this mod will deplete to.
  • Depletion rate - The rate in which the infinite resource tiles added by this mod will deplete from 100% to the set Minimum yield.
  • Exclusion list - Allows for setting the mod to ignore certain resources, including mod added ones.
Known limitations
  • On preexisting saves, it will not "revive" already depleted and gone resource tiles. AFAIK, this isn't possible with any infinite resource mod.
  • Because of the way it works, all settings are startup only settings. As such, if you want to make a change, you'll need to restart the game.
  • The Infinite Resource Removal tool will highlight non-infinite resources as well, but it will not remove them.
  • The Infinite Resource Removal tool will work against all infinite resources (intended), but the process of removing them will be irreversible.
  • Miner code picks resource tiles at random to mine from. As such, it's possible for the miners to be constantly mining the infinite tiles instead of the one or two non-infinite still in its reach.
  • Later removing this mod or adding a resource to the exclusion list that has already generated infinite resource tiles in game will cause these tiles to simply vanish. They will not convert to non-infinite (I mean, you already used up what was there, right?).
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

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2540
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: [MOD 1.1.x] Infinite Resources - Normal Yields (with optional depletion)

Post by FuryoftheStars »

Forgot I had this thread for this mod. :lol:

Been updated a few times. On v0.0.6. See mod portal changelog for details.
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

Post Reply

Return to “Mods”