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

MartinBG

Darkest Hour Developer
2 Badges
Nov 16, 2007
5.634
257
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
Hi!
I have problem with own "type = inherit" events during DH-light multiplayer games.

Our community use 2 own "type = inherit" events in mp-games:

annexing Baltic countries (by Sov)
annexing China (by Manchukuo)

These events happened only if country-"annexer" (Sov or M-kuo) is the host of this game. (Or if these countries are under AI control)
If the host of the game are other countries (and Sov or M-kuo are under human control), these events do not happened :(

What could be the problem, where is our mistake? How to make these events to be happened, no matter what country is the host of multiplayer game?

For example, our Baltic event:
Code:
######################
# Annexation of the Baltic states
######################

event = {
	id = 2665
	random = no
	country = SOV
	trigger = { 
		exists = EST 
		exists = LIT 
		exists = LAT 
		event = 2600
		} 
	name = "Baltics"
	desc = "Annexation of the Baltic states."
	style = 0
	picture = "End_Winter_War"

	date = { day = 14 month = june year = 1940 }
	offset = 1 
	deathdate = { day = 26 month = june year = 1940 }

	action_a = {
		name = "OK"
		command = { type = inherit which = EST }
		command = { type = inherit which = LIT }
		command = { type = inherit which = LAT }
	}
}

P.S.
OK. If "type = inherit" command have problems in mp-games, I made these events by "type = secedeprovince" command.
Now my events are OK.


There's indeed a check in the code that invalidates the inherit command when the country that is initiating the annexation is not the host

I have to investigate if this restriction is really needed when I have time for that (#2446)
 

Nick3210

Captain
1 Badges
Aug 7, 2013
459
293
  • Darkest Hour
Thanks for your reply!
Now I will know that the inherit-command is really not suitable for "multiplayer" mods, and I will not use it.
Now I use the "secedeprovince" command, and all is OK, so this problem it is not too extreme for me now.
 

Nick3210

Captain
1 Badges
Aug 7, 2013
459
293
  • Darkest Hour
I found that in DH-light 1.03 patch, the mechanics of sea battles between carriers and surface ships was changed. In 1.02 and all other old HOI2, surface ships OR immediately reached the fire-distance in the first hour of the battle OR never reached it in this battle. (It depended from fleets speeds and from admirals levels)
In 1.03 I see that surface ships reached the fire-distance VERY slowly - about 3 km/h, from 100 km to 20-30 km. So it takes VERY much hours or days (!).
I agree, that it is not realistically when it happened in 1 hour.... but it was more good for gameplay - high-speed cruisers could fight against carriers! Now it is absolutely impossible :(
Now, carriers (in multiplayer game) will use Hit&Run against high-speed surface ships. So, carriers became the ultimate non-alternative unit and I am very sad about this new mechanics in 1.03

Is there any way to reduce the time, which is needed to reach the fire-distance? It is desirable back to 1 (first) hour.
May be there are any command (coefficient) in misc-file for it?

P.S.
And I found that in original DH-light 1.03 patch only one fleet has night penalty. Why one fleet has night penalty but other fleet has not it in their battle? ("Attacking" fleet has penalty, "defending" fleet has not it :confused:)
In DH-light 1.02 it was not so, both fleets had night penalty and it was right!
Is it a bug??
I fixed it in my DH-light mod in "modifiers"-file in 28 line "DEF_NIGHT". IMHO, it is needed to fix in next pathes in core's "modifiers"-file.

2P.S.
1. What does it mean "Fleet positioning in naval combat - Daytime bonus = 0.4" ? What I will get if I will install "0", "0.5" or "1"?

2. And what does it mean "Minister bonuses (att, def, mor, org) from brigades and divisions. 1 = use division bonus if any, else brigade (max if more then 1); 2 = Use average of all; 3 = use Sum of all; 4 = Use min; 5 = use Max, 3" ?
If I will install "3", what will I get?
 
Last edited:

JRHINDO

Hej Slaveni!
97 Badges
Feb 24, 2007
5.072
40
gh.ffshrine.org
  • Naval War: Arctic Circle
  • Impire
  • Iron Cross
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Lead and Gold
  • Leviathan: Warships
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Heir to the Throne
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Ship Simulator Extremes
  • Sword of the Stars
  • Sword of the Stars II
  • Supreme Ruler 2020
  • Supreme Ruler: Cold War
  • Starvoid
  • Island Bound
  • Darkest Hour
  • Arsenal of Democracy
  • Cities in Motion
  • Cities in Motion 2
  • 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
  • A Game of Dwarves
  • Dungeonland
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
How to create a bink intro for a mod? I tried using RAD Video and converted to .bink but it doesn't work. The intro is skipped. :(
You must replace the already existing movies with your own, for it to play. The game cant read more than the default movies.
 

hansnery

General Secretary
60 Badges
Sep 4, 2005
1.289
64
forum.paradoxplaza.com
  • Hearts of Iron IV Sign-up
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • War of the Roses
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Knights of Honor
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis 4: Emperor
  • Europa Universalis III: Chronicles
  • 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
  • Darkest Hour
  • Deus Vult
  • Arsenal of Democracy
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Iron Cross
  • Legio
  • March of the Eagles
  • Rome Gold
  • Victoria 2
  • Victoria 2: A House Divided
You must replace the already existing movies with your own, for it to play. The game cant read more than the default movies.
I put it on the avi folder inside my mod folder with the same name as the ones from the main folder but it doesn't work, I think it has something to do with the conversion of 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
Hi there chaps.

Could someone tell me where the coding is that determines what sprite is assigned to what unit, i.e. If i wanted to change the Infantry Sprite to the Motorized one :)

Thanks !

The file is in the db/units folder.. called division_types.txt..

infantry = {
#ID 0
type = infantry
name = NAME_INFANTRY
short_name = SNAME_INFANTRY
desc = LDESC_INFANTRY
short_desc = SDESC_INFANTRY
eyr = 1
sprite = infantry
transmute = garrison
gfx_prio = 2
infantry = yes
value = 1.0
list_prio = 10
 

keynes2.0

Field Marshal
45 Badges
Jun 27, 2010
7.861
4.281
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • Europa Universalis: Rome
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis III: Chronicles
  • Hearts of Iron Anthology
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Darkest Hour
  • East India Company
  • Age of Wonders: Planetfall
  • BATTLETECH: Season pass
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Flashpoint
  • Surviving Mars: First Colony Edition
  • Age of Wonders II
  • Age of Wonders
  • BATTLETECH: Heavy Metal
  • Age of Wonders: Shadow Magic
  • Age of Wonders III
  • Surviving Mars
  • BATTLETECH
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Pride of Nations
  • 500k Club
  • Victoria 2
  • Cities: Skylines
What are the limitations for minister files? I get that they need to be 36x50 bmp files but some of those work while others cause CTD and I'm wondering what might be the reason for that.
 

unmerged(444403)

First Lieutenant
3 Badges
Feb 4, 2012
200
0
  • Crusader Kings II
  • Darkest Hour
  • Pillars of Eternity
The file is in the db/units folder.. called division_types.txt..

infantry = {
#ID 0
type = infantry
name = NAME_INFANTRY
short_name = SNAME_INFANTRY
desc = LDESC_INFANTRY
short_desc = SDESC_INFANTRY
eyr = 1
sprite = infantry
transmute = garrison
gfx_prio = 2
infantry = yes
value = 1.0
list_prio = 10

ah there it is ! perfect thank you - would you believe i've looked at that file twice and not spotted 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
What are the limitations for minister files? I get that they need to be 36x50 bmp files but some of those work while others cause CTD and I'm wondering what might be the reason for that.

Certainly busy tonight!

Yeah, 36 x 50 .. either 8-bit B&W or 24-bit colour, but always with a 1 pixel white border. But I've seen them without borders as well.

Crashing... I would immediately suspect that you are calling the correct pic? Do you have that pic in the correct folder?
Do you have 2 pics of the same name?

Check out that kind of thing.

EDIT: and editing minister files.. always change a current file, never try to create one from scratch, as you always miss something.

If you can use WinMerge to check your file against the original DH minister file of the same name, it will highlight the differences. Something else may be shown as well, and this could be the error?

EDIT: Check you aren't calling the same pic more than once in the minister file?
Has the minister the correct trait... using a disallowed trait for a minister type, will cause you trouble.
 
Last edited:

keynes2.0

Field Marshal
45 Badges
Jun 27, 2010
7.861
4.281
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • Europa Universalis: Rome
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis III: Chronicles
  • Hearts of Iron Anthology
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Darkest Hour
  • East India Company
  • Age of Wonders: Planetfall
  • BATTLETECH: Season pass
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Flashpoint
  • Surviving Mars: First Colony Edition
  • Age of Wonders II
  • Age of Wonders
  • BATTLETECH: Heavy Metal
  • Age of Wonders: Shadow Magic
  • Age of Wonders III
  • Surviving Mars
  • BATTLETECH
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Pride of Nations
  • 500k Club
  • Victoria 2
  • Cities: Skylines
Crashing... I would immediately suspect that you are calling the correct pic? Do you have that pic in the correct folder?
Do you have 2 pics of the same name?

The problem was with the pics themselves, when I reduced their color detail, they worked. Good to know that 24 bit color is what I need.
 

unmerged(444403)

First Lieutenant
3 Badges
Feb 4, 2012
200
0
  • Crusader Kings II
  • Darkest Hour
  • Pillars of Eternity
Just wanted to clarify something :)

With tech tree's and dependencies is it possible to have "or" commands such as.. Medium Tank 44 requires Medium Tank 42 OR Tank Destroyer 42 for example.. I hope it makes sense :p

I'm pretty sure you cant but I wanted to make sure :)

Thanks !
 

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
Just wanted to clarify something :)

With tech tree's and dependencies is it possible to have "or" commands such as.. Medium Tank 44 requires Medium Tank 42 OR Tank Destroyer 42 for example.. I hope it makes sense :p

I'm pretty sure you cant but I wanted to make sure :)

Thanks !

seems you can, but I've never used it yet.

# Armored Division formations
application =
{ id = 6900
name = TECH_APP_LD_90_NAME

position = { x = 15 y = 184 }
picture = "DH6900"
year = 1934
# Infantry-Tank Combined Combat Theory
component = { id = 6901 name = TECH_CMP_ARMOR_90_1_NAME type = combined_arms_focus difficulty = 5 }
# Maneuver Discipline
component = { id = 6902 name = TECH_CMP_ARMOR_90_2_NAME type = MANEUVER_TACTICS difficulty = 5 }
# Infantry-Tank Mobility Theory
component = { id = 6903 name = TECH_CMP_ARMOR_90_3_NAME type = BLITZKRIEG_TACTICS difficulty = 5 }
# Infantry-Tank Coordination
component = { id = 6904 name = TECH_CMP_ARMOR_90_4_NAME type = combined_arms_focus difficulty = 6 }
# Basic Infantry-Armor Cooperation
component = { id = 6905 name = TECH_CMP_ARMOR_90_5_NAME type = combined_arms_focus difficulty = 6 }
required = { 2010 }
or_required = { 6070 6130 6220 6310 6430 }
effects =
{