Polybian Hastati have the wrong sprite (the use the Principes sprite),
Polybian Equites have also the wrong sprite.
well sprites.. for all who don't know it sprites are 2d textures that repalce the 3d models of your units if you zoom out far enough, in order to save hardware power. They are generated from the units texture and 3dmodel by the RTW engine.
Why do Polybian Hastati and Prinzipes have the same Sprite?
One RTW rule is: You can't have two texture slots for one faction on one model unless you make another model entry for it. The entrys are limited to 250.
To save model space EB used a trick to make two units on the same dmb entry available for one faction.
Code:
; Roman infantry - Hastati / Principes (Late)
type roman_infantry_hastati_principes
skeleton fs_pilum, fs_gladius
indiv_range 40
texture seleucid, eb/data/models_unit/textures/ebunit_Prome_new_unit_roman_late_Hastatii_Julii.TGA
texture merc, eb/data/models_unit/textures/ebunit_Prome_new_unit_roman_late_Principes_Julii.TGA
texture slave, eb/data/models_unit/textures/ebunit_Prome_new_unit_roman_late_Hastatii_Julii.TGA
model_flexi_m eb/data/models_unit/ebunit_Prome_new_unit_roman_late_HastatiiPrincipes_high.cas, 15
model_flexi_m eb/data/models_unit/ebunit_Prome_new_unit_roman_late_HastatiiPrincipes_high.cas, 30
model_flexi_m eb/data/models_unit/ebunit_Prome_new_unit_roman_late_HastatiiPrincipes_high.cas, 40
model_flexi eb/data/models_unit/ebunit_Prome_new_unit_roman_late_HastatiiPrincipes_high.cas, max
model_sprite seleucid, 60.0, eb/data/sprites/roman/ebsprite_roman_infantry_hastati_all.spr
model_sprite merc, 60.0, eb/data/sprites/roman/ebsprite_roman_infantry_principes_merc.spr
model_sprite slave, 60.0, eb/data/sprites/roman/ebsprite_roman_infantry_hastati_all.spr
model_tri 400, 0.5f, 0.5f, 0.5f
EB used the merc slot for the other unit (in this case the Principes), if you give that unit selucid (romans) ownership in edu, the game recognices it as roman unit (which makes it possible to add this unit to recruitment for that faction).
Both units have their sprites made and assigned in dmb.
Now the engine makes something that we can't stop:
If you play a battle were both units take part the sprite of the Principes is used by the game for the Hastati, too. The merc slot overwrites somehow the factional slot.
If you play a battle were only the Hastati take part only the game uses the right sprite for it.
The same applys for Hysteroi Pezhetaioi / Agyrsapides, late and early Equites, late and early lybu Phoenician infafntry and several other units which use this trick.
I hope it was understandable
Bonny
Bookmarks