• 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.

davekirk

Sergeant
3 Badges
Apr 19, 2004
91
0
  • Darkest Hour
  • Hearts of Iron III
  • 500k Club
Thanks for your help ^_AC_^

A couple other questions; is there a tutorial or some sort of guide to working on AI files? I have a solid grasp on how events work, and I'm diving headfirst into AI files to try to figure it out, but some direction would be useful. The modding documentation had "event commands.txt" which was invaluable for working on events, I was hoping there might be something similar for AI files.
Also, has anyone made a user-defined language set for Notepad++ for working on DH (makes certain terms, comments, formatting, etc. show up as different colors)?
 

^_AC_^

Field Marshal
84 Badges
Feb 24, 2009
5.695
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
  • War of the Roses
  • Hearts of Iron IV Sign-up
  • Europa Universalis III Complete
  • The Showdown Effect
  • Warlock 2: The Exiled
  • Crusader Kings II: Conclave
  • 500k Club
  • Stellaris
  • Europa Universalis IV: El Dorado
  • Prison Architect
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Common Sense
  • Stellaris: Ancient Relics
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Cadet
  • Surviving Mars
  • Cities: Skylines - Green Cities
  • 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
  • Stellaris Sign-up
  • Europa Universalis IV: Golden Century
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV
  • Europa Universalis IV: Rights of Man
  • 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
  • Imperator: Rome Deluxe Edition

Chiron

First Lieutenant
59 Badges
Feb 26, 2007
276
232
  • Hearts of Iron IV: Cadet
  • Victoria 2
  • Rome: Vae Victis
  • War of the Roses
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Supreme Ruler 2020
  • Crusader Kings II: Reapers Due
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Steel Division: Normandy 44 Deluxe Edition
  • Knights of Honor
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: La Resistance
  • For The Glory
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Arsenal of Democracy
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • The Kings Crusade
  • Majesty 2
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Ship Simulator Extremes
From my thread in main forum

Germany has no Oil and seems remarkably unaffected by this.

Looking in Misc.txt I see this

Code:
# Combat Modifier: Default Supply Problems Mod - Land
-0.2
# Combat Modifier: Default Supply Problems Mod - Air
-0.2
# Combat Modifier: Default Supply Problems Mod - Naval
0.0	
# Combat Modifier: Default Fuel Problems Mod - Land
0.0
# Combat Modifier: Default Fuel Problems Mod - Air
0.0
# Combat Modifier: Default Fuel Problems Mod - Naval
0.0

Presumably editing these will mean that the fearsome Panzers will start to suffer without fuel?
 

^_AC_^

Field Marshal
84 Badges
Feb 24, 2009
5.695
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
  • War of the Roses
  • Hearts of Iron IV Sign-up
  • Europa Universalis III Complete
  • The Showdown Effect
  • Warlock 2: The Exiled
  • Crusader Kings II: Conclave
  • 500k Club
  • Stellaris
  • Europa Universalis IV: El Dorado
  • Prison Architect
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Common Sense
  • Stellaris: Ancient Relics
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Cadet
  • Surviving Mars
  • Cities: Skylines - Green Cities
  • 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
  • Stellaris Sign-up
  • Europa Universalis IV: Golden Century
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV
  • Europa Universalis IV: Rights of Man
  • 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
  • Imperator: Rome Deluxe Edition
It is possible that those were hardcoded HOI2 values for all land units and then DH introduced unit-specific and model-specific values.

Also, it is quite possible that those values could be used but I don't know if they are multiplied by the model-specific values or superseded by them (I guess the latter).
 

Stahl-Opa

Marshall & Grossadmiral of Helvetia
71 Badges
Jun 16, 2011
705
130
www.vmods.org
  • Victoria 2: A House Divided
  • Europa Universalis IV: Call to arms event
  • Gettysburg
  • Heir to the Throne
  • King Arthur II
  • Leviathan: Warships
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Warlock 2: Wrath of the Nagas
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III
  • Crusader Kings II: Horse Lords
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris Sign-up
  • Europa Universalis IV
  • Stellaris: Necroids
  • Stellaris
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Warlock 2: The Exiled
  • Europa Universalis III Complete
a small question: I've made a event which deactivate all unit-types for a country. (that this country can't build anymore divisions etc.)

If the event triggers for a human player it works perfect - but if the evt triggers for the AI the AI can build militias and transporters anyway. tested with country-switch in a savegame after the event was triggered for the AI.

Why? Made nosense to me, and one of my concept will never work without a event that stop the bulding of any new units :'(

