Author: husserlTW
Original Thread: How to unlock non playable and emergent factions

How to unlock non playable and emergent factions
How to unlock non playable and emergent factions
Spoiler Alert, click show to read: 

1. Non playable factions

To unlock non playable factions first follow the tutorial we used in Empire for minor factions. Open the startpos.esf file with EsfEditor form [NTW]/data/camaigns/mp_eur_napoleon and make these changes:

[..] CAMPAIGN_PREOPEN_MAP_INFO/PLAYERS_ARRAY/PLAYERS_ARRAY (non playable faction)/ middle False change to True
[..] CAMPAIGN_PREOPEN_MAP_INFO/FACTION_INFOS/ FACTION_INFOS/ 3rd and 4th False change to True
[..] CAMPAIGN_ENV/CAMPAIGN_MODEL/WORLD/FACTION_ARRAY/FACTION_ARRAY/FACTION/CAMPAIGN_PLAYERS_SETUP/ middle False change to True
[..] CAMPAIGN_ENV/CAMPAIGN_SETUP/PLAYERS_ARRAY/PLAYERS_ARRAY/ middle False change to True

In Napoleon faction selection menu there is place only for 4 factions. Until the scripter aces solve this problem you have to make a trick, to free up some space for your new playable faction. Go in startpos and in

[...]CAMPAIGN_PROPEN_MAP_INFO/CAMPAIGN_PLAYERS_SETUP/PLAYERS_ARRAY

change to False the middle True Boolean of a playable faction like Britain, Austria, Prussia or Russia.

2. Emergent factions

We'll do it in a similar way like in Empire but there are also some extra things to do. First follow the above tutorial to make the emergent playable. Now go
in:

[..]CAMPAIGN_ENV/CAMPAIGN_MODEL/WORLD/FACTION_ARRAY/FACTION_ARRAY/FACTION

in 11th and 12th entries enter a region ID. Also change the 14th Trueto False. The region ID should not be the capitol region like we do in Empire. Go further in FACTION/FACTION_ECONOMICS and in 1st line enter the amount 500.000.

To find the region ID I mentioned before go in:

[..]CAMPAIGN_ENV/CAMPAIGN_MODEL/WORLD/REGIONS_ARRAY/REGIONS_ARRAY/REGION first line.

In REGION 17th line enter the emergent faction's id ([...]
WORLD/FACTION_ARRAY/FACTION_ARRAY/FACTION 1st lime).

Now go further in:

REGION/REGION_SLOT_MANAGER/REGIONS_SLOT_ARRAY/REGIONS_SLOT_ARRAY/REGION_SLOT_SIEGEABLE_GARRISON_RESIDENCE/ GARRISON_RESIDENCE


and enter the new owner faction's ID. Do the same for every building slot, plus road slot, fortification slot and SETTLEMENT.

After you make a playable faction non playable (last step of previous tutorial) start the game as the emergent. If everything is O.K. you should be able to get in campaign but you can see nothing because of FoW. It is alright, here we want to do this: Go in diplomacy menu and ask from the faction that holds the capitol region and sell it to you for 500.000. When this is don you'll see a message that a new leader and government is established. Emergent is now fully unlockable. Save the game and exit.

Now go in:

C:\Users\(user name)\AppData\Roaming\The Creative Assembly\Napoleon\save_games (for vista, win 7)

and rename the saved file from xxxx_xxxx.save to xxxx_xxxx.empire_save so the EsfEditor be able to read and edit it. Now we are going to make a Hubrid startpos using the startpos.esf from
[NTW]/data/camaigns/mp_eur_napoleon and the saved game.

Open
startpos.esf and xxxx_xxxx.empire_save in the same instance of EsfEditor.

1. Go in
startpos.esf/CAMPAIGN_STARTPOS/CAMPAIGN_ENV/ right click on CAMPAIGN_MODEL and delete it.
2. Save it and open again in
CAMPAIGN_ENV
3. In
saved_game.esf/ CAMPAIGN_STARTPOS/CAMPAIGN_ENV/ right click on CAMPAIGN_MODEL and then click copy. Give sometime to the Editor to complete this and the following step since the amount of data is huge. Your Editor will stop responding for a few seconds but this is normal.
4. Right click on
CAMPAIGN_ ENV of startpos.esf and paste.
5. Save the new hybrid startpos.esf.

Open it again and go in
FACTION/FACTION_ECONOMICS to correct the treasuries.

Then go in:

[..]CAMPAIGN_ENV/CAMPAIGN_MODEL/WORLD/REGIONS_ARRAY/REGIONS_ARRAY/REGION

of the capitol region you have bought, copy the region ID and paste it in

[..]CAMPAIGN_ENV/CAMPAIGN_MODEL/WORLD/FACTION_ARRAY/FACTION_ARRAY/FACTION

in 11th and 12th entries, so now your faction has the right capitol. Also now you can make any other minor changes like make your new faction major, etc. See here some modifications. This will be your final startpos.esf with the emergent fully unlocked and playable.