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

Zapadoslav

Recruit
Jun 27, 2022
3
0
Im currently working on my first hoi4 mod so imma bit of a newbie when it comes to modding. I have created a new country (Wicklow) and made and assigned a state very early on in the process of making my mod, it goes well for the next few weeks, the state seem to be working and there is no problem with the provinces. However after updating my mod in which the update has nothing to do with States or Provinces it gives me an error

[15:41:24][statehistory.cpp:147]: Unknown countrytag for WIC owner-change in TODO
[15:41:33][state.cpp:681]: Error: Province with id: 7377 is already added to state "Wicklow" ( with id: 835 ), adding it to state "Leinster" ( with id: 113) and thus overriding first state.
[15:41:33][state.cpp:681]: Error: Province with id: 7377 is already added to state "Leinster" ( with id: 113 ), adding it to state "Wicklow" ( with id: 835) and thus overriding first state.

I check back if the province has been accidentaly assinged to Leinster (Ireland), and it hasnt. I reload my game multiple times and even verifying the integrety of the game files hoping it would fix something, and it didnt. I will also attach additional codes so it will be easier to understand.
Basically My country doesnt Exist anymore, and i cant find where to fix it.

State: Wicklow

Screenshot 2022-06-27 155750.png


State: Leinster (Ireland)

Screenshot 2022-06-27 155936.png
 

GSP Jr

Colonel
15 Badges
Apr 27, 2017
1.159
983
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Semper Fi
Changing the map can be challenging.
I've never added a new country, just states within a country, so I don't know if your Country is added correctly, but:

State and province numbers must be unique - you appear to have two province #7377 - that is what causes that type of error.

First, every game DLC and upgrade may change the base game map, add/renumber states/provinces, add new ones, etc etc.
So, if you updated your game version from say 1.10 to 1.11, you may have to change your mod also.

Second, when you change the map using the nudge thing, the modified files when you 'save' from the nudger go in C:\Users\***\Documents\Paradox Interactive\Hearts of Iron IV\map directory, You have to copy any changed file into your mod's 'map' directory. After you are done or if you want to discard changes, delete everything in this folder because the game looks here at start-up.

Also, if you are on Steam, go to your steam library, select HOI IV, right click and select 'Properties' then 'LOCAL FILES', then 'Verify integrity....' and this with replace any corrupted files and add any missing files in your HOI installed game. (You say you did this, so ignore this)

If you remove any ...\map files and verify your base game, then try your mod again.
Good Luck.
 
  • 1
Reactions: