• 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(189717)

East vs West developer
9 Badges
Jan 8, 2010
2.137
8
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Darkest Hour
  • Europa Universalis III Complete
  • Heir to the Throne
  • Iron Cross
  • Majesty 2
  • Victoria: Revolutions
  • 500k Club
According to this guide (maybe dated):

http://www.paradoxian.org/hoi2wiki/index.php/Modding_ai_files

the game should use my new AI files. I created two new nations using U02 and U03 tags and named the AI files:

u02_1936.ai
u03_1936.ai

Is this enough? Will those AI files be used in every scenario from 1936 to 1945? Or do I have to change some other files too?
BTW, the nations won't exist right ow, they have to be created.
 

Aidan

Admiral General
39 Badges
Feb 22, 2002
484
60
steamcommunity.com
  • Shadowrun Returns
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • BATTLETECH
  • Stellaris: Megacorp
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Mount & Blade: With Fire and Sword
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Darkest Hour
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Victoria: Revolutions
  • 500k Club
  • Cities: Skylines
  • Arsenal of Democracy
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
Since the nations won't be in the game at initial start up I don't think so.
An easy way to tell would be to run a hands off game and see if the ai builds divisions and just places them in the capital.

I'd make an event with "type = ai which = u02_1936.ai" as a command and a trigger of "exists = U02"
 

unmerged(189717)

East vs West developer
9 Badges
Jan 8, 2010
2.137
8
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Darkest Hour
  • Europa Universalis III Complete
  • Heir to the Throne
  • Iron Cross
  • Majesty 2
  • Victoria: Revolutions
  • 500k Club
Since the nations won't be in the game at initial start up I don't think so.
An easy way to tell would be to run a hands off game and see if the ai builds divisions and just places them in the capital.

I'd make an event with "type = ai which = u02_1936.ai" as a command and a trigger of "exists = U02"

Thank you. Is there no other way and is that he reason why *all* puppet-only nations (Scandinavia, Russia, Wallonia etc.) use the standard built AI (=spam INF and nothing else)?
 

kunadam

East vs West developer
109 Badges
Aug 9, 2006
3.187
0
  • Majesty 2
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • For the Motherland
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Supreme Ruler 2020
  • Starvoid
  • Europa Universalis 4: Emperor
  • Darkest Hour
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Arsenal of Democracy
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
Actually their release event could trigger that AI file. Thus modify the release event accordingly.
 

unmerged(189717)

East vs West developer
9 Badges
Jan 8, 2010
2.137
8
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Darkest Hour
  • Europa Universalis III Complete
  • Heir to the Throne
  • Iron Cross
  • Majesty 2
  • Victoria: Revolutions
  • 500k Club
Actually their release event could trigger that AI file. Thus modify the release event accordingly.

I have a release evnt for only one of the two new countries. I think I'll just create an AI-only event that fire once exists=TAG is true.

Code:
################
# Switch U02 AI on
########################################
event = {
	id = 939113
	random = no
	country = U02

	trigger = {
		ai = yes
		exists = U02
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1946 }

	action_a = {
		command = { type = ai which = "u02_1936.ai" }

	}
}

The u02_1936.ai.txt is located in the "events" folder (not in any of the subfolders).
 
Last edited: