PDA

View Full Version : Unit textures question



B1ueBa11
04-11-2006, 18:43
If I just add the "roman, " faction in a particular unit's texture and sprite entry in the desc_model_battle.txt file, will it work? If not, can I add an entry pointing to the original faction's folder? Also, do my files have to be unpacked for the options above to work?

Rstoner
04-11-2006, 21:47
If you mean you want to make a foreign unit recruitable by the roman factions. Copy the texture and sprite and label them 'romans_julii, romans_scipii....'.

e.g.

type greek_armoured_hoplite
skeleton fs_spearman, fs_swordsman
indiv_range 40
texture carthage, data/models_unit/textures/unit_greek_elite_hoplite_carthage.tga
texture greek_cities, data/models_unit/textures/unit_greek_elite_hoplite_greek.tga
texture romans_julii, data/models_unit/textures/unit_greek_elite_hoplite_greek.tga
model_flexi data/models_unit/unit_greek_hoplite_elite_high.cas, 15
model_flexi data/models_unit/unit_greek_hoplite_elite_med.cas, 30
model_flexi data/models_unit/unit_greek_hoplite_elite_low.cas, 40
model_flexi data/models_unit/unit_greek_hoplite_elite_lowest.cas, max
model_sprite greek_cities, 60.0, data/sprites/greek_cities_greek_armoured_hoplite_sprite.spr
model_sprite romans_julii, 60.0, data/sprites/greek_cities_greek_armoured_hoplite_sprite.spr
model_sprite carthage, 60.0, data/sprites/carthage_greek_armoured_hoplite_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f

Then add the Roman faction to the corrosponding entries in 'export_descr_unit' and 'export_descr_buildings'.

You will need to unpack some files in order to get the unit cards working, use Vercingetorix's PAK Extractor. It's in the downloads section of this site (Under Tools)

Once you've unpacked the PAKs, copy the unit's cards into the roman factions folders ('data/ui /unit_info' and 'data/ui /units').

Good luck.