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

e-stab

Citizen
104 Badges
Mar 14, 2002
4.717
98
  • Victoria 2: A House Divided
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Hearts of Iron III
  • Rome: Vae Victis
  • Warlock 2: The Exiled
  • Warlock 2: Wrath of the Nagas
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Stellaris: Nemesis
  • Deus Vult
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • 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
  • Darkest Hour
  • Hearts of Iron Anthology
  • Diplomacy
  • East India Company Collection
  • Europa Universalis III
  • 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
  • For The Glory
I'm sure most of you had that problem: You're playing e.g. Germany and your allies spam you with expeditionary forces you never wanted. Here's the solution I use to get rid of it:

Copy and paste the following line in a new file called "no_exps.ai" in folder /ai/switch/:
Code:
no_exp_forces_to = { GER USA }
Then copy and paste the following text into an event file of your choice (obviously the file has to be used by the scenario you play), e.g. germany.txt in /db/events/:
Code:
########################################
# Event to trigger the "don't send me expeditionary forces!" AI file
# by G'Kar
########################################
event = {
	id = 345678
	random = no
	country = USA

	persistent = yes

	name = "No_Exps.ai"
	style = 0
	desc = " "

	action_a = {
		command = { type = ai which = switch/no_exps.ai }
	}
}
Now you can (even in games already started) forbid country [TAG] to ever send you expeditionary forces again. Simply open the "cheat console" with F12 and enter

"event 345678 [TAG]" (without the quotes)​

[TAG] is the so-called country tag, e.g. HUN für Hungary oder ROM for Romania. In case of success you'll see that event "No_Exps.ai" happened for country [TAG].
(Ctrl-F12 closes the console, by the way. ;))

Event-ID and included countries (above version works when playing Germany or the US) are easy to change. Be careful not to put too many countries in it at the same time though: E.g. with ENG (the UK) in the AI file and using the event for Canada when playing as the US, they'll stop sending troops to the UK as well - which might not be desired. I don't see problems when using it playing Germany though.

(The country tag "USA" used in the event is arbitrary, the event only fires when called from the console anyway.)

It won't work under all circumstances, as sometimes the AI insists on putting troops in provinces controlled by you (usually overseas) and hands over their command to you, but it should work for most cases.
 
Dec 16, 2005
515
0
G'Kar, I want your children! :eek:
Please announce this in the regular HOI2: Doomsday forum too, you will save many lives(and small kittens)!
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
A warning: Some countries are already defined not to send exp forces to some countries they might end up allied to but are fighting in distant theatres; using that event will replace the already existing list.
 

Jalex

Colonel
87 Badges
Sep 6, 2006
830
109
  • Europa Universalis IV: Common Sense
  • Rome Gold
  • Semper Fi
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Nemesis
  • Divine Wind
  • 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
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III Complete
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Majesty 2
finally whenever I build up a big alliance its not going to send me 50 random divs I never intend use that fill up the screen with popups :mad:

Thankyou !!!!!!!!!!!!!!!!!! :D
 

Jalex

Colonel
87 Badges
Sep 6, 2006
830
109
  • Europa Universalis IV: Common Sense
  • Rome Gold
  • Semper Fi
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Nemesis
  • Divine Wind
  • 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
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III Complete
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Majesty 2
finally whenever I build up a big alliance its not going to send me 50 random divs I never intend use that fill up the screen with popups :mad:

Thankyou !!!!!!!!!!!!!!!!!! :D
 

krieger11b

Field Marshal
40 Badges
Apr 24, 2006
3.298
429
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma Pre-order
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron III
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Europa Universalis III
  • 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
  • For the Motherland
  • Arsenal of Democracy
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
When I try to use as Germany for example "Event 345678 AUS" it says it cannot open file and the game crashes. It will work while playing Germany but for everyone else it crashes.
 
Nov 4, 2006
515
0
I've just tried to use the above(G Kar's) code for my CORE 0.25 game, and it failed to work(I've been assured that CORE is the same as DAIM as regards the AI files, it's only the tech-trees that are radically different).
Anyway, I was only able to get the successful "no_exps.ai" entry to appear when I put in either the code "event 345678 WAL " or "event 345678 WALL" , after pressing the F12 console button. As I understand it, only the "WALL" term, not "WAL", is the correct abbreviation for Wallonia. It may have worked since it was almost the only puppet-state in the Axis, that didn't have any units put under my control(I'm currently playing as Germany).(actually I don't think Wallonia has any units at all, but it would take ages to check the whole set-up to verify this).

Anyway, for every single other puppet or allied nation(well, Bosnia, Nationalist Spain, Hungary and Romania, so far), it's caused the game to crash every time. A message inevitably appears stating that " the "switch/no_exps.ai" file could not be opened, and then it asks whether you want to continue, with the options below to "ignore" "retry" etc., but which you can't press as the game has stalled completely.

I want to make clear that I copied every minor detail described in the event-code and no_exps.ai file, and didn't miss out any brackets etc, and it still didn't work. It occurred to me that maybe the lack of brackets in the no_exps.ai file might have caused the error, but it didn't work even with the extra brackets. I even tried the event-code 345678 etc. without any mention of the US, just using Germany (ie "GER") instead, but that didn't work either.

Any ideas? It seems odd that I can only get the command to work for Wallonia. Could the problem be that the command gets blocked if I already have expeditionary forces allocated to me by the country in question? That would mean a laborious reallocation of units back to each country, before carrying out each relevant command.
 

Shadow86

Lord General
134 Badges
Feb 10, 2006
1.281
722
  • 500k Club
  • Rome Gold
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome - Magna Graecia
  • Crusader Kings Complete
  • Crusader Kings II
  • Crusader Kings III
  • Europa Universalis III Complete
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Sengoku
  • March of the Eagles
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 3 Sign Up
  • Hearts of Iron III
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Battle for Bosporus
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Nemesis
krieger11b said:
When I try to use as Germany for example "Event 345678 AUS" it says it cannot open file and the game crashes. It will work while playing Germany but for everyone else it crashes.
Try saving and reloading before triggering the event. The game doesn't acknowledge changes in the game's files (except perhaps graphic ones) if such modifications didn't exist when at the time of the last save.
 

unmerged(49800)

Private
Oct 26, 2005
18
0
Bump! :)

So this thread helped me to stop all expedition forces, I just added GER to all the tags I could find.. {no expedition..} And it worked, for all countries other then :

Nationalist Spain!!!

I dont think I missed them in the Save Game, so is there another place for them? Where are they hiding?

Thanks on any hints

EDIT : It might have something to do with the special nature of Spain, being Nationalist or Royalist or so? I dont think SPA is the countrytag for Spain?
Playing Germany myself this campaign.
 
Last edited:
Nov 4, 2006
515
0
I wasn't able to use that particular event-code without the game crashing to desktop. MY solution was to simply search for each "exp_force_ratio" and set it to "0.0000" each time. This prevented me from getting any expeditionary forces at all, but I then, later on, assumed military control over one or two nations such as Scandinavia and Romania when I needed the extra troops.
 

unmerged(72110)

Second Lieutenant
Mar 18, 2007
183
0
Just testing if I'm correct or not:
Suppose I'm playing as GERMANY, & I don't want ITALY & HUNGARY to send me Exp force..

then the "no_exps.ai" would be :

no_exp_forces_to = { GER }

& then, the germany.txt would be:

########################################
# Event to trigger the "don't send me expeditionary forces!" AI file
# by G'Kar
########################################
event = {
id = 345678
random = no
country = ITA HUN

persistent = yes

name = "No_Exps.ai"
style = 0
desc = " "

action_a = {
command = { type = ai which = switch/no_exps.ai }
}
}

Is that correct?????

& if not, can you please correct me?
 

e-stab

Citizen
104 Badges
Mar 14, 2002
4.717
98
  • Victoria 2: A House Divided
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Hearts of Iron III
  • Rome: Vae Victis
  • Warlock 2: The Exiled
  • Warlock 2: Wrath of the Nagas
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Stellaris: Nemesis
  • Deus Vult
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • 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
  • Darkest Hour
  • Hearts of Iron Anthology
  • Diplomacy
  • East India Company Collection
  • Europa Universalis III
  • 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
  • For The Glory
ComradeMar said:
Is that correct?????
Almost. The no_exps.ai is right, but don't change the event text! (The country tag in it - note the singular - actually is irrelevant.)

Use the AI file you posted and write "event 345678 HUN" and "event 345678 ITA" (without the quotes) in the console. Any further information necessary should be in the first posting.
 

unmerged(72110)

Second Lieutenant
Mar 18, 2007
183
0
but don't change the event text! (The country tag in it - note the singular - actually is irrelevant.)
you mean that I shouldn't type "ITA HUN" in the following command:
event = {
id = 345678
random = no
country = ITA HUN

if not to change country, then what to type instead?

sorry.. I just need to get the idea here, & all will be fine with me...