Greez
 

Kretoxian

Anon, we are legion
23 Badges
Oct 12, 2005
2.743
2
  • Iron Cross
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Tyranny: Archon Edition
  • Stellaris
  • Magicka 2
  • Pillars of Eternity
  • Europa Universalis III: Collection
  • 500k Club
  • Semper Fi
  • Majesty 2 Collection
  • Cities in Motion 2
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Divine Wind
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II: The Old Gods
  • Crusader Kings II
Is it possible to edit the .inc files to make some brigades appear in the unit pool? If so, how is it?
 

novapaddy

War-Father
103 Badges
Aug 26, 2009
8.904
1.314
  • The Kings Crusade
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Galactic Assault
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Lead and Gold
  • Legio
  • Arsenal of Democracy
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Pirates of Black Cove
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron Anthology
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • East India Company
  • East India Company Collection
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
Is it possible to edit the .inc files to make some brigades appear in the unit pool? If so, how is it?

I did it like this for homeland:

############################################
## jap islands LOCKED units##
######################################

landunit = {
id = { type = 13016 id = 80000 }
name = "HomeIslands Unit 1"
location = 1675
division = {
id = { type = 13016 id = 80001 }
name = "HomeGuard Brigade 1"
strength = 100
type = d_01
model = 0
locked = yes
}
}

EDIT: So if the unit is available on game start, it can be placed in the inc file. d_01 could be a brigade, no problem. Doesn't have to be locked, that was just something I wanted at the time.
 

Kretoxian

Anon, we are legion
23 Badges
Oct 12, 2005
2.743
2
  • Iron Cross
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Tyranny: Archon Edition
  • Stellaris
  • Magicka 2
  • Pillars of Eternity
  • Europa Universalis III: Collection
  • 500k Club
  • Semper Fi
  • Majesty 2 Collection
  • Cities in Motion 2
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Divine Wind
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II: The Old Gods
  • Crusader Kings II
I did it like this for homeland:

############################################
## jap islands LOCKED units##
######################################

landunit = {
id = { type = 13016 id = 80000 }
name = "HomeIslands Unit 1"
location = 1675
division = {
id = { type = 13016 id = 80001 }
name = "HomeGuard Brigade 1"
strength = 100
type = d_01
model = 0
locked = yes
}
}

EDIT: So if the unit is available on game start, it can be placed in the inc file. d_01 could be a brigade, no problem. Doesn't have to be locked, that was just something I wanted at the time.

But in that case wouldn't that unit appear in province 1675?
 

MartinBG

Darkest Hour Developer
2 Badges
Nov 16, 2007
5.634
257
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
Is it possible to edit the .inc files to make some brigades appear in the unit pool? If so, how is it?

Yes, it is possible, but I don't have the game right now to give you the exact format. But you can check it in a save-game file (detach some brigades from units, save, search for those brigades in the file, copy-paste to the INC file and edit as needed)
 

Miihkali

Old Guard
6 Badges
Apr 11, 2007
2.970
11
  • Crusader Kings II
  • Darkest Hour
  • For The Glory
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
Does softness protect from hard attack? I.e., if unit had only hard attack, would it be unable to damage enemy with 100% softness?
EDIT: Question n:eek: 2: Is it possible to give a bonus to money production via technology/event?
 
Last edited:

unmerged(174159)

Still Alive
2 Badges
Oct 18, 2009
4.525
54
  • Crusader Kings II
  • Darkest Hour
Softness relates to Soft Attack - the less soft a unit is, the more it is only affected by hard attack. So A unit with only hard attack will do it's damage regardless, if it's soft only and 0% softness then it'll struggle (it isn't completely negated but simultaneously it is not doing anywhere near it's full damage)
 

Miihkali

Old Guard
6 Badges
Apr 11, 2007
2.970
11
  • Crusader Kings II
  • Darkest Hour
  • For The Glory
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
I guess there's no way to modify it? I'd like to make hard attack work like the opposite of soft attack. I.e. hard attack would be inflicted with full strength to an unit with Softness 0, while soft attack would be inflicted with full strength to an unit with Softness 100. Both would be inflicted with half strength to an unit with Softness 50. Mostly to make math easier, but also for other reasons.
 
Last edited:

unmerged(174159)

Still Alive
2 Badges
Oct 18, 2009
4.525
54
  • Crusader Kings II
  • Darkest Hour
No, Hard attack is damage done to hard things - tanks, vehicles etc. Soft attack is damage done to me. It's basically small arms fire vs getting shot by a tank. It still hurts the soft target regardless.