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

unmerged(83496)

Colonel
5 Badges
Sep 5, 2007
842
1
  • Arsenal of Democracy
  • Darkest Hour
  • East India Company Collection
  • Hearts of Iron III Collection
  • Iron Cross
I'm trying to edit my savegame to give the enemy more units (although adding more ic and resources would also be nice). Can anyone point me in the direction of an editor, or am I stuck using notepad?
 

Gringoesteban

Major
5 Badges
Jan 29, 2008
699
1
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III: Their Finest Hour
  • 500k Club
I'm trying to edit my savegame to give the enemy more units (although adding more ic and resources would also be nice). Can anyone point me in the direction of an editor, or am I stuck using notepad?

I do not know of any save game editor, so you are stuck with Notepad. However, adding new units could be tough because each unit has a unique ID number. If the number you choose for one of your new units is currently being used by another unit in the game, then when you try to load your save file, you will get an error message. If you choose ignore, then one of the two units will be deleted. Otherwise, you will get a CTD.

It might be easier to add an event to the hoi2.txt event file in Arsenal of Democracy / db / events For example, you could copy and paste this after filling in the correct data....


####################################################
# Extra Unit Event
####################################################

event = {
id = 80000 # I think this is an unused event number
random = no
country = XXX # whatever country you want to give the units to

name = "Extra Unit Event"
desc = "The AI's military needs help"
picture = "Stalin"
style = 0

trigger = {
exists = XXX # three letter code of whatever country is getting the units
}

date = { day = X month = Y year = 19ZZ } # tomorrow game date with Y being the name of the month
offset = 1
deathdate = { day = 30 month = december year = 1999 }

action_a = {
name = "Receive Free troops"
command = { type = add_corps which = "Free AI Army" value = land when = XXXXX where = YYY }
# the choices are land or air or naval. if you want to add ships and planes and naval then you will need three separate events or three different corps
# the divisions directly below the corp will be placed into that corp and then the AI will deploy them as soon as the event triggers
# XXXXX is the code to designate which country the unit belongs to.
#You will have to check the save file.
# All of that country's units will have the same number, e.g. I think USA is 14600
# YYY is the province where the units will be placed. F12 showid enter during the game will display province id numbers

# I copied the below from one of the events in my mod
# Just change the division names and types and brigades and you are ready to go
command = { type = add_division which = "AI free division 1" value = hq when = 2 where = engineer }
command = { type = add_division which = "Infantry Div 1" value = infantry when = 3 where = rocket_artillery }
command = { type = add_division which = "Infantry Div 2" value = infantry when = 3 where = rocket_artillery }
# which is the name of the division
# value is the kind of division written exactly to match the file name in db/units/division
# when is what model number
# where is the brigade type named exactly like the file in db/units/brigade

}
}

the event should be copy-paste ready as soon as you fill in the bolded part
 
Last edited: