Darkest Hour - Dev Diary #31 - Unit Changes

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

taffy3

Darkest Hour Team
29 Badges
Mar 2, 2009
154
2
  • Hearts of Iron II: Armageddon
  • Heir to the Throne
  • Hearts of Iron III
  • Arsenal of Democracy
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II
  • Stellaris: Federations
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Pillars of Eternity
  • 500k Club
  • Victoria 2
  • Magicka
  • Europa Universalis IV
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions




One of the new features coming in 1.03 is user definable units and brigades.

In our never-ceasing drive toward moddability, we implemented a slew of generic divisions and brigades that modders can now use to create their own unit models. There are 99 moddable divisions (d_01 ... d_99) and 99 moddable brigades (b_01 ... b_99); so there is no more need for wedging units inside other model lines, or having to overwrite entire division types to add the ones you like.

Initially, members of the DH Team latched on to this idea and began developing some of the units they felt were sorely missing. But we quickly decided to make them proper named models, so as to not use up the extensible ones for the modders. We now have a new rocket_interceptor unit, a light_carrier unit, as well as 5 new brigades: amphib_armor, glider_armor, glider_artillery, LCAG, and super_heavy_artillery.

Being one of the big naval enthusiasts of the DH Team, I'm going to go into detail about the CVL+LCAG.

Many of us have always hated the way there was a model type called escort_carrier, but it was used to model light carriers. In version 1.02, we had added two escort carrier models wedged into the light carrier model and tech tree lines. This was nice for flavor, but had limitations. First, the AI would never build these CVEs, since they were always one model back from the latest CVL model. Also some players have just found the model confusing (and rightly so!). So we removed these models and developed the new light_carrier and light_cag.

Developing this new dedicated CVL model line required some reshuffling of the already existing models; however we did this while trying to keep the tech tree relatively unchanged. So the CVEs and CVLs are both found within the CVL tree. We also kept the early, experimental carriers from the WWI era in the escort_carrier line. The models break down like this:

Code:
CVL:
(1929) I   'Basic CVL'       (Japan's Ryujo)
(1941) II  'Improved CVL'    (USA's Independences)
(1944) III 'Semi-modern CVL' (USA's Saipans)
(1948) IV  'Modern CVL'      (UK's Centaurs)

CVE:
(1912) I   'Seaplane Carrier'
(1916) II  'Converted Experimental'     (UK's Argus, USA's Langley)
(1920) III 'Experimental Small Carrier' (Japan's Hosho, UK's Hermes)
(1941) IV  'Conversion CVE'             (USA's Bogue-class)
(1944) V   'Improved CVE'               (USA's Casablanca-class)

The escort_carrier model was traditionally brigadeless to denote limited upgrade capabilities and limited longevity. We felt that was still an appropriate limitation for the WWI-era experimental carriers, whose early designs largely left them obsolete by WWII.
The new light_carrier model meanwhile gets a new Light CAG brigade. This brigade is activated from within the current CAG tech tree and so follows that tree's tech years.

We've also added some documentation for the modders to show how to make use of the extensible brigade and division models. Below is a summary of how the user-definable units modding works.

There are four relevant files under folder db\units\:
  • modifiers.csv
  • brigade_modifiers.csv
  • division_types.txt
  • brigade_types.txt

modifiers.csv
This file is already present in DH 1.02 and contains the weather and terrain modifiers for existing units. We have now added 6 new modifiers, to make this file complete: ATT_CLEAR, ATT_PLAIN, DEF_CLEAR, DEF_PLAIN, MOV_CLEAR, MOV_PLAIN. These new values represent the modifiers for attacking, defending or moving under clear weather and plain terrain.
NOTE 1: since this file has been changed, mods will need to upgrade to the new version of the file to be playable with 1.03 (both beta and final) (just adding these 6 lines is enough). But we will give all necessary informations on how to upgrade mods from 1.02 to 1.03 in due time, don't worry.
NOTE 2: you'll also notice that there are 8 new columns (rsv_33, rsv_34, rsv_35, rsv_36, rsv_37, rsv_38, rsv_39, rsv_40). Please don't pay any attention to them, they're for internal and possible future use. So please don't modify or remove them, ok? Deal! :)

brigade_modifiers.csv
This is a new file. It contains the weather and terrain modifiers for brigades (the old ones and the new ones). As above, the file will have to be added to mods to convert them to 1.03. Also, please don't modify or remove the final 5 columns (rsv_36, rsv_37, rsv_38, rsv_39, rsv_40).

division_types.txt
This file contains the definitions of ALL the division types. First, there is a commented section with instructions on how to use the file. Then the standard DH units are described, from infantry to flying_rocket to the last one, d_rsv_40 (one of those you're not supposed to touch).

brigade_types.txt
Similarly, this file defines the brigade types. Similarly, don't touch b_rsv_* entries! :)

There's lots of good documentation about the details of these files at the top of them. We're also working on a tutorial to thoroughly walk modders through this system.

Hope you all have enjoyed this sneak-peek!


View attachment 60819 View attachment 60820 View attachment 60821 View attachment 60822 View attachment 60823
 
Last edited:
I can't wait!!!! I have a vacation the first week of September...I can only hope we have the beta. Keep up the good work devs.
 
It occurs to me that this thread is "useless without pics!" :)

ss1.png ss3.png ss4.png ss5.png ss6.png
 
As a general rule, the more modable a game is, the worse the mods are. I don't expect to be able to get a single DH mod that isn't full of crappy, useless divisions. In fact I think there are probably too many in the game as it is.
 
As a general rule, the more modable a game is, the worse the mods are. I don't expect to be able to get a single DH mod that isn't full of crappy, useless divisions. In fact I think there are probably too many in the game as it is.

yeah,remove everything other than infantry,fighter and battleship... :D

you could have told us about equipments or causualty reports too imo
 
Those distinctions between light and escort carriers looks awesome. Going to be a lot more light carriers I'm going to have to model. As a skif modder though how does it affect model number in the /model file? I'm assuming they're an entirely separate unit. Same with rocket interceptors, now no longer just at the end of the interceptor numbering?
 
So...I expect someone to start adding hillarious units in once 1.3 arrives? Might I suggest a Fegelein unit for Germany, his antics can be better used against the Soviets instead of against Hitler.
 
Those distinctions between light and escort carriers looks awesome. Going to be a lot more light carriers I'm going to have to model. As a skif modder though how does it affect model number in the /model file? I'm assuming they're an entirely separate unit. Same with rocket interceptors, now no longer just at the end of the interceptor numbering?

Yep, they're an entirely separate unit. Ditto for their corresponding brigade.
 
How will be the new units represented in the unit summery table(s)?

EDIT: oh and by the way can we get a brigade summary table as well?
 
As a general rule, the more modable a game is, the worse the mods are. I don't expect to be able to get a single DH mod that isn't full of crappy, useless divisions. In fact I think there are probably too many in the game as it is.
Lol, how can you blame the devs for making the game more moddable? Blame the modders for making crappy mods. Wait a bit and I'm sure that there will be mods without many new units.

Personally, I think that the separation of CVEs and CVLs is a great idea and sth which both HOI2 and HOI3 failed to represent. Those were different type of vessels with different roles. Also, the ability to add terrain modifiers for brigades should help to balance them and make them more realistic. It was sth which was missing in HOI2, too.
 
Those distinctions between light and escort carriers looks awesome. Going to be a lot more light carriers I'm going to have to model. As a skif modder though how does it affect model number in the /model file? I'm assuming they're an entirely separate unit. Same with rocket interceptors, now no longer just at the end of the interceptor numbering?

Any unit type has own unique ID (number) for model names, pictures, counters, sprites (with an option to reuse another unit's sprite) etc.
 
As a general rule, the more modable a game is, the worse the mods are. I don't expect to be able to get a single DH mod that isn't full of crappy, useless divisions. In fact I think there are probably too many in the game as it is.
That doesn't mean more divisions/brigades is a bad feature. Even with division merging, I still made new ones in one of my mods. If you really wanted to, you could streamline infantry a bit in your own game via modding. GAR could be removed, MTN/PAR/MAR merged (use PAR, modify the modifiers to do well in MTN and MAR), and MOT/MEC merged. I think the artillery brigades are very well streamlined. I like how AT and RART boost ART.