
Originally Posted by
Ludens
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).
Bookmarks