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

    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.

  2. #2
    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.

  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)

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

  4. #4
    Member Member Aaldaemon's Avatar
    Join Date
    May 2008
    Location
    Bucharest-odava, ro-Mania
    Posts
    207

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

    Ooooh, thanks a lot Tellos! I wasn't quite 100% sure about the model part but now I should be able to make my own unhistorical Greek empire that can field hellenistic cataphracts. Spartans and Cataphracts togetherrrrr ooooh /faints.

  5. #5
    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)

    While the post from TA certainly was helpful I still would be grateful if anyone would care to elaborate on AOR and how to change the bodyguards of client-rulers (The ones in eastern provinces) so that they become like the client-rulers that the AS start with. (Check Babylon; Babylons client ruler = Shipri Tukul as bodyguard).

    By the way, is changing recruitment for a faction save-game compatible?
    Last edited by Socy; 05-24-2008 at 17:02.

  6. #6

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

    Well about AOR, or Area of Recruitment: in EB there exists a system with hidden resources (or HRs for short). Since each region can have a number of hidden resources, you can use a particular unique combination of (certain) hidden resources to indentify a particular region.

    So basically:
    PSEUDO code to clarify descr_regions.txt found in the eb/data/world/maps/base folder
    Code:
    My region
         My city
         My people
         111 222 0 ; a unique RGB encoding: the colour of a region must match
                       ; the colour of the region on the Map_regions.tga file.
         Some more codes
         My comma separated HR list
    These HR's can be referenced inside the export_descr_buildings.txt file in the eb/data folder; as I said before. The Unique combinations EB uses are a general area markers + a unique (binary) 'number'.

    Example (from my Hippeis code as posted above)
    Code:
    and hidden_resource SW and hidden_resource B and hidden_resource y1 and hidden_resource y2 and hidden_resource n4 and hidden_resource y8
    The green code is typical of the EB 'general' area marker (SW meaning South-West I think) which is, let's say, Sicily + North Western Africa. I don't know if that really is the case -- but that's for the purpose of an example totally irrelevant anyways. The binary number bit is the blue code. n1 is the opposite of y1, y2 the opposite of n2 and so forth. So this works out: 1011 => region number 11.

    Hence, by using 1 'line' of recruitment code per unit per region (per barracks complex, but that is for other purposes) you can set up detailed AOR's. Now, you can of course specify different recruitment code per level of MIC you use, which means in theory you can have wider AOR's on higher MIC levels than on lower levels. (Or vice versa, of course.)

    However, if you were to simply delete the entire section listing the hidden resources, you would end up with an AOR which covers the entire map. For instance hippeis would be recruitable in Axum as well as Roma or Gawjam~Heruskoz or Chighu.

    If you were to delete the binary number bit, you would now enable recruitment of hippeis throughout the entire region marked by hidden_resource SW and hidden_resource B.

    So if you don't want/need a very fine and meticulously defined AOR you can economize on the amount of code quite a bit through means of deleting the binary number (and omitting the other code which specifies other regions within the same general area).
    Last edited by Tellos Athenaios; 05-24-2008 at 17:19.
    - 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.

  7. #7
    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)

    You're a true hero TA, so it is almost with shame that I ask another question. In the export_descr_unit file the Nakhararakan Tiknapah (Armenian Noble Infantry) and the Shipri Tukul (Babylonian Heavy Infantry) share the same model, namely the "eastern_infantry_babylonian_nakhararakantiknapah". Now, if I add both these units to the same faction rooster, say AS, will it work? Seeing as they share the same model.

    The reason that I'm asking is beacuse Hayasdan (roman_scipii) can recruit both according to the export_descr_unit.

    And ofcourse, are all these changes save game compatible?
    Last edited by Socy; 05-24-2008 at 18:08.

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