• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Vahan Checher

Private
Aug 8, 2018
10
7
I haven't played HoiIV neither. Pardon my english, it isn't my mother tongue. The attachments a division can have, is it modable? I can't find a particular passage in the misc file and when I edit the max_allowed_brigades = 5 to a bigger number in its db/units/division txt file the game will crash saying in the savedebug:
ERROR : Invalid max_allowed_brigades for armor (6). Set to 5.
 

Pasha

Field Marshal
2 Badges
May 26, 2005
2.777
434
  • Darkest Hour
  • 500k Club
I read in either a dev diary or in a thread here a few years ago that five is the limit so it must be hardcoded
 
  • 2Like
Reactions:

^_AC_^

Field Marshal
83 Badges
Feb 24, 2009
5.692
327
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Leviathan: Warships
  • Knights of Pen and Paper +1 Edition
  • Victoria 2: Heart of Darkness
  • Warlock 2: The Exiled
  • Hearts of Iron IV Sign-up
  • Europa Universalis III Complete
  • The Showdown Effect
  • Stellaris
  • War of the Roses
  • 500k Club
  • Stellaris Sign-up
  • Europa Universalis IV: El Dorado
  • Imperator: Rome Sign Up
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Cadet
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines - Green Cities
  • Prison Architect
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Imperator: Rome
  • Europa Universalis III Complete
I read in either a dev diary or in a thread here a few years ago that five is the limit so it must be hardcoded
IIRC is was due to graphic limitations, which is a big factor on what can or cannot be done in DH unfortunately.
 
  • 2Like
  • 1
Reactions:

Altruist

Major
10 Badges
Sep 13, 2011
637
485
  • Darkest Hour
  • Stellaris
The attachments [5] a division can have, is it modable?

But 5 is a lot and not used within the game anyway except for some capital ships. INF can have 2 brigades, most (if not all) other land unit types only 1 brigade.

By the way, I think you define number and type of allowed brigades for divisions not in divisions.txt but for each division-type in its own file like infantry.txt, militia.txt etc., below an example:
Code:
[file: ...\Darkest Hour\Mods\Darkest Hour Full\db\units\divisions\infantry.txt]

# MODEL_0_

allowed_brigades =  artillery
allowed_brigades =  super_heavy_artillery
allowed_brigades =  medium_armor       
allowed_brigades =  anti_air       
allowed_brigades =  cavalry_brigade
allowed_brigades =  tank_destroyer
allowed_brigades =  light_armor_brigade
allowed_brigades =  amph_armor
allowed_brigades =  heavy_armor   
allowed_brigades =  super_heavy_armor
allowed_brigades =  armored_car
allowed_brigades =  engineer   
allowed_brigades =  police

max_allowed_brigades = 2

[...]

Source:
Odds and Sods... - Modding Questions (Pasha)
Odds and Sods... - Modding Questions (Slaughter)

Your idea of defining a different number of allowed brigades for infantry depending on wether it is built by III.Reich or SU might be difficult, though. I guess they are defined for all countries. A workaround might be using special units and different ones for each country.
 
Last edited: