Here is the way to add new slots to cities. I've tested new slots and work o.k. and AI uses them without problems. You can add as many slots as you like but you have to make also the proper city model if you make a new one other than 1, 4 or 5 slots. we are assembling a team to change all cities and verybody is welcome to give a hand since it is going to be a long project.
In this tutorial we shall make Copenhagen a 5 slot city adding a navy-admin slot
Tools:
Esf Editor and esf2xml
or
Esf Total Editor
Info: You can make all the changes using only esf2xml tool. I've just used to work fast with the editors that is why I prefer to combine all available tools.
Since some links are broken, I've upload the needed files here (erasmus sheet is included in DataConv sheet): http://www.mediafire.com/download/d2...3/DataConv.zip
Working files: startpos.esf, regions.esf.
The changes in regions.esf are exactly the same so I copy this part from previous tutorial. If you had done the same conversion with old method you can just replace the slot_discriptions of your region from old file to your new one.
Moreover if you had not downgrade the x-major (you suppose not to) you can use it as it is.
A. startpos.esf changes:
1. Open startpos.esf with 1.4.5 editor, go in [...]CAMPAIGN_ENV/CAMPAIN_MODEL/WORLD/REGION_MANAGER/REGIONS_ARRAY/REGIONS_ARRAY, find the region denmark, right click, copy on REGION_MANAGER/REGIONS_ARRAY/ Denmark |REGIONS_ARRAY (Denmark), right click paste in REGION_MANAGER/REGIONS_ARRAY/ and delete old Denmark |REGIONS_ARRAY. Save and close editor.
2. Open again startpos but this time with 1.5 b. Go in CAMPAIGN_ENV/CAMPAIN_MODEL/CAI_INTERFACE/CAI_WORLD/CAI_WORLD_REGIONS, and find Denmark. Then proceed in [..]CAI_WORLD_REGIONS/CAI_REGIONS and note the number for Settlement CAI ID (highlighted in the image below). After that close the file.
3. Now open the file with 1.4.3 for the real heat... Go in REGIONS and open the first one which is Denmark. Go further in REGION/REGION_SLOT_MANAGER/REGION_SLOT_ARRAY/REGION_SLOT_ARRAY/ right click on first REGION_SLOT_ARRAY (army-admin) and clone to make our new slot. Leave the cloned as it is (the green one) we shall work on the first one.
a. In REGION_SLOT first line use a new ID for the new slot. Just use the very next number from the one that is there. Here I enter 586820561.
b. In second line change army-admin to navy-admin.
c. Go further in REGION_SLOT_ARRAY/ SIEGEABLE_GARISSON_RESIDENSE and type in 1st line the new ID.
d. Then go further in REGION_SLOT_ARRAY/ / BUILDING_MANAGER/BUILDING and in second line change the building, in this case I enter admiralty. Your changes should look so far:
If you want to add more slots just repeat step 3. Make sure that you use the right type of buildings slots and types. Look in old tutorial STEP 2.1. about it.
4. Now we have to enter the right coordinates because the city will change formation from square 4slot to cross 5 slot. To do this we need the basic coordinates of the city which can be found in REGIONS_ARRAY/REGION/SETTLEMENT/SIEGABLE_GARISSON_RESIDENCE, 10th (X) and 11th (Y) line. Open the attached erasmus777 spread sheet and enter these values in the first table of the sheet, in B5 and in C5. We have all the coordinates for the 5 buildings, the road and the fortification. You have to enter them (copy/paste) in the REGION_SLOT, in the 5th and 6th line of every building we've made, plus ROAD_SLOT and FORTIFICATION_SLOT, because they also change place a bit after the enlargement of the city. Save the file.
Info: In case of making a 4 slot major city use this attached spread sheet to calculate the coordination of the new 4slot major city.
Up to here the procedure was known at least to those that had tried the former way of conversion. Since the next steps are new we shall save here our file to make the changes in regions.esf and we shall come back to finish with startpos. Save and close the file.
B. Regions.esf changes
Open the file with EsfEditor 1.4.3 and in root/region_data/regions find the region of the city you are converting (Denmark in this case). In regions/settlement_and_slots/slot_descriptions clone the first slot_descriptions. In the first slot_descriptions change the …..: settlement_army-admin in the first and second line with settlement_navy-admin. Repeat the same if you are adding more slots. Now open the erasmus777 spread sheet and enter in B26 and C26 of the second table the basic coordinates. Here, they are in regions/settlement_ and_slots in the first line (X);(Y). Place the coordinates in slot_descriptions 3rd and 4th line (should be the same) of every one of the 5 buildings plus the road and fortification slots.
Save the file.
C. Assigning a new CAI_BUILDING_SLOT in startpos.
Last think is to assign a new CAI_BUILDING_SLOT so new building can be upgraded.
1. Open startpos with 1.4.3 and go in CAMPAIGN_ENV/CAMPAIN_MODEL/CAI_INTERFACE/CAI_WORLD/CAI_WORLD_ SETTLEMENT and find your settlement using the ID we've noted in step A.2. In this case it is 2546. Go further in CAI_WORLD_ SETTLEMENT/ CAI_ SETTLEMENT, right click on it, Export, give a name and a location to be exported. I call it CAISET.esf and I export it on my desktop.
2. Proceed in CAI_WORLD_BUILDING_SLOTS below and go in existing city slots. Since the CAI SETTLEMENT Id is XXXX (2546) then XXXX-1 XXXX-2 should be fortifications and roads slots and XXXX-3, XXXX-4, XXXX-5, XXXX-6 should be the existing 4 building slots, thus 2543, 2542, 2541, 2540. If you upgrade a minor city you'll find only one the XXXX-3. I go in 2540 which is the army slot I've cloned to make the new one (I can see that because in CAI_WORLD_BUILDING_SLOTS/ CAI_BUILDING_SLOT there is the 9 digit Id 586820560 Step A.3.a).
3. Right click on CAI_WORLD_BUILDING_SLOTS 2540(not CAI_BUILDING_SLOT), copy, right click on [...]CAI_WORLD/CAI_BUILDING_SLOTS so the copy will be first on the list.
In our new copy CAI_WORLD_BUILDING_SLOTS I change 2540 to 1002540. I use to place 100 in front of old Ids to produce new unique ones (if I add more slots I use 101XXXX 102XXXX and so on). And in CAI_WORLD_BUILDING_SLOTS /CAI_WORLD_BUILDING_SLOT I type the right new 9 digit Id586820561.
4. Save the file but do not exit. Open it again go on [...]CAI_WORLD/CAI_BUILDING_SLOTS, right click on CAI_BUILDING_SLOTS and export it. I name it CAIBUL.esf and export it on desktop. What we want to do with CAISET and CAIBUL is to convert to xml, make some changes and then import them back to startpos.
5. After I've done with conversions I open CAISET.xml and I add my new CAI building slot entering new CAI Id in the highlighted spot in image below:
Your settlement will be the only one at the end of the xml after the structure if startpos.esf.
CAIBUL folder will have all cai building slots of startpos in separate folders. But I know I've placed mine first on the list so Open the first folder to make my changes. There are 3 Binary lines that I need changed. All 3 of them have the same number 56042. First one is paired with 0 in line 13 and I delete both. Second is paired with 54292 in line 17 and I delete only 56402. Never delete the second number here because it is connected with the owner faction. Third is in line 24 alone and I delete it also from there.
6. I convert back Xml to esf. I open my startpos and in the same instance CAISET.esf and CAIBUL.esf.
7. I go in CAMPAIGN_ENV/CAMPAIN_MODEL/CAI_INTERFACE/CAI_WORLD/CAI_WORLD_ SETTLEMENT I find Denmark (2546). I expand also CAISET.esf, right click on CAISET.esf/ CAI_WORLD_SETTLEMENTS, copy, right click on CAI_WORLD_SETTLEMENTS paste. Right click on CAI_WORLD_SETTLEMENTS/ CAI_SETTLEMENT (the old one) and delete. Repeat for cai building slot: Expand CAIBUL.esf right click in CAIBUL.esf/CAI_BUILDING_SLOTS/CAI_BUILDING_SLOTS (first one 1002540) copy, right click on [...]CAI_WORLD/CAI_BUILDING_SLOTS paste so it is now the first one in list. Delete the second one (it is the old 1002540).
Save the file, make sure that you use the right regions.esf and test.
Make a 4 slot to 5 slot does not require a change to fortifications but if you make a minor major then you have to, so the fortifications are visible. You have to mode main/campaign_map_settlements in ETW/data folder and change the original number of building slot with the converted new one. Download the attached file conversion_patch decompress and copy it to ETW/data. With Pack Manager open data/main.pack and find in campaign_map_settlements the 2 lines of your converted cities (you can export and open TSV with a spread sheet). Open with Pack Manager conversion_patch.pack. In conversion_campaign_map_settlements are the entries for Hannover and Venice that used in the old tutoriall. Replace them with the entries of your city as you found them in data/main.pack.
Spoiler Alert, click show to read: