Skip to content

Repository files navigation

Factorio Wiki Damage Thresholds

Scripts and MediaWiki markup for Factorio Wiki contributions covering damage thresholds and productivity research.

Scripts

factorio_thresholds.py - Damage threshold tables

Calculates shots/activations required to destroy targets at each research level.

# Text output (all trees)
python3 factorio_thresholds.py

# Text output (single tree)
python3 factorio_thresholds.py stronger_explosives
python3 factorio_thresholds.py laser_weapons
python3 factorio_thresholds.py physical_projectile
python3 factorio_thresholds.py artillery_shell_damage
python3 factorio_thresholds.py electric_weapons_damage
python3 factorio_thresholds.py refined_flammables

# Regenerate wiki articles
python3 factorio_thresholds.py stronger_explosives --wiki > WikiArticles/StrongerExplosivesResearch.txt
python3 factorio_thresholds.py artillery_shell_damage --wiki > WikiArticles/ArtilleryShellDamageResearch.txt
python3 factorio_thresholds.py electric_weapons_damage --wiki > WikiArticles/ElectricWeaponsDamageResearch.txt
python3 factorio_thresholds.py refined_flammables --wiki > WikiArticles/RefinedFlammablesResearch.txt

factorio_productivity.py - Productivity threshold tables

Shows total productivity bonus at key research levels for each machine and module configuration.

# Text output (all researches)
python3 factorio_productivity.py

# Text output (single research)
python3 factorio_productivity.py steel_plate
python3 factorio_productivity.py processing_unit
python3 factorio_productivity.py low_density_structure
python3 factorio_productivity.py plastic_bar
python3 factorio_productivity.py rocket_fuel
python3 factorio_productivity.py rocket_part

# Regenerate wiki articles
python3 factorio_productivity.py steel_plate --wiki > WikiArticles/SteelPlateProductivityResearch.txt
python3 factorio_productivity.py processing_unit --wiki > WikiArticles/ProcessingUnitProductivityResearch.txt
python3 factorio_productivity.py low_density_structure --wiki > WikiArticles/LowDensityStructureProductivityResearch.txt
python3 factorio_productivity.py plastic_bar --wiki > WikiArticles/PlasticBarProductivityResearch.txt
python3 factorio_productivity.py rocket_fuel --wiki > WikiArticles/RocketFuelProductivityResearch.txt
python3 factorio_productivity.py rocket_part --wiki > WikiArticles/RocketPartProductivityResearch.txt

factorio_mining.py - Mining productivity threshold tables

Shows how many mining drills are needed to fully saturate each belt type at each research level.

# Text output
python3 factorio_mining.py

# Regenerate wiki article
python3 factorio_mining.py --wiki > WikiArticles/MiningProductivityResearch.txt

factorio_wiki_fetch.py - Wiki page downloader

Downloads a Factorio Wiki page via the MediaWiki API and saves the JSON response to WikiArticles/ for offline use.

# Fetch by full URL
python3 factorio_wiki_fetch.py https://wiki.factorio.com/Enemies

# Fetch by bare page name
python3 factorio_wiki_fetch.py Technologies

# Fetch with custom output filename
python3 factorio_wiki_fetch.py Enemies --output enemies_wiki.json

Wiki Articles

File Wiki page
WikiArticles/StrongerExplosivesResearch.txt Stronger explosives (research)
WikiArticles/ArtilleryShellDamageResearch.txt Artillery shell damage (research)
WikiArticles/ElectricWeaponsDamageResearch.txt Electric weapons damage (research) - Thresholds section
WikiArticles/SteelPlateProductivityResearch.txt Steel plate productivity (research) - Thresholds section
WikiArticles/ProcessingUnitProductivityResearch.txt Processing unit productivity (research) - Thresholds section
WikiArticles/LowDensityStructureProductivityResearch.txt Low density structure productivity (research) - Thresholds section
WikiArticles/PlasticBarProductivityResearch.txt Plastic bar productivity (research) - Thresholds section
WikiArticles/RocketFuelProductivityResearch.txt Rocket fuel productivity (research) - Thresholds section
WikiArticles/RocketPartProductivityResearch.txt Rocket part productivity (research) - Thresholds section
WikiArticles/MiningProductivityResearch.txt Mining productivity (research) - Thresholds section

Reference Data

File Contents
WikiArticles/Technologies.json Factorio wiki API - infinite research data, cost formulas, breakpoints
WikiArticles/enemies_wiki.json Factorio wiki API - HP and resistance data for biters, spawners, worms
FactorioAsteroidDamageCalculator.xlsx Excel export of Google Sheet (sheet is source of truth)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages