Results 1 to 11 of 11

Thread: How can I cut a unit from a factions roster?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Kraut and Tea's Avatar Campidoctor
    Join Date
    Apr 2013
    Location
    Home
    Posts
    1,550

    Default How can I cut a unit from a factions roster?

    What tables do I need and what do I need to type into them if I want to remove a unit from a factions unit roster?

  2. #2

    Default Re: How can I cut a unit from a factions roster?

    Go into the units_to_groupings_military_permissions table and remove the unit from the relevant military_group. Two things to note here. (i) The unit will remain in the game - it just won't be buildable by that group of factions. (ii) This won't necessarily allow you to remove the unit from a specific faction. Some military_groups, such as armenia and cappadocia, contain only faction. Others, however, contain multiple factions. For instance, balkan_celts contains the Breuci, Scordisci, Triballi and Veneti. If you were to remove a specific unit from this table, none of the balkan_celt factions would be able to build it. Next, go to the units_custom_battle_permissions table and remove the relevant entry. This table relates specifically to multiplayer. Unlike the units_to_groupings_military_permissions table, this one is faction rather than military_groupings specific, meaning you can remove a unit from a specific faction.

    If you want to remove a unit completely from the game, you also need to edit the following tables: building_units_allowed, land_units, land_units_to_unit_abilities_junctions, main_units, unit_set_To_unit_junctions, and unit_variants. I guess you would also need to make sure it doesn't appear in your startpos.esf.

  3. #3
    Kraut and Tea's Avatar Campidoctor
    Join Date
    Apr 2013
    Location
    Home
    Posts
    1,550

    Default Re: How can I cut a unit from a factions roster?

    Ok, I want to remove the Indian Warelephant and the Indian Armoured warelephant from the Seleucid roster.

    So All I have to do is open the CA pack, open the following tables:

    units_to_groupings_military_permissions
    units_custom_battle_permissions

    extract them into my mod pack.
    Search for the tables concerning these two units and remove the "military_group" entries - and the unit will no longer be available for that faction?

  4. #4
    Dude with the Food's Avatar Campidoctor
    Join Date
    Oct 2012
    Location
    Round the Corner.
    Posts
    1,800

    Default Re: How can I cut a unit from a factions roster?

    Yes but there is something else. If you are adding content, you can put in what you're adding/changing, delete the rest and rename it leaving it in the same lace as you found it. When you're cutting stuff, you need to leave everything else and leave the name the same to overwrite the original. Which means, when things get changed by patches/dlc, your mod won't update and you may need to do the whole thing again if the game doesn't work. I think.
    Spoiler Alert, click show to read: 
    I am me. You are not me. You are you. If I was you, I wouldn't be me.
    If you were me, I'd be sad.But I wouldn't then be me because you'd be me so you wouldn't be me because I wasn't me because you were me but you couldn't be because I'd be a different me. I'd rather be any kind of bird (apart from a goose) than be you because to be you I'd have to not be me which I couldn't do unless someone else was me but then they would be you aswell so there would still be no me. They would be you because I was you so to restore balance you would have to be me and them meaning all three of us would become one continously the same. That would be very bad.


  5. #5
    Kraut and Tea's Avatar Campidoctor
    Join Date
    Apr 2013
    Location
    Home
    Posts
    1,550

    Default Re: How can I cut a unit from a factions roster?

    So I need to leave the table entries of all other units intact, especialy if I am adding other units to replace those that I removed?

  6. #6
    Dude with the Food's Avatar Campidoctor
    Join Date
    Oct 2012
    Location
    Round the Corner.
    Posts
    1,800

    Default Re: How can I cut a unit from a factions roster?

    I won't pretend I'm a great modder but that's my understanding of how things work.



    For adding stuff.

    Where it says

    -units_to_groupings_military_permissions_tables
    units_to_groupings_military_permissions

    This has 2 columns one for the group the unit belongs and one for the unit as Crawe1 explained. If you want to add a unit that you've named Gre_Pontic_Legionaries and only that to the Pontic roster, you take any row and change the unit to Gre_Pontic_Legionaries and then the faction group to Pontic. (Or whatever unit/faction group)

    Then delete the all other rows and rename the file so it looks like this.

    -units_to_groupings_military_permissions_tables
    gpl_units_to_groupings_military_permissions

    GPL stands for the unit but this could be anything without any relevance whatsoever. This means when the game loads up, it looks for data from the original file before loading the mod and adding the extra data because it is in the same place (-units_to_groupings_military_permissions_tables). If you leave it as (units_to_groupings_military_permissions) but only the new unit, it will overwrite CA's data because they share a name and will only load your unit. So renaming it allows you to keep CA's content and add new.



    For changing stuff.

    In the PFM, all the cream/yellow columns are the important ones. In the -units_to_groupings_military_permissions_tables, both columns are cream because they both link directly to other files that must share that name. If you want to add a vanilla unit to other factions' rosters then for example go to Eas_Pontic_Peltasts and in the next column, write Armenia. Then delete and rename as before. Pontic Peltasts would now be recruitable for Armenia (if they had the buildings allowed edited for them).



    For cutting stuff.

    Because you aren't adding your own content or adding to CA's you need to replace their file. This is easy, all you do is don't rename the file at the end so in your mod it still says
    -units_to_groupings_military_permissions_tables
    units_to_groupings_military_permissions

    However, this means that you need to delete the row you don't want and add any new ones to the bottom. You can't delete the others because then those units will be deleted.



    Have fun trying to understand that.
    Spoiler Alert, click show to read: 
    I am me. You are not me. You are you. If I was you, I wouldn't be me.
    If you were me, I'd be sad.But I wouldn't then be me because you'd be me so you wouldn't be me because I wasn't me because you were me but you couldn't be because I'd be a different me. I'd rather be any kind of bird (apart from a goose) than be you because to be you I'd have to not be me which I couldn't do unless someone else was me but then they would be you aswell so there would still be no me. They would be you because I was you so to restore balance you would have to be me and them meaning all three of us would become one continously the same. That would be very bad.


  7. #7

    Default Re: How can I cut a unit from a factions roster?

    For your new problem, untick the Use Combo Boxes selection at the top of PFM. This should remove the scrollsheet and allow you to add any name you want.

  8. #8
    Kraut and Tea's Avatar Campidoctor
    Join Date
    Apr 2013
    Location
    Home
    Posts
    1,550

    Default Re: How can I cut a unit from a factions roster?

    Quote Originally Posted by crawe1 View Post
    For your new problem, untick the Use Combo Boxes selection at the top of PFM. This should remove the scrollsheet and allow you to add any name you want.
    Where do I find that?

    Edit:

    Never mind! Found it. Thanks!
    Last edited by Kraut and Tea; February 18, 2014 at 09:37 AM.

  9. #9
    Kraut and Tea's Avatar Campidoctor
    Join Date
    Apr 2013
    Location
    Home
    Posts
    1,550

    Default Re: How can I cut a unit from a factions roster?

    I am already facing a new problem.

    I cant add my new units name "Syrian_Armoured_Warelephant" into the tables.

    The tables only let me select a unit from a scrollsheet and if I try to copy and paste it does not allow me to and an error message pops up.

    If I add a new unit, into which table must I add the new units name first so it does not screw everything else up?

  10. #10
    Kraut and Tea's Avatar Campidoctor
    Join Date
    Apr 2013
    Location
    Home
    Posts
    1,550

    Default Re: How can I cut a unit from a factions roster?

    Ok I decided to simply add the new unit first.

    I will come back leter to ask questions on how I can meke that unit replace another one.

  11. #11

    Default Re: How can I cut a unit from a factions roster?

    Yes, I think this is correct. For cutting stuff, just don't rename the file. I can't remember 100%, but I think if you check Radious' mods, you will see that he keeps a lot of the Vanilla file names so that his work replaces CA's.

Posting Permissions

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