Results 1 to 6 of 6

Thread: Editing Mercenary Recruitment Using the Kit

  1. #1

    Default Editing Mercenary Recruitment Using the Kit

    This tutorial will explain how to edit Mercenary recruitment entries in a new startpos created by the kit. If you want to edit existing Mercenary entries, you can simply use PFM or EditSF to manually change them in the PROVINCE and FACTION ARRAYs. Magnar has a tutorial on how to do that I believe.

    However, if you want to do mass editing or are creating your own startpos, this is the method to use:

    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: http://www.mediafire.com/file/g9sr99...enarytest.pack . 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; April 23, 2018 at 08:23 PM.

    ----> Website -- Patreon -- Steam -- Forums -- Youtube -- Facebook <----

  2. #2

    Default Re: Editing Mercenary Recruitment Using the Kit

    Never mind I kind of sorted it out. Maybe to add to this tutorial : before processing new start pos go to "EmpireBuilder" find and mark the campaign you making changes and mark "All" in two small app boxes
    Last edited by Janek; April 27, 2018 at 02:33 AM.

  3. #3

    Default Re: Editing Mercenary Recruitment Using the Kit

    Great tutorial.
    I'm trying to do this with provinces and I have a separate pack file run when I create the start pos from the assembly kit. It seems to work because my units populate the start pos but then in game the units displayed are vanilla units which does not make any sense. Also during testing I somehow created duplicate entries even though there is just one entry for each. I think it could be from redoing the index but I don't understand why it would still be there since the old index is removed.
    Any idea what I'm doing wrong?

  4. #4

    Default Re: Editing Mercenary Recruitment Using the Kit

    If you want to change the units in start_pos created by assembly kit you could use EditSF and edit it that way. With duplicates no idea - I would start from the scratch

  5. #5

    Default Re: Editing Mercenary Recruitment Using the Kit

    Hey all I want to do is change the initial count of available mercenaries, just changing it in the db table doesnt seem to do the trick and I've tried changing it and then creating a new startpos but nothing seems to work for me. Can anyone offer me some enlightenment how do to do this please?

    Update:

    Figured it out, thanks for the tutorial Dresden
    Last edited by Athos187; February 23, 2019 at 03:24 PM.

  6. #6
    Condottiere SOG's Avatar Domesticus
    Join Date
    Dec 2006
    Location
    Oregon, USA
    Posts
    2,262

    Default Re: Editing Mercenary Recruitment Using the Kit

    Seems laborious. I admire modders that make the attempt.
    Erasmo
    Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601)
    System Manufacturer: ASUSTeK Computer Inc.
    System Model: G73Sw
    Processor: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (8 CPUs), ~2.0GHz
    Memory: 12288MB RAM
    Available OS Memory: 12266MB RAM
    Page File: 2634MB used, 21881MB available
    Windows Dir: C:\Windows
    DirectX Version: DirectX 11
    DX Setup Parameters: Not found
    User DPI Setting: Using System DPI
    System DPI Setting: 96 DPI (100 percent)
    DWM DPI Scaling: Disabled
    DxDiag Version: 6.01.7601.17514 32bit Unicode

Posting Permissions

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