Results 1 to 9 of 9

Thread: How to change the factions' units?

Hybrid View

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

    Icon5 How to change the factions' units?

    It's not that hard, at least for people who know about modding, but I just don't have a clue on how to do this.

    I want Pontus to have Seleucid troops. It might be not even possible, but I just want to try. I have already placed elephants in Pontus' main region, so that's not a problem.
    I have searched in the ExRM folder, but I just can't find the part where is described which factions use which troops.

    Where to find this, and how to change it?

  2. #2
    Quinn Inuit's Avatar Artifex
    Join Date
    Sep 2006
    Location
    Virginia, USA
    Posts
    4,968

    Default Re: How to change the factions' units?

    You'll need to add Pontus to the ownership line of the relevant units in export_descr_units.txt, a Pontic texture and sprite to the relevant units in descr_model_battle.txt (just copy/paste the Seleucid one and then change the name...make sure there's not already a Pontus line, though), and then change the EDB to allow recruitment: http://forums.totalwar.org/vb/showthread.php?t=50439

    Oh, and you'll also need to copy the relevant unit and unit_info cards into the Pontus folder in the UI section. I always forget that.
    RTR Platinum Team Apprentice, RTR VII Team Member, and Extended Realism Mod Team Coordinator. Proud member of House Wilpuri under the patronage of Pannonian

    The ExRM forum: come for the mod, stay for the Classical History discussions. Or vice versa.

    My writing-related Twitter feed.

  3. #3

    Default Re: How to change the factions' units?

    type camel
    skeleton fs_camel
    scale 1.0
    indiv_range 40
    texture numidia, ExRM/data/RTR/models_unit/textures/numidia__camel.tga
    texture seleucid, ExRM/data/RTR/models_unit/textures/seleucid__camel.tga
    texture merc, ExRM/data/RTR/models_unit/textures/merc__camel.tga
    model_flexi data/models_unit/mount_camel_high.cas, 15
    model_flexi data/models_unit/mount_camel_med.cas, 30
    model_flexi data/models_unit/mount_camel_low.cas, 60
    model_flexi data/models_unit/mount_camel_lowest.cas, max
    model_sprite 100.0, ExRM/data/RTR/sprites/camel_sprite.spr
    model_sprite numidia, 100.0, ExRM/data/RTR/sprites/numidia_camel_sprite.spr
    model_sprite seleucid, 100.0, ExRM/data/RTR/sprites/seleucid_camel_sprite.spr




    So I should add

    texture pontus, ExRM/data/RTR/models_unit/textures/seleucid__camel.tga
    and
    model_sprite pontus, 100.0, ExRM/data/RTR/sprites/seleucid_camel_sprite.spr

    or can I put
    texture seleucid, pontus, ExRM/data/RTR/models_unit/textures/seleucid__camel.tga
    model_sprite seleucid, pontus, 100.0, ExRM/data/RTR/sprites/seleucid_camel_sprite.spr


    EDIT:
    nvm I did it already
    Last edited by Mister S; March 03, 2009 at 08:28 AM. Reason: nvm

  4. #4

    Default Re: How to change the factions' units?

    It depends on whether (Option 1) you want Pontus to have Selucid Units or (Option 2) Pontus to have the same unit as the Selucids.

    Option 2 is harder to code and is where Quin is advising you on the process.

    Option 1, Find the export_descr_building (EDB) in your exrm data folder.
    Find the auxilia building tree for Pontus

    will look something like this (I have cut it down a bit as well


    ;;;;;;;;; #10 ----------- Pontos Barracks -----------
    building barracks_pontus
    {
    levels auxilia_phase1 auxilia_phase2 auxilia_phase3 muster_field militia_barracks city_barracks army_barracks
    - These are the levels available to this tree
    {
    auxilia_phase1 requires factions { pontus, } and building_present_min_level base_government eastern1
    - name of first building, and its requirements in order to build ie Pontus and base government eastern 1 (Note the code name may not be the name that appears on screen)
    {
    capability
    {
    law_bonus bonus 2 requires factions { pontus, }
    - This is what the building provides
    }
    construction 4
    cost 500
    settlement_min village
    upgrades
    {
    auxilia_phase2
    - What can be built next
    }
    }
    auxilia_phase2 requires factions { pontus, }
    {
    capability
    {
    recruit "aor keltoi spearmen" 1 requires factions { pontus, } and hidden_resource aor_gaul
    - This is the unit that can be recruited and the requirements need to be able to recruit it. In this case the region must contain the hidden resource aor_gaul
    trade_base_income_bonus bonus 2 requires factions { pontus, }
    law_bonus bonus 2 requires factions { pontus, }
    }
    construction 4
    cost 700
    settlement_min town
    upgrades
    {


    Ive added my notes in colour to make them stand out.

    Simply find the unit name from the selucid barracks system and
    insert the lines into the Pontus barracks tree, replace { selucid, }
    with { pontus, } for the recruitment requirement.

    This is the easiest way to do it, but not necessarily the best way
    Last edited by Clearchus of Sparta; March 03, 2009 at 08:47 AM.
    Semi-Retired RTR Developer and Researcher
    Dont get into a fight if there is nothing to win


  5. #5

    Default Re: How to change the factions' units?

    Thanks! That made it perfectly clear. But I wanted option 2, so here's what I did:

    1. the things Quinn told me
    2. in descr_buildings (or so), I copied the seleucid buildings into the Pontus buildings part, but changed all the {seleucid,} to {pontus}

    The game runs perfectly now. Once again, Thanks to both of you for your help!

  6. #6

    Default Re: How to change the factions' units?

    You are now officially a modder.
    Semi-Retired RTR Developer and Researcher
    Dont get into a fight if there is nothing to win


  7. #7

    Default Re: How to change the factions' units?

    Well - there is one more thing.
    When I zoom out too far, the units disappear, but this only happens with some units.
    What to do about this?
    Last edited by Mister S; March 03, 2009 at 10:38 AM.

  8. #8

    Default Re: How to change the factions' units?

    That is something to do with sprites I believe, and I have absolutely no idea how to fix that.
    Sorry.

    Look for a guy called Mcantu in the RTR forums, he may well be able to help you
    Semi-Retired RTR Developer and Researcher
    Dont get into a fight if there is nothing to win


  9. #9
    Quinn Inuit's Avatar Artifex
    Join Date
    Sep 2006
    Location
    Virginia, USA
    Posts
    4,968

    Default Re: How to change the factions' units?

    I agree that it's likely a sprite issue. Check and make sure those units have sprites defined for Pontus.
    RTR Platinum Team Apprentice, RTR VII Team Member, and Extended Realism Mod Team Coordinator. Proud member of House Wilpuri under the patronage of Pannonian

    The ExRM forum: come for the mod, stay for the Classical History discussions. Or vice versa.

    My writing-related Twitter feed.

Posting Permissions

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