• 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.
nomonhan said:
Sorry guys I have to inform you of something--I initially thought that sleeping the leaders before annexation was the magic bullet to make them reappear when the country is re-created, but it doesn't work!!!
I have only found one solution that works, and that is save and reload.
I'm sorry but there is no way around that.
Reworked China Surender with "sleepleader" command give leaders to China (but not to their warlords). But what if China is puppeted by another country ? Or You or AI is annexing and liberate another country, without game reload ?

So I Changed ai_revolters.txt events: Now all countries after every liberation will have free resources/free IC/free manpower. (ex. in original secondly liberated Lybia has 0 IC !). All countries will have leaders when one time liberated. (in original no leaders at all). Second need game reloading before liberation.
 
Kristof73 said:
Reworked China Surender with "sleepleader" command give leaders to China (but not to their warlords)
My point exactly. The warlords do not have leaders. Maybe this is a problem only because the warlords "belong" to Nationalist China but the bottom line is the same: the warlords do not have leaders. They only get leaders by save and reload.
I've tried sleeping the Nationalist Chinese leaders in event 3814 and firing the original event chain and you are right. Nationalist China does get the leaders. So this appears to be a warlord only bug. But the bottom line is that you need to save and reload to release warlords with their leaders.

Tegetthoff:
You should eliminate Japan's option to annex Nanjing. It would completely erase any legitimacy of a Wang Jingwei government. Either that or give Nat China 30 dissent if you do--and move the capital to Wuchang.
 
Last edited:
nomonhan said:
My point exactly. The warlords do not have leaders. Maybe this is a problem only because the warlords "belong" to Nationalist China but the bottom line is the same: the warlords do not have leaders. They only get leaders by save and reload.
I've tried sleeping the Nationalist Chinese leaders in event 3814 and firing the original event chain and you are right. Nationalist China does get the leaders. So this appears to be a warlord only bug.
You need "sleepleader" before country annexation. So every annexed and liberated country without realod have not any leaders (execept dormant ones)! Not only China.

If in the time of "China Surrender" event, warlords exists and you must sleep their leaders before "inherit" them by China and they will have their leaders. But it's another - better way. Make copies of all leaders with different "id" number in leaders.csv ex. nationalistchina.csv. Add them as dormant in scenario file to country - ex. chi_36.inc. And now after only first liberation, they will at once dormant leaders :)( no matter who is liberator). But you have to made an event which sleeps all original leaders, becouse
somebody could reload game in time between annexation and liberation. This event must be persistent. Becouse in the time of possible second liberation - country will have both normal and dormant leaders when game is reloaded in this time. It is working for all countries in time of first liberation. Second need game reload. (dormant will be loaded). BTW. command wakeleader don't work. It teoretically wake dormant leaders .... See: German event which wake leaders in time of Austria annexation or American and Russian pilot to China. These leaders can't be waken that way .....

event = {
id = 150840000
trigger = {
ai = yes
}
random = no
country = CHI

name = "AI_EVENT"
desc = "AI_EVENT"
style = 0

date = { day = 1 month = january year = 1936 }

action_a = {
command = { type = local_setflag which = is_independent }
}
}

event = {
id = 150840001
trigger = {
ai = yes
NOT = { local_flag = is_independent }
}
random = no
country = CHI
persistent = yes

name = "AI_EVENT"
desc = "AI_EVENT"
style = 0

date = { day = 2 month = january year = 1936 }
offset = 1
deathdate = { day = 29 month = december year = 1953 }

action_a = {
# sleep original leaders just in case of game reloading before country liberation
command = { type = sleepleader which = 50000 }
command = { type = sleepleader which = 50001 }
(etc.)
(etc.)
command = { type = local_clrflag which = is_independent }
}
}
 
Sorry, just rejoined the discussion after some extended business trips.

I realised that we are working on quite different versions now, the 0.1 version of the event series will not produce leaders in most cases.

I will put up an 0.2 version over the weekend, hopefully.

My resarch checks out with what Kristof has looked at, leaders have to be slept before annexation. However, I have never researched so deeply into multiple annexations and liberations as to check on the othe part of Kristof´s research.

Theoretically, the ai_inherit_China fix by Nomonhan and the new event triggers I have written provide leaders for the warlords in most imaginable scenarios.

My problem at the moment is actually that I get leaders for the warlords even in situations where the should not appear accordig to the research of Kristof and my own. I hope to find the time over the weekend to check it out.

I tend to agree now that wakeleader does not work.
 
Wakelader

Have to correct myself regarding wakeleader.

I got the idea for the wakeleader command from the TRP mod, which uses it extensively to transfer leaders between Japan and the Kwantung army. I have never played a complete TRP game, but I assume that the TRP people would have changed it if it does not work.
 
Leaders

I´ll run a quick theory by you:

HOI2 stores leaders in the save file in two places:

UNASSIGNED (and sleeping) leaders are stored in a leader list

ASSIGNED leaders are stored with the corps they command.

If you annex a country, the divisions are destroyed and the leaders are lost. The unassigned leaders are retained and woken on liberation.

Since the warlords have few leaders, all leaders are usually assigned and destroyed and none are reactivated at liberation.

I you annex and liberate several times, you destroy more leaders and will end up with none after a couple of annexations and liberations.
 
I have uploaded version 0.2 and replaced it by 0.21 one hour later.

Changelog:

Changed outright bugs in the Warlord Submits events (66005, 66006, 66007, 66008) that caused them to fire incorrectly

Included ai_inherit_China.txt by Nomonhan, even if he thinks it does not work

Added the suggestions by Nomonhan for the setup of puppet Nationalist China (sleeping certain leaders, choice of ministers etc.)

Added belligerence, dissent and relation consequences to the various partition choices. Annexing parts of China raises JAP belligerence and disturbs relations with major powers.

Puppet Nationalist China receives -20% industrial efficiency

Warlords receive -10% industrial efficiency

This simulates lack of enthusiasm in working for Japanese and corruption in puppet states.

Made sure that the demobilise china army recursive event is deactivated at the end of the China Surrender chain.

Removed some Yunnan cores to prevent Chongquing IC falling to Yunnan in case of heartland annexation.


Version 0.21:

Now sleeping warlord leaders by a Japanese event, thus sleeping even leaders of annexed warlords. Hopefully this solves the leader bug

Made sure (hopefully) that no Japanese troops get strat-deployed during warlord release
 
Last edited: