AyraWinla
11-13-2004, 17:33
Hi; I know it is VERY basic modding, but I still managed to get stuck even by reading all the documentation around (Nice site, I lurked here for quite some time :))... I wanted to add the Amazon chariots to the Scythian, built in the same temple as the Scythian Noble Women. That worked: it can be built in the temple of love, 3rd level of the Scythian. The unit can also be used in custom battles.
The problem is that there is no unit card for it (The 2D card at the bottom of the screen), and it shows a blue peasant instead. I tried what I read in the help topics about the graphic parts, but it did not help any. Please note that the unit does work perfectly in battle; it is only the 2D card that shows a blue peasant instead. Here is the new relative content of the files:
descr_model_battle
type greek_amazons
skeleton fs_chariot_archer, fs_chariot_sword
indiv_range 40
texture scythia, data/models_unit/textures/greek_amazon_rebel.tga
texture slave, data/models_unit/textures/greek_amazon_rebel.tga
model_flexi data/models_unit/unit_greek_amazon_high.cas, 15
model_flexi data/models_unit/unit_greek_amazon_med.cas, 30
model_flexi data/models_unit/unit_greek_amazon_low.cas, 40
model_flexi data/models_unit/unit_greek_amazon_lowest.cas, max
model_sprite scythia, 60.0, data/sprites/slave_greek_amazons_sprite.spr
model_sprite slave, 60.0, data/sprites/slave_greek_amazons_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
Since the "greek_amazon" type does not match the description of the amazon in export_descr_unit (It is called amazon_chariots in that one), I also created a new entry as follow:
type amazon_chariots
skeleton fs_chariot_archer, fs_chariot_sword
indiv_range 40
texture scythia, data/models_unit/textures/greek_amazon_rebel.tga
texture slave, data/models_unit/textures/greek_amazon_rebel.tga
model_flexi data/models_unit/unit_greek_amazon_high.cas, 15
model_flexi data/models_unit/unit_greek_amazon_med.cas, 30
model_flexi data/models_unit/unit_greek_amazon_low.cas, 40
model_flexi data/models_unit/unit_greek_amazon_lowest.cas, max
model_sprite scythia, 60.0, data/sprites/slave_greek_amazons_sprite.spr
model_sprite slave, 60.0, data/sprites/slave_greek_amazons_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
In case it is relevant, here is the export_descr_unit entry:
type rebel amazon chariots
dictionary amazon_chariots ; Amazon Chariots
category cavalry
class missile
voice_type Female_1
soldier greek_amazons, 27, 9, 1
mount heavy chariot
mount_effect elephant -8, camel -4
attributes sea_faring, hide_forest, frighten_foot, cantabrian_circle
formation 8.5, 9, 15, 15, 2, square
stat_health 1, 2
stat_pri 14, 5, arrow, 120, 60, missile, archery, piercing, none, 25 ,1
stat_pri_attr no
stat_sec 10, 7, no, 0, 0, melee, blade, slashing, none, 25 ,1
stat_sec_attr launching, ap
stat_pri_armour 11, 1, 0, metal
stat_sec_armour 0, 1, flesh
stat_heat 2
stat_ground 0, 0, -6, 0
stat_mental 12, normal, untrained
stat_charge_dist 40
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 680, 140, 70, 110, 680
ownership slave, scythia
Anyone have any suggestions as to what I could be missing? Thank you very much!
The problem is that there is no unit card for it (The 2D card at the bottom of the screen), and it shows a blue peasant instead. I tried what I read in the help topics about the graphic parts, but it did not help any. Please note that the unit does work perfectly in battle; it is only the 2D card that shows a blue peasant instead. Here is the new relative content of the files:
descr_model_battle
type greek_amazons
skeleton fs_chariot_archer, fs_chariot_sword
indiv_range 40
texture scythia, data/models_unit/textures/greek_amazon_rebel.tga
texture slave, data/models_unit/textures/greek_amazon_rebel.tga
model_flexi data/models_unit/unit_greek_amazon_high.cas, 15
model_flexi data/models_unit/unit_greek_amazon_med.cas, 30
model_flexi data/models_unit/unit_greek_amazon_low.cas, 40
model_flexi data/models_unit/unit_greek_amazon_lowest.cas, max
model_sprite scythia, 60.0, data/sprites/slave_greek_amazons_sprite.spr
model_sprite slave, 60.0, data/sprites/slave_greek_amazons_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
Since the "greek_amazon" type does not match the description of the amazon in export_descr_unit (It is called amazon_chariots in that one), I also created a new entry as follow:
type amazon_chariots
skeleton fs_chariot_archer, fs_chariot_sword
indiv_range 40
texture scythia, data/models_unit/textures/greek_amazon_rebel.tga
texture slave, data/models_unit/textures/greek_amazon_rebel.tga
model_flexi data/models_unit/unit_greek_amazon_high.cas, 15
model_flexi data/models_unit/unit_greek_amazon_med.cas, 30
model_flexi data/models_unit/unit_greek_amazon_low.cas, 40
model_flexi data/models_unit/unit_greek_amazon_lowest.cas, max
model_sprite scythia, 60.0, data/sprites/slave_greek_amazons_sprite.spr
model_sprite slave, 60.0, data/sprites/slave_greek_amazons_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
In case it is relevant, here is the export_descr_unit entry:
type rebel amazon chariots
dictionary amazon_chariots ; Amazon Chariots
category cavalry
class missile
voice_type Female_1
soldier greek_amazons, 27, 9, 1
mount heavy chariot
mount_effect elephant -8, camel -4
attributes sea_faring, hide_forest, frighten_foot, cantabrian_circle
formation 8.5, 9, 15, 15, 2, square
stat_health 1, 2
stat_pri 14, 5, arrow, 120, 60, missile, archery, piercing, none, 25 ,1
stat_pri_attr no
stat_sec 10, 7, no, 0, 0, melee, blade, slashing, none, 25 ,1
stat_sec_attr launching, ap
stat_pri_armour 11, 1, 0, metal
stat_sec_armour 0, 1, flesh
stat_heat 2
stat_ground 0, 0, -6, 0
stat_mental 12, normal, untrained
stat_charge_dist 40
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 680, 140, 70, 110, 680
ownership slave, scythia
Anyone have any suggestions as to what I could be missing? Thank you very much!