[Feature Request] Ability to specify division type id and id id on add_division

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

Limith

Modding for Myself
18 Badges
Apr 7, 2010
3.740
369
  • Darkest Hour
  • Deus Vult
  • East India Company
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Heir to the Throne
  • Rome: Vae Victis
  • Rome Gold
  • Sword of the Stars
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Stellaris Sign-up
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
This will allow commands such as lock_division and unlock_division to be used for event based division additions in emerging factions. (Specifically, ex:
-Nationalist China in AAR mod does not exist in 1914.
-In 1936, Nationalist China in CCIP mod has locked divisions in Shanghai and Hebei province
-If I were to add an event that gifts Nationalist China a division to setup that starting scenario for a historic interwar connection, there is no way for me to lock the division since NatChi is a emerging faction and I can't define an .inc for it).
 
Upvote 0

MartinBG

Darkest Hour Developer
2 Badges
Nov 16, 2007
5.634
257
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
That would be a quite dangerous thing. As you probably know IDs in the game are unique and given at random by the engine, which takes care there to be no ID conflicts with already existing objects. In the case of units/divisions the engine checks all deployed or dormant (that's why these are fully defined in scenario files) divisions for conflicts. If we allow divisions with fixed IDs to be added via events there's a chance the ID to be already in use (given by the engine to a newly produced division for example, but also could be an user mistake setting that ID to division in INC file - that's also not tracked) producing very weird and highly unpredictable results ranging from glitches to crashes.
 
Last edited: