Results 1 to 14 of 14

Thread: [Tutorial] Creating & Editing Unit Recruitment

  1. #1

    Default [Tutorial] Creating & Editing Unit Recruitment

    This tutorial will explain how to edit Mercenary recruitment entries in a new startpos created by the kit. Please note the kit is not out yet, but this method works for Attila so I am hoping it will work for Thrones.

    If you want to edit existing Mercenary entries without the kit, you can simply use PFM or EditSF to manually change them in the FACTION ARRAYs. Magnar has a tutorial on how to do that I believe. The basics of editing an existing startpos for mercenaries is to open the startpos, find the FACTION ARRAY you want to edit, and find the Factional Mercenaries section. In there you can edit/remove entries and also duplicate an entry to add a new one. I would recommend Magnar's video tutorial on the subject if you are interested in doing these edits now. Here is an example of editing an existing startpos entry:
    Spoiler Alert, click show to read: 

    However, if you want to do mass editing or are creating your own startpos, this is the method to use (once we get the kit):

    1. Create a new mod pack with the following tables in it:
    - faction_to_mercenary_set_junctions
    - main_units
    - mercenary_pool_to_group_junctions
    - mercenary_pools
    - mercenary_units_groups
    - province_to_mercenary_set_junctions
    (This assumes you want to create new mercenary pools, if you want to use vanilla pools & groups you don't need all of these tables).

    2. Add your units to the main units table with their unit keys but make sure the rest of the entries in that table are vanilla (just copy/paste the same entry for every land_unit, caste, audio, etc entry).

    3. Create any new mercenary pools and groups you want. Assign the units to the proper mercenary groups. Assign the mercenary groups to the right pools or to your own pool. Assign those pools to a faction or province. (See below for more information on mercenary tables)

    4. Here is an example pack with the changes outlined: (This pack is for Attila) . It has 3 new test units all assigned to the Sassanids as factional mercenaries. Note that this pack uses table fragments so it doesn't have the vanilla entries, but you can use vanilla tables if you want and just add your changes onto them. I think using table fragments is easier because you won't have to update this pack with any changes made to vanilla entries.

    5. Make sure the mod pack you created is saved as a movie type pack (File - change pack type - movie, then save)

    6. Put the new mod pack file in the data folder with the other pack files. Make sure no other mod packs are activated in mod manager.

    7. Go to assembly_kit/binaries and double click on Bob.AssemblyKit.exe
    8. Output a startpos, it should look like this:
    Spoiler Alert, click show to read: 
    9. It will take awhile for Attila to output it, probably a few minutes at least. The splash screen will be there for a long time and may seem like it crashed, just let it go.

    10. After it completes, go to /assembly_kit/working_data/campaigns and find the startpos.esf file you output. The units should now be in there:
    Spoiler Alert, click show to read: 

    Anytime there is a startpos update or you want to add new units/change units, you can just make your changes to the pack file and then output a new startpos. Individual changes to units are also possible by editing the startpos in PFM or EditSF if its just smaller changes.

    Also note you can change the replenishment time, starting amount, total amount, etc in the pack file.


    Mercenary Group tables - Here is how Mercenary groups and pools work:
    - Each unit is assigned to a Mercenary group in the mercenary_unit_groups table. You can also change replenishment, etc. in this table.
    - Each Mercenary group is then assigned to a Mercenary pool in the mercenary_pool_to_groups_junctions table. These require ID numbers to be unique and also require a reference to the mercneary_pools table (each entry for a mercenary pool must have its ID key in that table)
    - Each Mercenary pool is assigned to a faction or province in either the faction_to_mercenary_set table or the province_to_mercenary_set_table.

    Note: This method can also be used to change other startpos aspects that normally aren't editable by the kit, such as starting unit sizes (set in main_units), garrisons, etc.
    Last edited by Dresden; May 06, 2018 at 06:48 PM.

    Follow us: Patreon -- Steam -- Forums -- Youtube - Facebook

  2. #2

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    Great post, thanks for helping everyone out. Gonna try swapping a faction for the norman roster.
    If yer going to leave some rep be sure to leave your name so I can return the favor
    "I am Andrew Ryan, and I'm here to ask you a question; Is a man not entitled to the sweat of his brow? No! Says the man in Washington, it belongs to the poor. No! Says the man in the Vatican, It belongs to God. No! Says the Man in Moscow, It belongs to everyone. I rejected those answers, instead I choose something different... I chose the impossible... I choose.... Rapture. A city where the artist would not fear the censor, where the scientist would not be bound by petty moralities, where the great would not be constrained by the small. And with the sweat of your brow, Rapture can become your city as well..."
    -Andrew Ryan

  3. #3

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    Huge thanks to Dresden for posting this very informative tutorial!

    I will post here some additional information. As we know the system has changed how the recruitment of the custom units in the campaign has to be modded.

    Language system

    The language system is the same as in Attila. Therefore the custom texts from modders will be only visible in game if the language is set to English. All other languages need again a language mod like the Unit Pack Compatibility Languages Project. Only then are the custom texts from modders visible for players who use other languages than English. Thrones of Britannia features 13 languages.

    I created the Unit Pack Compatibility Languages Project (UPC-TOB) for the community and it supports all available languages.

    All modders can download these base files and use it if they need it for their own mods to add custom texts regarding foreign languages. Also the UPC-TOB can be used to fix errors in the vanilla texts. I will include again as usual like in previous games any possible custom texts from several mods. All modders can fully use my UPC-TOB for their own needs and adapt it.

    Database tables

    These technology db tables are optional to define if a custom unit will be upgraded to another unit or if it requires a certain technology to be unlocked.


    Compatibility problems regarding the startpos.esf

    Below are the big problems with this new recruiting system regarding the compatibility between mods.

    - The startpos.esf will be only loaded once a campaign has been started. If there are changes afterwards from Creative Assembly due to patches or by the modder itself, then a new campaign start is needed that changes of the startpos.esf apply in game.

    - Mods which have their own startpos.esf are incompatible to each other. If a player want to use several mods which have all an own custom startpos.esf, then they can only use one mod in the current campaign as only one startpos.esf will be loaded and they are incompatible to each other. And with each change they will have to start a new campaign, that the new added units or changes in the startpos.esf will be enabled.

    Of course all these incompatibility problems can't be solved at the moment and I posted this here just as additional information.

    Here is some additional information about all the faction_array numbers for each faction in the startpos.esf.

    C:\Program Files (x86)\Steam\steamapps\common\Total War Saga Thrones of Britannia\data\campaigns\vik_attila\startpos.esf

    compressed_data/campaign_env/campaign_model/world/faction_array/faction_array - */faction

    faction_array - * / faction
    Spoiler Alert, click show to read: 

    0 vik_fact_west_seaxe
    1 vik_fact_east_engle
    2 vik_fact_mierce
    3 vik_fact_gwined
    4 vik_fact_northymbre
    5 vik_fact_strat_clut
    6 vik_fact_circenn
    7 vik_fact_sudreyar
    8 vik_fact_mide
    9 vik_fact_dyflin
    10 vik_fact_cerneu
    11 vik_fact_dorsaete
    12 vik_fact_defena
    13 vik_fact_suth_seaxe
    14 vik_fact_cent
    15 vik_fact_east_seaxe
    16 vik_fact_steinnborg
    17 vik_fact_veidrborg
    18 vik_fact_grantebru
    19 vik_fact_bedeborg
    20 vik_fact_heimiliborg
    21 vik_fact_ledeborg
    22 vik_fact_hwicce
    23 vik_fact_gwent
    24 vik_fact_gliwissig
    25 vik_fact_brechinauc
    26 vik_fact_dyfet
    27 vik_fact_seisilwig
    28 vik_fact_powis
    29 vik_fact_djurby
    30 vik_fact_hellirborg
    31 vik_fact_hylrborg
    32 vik_fact_holdrness
    33 vik_fact_westmoringas
    34 vik_fact_northleode
    35 vik_fact_jorvik
    36 vik_fact_cumbra
    37 vik_fact_westernas
    38 vik_fact_athfochla
    39 vik_fact_airer_goidel
    40 vik_fact_fortriu
    41 vik_fact_orkneyar
    42 vik_fact_gallgoidel
    43 vik_fact_aileach
    44 vik_fact_ulaid
    45 vik_fact_airgialla
    46 vik_fact_breifne
    47 vik_fact_connacht
    48 vik_fact_brega
    49 vik_fact_laigin
    50 vik_fact_veisafjordr
    51 vik_fact_osraige
    52 vik_fact_vedrafjordr
    53 vik_fact_hlymrekr
    54 vik_fact_caisil
    55 vik_fact_tuadmuma
    56 vik_fact_iarmuma
    57 vik_fact_desmuma
    58 vik_fact_myrrborg
    59 vik_fact_separatists_circenn
    60 vik_fact_separatists_dyflin
    61 vik_fact_separatists_east_engle
    62 vik_fact_separatists_english
    63 vik_fact_separatists_gwined
    64 vik_fact_separatists_irish
    65 vik_fact_separatists_sudreyar
    66 vik_fact_separatists_mierce
    67 vik_fact_separatists_mide
    68 vik_fact_separatists_northymbre
    69 vik_fact_separatists_scottish
    70 vik_fact_separatists_strat_clut
    71 vik_fact_separatists_viking
    72 vik_fact_separatists_welsh
    73 vik_fact_separatists_west_seaxe
    74 vik_fact_dene
    75 vik_fact_dubgaill
    76 vik_fact_finngaill
    77 vik_fact_haeden
    78 vik_fact_normaunds
    79 vik_fact_norse
    80 vik_fact_nordmann
    81 vik_fact_wicing

  4. #4
    Radious's Avatar I came, I saw, I modded
    Join Date
    Mar 2009
    Czech Republic

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    Tutorial works great, but leads only to a thing that this TURD game has super outdated UI for recruitment tab which wont allow to add custom units cause it simply wont adapt for more units in recruitment screen..... Damn this game seriously.

    Winner of the 2011, 2012. 2014, 2015, 2016 and 2017 Modding Awards in Total War Shogun 2, Rome 2, Attila, Warhammer 1 and Warhammer 2.
    Follow us here - Team Radious

  5. #5

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    Im starting a mod that requires twelve factions, each with a unique roster.
    How do i go about this? which tables do i need to edit? Do i need to create culture a culture/military group for each faction?

  6. #6

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    Only 2 small things - you dont need the province_to_mercenary_set_junctions, but you need ad first for working with kit the land_units table

  7. #7

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    I am sorry but you can help me how to add mercenary pool unit array for Langobard. I was stuck in creating it because Langobard dont have mercenary pool unit array

  8. #8

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    yes - for me is alltime the same, no mercenary pool unit array entry - the kit is not working right, you must edit it in PFM

  9. #9

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    Hey guys: You could be experiencing what I ran into when trying to build additional slot templates. The problem is that Asskit needs to actually have the database files in it, and also that asskit is bugged and doesn't move the files around correctly.

    How to export startpos in Thrones for these bugged areas of the startpos:
    1. Do your stuff in Asskit
    2. Export single tables, and export your stuff
    3. Open up raw data/EmpireDesignData Find the .xml files that coorespond to what you edited. If one is missing thats fine, just grab any that are here. Copy them. Go to raw data/EmpireDesignData/campaigns/vik_attila, and then press paste
    4. Open up working data, DB. Find the folders that coorespond to the tables you changed. Copy them same as before. Go back to raw data/EmpireDesignData/campaigns/vik_attila then paste the tables there.
    5. Open up mr. Bob In bob, DO NOT select the process start pos thing in working data. Instead go to raw data," database". Yes, database, not db or EmpireDesignData. Find the tables you edited, then check them off from the list, including the specific startpos tables. Now select the start pos and create pack like normal. Wait for it to process, Thrones takes an extra long time.

    This method is I believe only necessary for certain factions.

  10. #10

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    OK - Dresden is right, i do all the steps again and its working now!

    @ Dresden
    THX for that +rep

  11. #11

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    I want to give again huge thanks and +rep to Dresden for posting this very informative tutorial and for his recent help for my mod!

  12. #12
    ♔Greek Strategos♔'s Avatar Bearded Moderation
    Artifex Content Staff Modding Staff

    Join Date
    Feb 2008

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    Quote Originally Posted by Swiss Halberdier View Post
    I want to give again huge thanks and +rep to Dresden for posting this very informative tutorial and for his recent help for my mod!
    Talking about helpful members and your name is still on my top 5 list Swiss

  13. #13

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    Quote Originally Posted by ♔Greek Strategos♔ View Post
    Talking about helpful members and your name is still on my top 5 list Swiss
    Thanks a lot Greek Strategos and you are also since a long time a very helpful member of this community!

  14. #14
    ♔Greek Strategos♔'s Avatar Bearded Moderation
    Artifex Content Staff Modding Staff

    Join Date
    Feb 2008

    Default Re: [Tutorial] Creating & Editing Unit Recruitment

    Quote Originally Posted by Swiss Halberdier View Post
    Thanks a lot Greek Strategos and you are also since a long time a very helpful member of this community!
    Thank you very much for your kind words my friend!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts