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

OsirisReborn

Colonel
6 Badges
Oct 22, 2005
1.049
1
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Rome: Vae Victis
ok why does his say 1,2,3,4 in the command part
and why does one have a location and the other doesnt
rrrrrr u both have already taken more time than i thought u woudl
what is required and what can i change , obviously i can put what ever i want in the "punk punk " part but what about the rest?
 

blue emu

GroFAZ
Moderator
8 Badges
Mar 13, 2004
17.503
20.150
  • Crusader Kings II
  • Europa Universalis III
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis: Rome
  • 500k Club
  • Hearts of Iron II: Beta
Use Permanganate's version of the code, modified to add a couple of Strategic Bombers as well as the four Interceptors, like so:

Code:
event = {
	id = 90001
	random = no

	name = "Reinforcements"
	desc = "Do you feel lucky, punk? Well, you are lucky, punk. Have some free units, punk."
        picture = "assistance"
	style = 0

	action_a = {
		name = "I am lucky, but I'm a punk"
		command = { type = add_division value = interceptor when = 0 }
		command = { type = add_division value = interceptor when = 0 }
		command = { type = add_division value = interceptor when = 0 }
		command = { type = add_division value = interceptor when = 0 }
                command = { type = add_division value = strategic_bomber when = 0 }
                command = { type = add_division value = strategic_bomber when = 0 }
	}
}

Use your mouse to highlight all the above code:

AirFix_1.jpg


Press <control>-c to copy it. Open a new Notepad, click into the text window, and press <control>-v to paste the above code into it.

AirFix_2.jpg


Click on File > Save As and save it into the events directory My Computer > Local Disk / Program Files / Paradox Interactive / Hearts of Iron 2 / db / events using the name : more_events.txt

AirFix_3.jpg


Now go up one directory to /db and (still in Notepad) click on File > Open and pick events.txt

AirFix_4.jpg


Right at the end of that file, add two lines:

Code:
# Custom Events
event = "db\events\more_events.txt"

Notice that those slashes are actually BACK-SLASHES... \ not /

AirFix_5.jpg


Now save it and exit.

When you reload your HOI-2 save and start playing, you can hit F12 and type :

event 90001 ENG

... and that will give England four Interceptors and two Strat Bombers, in their Deployment queue... it might take them a day to put them on the map.
 

OsirisReborn

Colonel
6 Badges
Oct 22, 2005
1.049
1
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Rome: Vae Victis
ok heres what i did please look at it and tell me if i either :
a : succesefully figured it out
b : no , your a dumbass change x and x


ok shit i archived my 2 docs but how to attatch ?
 

OsirisReborn

Colonel
6 Badges
Oct 22, 2005
1.049
1
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Rome: Vae Victis
nvrmind maybe it will fit heres the first

# AI Events
event = "db\events\AI_capital_move.txt"
event = "db\events\AI_ministers.txt"
event = "db\events\AI_sliders.txt"
event = "db\events\AI_Inherit_Chi.txt"
event = "db\events\AI_minorshutinvasion.txt"
event = "db\events\AI_reactive.txt"
event = "db\events\AI_CHI_spheres.txt"
event = "db\events\AI_revolters.txt"

# New 1.3 Events
event = "db\events\vichy_new.txt"
event = "db\events\colonial_release.txt"
event = "db\events\japanmanpower.txt"
event = "db\events\bulgaria.txt"
# Custom Events

event = "db\events\more_events.txt"

and the second

event = {
id = 90001
random = no

name = "The RAF recieves reinforcements"
desc = "A new wing of bomberss has joined the RAF."
picture = "assistance"
style = 0

action_a = {
name = "Fine"
command = { type = add_division value = strategic_bomber when = 0 }
command = { type = add_division value = strategic_bomber when = 0 }
command = { type = add_division value = strategic_bomber when = 0 }
command = { type = add_division value = strategic_bomber when = 0 }
}
}

event = {
id = 90002
random = no

name = "The RAF recieves reinforcements"
desc = "A new wing of interceptors has joined the RAF."
picture = "assistance"
style = 0

action_a = {
name = "Fine"
command = { type = add_division value = interceptor when = 0 }
command = { type = add_division value = interceptor when = 0 }
command = { type = add_division value = interceptor when = 0 }
command = { type = add_division value = interceptor when = 0 }
}
}

event = {
id = 90003
random = no

name = "The soviet Union mobilises the Siberians!"
desc = "A new division of infantry has joined the red army."
picture = "assistance"
style = 0

action_a = {
name = "Fine"
command = { type = add_division value = infantry when = 0 }
command = { type = add_division value = infantry when = 0 }
command = { type = add_division value = infantry when = 0 }
command = { type = add_division value = infantry when = 0 }
}
}
 

OsirisReborn

Colonel
6 Badges
Oct 22, 2005
1.049
1
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Rome: Vae Victis
ok ! looks like while i was workin u gave me super easy directs ! heh heh thnks a ton looks like the way i did it im giving the AI 4 of each with the commands ? and how do i know what version of interceptor infantry whatever it will get ?
 

blue emu

GroFAZ
Moderator
8 Badges
Mar 13, 2004
17.503
20.150
  • Crusader Kings II
  • Europa Universalis III
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis: Rome
  • 500k Club
  • Hearts of Iron II: Beta
Yup... that looks fine... assuming that those three events (90001 to 90003) went into a file in the events directory called more_events.txt

You could add twenty or so more copy-and-paste russian divisions to event 90003, to save on the number of times you need to call it.

To call them, use :

F12 event 90001 ENG
F12 event 90002 ENG
F12 event 90003 SOV
 

blue emu

GroFAZ
Moderator
8 Badges
Mar 13, 2004
17.503
20.150
  • Crusader Kings II
  • Europa Universalis III
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis: Rome
  • 500k Club
  • Hearts of Iron II: Beta
Jeandeloch said:
ok ! looks like while i was workin u gave me super easy directs ! heh heh thnks a ton looks like the way i did it im giving the AI 4 of each with the commands ?

Correct.

Jeandeloch said:
and how do i know what version of interceptor infantry whatever it will get ?

When you use this method to add a Division, it's ALWAYS the most modern model that they have researched.
 

OsirisReborn

Colonel
6 Badges
Oct 22, 2005
1.049
1
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Rome: Vae Victis
wow thanx alot , no way i could have done that yesterday
thnk you both


how long u think before they will show up on statistics ?
 

OsirisReborn

Colonel
6 Badges
Oct 22, 2005
1.049
1
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Rome: Vae Victis
also what was the function of "the raf recieves a new wing of interceptors" i didnt see that pop up or in game log ?
 

blue emu

GroFAZ
Moderator
8 Badges
Mar 13, 2004
17.503
20.150
  • Crusader Kings II
  • Europa Universalis III
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis: Rome
  • 500k Club
  • Hearts of Iron II: Beta
Jeandeloch said:
wow thanx alot , no way i could have done that yesterday
thnk you both

No problem... "Super Easy-to-Follow Directions" is my middle name! :D

Jeandeloch said:
how long u think before they will show up on statistics ?

Should be pretty soon... it might be at the next 00:00 hours... or it might not be until they build a new unit and notice that there are units waiting in the deployment queue... it depends on how Paradox coded it.

Jeandeloch said:
also what was the function of "the raf recieves a new wing of interceptors" i didnt see that pop up or in game log ?

The "style = 0" parameter might have suppressed the log-message, since AI-only events are not reported to the log. Still, you need to include certain parameters in the event, even if they don't get used, to avoid confusing the AI.
 

blue emu

GroFAZ
Moderator
8 Badges
Mar 13, 2004
17.503
20.150
  • Crusader Kings II
  • Europa Universalis III
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis: Rome
  • 500k Club
  • Hearts of Iron II: Beta
Jeandeloch said:
ok thnk you i shall look for it , didnt happen at next 0:00

and i took your advise for 90003 (x 50) :eek:

You could save and load as England, and see if the units are in the queue...

EDIT: just thought of something... you might have to add:

persistent = yes

... right after the : "random = no" line... so that you can call the event more than once.
 

blue emu

GroFAZ
Moderator
8 Badges
Mar 13, 2004
17.503
20.150
  • Crusader Kings II
  • Europa Universalis III
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis: Rome
  • 500k Club
  • Hearts of Iron II: Beta
Save the game and load as England... see if they are there in the deployment queue.

You did call the event through the F12 console, yes?

<F12> event 90001 ENG
 

OsirisReborn

Colonel
6 Badges
Oct 22, 2005
1.049
1
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Rome: Vae Victis
yeah something is off they arent showing up
i tried to type event 90001 GER and i didnt get any either
wonder what i did wrong?
 

OsirisReborn

Colonel
6 Badges
Oct 22, 2005
1.049
1
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Rome: Vae Victis
blue emu said:
Save the game and load as England... see if they are there in the deployment queue.

You did call the event through the F12 console, yes?

<F12> event 90001 ENG


yes i tried F12 then typed event 90001 ENG then hit enter then closed screen i think by hitting f12 again
let it run 3 weeks
nada
i tried same thing but with GER
nada
 

OsirisReborn

Colonel
6 Badges
Oct 22, 2005
1.049
1
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Rome: Vae Victis
ok i just realised 90001 is for str bombers and i redid it once so that should mean 8 new bombers
i let it run a month now and 1 str bomber has arrived ...cant tell if they built that regular tho