Results 1 to 14 of 14

Thread: Some advice in modding. (Sought after, not provided)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Got soul but I'm not a soldier Member Socy's Avatar
    Join Date
    Nov 2007
    Posts
    138

    Default Some advice in modding. (Sought after, not provided)

    Greetings all.

    A while back I was asking questions about some "simple" modding, and seeing that I didn't recieved any answer and haven't been able to figure it out myself I'd like to ask the question(s) once again! I'd really much like to get some help on this since it would help me roleplay my game as I want it (Playing as Arche Seleukeia).

    First off, I'd like to know how you add units from one factions rooster into another ones. In this case I'd for example like to know how I'd add Galatian Heavy Infantry as trainable in Ankyra with a "Allied Kingdom" government (The "4:th type", or rather, the cheapest and the one with the shortest build time) with a level 5 regional MIC.

    Secondly, how do I change which units that will spawn as a Client Rulers bodyguard? The starting Client Rulers in the Arche Seleukeia have "Babylonian Infantry" (I belive they're called, Assyrian helmet, chainmail, spear and shield). I'd like to change it so that all new Client Rulers in cities with eastern influences recieve these guys as bodyguards. Oh! And in my game all Client Rulers never recieve any Ethnic Trait, wich is kind of sad , is this a bug? And if it is, is there a fix for it?

    That'd be all. I could ofcourse just go ahead and make a list of which units I'd like to add to (my) Seleukid rooster, but I thought that it would be worthwhile to learn the whole process so that I can use it with other factions aswell!

  2. #2

    Default Re: Some advice in modding. (Sought after, not provided)

    Copy paste the relevant code to the relevant MIC (called barracks_<some capital letter here>; which requires a bit of clever searching through the export_descr_buildings.txt file to figure everything out). Make the relevant changes regarding factions, ensure ownership within the export_descr_units.txt file (sp game edu backup folder one!)...

    Keep backups. As you don't seem to know what/how to do (it) you really should keep a backup for every step you make as you are messing with 2 of the most CTD-sensitive files.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  3. #3
    Got soul but I'm not a soldier Member Socy's Avatar
    Join Date
    Nov 2007
    Posts
    138

    Default Re: Some advice in modding. (Sought after, not provided)

    Thanks for the reply. It might be alot to ask for, but perhaps you could show me an example? As I've understood it the process is pretty much the same for all units/factions (But not having multiple units who shares the same model in one faction, right?) so once I get the hang of the process itself the rest should be pretty easy or atleast I'll be able to figure it out!

  4. #4

    Default Re: Some advice in modding. (Sought after, not provided)

    For an example: I added Hippeis to the Seleukid & Ptolemaic roster in my own EB 1.1.

    So here's a code example of how that would go:

    In the sp game edu backup folder; I changed the Hippeis entry of the export_descr_unit.txt file:

    Code:
    ;183
    type             greek cavalry hippeis
    dictionary       greek_cavalry_hippeis      ; Hippeis
    category         cavalry
    class            heavy
    voice_type       General_1
    soldier          hellenistic_cavalry_hippeis, 25, 0, 1
    mount            medium horse
    mount_effect     elephant -1, chariot +2
    attributes       sea_faring, hide_forest, hardy
    formation        1.5, 4, 3, 6, 4, square
    stat_health      1, 1
    stat_pri         8, 27, no, 0, 0, melee, simple, piercing, spear, 0 ,0.15
    stat_pri_attr    no
    stat_sec         9, 15, no, 0, 0, melee, simple, slashing, sword, 0 ,0.13
    stat_sec_attr    no
    stat_pri_armour  7, 10, 2, leather
    stat_sec_armour  0, 0, flesh
    stat_heat        2
    stat_ground      0, 0, -4, -2
    stat_mental      12, disciplined, highly_trained
    stat_charge_dist 40
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 2151, 538, 40, 60, 2151
    ownership        greek_cities, romans_julii, numidia, thrace, slave, seleucid
    In the EB\data folder I changed the Hippeis entry of the descr_model_battle.txt file:
    Code:
    ; Hellenistic cavalry - Hippeis / Mistophoroi Hippeis
    
    type				hellenistic_cavalry_hippeis
    skeleton			fs_o_m_spearman, fs_hc_swordsman
    indiv_range			40
    texture				greek_cities, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hippeis_spw_greek.tga
    texture				seleucid, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hippeis_spw_greek.tga
    texture				thrace, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hippeis_spw_thrace.tga
    texture				slave, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hippeis_spw_slave.tga
    texture				romans_julii, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hippeis_spw_slave.tga
    texture				numidia, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hippeis_spw_merc.tga
    texture				merc, eb/data/models_unit/textures/hellenistic/ebhellenistic_cavalry_hippeis_spw_merc.tga
    model_flexi			eb/data/models_unit/ebhellenic_cavalry_hippeis_spw_high.cas, 15
    model_flexi			eb/data/models_unit/ebhellenic_cavalry_hippeis_spw_med.cas, 30
    model_flexi			eb/data/models_unit/ebhellenic_cavalry_hippeis_spw_low.cas, 40
    model_flexi			eb/data/models_unit/ebhellenic_cavalry_hippeis_spw_lowest.cas, max
    model_sprite		greek_cities, 60.0, eb/data/sprites/greek/ebsprite_greek_cavalry_hippeis_all.spr
    model_sprite		seleucid, 60.0, eb/data/sprites/greek/ebsprite_greek_cavalry_hippeis_all.spr
    model_sprite		thrace, 60.0, eb/data/sprites/greek/ebsprite_greek_cavalry_hippeis_thrace.spr
    model_sprite		slave, 60.0, eb/data/sprites/greek/ebsprite_greek_cavalry_hippeis_slave.spr
    model_sprite		numidia, 60.0, eb/data/sprites/greek/ebsprite_greek_cavalry_hippeis_merc.spr
    model_sprite		romans_julii, 60.0, eb/data/sprites/greek/ebsprite_greek_cavalry_hippeis_slave.spr
    model_sprite		merc, 60.0, eb/data/sprites/greek/ebsprite_greek_cavalry_hippeis_merc.spr
    model_tri			400, 0.5f, 0.5f, 0.5f
    And finally I edited the export_descr_buildings.txt file to contain:
    Code:
    city_barracks_J1 requires factions { romans_julii, numidia, } and building_present_min_level government gov3 and not hidden_resource not_here
            {
                capability
                {
    		recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } 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 "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource D and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } 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 "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource D and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource NW and hidden_resource D and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource B and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource B and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource B and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } 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 "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource NW and hidden_resource A and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource E and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource B and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource C and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource A and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource NW and hidden_resource A and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource C and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } 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 "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource A and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource NW and hidden_resource D and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource n1 and hidden_resource y2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource n1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource D and hidden_resource n1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource B and hidden_resource n1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } 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 "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource C and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource NW and hidden_resource D and hidden_resource y1 and hidden_resource y2 and hidden_resource y4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource EA and hidden_resource E and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource n8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource C and hidden_resource y1 and hidden_resource n2 and hidden_resource n4 and hidden_resource y8
                    recruit "greek cavalry hippeis" 0 requires factions { romans_julii, numidia, } and hidden_resource SW and hidden_resource B and hidden_resource y1 and hidden_resource n2 and hidden_resource y4 and hidden_resource y8
    Since I wasn't in any way particularly concerned with changing AOR and such I kept & copied that code to army_barracks_J1 and royal_barracks_J1 as well. (Otherwise I would be unable to train hippeis in levels beyond city_barracks_J1....)
    Last edited by Tellos Athenaios; 05-24-2008 at 00:04.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  5. #5
    Member Megas Methuselah's Avatar
    Join Date
    Aug 2007
    Location
    Prairie Grasslands
    Posts
    5,040

    Thumbs up Re: Some advice in modding. (Sought after, not provided)

    TA, you're a living legend.

  6. #6
    Got soul but I'm not a soldier Member Socy's Avatar
    Join Date
    Nov 2007
    Posts
    138

    Default Re: Some advice in modding. (Sought after, not provided)

    What Methuselah said! Thanks a bunch TA, I owe you one

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO