explaingit

bmhking/hoi4-concentrated-v-dispersed-comparison

Analysis updated 2026-05-18

0RAudience · generalComplexity · 1/5Setup · moderate

TLDR

A personal R script that models and charts when concentrated factories out-produce dispersed ones in the strategy game Hearts of Iron 4, under different in-game leaders and bonuses.

Mindmap

mindmap
  root((hoi4 comparison))
    What it does
      Plots factory output
      Concentrated vs dispersed
      Uses gameplay data
    Tech stack
      R
    Use cases
      Settle community debate
      Compare leader paths
      Share result charts
    Audience
      HOI4 players
      Strategy game fans

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Compare production output between concentrated and dispersed factory layouts in Hearts of Iron 4.

USE CASE 2

See how research and production efficiency bonuses shift the point where concentrated production wins.

USE CASE 3

View example charts for specific in-game leaders and economic paths like Rykov, Stalin, and different German advisors.

What is it built with?

R

How does it compare?

bmhking/hoi4-concentrated-v-dispersed-comparisonechasnovski/tibblejacobjameson/tte_cc
Stars00
LanguageRRR
Last pushed2017-05-05
MaintenanceDormant
Setup difficultymoderateeasymoderate
Complexity1/52/54/5
Audiencegeneraldataresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

No install instructions are provided, running the R script requires figuring out the data setup yourself.

No license is stated in the repository.

In plain English

This project is a small R program built to settle a debate among players of the strategy game Hearts of Iron 4 (HOI4). The game lets players build factories in either a concentrated or dispersed layout, and there is a long running argument in the community about which approach produces more military equipment over time. This repository plots out the numbers to answer that question directly. The author's conclusion, based on their own gameplay data, is that concentrated factories produce more equipment than dispersed ones after roughly a year of in game time, unless a player deliberately avoids researching industry technology. Once a player reaches 1939 level industry tech, which is achievable by mid 1938 in game, concentrated factories overtake dispersed production within about 500 days. The program also models how bonuses affect this timeline. Three factors speed up the point where concentrated production wins: a higher production efficiency cap, a higher production efficiency growth rate, and a lower factory output modifier. The repository includes worked examples for different in game leaders and paths, such as playing the Soviet Union under Rykov versus Stalin, and Germany under different economic policies and advisors, each producing a comparison chart saved as an image. This is a personal side project rather than a general purpose tool or library. There is no installation guide, no reusable code interface, and no stated license. It exists mainly to document one player's analysis and share the resulting charts with others in the HOI4 community who are curious about the concentrated versus dispersed factory debate.

Copy-paste prompts

Prompt 1
Explain the difference between concentrated and dispersed factory production in Hearts of Iron 4 based on this analysis.
Prompt 2
Summarize the factors that make concentrated factories overtake dispersed factories faster in this repo's model.
Prompt 3
What in-game industry tech level does this repo say a player needs to reach for concentrated production to win by day 500?
Prompt 4
List the leader and path comparisons included in this repository's charts.

Frequently asked questions

What is hoi4-concentrated-v-dispersed-comparison?

A personal R script that models and charts when concentrated factories out-produce dispersed ones in the strategy game Hearts of Iron 4, under different in-game leaders and bonuses.

What language is hoi4-concentrated-v-dispersed-comparison written in?

Mainly R. The stack also includes R.

What license does hoi4-concentrated-v-dispersed-comparison use?

No license is stated in the repository.

How hard is hoi4-concentrated-v-dispersed-comparison to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is hoi4-concentrated-v-dispersed-comparison for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.