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

aphrochine

War Plan Orange Member
80 Badges
May 19, 2005
2.711
110
  • Pillars of Eternity
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Pride of Nations
  • Crusader Kings II: Way of Life
  • Semper Fi
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Art of War
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Magicka
  • March of the Eagles
  • Europa Universalis IV: Res Publica
I'm working on adding some formations to a new nation. I'm editing a save file manually by adding the landunit {} objects via notepad. However, I'm getting errors with the IDs.

Initially, I used the type/ID info that generated when I attempted to use the editor. After finding out the editor doesnt really work so well, I tried manual editing using those same IDs. I got an error about the Type being invalid. I ignored the error and the game loaded up, no ingame issues where seen with the new units. So I build a new unit for the nation, saved the game and looked to get ID '4712' and saw the IDs where 130000 or higher. I edited the type/id's again and used some increments to the ID keeping the type at 4712. The game loaded fine, but then about 2 months in I started getting the error that 134XXX where already taken. I think the game is trying to assign these to newly produced units in the game by other countries, but I've already manually added them to my units. The errors kept repeating and the game crashed.

Anyone have any information or can point me in the right direction to how to set up these IDs without causing illegal ID and ID already taken errors during load and at some point in the game??
 

Gormadoc

Darkest Hour Developer (Semi-Retired)
19 Badges
Sep 1, 2004
3.765
4
  • Hearts of Iron II: Beta
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Hearts of Iron II: Armageddon
  • 500k Club
  • Semper Fi
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis III Complete
  • Deus Vult
aphrochine said:
I'm working on adding some formations to a new nation. I'm editing a save file manually by adding the landunit {} objects via notepad. However, I'm getting errors with the IDs.

Initially, I used the type/ID info that generated when I attempted to use the editor. After finding out the editor doesnt really work so well, I tried manual editing using those same IDs. I got an error about the Type being invalid. I ignored the error and the game loaded up, no ingame issues where seen with the new units. So I build a new unit for the nation, saved the game and looked to get ID '4712' and saw the IDs where 130000 or higher. I edited the type/id's again and used some increments to the ID keeping the type at 4712. The game loaded fine, but then about 2 months in I started getting the error that 134XXX where already taken. I think the game is trying to assign these to newly produced units in the game by other countries, but I've already manually added them to my units. The errors kept repeating and the game crashed.

Anyone have any information or can point me in the right direction to how to set up these IDs without causing illegal ID and ID already taken errors during load and at some point in the game??
ID's numbered 47XX are used by the gameengine for units that are produced during a game session. So using id 4712, 4713 4714 and soforth in scenario inc files will produce error reports. Just pick another id.

If you have used the editor to allocate ID's to units in more than one inc file, with out saving and closing the editor and reopening it. It will have given the same id's to all units. In that case i recommend to start over from scratch.

Are more slow method would be to use the editor to give id's by the following method.

open the editor load scenario, pick one inc file pcik regenerate id's. Save files, close editor completely, reopen editor so it now have loaded the new id's, pick next file regenerate id's, save files, close editor, and soforth.