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??
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??