Results 1 to 7 of 7

Thread: How to disable a unit?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How to disable a unit?

    Hi All,

    Im looking to make an unit not recruitable (I dont want to delete, for now). Just to make it not available in campaign mode. What should I edit? (Im using the Pack file manager)


    Thanks in advance

  2. #2
    Karnil Vark Khaitan's Avatar Praepositus
    Join Date
    Jan 2010
    Location
    DaneMark
    Posts
    5,031

    Default Re: How to disable a unit?

    Hey it easy, just remove it from Building_allows or what ever it is called.

    it should stop the AI from recruiting it, if it is a general unit, then I can't remember what that table is called ( oh it is commander_unit_permissions).

    and if it is a Vanilla unit don't put a prefix on the new table, so it will overwrite the old one.

    But the most easy a simple one!
    remove the unit form units_to_groupings_military_permissions table, that should fix it all :3
    and still don't rename the table as it needs to replace not edit the old table.

    Im the Knight in Sour Armor http://tvtropes.org/pmwiki/pmwiki.ph...ghtInSourArmor
    Rainbow Darling rainbows Darling. Darling Rainbows!!!!!
    but on the same time modder with my first mod for Rome 2!http://steamcommunity.com/sharedfile.../?id=286218945
    Hey Sparkle Sparkle Sparkle!
    https://www.youtube.com/watch?v=LDULtV9U2kA
    Quote Originally Posted by riskymonk View Post
    yea but mods are created by fans of the series. Games are created by university students who might not necessarily know or play the games/series they're working on

  3. #3
    Linke's Avatar Hazarapatish
    Join Date
    Apr 2014
    Location
    Stockholm
    Posts
    1,800

    Default Re: How to disable a unit?

    Even so any if these units at the start or in garrisons will still be there.

  4. #4
    Karnil Vark Khaitan's Avatar Praepositus
    Join Date
    Jan 2010
    Location
    DaneMark
    Posts
    5,031

    Default Re: How to disable a unit?

    Yess that would mean you would have to edit the esf file.
    But what I pointed out will hinder the AI and the player from recruiting more of those units.

    Im the Knight in Sour Armor http://tvtropes.org/pmwiki/pmwiki.ph...ghtInSourArmor
    Rainbow Darling rainbows Darling. Darling Rainbows!!!!!
    but on the same time modder with my first mod for Rome 2!http://steamcommunity.com/sharedfile.../?id=286218945
    Hey Sparkle Sparkle Sparkle!
    https://www.youtube.com/watch?v=LDULtV9U2kA
    Quote Originally Posted by riskymonk View Post
    yea but mods are created by fans of the series. Games are created by university students who might not necessarily know or play the games/series they're working on

  5. #5

    Default Re: How to disable a unit?

    Thank you guys, I will try it!

  6. #6
    dave1904's Avatar Foederatus
    Join Date
    Jul 2012
    Location
    Austria
    Posts
    26

    Default Re: How to disable a unit?

    units_to_groupings_military_permissions_tables is the least work because its only one line to edit.

  7. #7
    dave1904's Avatar Foederatus
    Join Date
    Jul 2012
    Location
    Austria
    Posts
    26

    Default Re: How to disable a unit?

    Quote Originally Posted by dave1904 View Post
    units_to_groupings_military_permissions_tables is the least work because its only one line to edit.
    Its also the best way to get rid vanilla units.

Posting Permissions

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