Results 1 to 10 of 10

Thread: Adding a few regional units to KH

Hybrid View

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

    Default Re: Adding a few regional units to KH

    Quote Originally Posted by Ludens View Post
    My apologies: I misinterpreted your "swords to go with spears" comment as wanting to change their weapon. If you are just reusing the unit, then changing the weapon and animations is unnecessary.
    I should have said "give KH some sword units to go with their spear units" instead of being ambiguous.

    Well, I got KH to recruit Neitos out of a L4 regional MIC in Gaul by editing export_descr_buildings.txt, but they didn't appear in the set of units in town on the next turn.

    Next I editied export_descr_units.txt to add KH to their ownership list, and then they did appear after being recruited. They had the icon for peasants on the list of units in town, and the peasant portrait on their unit card. But I had a fight using them (they kick ass) and they looked right on the battle map. I got through a battle + save + load with no problems.

    So... to the unit cards and icons. I found that the portraits for the cards are in EB\Data\UI\UNIT_INFO\{factionname}, they're a TGA with _INFO tacked onto the unit name from export_descr_units.txt. I copied the TGA from egypt (i.e. Carthage) to greek_cities and they now appeared with that portrait in game. Similarly, the icons are in \EB\Data\UI\UNITS\{factionname} with a '#' on the front of the unit name.

    And that seems to have cracked it for Neitos. Now I just have to do something similar for the other 3 units I want. And I think I'll mod the KH bodyguards to be a souped up version of Celto-Hellenic Infantry.

    As for the skin: I recall that the game requires a separate skin file for every faction that can recruit the unit, even when the actual skins are the same. Check this, though, because it's been ages since I modded units.
    In the models_unit\textures\celtic folder I found three textures for them: ebceltic_infantry_neitos_blank_egypt.TGA.DDS, ebceltic_infantry_neitos_spw_scythia.tga.DDS, and ebceltic_infantry_neitos_spw_gauls.tga.DDS. That's Carthage and the two Gallic factions, i.e. there exists one texture per faction that can recruit them. Eyeballing the TGAs, they have different tartans and shield logos.

    But in descr_model_battle.txt I see (after some trimming):
    Code:
    ; Celtic infantry - Calawre / Carnute Cingetos / Galatian Kleruchoi / Neitos -------> MISSING MED/LOW/LOWEST
    
    type				celtic_infantry_calawre_carnute_kleruchoi_neitos
    skeleton			fs_javelinman_big, fs_swordsman_barb_slash_big
    indiv_range			40
    texture				gauls, eb/data/models_unit/textures/celtic/ebceltic_infantry_neitos_spw_gauls.tga
    texture				scythia, eb/data/models_unit/textures/celtic/ebceltic_infantry_neitos_spw_scythia.tga
    texture				egypt, eb/data/models_unit/textures/celtic/ebceltic_infantry_neitos_blank_egypt.tga
    texture				greek_cities, eb/data/models_unit/textures/celtic/ebceltic_infantry_neitos_spw_gauls.tga
    texture				macedon, eb/data/models_unit/textures/celtic/ebceltic_infantry_neitos_spw_gauls.tga
    {all others pointed to the gauls texture}
    ......
    model_tri			400, 0.5f, 0.5f, 0.5f
    So that's one faction->texture pointer per faction, but there can be many factions pointed to a given texture. The KH is pointed to one of the Gauls, which is what I saw on screen when I tested it.

    I think I'll edit it to point the KH at a copy of the Carthage texture, just to be on the safe side (and make them look different from Gaulish Neitos in a fight).

    Fight like a meatgrinder

  2. #2
    EBII Hod Carrier Member QuintusSertorius's Avatar
    Join Date
    Apr 2008
    Location
    UK
    Posts
    23,421

    Default Re: Adding a few regional units to KH

    I've got a similar, though simpler, question about modding recruitment. I'm playing with Epeiros-as-Pergamon again, and I'd like to be able to recruit Celto-Hellenic hoplites in Pergamon. It isn't currently a region where they are available, but they are a unit I can recruit, so I think it's a basic change to something.

    EDIT: Never mind, I asked exactly the same question two years ago...
    Last edited by QuintusSertorius; 09-22-2010 at 22:07.
    It began on seven hills - an EB 1.1 Romani AAR with historical house-rules (now ceased)
    Heirs to Lysimachos - an EB 1.1 Epeiros-as-Pergamon AAR with semi-historical houserules (now ceased)
    Philetairos' Gift - a second EB 1.1 Epeiros-as-Pergamon AAR


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