-
March 15, 2017, 06:08 AM
#1
Laetus
Editing startpos.esf in A .package File.
I've been trying to edit a mod, that increases all provincial captial building slots to 8, to also increase the number slots on Wood Elf settlements to 12. I do not intend to release this modification but rather only for personal use as the original mod is still being supported by its author(s).
The author of said mod also created mods that changes the number of slots in a capital to 10 and a mod that makes faction captials 10-slot as well as 12 slots for WE settlements.
So I thought I could just go into the files with PFM and see what they did -- and I think I figured it out. As it turns out, all the mods edits startpos.esf, specifically under Campaign_Startpos -> Compressed_Data -> Campaign_Env -> Region_Manager -> Campaign Model -> World -> Region_Array. Each Region is an element on the array, and each of the region elements includes an array of slots objects. The 8 slots mod adds 2 slot objects to each region, and changes the table campaign_building_chain_slot_unlock so that more slots unlock as a settlement is upgraded.
The problem is, each of the region object with the array are indexed: i.e. the first slot in Regions_Array-0 is indexed 1, the second 2, the third 3, etc.. The first region is a minor settlement, so there are 4 slots. The problems, the index on the second region continues from the first, so the slots on the 2nd region is indexed 5, 6, 7 and 8. PFM does not auto-increase the indexes when I insert a new slot, which means I cannot just insert new slots into a settlement and be done with it.
There are 142 regions on startpos.esf, 769 slots. I have to imagine doing this all manually would drain the last bit of enthusiasm out of me. I'm on region 13 right now I'm wondering if there's a better way to do this.
-
March 15, 2017, 09:53 AM
#2
Laetus
Re: Editing startpos.esf in A .package File.
Never mind, I figured this out. Just in case of this I'd just explain a bit. So editing startpos is best done via the assembly kit by editing the start_pos_[table name] then export using BOB.
Also I must be blind but I can't find a edit post option.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules