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

TremblingBlue

Colonel
48 Badges
Nov 19, 2010
1.096
222
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • 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
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rights of Man
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Necroids
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Hearts of Iron IV Sign-up
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Semper Fi
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Arsenal of Democracy
I've had a great 1933 campaign as the Republic of China, Pushing the Japanese out of Korea by mid 1938 and destroying most of their land force.

It was all going so well until I finally admitted to myself in 1941 that this event is never going to fire. Has anyone else had this problem? Is it the 1933 scenario or a factor unknown to me?
 
If I recall correctly, it's now a decision you need to fire. The chances are quite slim, but are you sure there's not some Japanese presence in a really, really obscure Chinese mainland province?
 
There's a bug in the event, I posted a fix in multiple past threads, use the search feature please.

The bug is with a missing or = { } section for checking the country.
 
Sorry Limith, I haven't been here for a while...I did do a search but didn't have much luck.

I'll have a look at the event again.
 
I found this post.

Copied the code mentioned there. I wonder if this is correct:

Code:
event = {
	id = 2012004
	random = no
	tag = { CHI CHC }

	name = "EVT_3823_NAME"
	desc = "EVT_3823_DESC"
	style = 2
	picture = "news_paper"

    
	or = {
    		and = {
			country = CHI
			war = { country = CHI country = JAP }
			region = { region = "China" country = CHI value = 55 }
		}
		and = {
			country = CHC
			war = { country = CHC country = JAP }
			region = { region = "China" country = CHC value = 55 }
		}
}
 
i had to do an acceptall cheat with japan demanding korea for them to finally peace me. yep, it sucked. it was either that or manually go trigger the event, and i was just too lazy to do so.
 
Here's the latest version, also includes a fix for Korea in some occasions. Make sure to replace event 2012005 as well (included 2 events below).
Code:
#########################################################################
#  Surrender events - Japan surrenders to China
#########################################################################

event = {
	id = 2012004
	random = no
	tag = { CHI CHC }

	name = "EVT_3823_NAME"
	desc = "EVT_3823_DESC"
	style = 2
	picture = "news_paper"

    
	trigger = {
		or = {
			and = {
				country = CHI
				war = { country = CHI country = JAP }
				region = { region = "China" country = CHI value = 55 }
			}
			and = {
				country = CHC
				war = { country = CHC country = JAP }
				region = { region = "China" country = CHC value = 55 }
			}
		}
		or = {
			and = { # China or rebel controls one of these provinces.
				or = {
					control = { province = 1214 data = CHI } # Shenyang
					control = { province = 1214 data = CHC } # Shenyang
					control = { province = 1214 data = REB } # Shenyang
				}
				or = {
					control = { province = 1199 data = CHI } # Harbin
					control = { province = 1199 data = CHC } # Harbin
					control = { province = 1199 data = REB } # Harbin
				}
				or = {
					control = { province = 1221 data = CHI } # Pyongyang
					control = { province = 1221 data = CHC } # Pyongyang
					control = { province = 1221 data = REB } # Pyongyang
				}
				or = {
					control = { province = 1228 data = CHI } # Seoul
					control = { province = 1228 data = CHC } # Seoul
					control = { province = 1228 data = REB } # Seoul
				}
				or = {
					control = { province = 1231 data = CHI } # Busan
					control = { province = 1231 data = CHC } # Busan
					control = { province = 1231 data = REB } # Busan
				}
				or = {
					control = { province = 1337 data = CHI } # Nanjing
					control = { province = 1337 data = CHC } # Nanjing
					control = { province = 1337 data = REB } # Nanjing
				}
				or = {
					control = { province = 1247 data = CHI } # Beijing
					control = { province = 1247 data = CHC } # Beijing
					control = { province = 1247 data = REB } # Beijing
				}
			}
			and = {
				not = { region = { region = "China" country = JAP value = 10 } }
				not = { region = { region = "Korea" country = JAP value = 5 } }
				not = { exists = MAN }
				not = { exists = MEN }
				not = { region = { region = "China" country = U87 value = 5 } }
				region = { region = "Korea" country = -3 value = 55 }
				or = {
					and = {
						exists = MON
						not = { region = { region = "China" country = SOV value = 10 } }
					}
					and = {	
						not = { exists = MON }
						not = { region = { region = "China" country = SOV value = 20 } } #In case Soviets annexed Mongolia
					}
				}
				not = { region = { region = "China" country = USA value = 10 } }
			}
		}
		random = 50
	}

	date = { day = 0 month = january year = 1936 }
	offset = 10
	deathdate = { day = 29 month = december year = 1963 }

	action = {
		ai_chance = 100
		name = "EVT_3823_ACTA" #Humiliate the Japanese!
		command = { type = dissent value = -20 }
		command = { trigger = { country = CHI } type = setflag which = fs_kmt }
		command = { trigger = { country = CHC } type = setflag which = fs_ccp }
		command = { type = trigger which = 2011018 }
		command = { trigger = { exists = U87 } type = inherit which = U87}
	}

	action = {
		ai_chance = 0
		name = "EVT_3823_ACTB" #We push for total victory!
		command = { type = dissent value = 5 }
		command = { type = sleepevent which = 2011018 }
		command = { trigger = { exists = U87 } type = inherit which = U87}
	}
}
#########################################################################
#  Surrender events - Japan surrenders to China
#########################################################################
event = {
	id = 2012005
	random = no
	tag = { CHC CHI }

	name = "EVT_3825_NAME"
	desc = "EVT_3825_DESC"
	style = 2
	picture = "ccip_fs"

	#Triggered by JAP 2011018

	action = {
		name = "ACTION_NAME_HURRAH" #
		command = { trigger = { exists = MAN } type = inherit which = MAN }
		command = { trigger = { exists = MEN } type = inherit which = MEN }
		command = { trigger = { exists = KOR or = { not = { ispuppet = KOR } puppet = { country = KOR country = JAP } } } type = make_puppet which = KOR }
		command = { trigger = { exists = PRK or = { not = { ispuppet = KOR } puppet = { country = PRK country = JAP } } } type = make_puppet which = PRK }
		command = { trigger = { exists = KOR or = { and = { country = CHI puppet = { country = KOR country = CHI } } and = { country = CHC puppet = { country = KOR country = CHC } } } } type = secederegion which = KOR value = "Korea" when = 1}
		command = { trigger = { exists = PRK or = { and = { country = CHI puppet = { country = PRK country = CHI } } and = { country = CHC puppet = { country = PRK country = CHC } } } } type = secederegion which = PRK value = "Korea" when = 1}
		command = { trigger = { puppet = { country = U03 country = JAP } } type = make_puppet which = U03 }
		command = { trigger = { puppet = { country = U03 country = CHI } country = CHI } type = secederegion which = U03 value = Indochine } 
		command = { trigger = { puppet = { country = U03 country = CHC } country = CHC } type = secederegion which = U03 value = Indochine } 
		command = { trigger = { ai = yes country = CHI } type = ai which = "switch/CHI_Wins_JAP.ai" } #TODO: 1.05 Review AI
	}
}
 
It appears the second Chinese event (2012005) doesn't trigger. I can't see anything wrong with the Japan event itself. It only has 2 ecommands
 
Last edited:
It won't trigger if none of the commands are valid, which is entirely possible given every command has a trigger to it. It shouldn't be a problem if the second event doesn't trigger since it's just a helper event designed to make sure events occur in the right order. If you really wanted to test it, add a blank command = { } to the end of the action in the event not triggering
 
It won't trigger if none of the commands are valid, which is entirely possible given every command has a trigger to it. It shouldn't be a problem if the second event doesn't trigger since it's just a helper event designed to make sure events occur in the right order. If you really wanted to test it, add a blank command = { } to the end of the action in the event not triggering

I believe the main issue is in Japan's response...there's a lot missing. Either way I've broken the Japanese event and the game crashes when I load up now.
 
Last edited:
Code:
#########################################################################
#  Surrender events - Japan surrenders to China
#########################################################################
event = {
	id = 2011018
	random = no
	country = JAP

	name = "EVT_3824_NAME"
	desc = "EVT_3824_DESC"
	style = 2
 	picture = "news_paper"

	#Triggered by CHI 2012004

	action_a = {
		ai_chance = 100
		name = "EVT_3824_ACTA" #
		command = { type = leave_alliance when = 1 }
		command = { type = dissent value = 10 }

		command = { type = domestic which = democratic value = 4 }
		command = { type = domestic which = political_left value = 4 }
		command = { type = domestic which = free_market value = -1 }
		command = { type = domestic which = freedom value = -1 }
		#command = { type = set_domestic which = professional_army value = 2 }
		command = { type = domestic which = defense_lobby value = -3 }
		command = { type = domestic which = interventionism value = -3 }

		command = { trigger = { flag = fs_kmt } type = secederegion which = CHI value = "China" when = 1 }
		command = { trigger = { flag = fs_ccp } type = secederegion which = CHC value = "China" when = 1 }

		command = { type = end_mastery which = MAN } 
		command = { type = end_mastery which = MEN } 

		#Korea
		command = { type = removecore which = 1234 } # Jeju - Korea
		command = { type = removecore which = 1230 } # Gwangju - Korea
		command = { type = removecore which = 1231 } # Daegu - Korea
		command = { type = removecore which = 1232 } # Busan - Korea
		command = { type = removecore which = 1233 } # Chuncheon - Korea
		command = { type = removecore which = 1228 } # Seoul - Korea
		command = { type = removecore which = 1229 } # Seoul - Korea
		command = { type = removecore which = 1224 } # Sinuiju - Korea
		command = { type = removecore which = 1226 } # Ganggye - Korea
		command = { type = removecore which = 1225 } # Cheongjin - Korea
		command = { type = removecore which = 1227 } # Hamheung - Korea
		command = { type = removecore which = 1223 } # Wonsan - Korea
		command = { type = removecore which = 1221 } # Pyeongyang - Korea
		command = { type = removecore which = 1222 } # Sariwon - Korea
		
		command = { type = removeclaim which = 1216 }
		command = { type = removeclaim which = 1219 }
		command = { type = removeclaim which = 1235 }
		command = { type = removeclaim which = 1236 }
		command = { type = removeclaim which = 1245 }
		
		command = { type = non_aggression which = JAP where = CHI }
		command = { type = non_aggression which = JAP where = CHC }

		command = { trigger = { flag = fs_kmt } type = independence which = KOR value = 1 when = 0 }
		command = { trigger = { flag = fs_ccp } type = independence which = PRK value = 1 when = 0 }
		command = { trigger = { exists = KOR puppet = { country = KOR country = JAP } } type = end_mastery which = KOR }
		command = { trigger = { exists = PRK puppet = { country = PRK country = JAP } } type = end_mastery which = PRK }
		command = { trigger = { flag = fs_kmt } type = secederegion which = KOR value = "Korea" when = 1 }
		command = { trigger = { flag = fs_ccp } type = secederegion which = PRK value = "Korea" when = 1 }
		command = { trigger = { ai = yes } type = ai which = "switch/Combat_off.ai" }
		command = { trigger = { flag = fs_kmt } type = event which = 2012005 where = CHI when = 0 }
		command = { trigger = { flag = fs_ccp } type = event which = 2012005 where = CHC when = 0 }
	}

	action_b = {
		ai_chance = 0
		name = "EVT_3824_ACTB" #
		command = { type = dissent value = 10 }
	}
}
 
This is the very best I can do. It's Nationalist China centric at the moment as Communist China has relatively little chance of doing anything in the current version. The main issue is the Flags - they would not activate and it crippled the events. I also changed a few things like removed the Japanese cores on Taiwan and increased its dissent hit (considering they've lost their empire...). China now releases Korea in its "hurrah" event, and has its dissent decrease then.

Of course this will probably not be appropriate for 1.5, but it's solid and works with the current version.

China:
#########################################################################
# Surrender events - Japan surrenders to China
#########################################################################


event = {
id = 2012004
random = no
country = CHI

name = "EVT_3823_NAME"
desc = "EVT_3823_DESC"
style = 2
picture = "news_paper"


trigger = {
or = {
and = {
country = CHI
war = { country = CHI country = JAP }
region = { region = "China" country = CHI value = 55 }
}
}
or = {
and = { # China or rebel controls one of these provinces.
or = {
control = { province = 1214 data = CHI } # Shenyang
control = { province = 1214 data = REB } # Shenyang
}
or = {
control = { province = 1199 data = CHI } # Harbin
control = { province = 1199 data = REB } # Harbin
}
or = {
control = { province = 1221 data = CHI } # Pyongyang
control = { province = 1221 data = REB } # Pyongyang
}
or = {
control = { province = 1228 data = CHI } # Seoul
control = { province = 1228 data = REB } # Seoul
}
or = {
control = { province = 1231 data = CHI } # Busan
control = { province = 1231 data = REB } # Busan
}
or = {
control = { province = 1337 data = CHI } # Nanjing
control = { province = 1337 data = REB } # Nanjing
}
or = {
control = { province = 1247 data = CHI } # Beijing
control = { province = 1247 data = REB } # Beijing
}
}
and = {
not = { region = { region = "China" country = JAP value = 10 } }
not = { region = { region = "Korea" country = JAP value = 5 } }
not = { exists = MAN }
not = { exists = MEN }
not = { region = { region = "China" country = U87 value = 5 } }
region = { region = "Korea" country = -3 value = 55 }
or = {
and = {
exists = MON
not = { region = { region = "China" country = SOV value = 10 } }
}
and = {
not = { exists = MON }
not = { region = { region = "China" country = SOV value = 20 } } #In case Soviets annexed Mongolia
}
}
not = { region = { region = "China" country = USA value = 10 } }
}
}
random = 50
}

date = { day = 0 month = january year = 1936 }
offset = 10
deathdate = { day = 29 month = december year = 1963 }

action = {
ai_chance = 100
name = "EVT_3823_ACTA" #Humiliate the Japanese!
#command = { setflag which = fs_kmt }
#command = { trigger = { country = CHI } type = setflag which = fs_kmt }
#command = { trigger = { country = CHC } type = setflag which = fs_ccp }
command = { type = trigger which = 2011018 }
command = { trigger = { exists = U87 } type = inherit which = U87}
}

action = {
ai_chance = 0
name = "EVT_3823_ACTB" #We push for total victory!
command = { type = dissent value = 5 }
command = { type = sleepevent which = 2011018 }
command = { trigger = { exists = U87 } type = inherit which = U87}
}
}
#########################################################################
# Surrender events - Japan surrenders to China
#########################################################################

event = {
id = 2012005
random = no
country = CHI

name = "EVT_3825_NAME"
desc = "EVT_3825_DESC"
style = 2
picture = "ccip_fs"

#Triggered by JAP 2011018

action = {
name = "ACTION_NAME_HURRAH" #
command = { type = dissent value = -20 }
command = { trigger = { exists = MAN } type = inherit which = MAN }
command = { trigger = { exists = MEN } type = inherit which = MEN }
command = { type = independence which = KOR value = 1 }

#Japan controls Korea as a puppet
command = { trigger = { exists = KOR or = { not = { ispuppet = KOR } puppet = { country = KOR country = JAP } } } type = make_puppet which = KOR }
command = { trigger = { exists = PRK or = { not = { ispuppet = KOR } puppet = { country = PRK country = JAP } } } type = make_puppet which = PRK }
command = { trigger = { exists = KOR or = { and = { country = CHI puppet = { country = KOR country = CHI } } and = { country = CHC puppet = { country = KOR country = CHC } } } } type = secederegion which = KOR value = "Korea" when = 1}
command = { trigger = { exists = PRK or = { and = { country = CHI puppet = { country = PRK country = CHI } } and = { country = CHC puppet = { country = PRK country = CHC } } } } type = secederegion which = PRK value = "Korea" when = 1}

#Japan controls French Indochina as a puppet
command = { trigger = { puppet = { country = U03 country = JAP } } type = make_puppet which = U03 }
command = { trigger = { puppet = { country = U03 country = CHI } country = CHI } type = secederegion which = U03 value = Indochine }
command = { trigger = { puppet = { country = U03 country = CHC } country = CHC } type = secederegion which = U03 value = Indochine }
command = { trigger = { ai = yes country = CHI } type = ai which = "switch/CHI_Wins_JAP.ai" } #TODO: 1.05 Review AI
}
}

Japan:
#########################################################################
# Surrender events - Japan surrenders to China
#########################################################################
event = {
id = 2011018
random = no
country = JAP

name = "EVT_3824_NAME"
desc = "EVT_3824_DESC"
style = 2
picture = "news_paper"

#Triggered by CHI 2012004

action_a = {
ai_chance = 100
name = "EVT_3824_ACTA" #
command = { type = leave_alliance when = 1 }
command = { type = dissent value = 30 }

command = { type = domestic which = democratic value = 4 }
command = { type = domestic which = political_left value = 4 }
command = { type = domestic which = free_market value = -1 }
command = { type = domestic which = freedom value = -1 }
command = { type = domestic which = defense_lobby value = -3 }
command = { type = domestic which = interventionism value = -3 }

command = { type = secederegion which = CHI value = "China" when = 1 }
command = { type = secederegion which = CHI value = "Korea" when = 1 }

#Korea
command = { type = removecore which = 1234 } # Jeju - Korea
command = { type = removecore which = 1230 } # Gwangju - Korea
command = { type = removecore which = 1231 } # Daegu - Korea
command = { type = removecore which = 1232 } # Busan - Korea
command = { type = removecore which = 1233 } # Chuncheon - Korea
command = { type = removecore which = 1228 } # Seoul - Korea
command = { type = removecore which = 1229 } # Seoul - Korea
command = { type = removecore which = 1224 } # Sinuiju - Korea
command = { type = removecore which = 1226 } # Ganggye - Korea
command = { type = removecore which = 1225 } # Cheongjin - Korea
command = { type = removecore which = 1227 } # Hamheung - Korea
command = { type = removecore which = 1223 } # Wonsan - Korea
command = { type = removecore which = 1221 } # Pyeongyang - Korea
command = { type = removecore which = 1222 } # Sariwon - Korea

#Taiwan
command = { type = removecore which = 1364 }
command = { type = removecore which = 1362 }
command = { type = removecore which = 1363 }
command = { type = removecore which = 1361 }

#Mainland China
command = { type = removeclaim which = 1216 }
command = { type = removeclaim which = 1219 }
command = { type = removeclaim which = 1235 }
command = { type = removeclaim which = 1236 }
command = { type = removeclaim which = 1245 }

command = { type = peace which = CHI value = 1 }
command = { type = peace which = CHC value = 1 }
command = { type = non_aggression which = JAP where = CHI }

command = { type = trigger which = 2012005 }
command = { trigger = { ai = yes } type = ai which = "switch/Combat_off.ai" }
}

action_b = {
ai_chance = 0
name = "EVT_3824_ACTB" #
command = { type = dissent value = 10 }
}
}
 
