Results 1 to 4 of 4

Thread: Adding some Seleukid units to Makedon

  1. #1

    Default Adding some Seleukid units to Makedon

    I would like to add cataphracts, chariots, and elephants from the seleukids to makedon. Can anyone help me with that? I want to recruit them from wherever selukids can. I tried it myself but it gave me a ctd.


    TURKCELL T70 cihazımdan Tapatalk kullanılarak gönderildi

  2. #2

    Default Re: Adding some Seleukid units to Makedon

    My game is eb 1.2 btw

    TURKCELL T70 cihazımdan Tapatalk kullanılarak gönderildi

  3. #3
    Hmmm's Avatar Senator
    Join Date
    Jun 2005
    Location
    Sweden
    Posts
    1,320

    Default Re: Adding some Seleukid units to Makedon

    First, remember to back up any of the files you edit before editing them. That way you can easily restore the game if something goes wrong.


    RTW modding is pretty easy once you get the hang of it, to add already existing units to a faction you need to access the following files:
    1. export_descr_unit (keep in mind EB has two extra folders, "mp game edu backup" and "sp game edu backup" where you may want to edit as well). You find the file in the Data/ folder.

    Find the unit entries and add macedon to the list of factions. The entires for the units you are looking for are:
    hellenistic_cavalry_hellenikoi_kataphraktoi
    hellenistic_chariot_scythed
    indian_elephant_standard
    indian_elephant_armored (unsure if you want to add armoured elephants to Macedon or not).

    At the end of each entry is the "ownership", which looks like this:

    Spoiler Alert, click show to read: 
    type indian elephant armored
    dictionary indian_elephant_armored ; Armored Indian Elephants
    category cavalry
    class heavy
    voice_type Female_1
    soldier elephant_javelinmen, 9, 3, 1
    mount elephant indian cataphract
    mount_effect horse +4, chariot +4
    attributes sea_faring, can_run_amok, frighten_foot, frighten_mounted
    formation 7, 11, 13, 16, 1, square
    stat_health 1, 4
    stat_pri 5, 0, javelin, 57.8, 20, thrown, simple, piercing, spear, 10 ,1
    stat_pri_attr thrown
    stat_sec 5, 63, no, 0, 0, melee, other, blunt, none, 0 ,0.2
    stat_sec_attr area, launching, ap
    stat_pri_armour 14, 6, 0, metal
    stat_sec_armour 30, 7, metal
    stat_heat 4
    stat_ground 0, 0, -5, -4
    stat_mental 7, normal, trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 2, 23000, 5750, 270, 400, 23000
    ownership romans_julii, romans_brutii, pontus


    Just add "macedon" to it, so it would look like this:

    Spoiler Alert, click show to read: 
    type indian elephant armored
    dictionary indian_elephant_armored ; Armored Indian Elephants
    category cavalry
    class heavy
    voice_type Female_1
    soldier elephant_javelinmen, 9, 3, 1
    mount elephant indian cataphract
    mount_effect horse +4, chariot +4
    attributes sea_faring, can_run_amok, frighten_foot, frighten_mounted
    formation 7, 11, 13, 16, 1, square
    stat_health 1, 4
    stat_pri 5, 0, javelin, 57.8, 20, thrown, simple, piercing, spear, 10 ,1
    stat_pri_attr thrown
    stat_sec 5, 63, no, 0, 0, melee, other, blunt, none, 0 ,0.2
    stat_sec_attr area, launching, ap
    stat_pri_armour 14, 6, 0, metal
    stat_sec_armour 30, 7, metal
    stat_heat 4
    stat_ground 0, 0, -5, -4
    stat_mental 7, normal, trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 2, 23000, 5750, 270, 400, 23000
    ownership romans_julii, romans_brutii, pontus, macedon


    Remember to separate the factions with a comma and space. There should be no comma after the last faction in the ownership list. Do this for each unit you would like to add to Macedon.


    2. Next you need to edit the descr_model_battle file. You find the file in the Data/ folder. Find the following entries:

    hellenistic_cavalry_hellenikoikataphraktoi
    eastern_chariot_crew
    hellenic_elephant_archer
    elephant_javelinmen

    ebmount_elephant_indian_cataphract
    ebmount_elephant_forest



    The entries basically look like this:

    Spoiler Alert, click show to read: 
    type ebmount_elephant_indian_cataphract
    skeleton fs_indian_elephant
    indiv_range 40
    texture numidia, eb/data/models_unit/textures/mounts/ebmount_elephant_indian_armoured_stefan25_numidia.tga
    texture romans_julii, eb/data/models_unit/textures/mounts/ebmount_elephant_indian_armoured_stefan25_julii.tga
    texture romans_brutii, eb/data/models_unit/textures/mounts/ebmount_elephant_indian_armoured_stefan25_brutii.tga
    texture pontus, eb/data/models_unit/textures/mounts/ebmount_elephant_indian_armoured_stefan25_pontus.tga
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, 15
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, 30
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, 60
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, 80
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, max
    model_sprite 100.0, eb/data/sprites/mounts/ebsprite_elephant_forest_all.spr
    model_tri 700, 0.3f, 0.3f, 0.3f


    You want to add a texture entry and, depending on the unit, a sprite entry. Sprites aren't necessary if they look like on the above unit since so my knowledge the single entry isn't tied to any particular faction and therefore works for all.

    Just add an entry for Macedon, so copy one of the texture entries (whichever you want Macedons unit to look like, I'm going to go with the Seleucid look) so it would look like this:

    Spoiler Alert, click show to read: 
    type ebmount_elephant_indian_cataphract
    skeleton fs_indian_elephant
    indiv_range 40
    texture numidia, eb/data/models_unit/textures/mounts/ebmount_elephant_indian_armoured_stefan25_numidia.tga
    texture macedon, eb/data/models_unit/textures/mounts/ebmount_elephant_indian_armoured_stefan25_julii.tga
    texture romans_julii, eb/data/models_unit/textures/mounts/ebmount_elephant_indian_armoured_stefan25_julii.tga
    texture romans_brutii, eb/data/models_unit/textures/mounts/ebmount_elephant_indian_armoured_stefan25_brutii.tga
    texture pontus, eb/data/models_unit/textures/mounts/ebmount_elephant_indian_armoured_stefan25_pontus.tga
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, 15
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, 30
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, 60
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, 80
    model_flexi eb/data/models_unit/ebmount_indian_armored_elephant_alin_400.CAS, max
    model_sprite 100.0, eb/data/sprites/mounts/ebsprite_elephant_forest_all.spr
    model_tri 700, 0.3f, 0.3f, 0.3f


    You may want to add a sprite for some units (wherever the model_sprite entry has specific faction entries), which would imply this:

    Spoiler Alert, click show to read: 
    type hellenistic_cavalry_hellenikoikataphraktoi
    skeleton fs_thp_m_spearman, fs_hc_swordsman
    indiv_range 40
    texture romans_julii, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hellenikoi_kataphraktoi_spw_julii.tga
    texture romans_brutii, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hellenikoi_kataphraktoi_spw_brutii.tga
    texture macedon, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hellenikoi_kataphraktoi_spw_julii.tga
    texture slave, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hellenikoi_kataphraktoi_spw_julii.tga
    model_flexi eb/data/models_unit/ebhellenic_cavalry_hellenikoi_kataphraktoi_spw_high.cas, 15
    model_flexi eb/data/models_unit/ebhellenic_cavalry_hellenikoi_kataphraktoi_spw_med.cas, 30
    model_flexi eb/data/models_unit/ebhellenic_cavalry_hellenikoi_kataphraktoi_spw_low.cas, 40
    model_flexi eb/data/models_unit/ebhellenic_cavalry_hellenikoi_kataphraktoi_spw_lowest.cas, max
    model_sprite romans_julii, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hellenikoi_kataphraktoi_all.spr
    model_sprite macedon, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hellenikoi_kataphraktoi_all.spr
    model_sprite romans_brutii, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hellenikoi_kataphraktoi_brutii.spr
    model_sprite slave, 60.0, eb/data/sprites/hellenistic/ebsprite_hellenistic_cavalry_hellenikoi_kataphraktoi_all.spr
    model_tri 400, 0.5f, 0.5f, 0.5f



    3. Next, you want to add unit cards to the UI. In the Data/ folder, there is a folder named UI. Enter it. In there find the folders UNITS_INFO and UNITS. Enter and you'll find folders for each faction. Simply find the unit cards in the romans_julii folders in the UNITS_INFO and UNITS folders and copy them into the respective macedon folders.


    4. To make the units recruitable in the campaign, you would have to edit the export_descr_buildings file, also found in the Data/ folder. My suggestion, because of how complex the EB recruitment system is, would be to simply copy the Macedonian Hetairoi entry and add an entry for each of the units you would like to add. This would make the cataphracts, chariots, and elephants recruitable wherever the hetairoi are recruitable. It would look like this:


    Cataphracts:
    Spoiler Alert, click show to read: 
    recruit "hellenistic cavalry hellenikoi kataphraktoi" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource E and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
    recruit "hellenistic cavalry hellenikoi kataphraktoi" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource C and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
    recruit "hellenistic cavalry hellenikoi kataphraktoi" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource E and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
    recruit "hellenistic cavalry hellenikoi kataphraktoi" 0 requires factions { macedon, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
    recruit "hellenistic cavalry hellenikoi kataphraktoi" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
    recruit "hellenistic cavalry hellenikoi kataphraktoi" 0 requires factions { macedon, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8


    Chariots:
    Spoiler Alert, click show to read: 
    recruit "hellenistic chariot scythed" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource E and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
    recruit "hellenistic chariot scythed" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource C and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
    recruit "hellenistic chariot scythed" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource E and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
    recruit "hellenistic chariot scythed" 0 requires factions { macedon, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
    recruit "hellenistic chariot scythed" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
    recruit "hellenistic chariot scythed" 0 requires factions { macedon, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8



    Elephants:
    Spoiler Alert, click show to read: 
    recruit "indian elephant standard" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource E and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
    recruit "indian elephant standard" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource C and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
    recruit "indian elephant standard" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource E and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
    recruit "indian elephant standard" 0 requires factions { macedon, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
    recruit "indian elephant standard" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
    recruit "indian elephant standard" 0 requires factions { macedon, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8



    Armoured elephants:
    Spoiler Alert, click show to read: 
    recruit "indian elephant armored" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource E and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
    recruit "indian elephant armored" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource C and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
    recruit "indian elephant armored" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource E and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
    recruit "indian elephant armored" 0 requires factions { macedon, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
    recruit "indian elephant armored" 0 requires factions { macedon, } and hidden_resource EA and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
    recruit "indian elephant armored" 0 requires factions { macedon, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8


    Simply copy that text into whichever building you want them recruitable from. If you want them recruitable from the top level barracks, it would be the:
    royal_barracks_K1 requires factions { romans_brutii, macedon, } and building_present_min_level government gov1 and not hidden_resource not_here

    Alternatively, if you want them recruitable from wherever the Seleucids can recruit them, simply find their respective entries in the export_descr_buildings file. Copy that into a building available to macedon and change the info in the brackets from { romans_julii, } to { macedon, }.



    Unless I'm not mistaken, that should do the trick.
    Last edited by Hmmm; March 25, 2018 at 05:51 AM.
    I had a monumental idea this morning, but I didn't like it.

    Samuel Goldwyn

  4. #4

    Default Re: Adding some Seleukid units to Makedon

    I know It's been months since you wrote this but thank you. It worked with no problems.

Posting Permissions

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