Configurable Mining Drills


Change mining speed & area size for all mining drills, pumping speed for all pumpjacks, each by their own factor. Energy use and pollution rate automatically scale with speed to preserve game balance. Module slot amount can be increased as well. Should work with all mods, allows flexible exclusion based on entity ID.

Tweaks
6 hours ago
1.1 - 2.0
2.50K
Mining Cheats

Changelog

Version: 1.0.2
Date: 2024-12-11
  Bugfixes:
    - Fixed module slot setting crashing the game. Relevant for Pyanodon.
Version: 1.0.1
Date: 2024-10-26
  Changes:
    - Tidied up, fixed an end note.
Version: 1.0.0
Date: 2024-10-26
  Changes:
    - Increased version number to 1.0.0, updated for Factorio 2.0. Won't work with older versions!
    - Fixed references so they match the new prototype property trees.
    - Removed many mods from the list of optional dependencies, no longer relevant.
    - Removed special fixes for a few mods, no longer relevant.
    - Fixed changelog for 0.7.5.
    - Tidied up a bit.
Version: 0.7.5
Date: 2024-06-26
  Changes:
    - Manual Exclusions: Sanitized some values passed on by a function (end result is the same).
      Note that e.g. 'omega-drill' entirely excludes that drill, ':omega-drill' excludes nothing.
    - Tidied up variable names for a standard function.
Version: 0.7.4
Date: 2024-06-21
  Changes:
    - Manual Exclusions: Fixed/improved exclusion rules, restructured code.
Version: 0.7.3
Date: 2024-06-20
  Changes:
    - Manual Exclusions: Added special compatibility for 'Cursed Filter Mining Drill' by L0771,
      ensuring that exclusion works for all the filtered variants as well.
Version: 0.7.2
Date: 2024-06-19
  Changes:
    - Added 'Big Pumpjack' mod as optional dependency. Provided a fix for missing pollution and too
      low speed (applies only to v.0.0.4, assumed fixed in newer versions).
    - Added my other mod 'Custom Electric Mining Drill' as optional dependency as well, works with
      v.0.7.0+.
    - Simplified MIT License layout to avoid confusion about what must be included.
    - Added mention of MIT-license to info.json.
    - Compacted code related to exclusions.
Version: 0.7.1
Date: 2024-06-17
  Changes:
    - Tiny fix, now calculates energy use and pollution rate only if mining speed was changed.
    - Tidied up.
Version: 0.7.0
Date: 2024-06-17
  Changes:
    - Added a text field in settings to manually exclude drills from being changed. Uses entity IDs
      separated by comma, each entry may receive the prefixes 's', 'a' and 'm' + colon to only
      exclude mining speed, area size or module slots (e.g. burner-mining-drill,sa:omega-drill).
    - Exclusions: Removed entries already affected by general exclusion rules.
Version: 0.6.0
Date: 2024-06-16
  Changes:
    - REMOVED optional recipe cost scaling. There were several potential issues with unwanted
      effects on many recipes when other mods are installed, and they seem too difficult and risky
      to try and resolve. May reintroduce the option in a different form another time. Sorry!
Version: 0.5.5
Date: 2024-06-16
  Changes:
    - Now adds mining area visualization to any mining drills missing them (still only if the area
      size has been increased).
    - Refactored some of the new code. Now builds and searches a much smaller list of items when
      determining what recipes to modify.
    - Checked compatibility with Krastorio 2, Bob's Mining, Pyanodon Raw Ores, Exotic Industries
      as well as Nullius, and added them all as optional dependencies.
Version: 0.5.4
Date: 2024-06-15
  Changes:
    - Fixed recipe scaling:
      - Mining drill recipes now exclude other drills used as ingredient from having their amount
        increased, to avoid unreasonable cost scaling with some mods installed.
      - Fixed an issue where some drills would not be recognized due to item/entity name mismatch.
        This affected the core miner drill from Space Exploration.
    - Made a general rule to exclude mining drills from having their mining area size changed, if
      it is no more than 1x1. Maintains list of explicit exclusions, added core miner drill from
      Space Exploration.
    - Checked compatibility with Space Exploration and Industrial Revolution 3, both have been
      added as optional dependencies.
Version: 0.5.3
Date: 2024-06-15
  Changes:
    - Compacted a lot of code in fancy ways.
    - Refactored code for area size change exclusions, for the sake of better expandability.
    - Updated mod description.
    - Removed reference to darkfrei from MIT license, since almost none of the original code from
      his mod remains (and there are no borrowed assets). I just want to call the mod my own now.
    - Updated MIT license formatting.
Version: 0.5.2
Date: 2024-06-13
  Changes:
    - Made the recipe cost scaling code search recipe .results property for entity name as well,
      if it exists. Likely not needed, added just in case.
Version: 0.5.1
Date: 2024-06-13
  Changes:
    - If recipe cost scaling is enabled, entity health will now also scale somewhat with cost.
      Value is rounded down to nearest 25, cannot scale below original value.
    - Fixed code so recipe ingredient cost cannot scale below original value.
    - Tidied up, improved some code and descriptions.
Version: 0.5.0
Date: 2024-06-11
  Changes:
    - Added option to scale recipe ingredient cost for all mining drills and pumpjacks according to
      the selected mining/pumping speed factor.
    - Tidied up.
Version: 0.4.1
Date: 2024-06-10
  Changes:
    - Tidied up a bit more. Fixed changelog for v0.4.0.
Version: 0.4.0
Date: 2024-06-10
  Changes:
    - Removed simple uranium mining option. Not to my liking, and there were issues which were 
      hard to fix. Try recommended mods instead. May bring it back if requested.
    - Now applies mining drill/pumpjack speed factor according to whether the entity has a fluid
      output. Should make the settings apply to ALL drills/pumpjacks, hopefully without issues.
    - Added option to add more module slots to extraction machines that have at least one already
      (total capped at 20, won't touch machines that already have more slots than that)
    - Changed mining area size setting type from int to double-int to allow for finer control.
      Also refined scaling so that even and odd search diameters are changed with corresponding
      intervals (that is, 2x2->4x4; 5x5->7x7 etc.). Final size is rounded down.
    - Updated area size change exclusions with drill from 'Mini Miner' by _CodeGreen.
    - Now only adds mining area visualization to the burner mining drill if the search area is
      actually increased.
    - Fixed small issue so that number values for drill energy usage are recognized as well.
    - Fixed several nil checks, removed unneeded ones.
    - Added a temporary fix to the mod 'Mini Miner' by _CodeGreen, regarding high pollution rate.
      Applies only to v.0.0.2, assumed fixed in newer versions.
    - Added optional dependencies.
    - Generally improved code, tidied up.
Version: 0.3.2
Date: 2024-05-13
  Changes:
    - Simple uranium mining option: Compacted code related to graphics assets for Centrifuge pipe
      connections.
Version: 0.3.1
Date: 2024-05-12
  Changes:
    - Simple uranium mining option: Fixed visual glitches related to pipe connections for the
      Centrifuge. A small issue with the west connection remains (don't know what to do about it).
    - Improved some code, especially in relation to simple uranium mining.
    - Changed file structure, improved formatting.
Version: 0.3.0
Date: 2023-07-16
  Changes:
    - Added option to increase output speed of all pumpjacks, including those from mods.
      Energy use and pollution rate scale for this as well. Made separate, for balance reasons.
Version: 0.2.0
Date: 2023-07-15
  Changes:
    - Added a function to exclude mining drills based on an internal list.
      Created a list of drills to not receive any change to mining area size from this mod.
      So far added drills from "Tiny mining drills".
Version: 0.1.1
Date: 2023-07-15
  Changes:
    - Removed IR3 from list of optional dependencies, because it simply being written in the info
      file somehow breaks the function of this mod. What...
Version: 0.1.0
Date: 2023-07-15
  Changes:
    - Improved compatibility with some mods like IR3, by allowing modification of energy usage
      assigned as floating numbers (like 0.75MW). 
      Added many checks to the code.
      Elevated mod load order to final stage (uses data-final-fixes.lua).
    - Improved settings, refined data-types and allowed values.
    - Tidied up code and descriptions.
    - Updated MIT-license.
    - Updated info. Added IR3 as optional dependency to signify compatibility.
  Notes:
    - Not released.
Version: 0.0.7
Date: 2023-07-09
  Changes:
    - Updated thumbnail
Version: 0.0.6
Date: 2023-07-08
  Changes:
    - Added scaling pollution rate according to mining speed.
    - Improved internal explanation of code.
    - Fixed typo in description in settings.
Version: 0.0.5
Date: 2023-07-06
  Changes:
    - Updated thumbnail to match another mod, because OCD.
Version: 0.0.4
Date: 2023-07-06
  Changes:
    - Corrected descriptions. Sulphuric acid is still needed for processing of uranium,
      but it is moved to the centrifuge instead!
Version: 0.0.3
Date: 2023-07-05
  Changes:
    - Took code and a small visual asset from "Mining Drill Bigger Area" v.1.0.0 by jackar
      (last update 2022-04-13) and slightly modified it. The change adds visualization of
      mining area to the Burner Drill.
    - Corrections to changelog.
    - Small changes to description of mod.
Version: 0.0.2
Date: 2023-07-04
  Changes:
    - Typo fixes in code. 
    - Changed mod description.
    - Changed default values to those of the base game, rather than those of the original mod.
      Corrected descriptions to match this change.
Version: 0.0.1
Date: 2023-07-04
  Changes:
    - First release
    - Took code from "Instant Mining Drill" v.1.1.1 by darkfrei (last update 2020-11-29)
      and modified it to allow configuration of mining speed and area size in Game Settings.
      Also added missing description to setting pertaining to simpler uranium mining.
      All functionality of the original mod has been preserved.
    - Included MIT License as required by original mod.
    - Note: If the original mod is installed, the values will be multiplied by both mods!
      For that reason, it has been added to the list of incompatible mods.