It should work, the version I posted, someone else in the dev team had it fire which is why I made the fix for Korea. I guess I shall test again sometime.
 
The first events for China and Japan fired, but with only partial effect. What happened was Japan transferred Taiwan (keeping the cores), had a non aggression pact with CHI and CHC, but was still at war while Korea was occupied by China, who didn't liberate them. I didn't see any commands for peace in the events, which I had to add. Once I did though, the peace resulted in Japan keeping Korea...so I simplified it.

Apart from a few missing commands, I just modified or removed the kmt_fs and ccp_fs flags and it seemed to work fine. In fact, a lot of what I changed in terms of what happens in each event was probably unnecessary for that reason.
 
The first events for China and Japan fired, but with only partial effect. What happened was Japan transferred Taiwan (keeping the cores), had a non aggression pact with CHI and CHC, but was still at war while Korea was occupied by China, who didn't liberate them. I didn't see any commands for peace in the events, which I had to add. Once I did though, the peace resulted in Japan keeping Korea...so I simplified it.

Apart from a few missing commands, I just modified or removed the kmt_fs and ccp_fs flags and it seemed to work fine. In fact, a lot of what I changed in terms of what happens in each event was probably unnecessary for that reason.

Ah, I found the reason, the dev version of the game has new leave_alliance and peace options, so that's why it doesn't work. The Japan event I gave you basically has:
-Leave alliance and peace out (so JAP gets back control of KOR)
-Some domestic stuff
-Secede all CHI territory to CHI or CHC
-Some core/claim stuff
-Release KOR or PRK (since controlled by JAP)
-Remove puppeting of KOR and PRK if it is JAP puppet
-Tell CHI to puppet KOR or PRK if it used to be under JAP control by firing the next event.

For 1.03, just take the trigger section for the FIRST CHI event I posted and replace the old trigger section of 1.03 vanilla and you should be fine, there was no *general* problems with the rest of the events (besides KOR/PRK erroneously being made a CHI/CHC puppet if it was controlled by SOV or USA, which was the fix I made)
 
Last edited:
Ah, okay! Well, I'm quite terrible at game mechanics as it is...so forgive my judgements.

I'll try it out. Thanks! Need to get my hands on the vanilla events again...I stupidly didn't save copies.
 
Last edited: