PDA

View Full Version : Work-in-progress: Units



Duke John
10-05-2004, 16:00
Do not post here unless you want to help finish this guide.

data\export_descr_units_enums.txt
Contains list of tags of unitnames and descriptions.

UnitTag
UnitTag_descr
UnitTag_descr_short

data\text\export_units.txt
Contains list of tags of unitnames and descriptions.

UnitTag Unit name
UnitTag_descr Long description
UnitTag_decr_short Short description

[/indent]data\descr_model_battle.txt
Contains information about textures, models and animation used by units.

type unit_tag
skeleton.......fs_skeleton_tag, indiv_range....40
texture........faction, data/models_unit/textures/unit_skin.tga
model_flexi_m..data/models_unit/unit_tag_300.cas, 8
model_flexi_m..data/models_unit/unit_tag_300.cas, 15
model_flexi....data/models_unit/unit_tag_200.cas, 30
model_flexi....data/models_unit/unit_tag_100.cas, 40
model_flexi....data/models_unit/unit_tag_70.cas, max
model_sprite...60.0, data/sprites/unit_tag_sprite.spr
model_tri......400, 0.5f, 0.5f, 0.5f
data\export_descr_unit.txt
Unit details

type ............unit
dictionary ......unit_dictionary_tag
category ........category
class............class
voice_type.......voice
soldier..........model, #soldiers, #extra, #officers
mount ...........mount
mount_effect ....mount_effect
attributes ......unit_attributes
formation .......close_x, close_y, loose_x, loose_y, ranks, formation
stat_health .....hp, hp_extra
stat_pri ........att, chg, ms, ms_range, ammo, wp_tpe, tech, dmg_type, sound, delay ,?
stat_pri_attr ...attributes
stat_sec ........att, chg, ms, ms_range, ammo, wp_tpe, tech, dmg_type, sound, delay ,?
stat_sec_attr ...attributes
stat_pri_armour .ar, def, sh, sound
stat_sec_armour .ar, def, sound
stat_heat .......heat_penalty
stat_ground .....mod_scrub, mod_sand, mod_forest, mod_snow
stat_mental .....morale, discipline, training
stat_charge_dist dist
stat_fire_delay .delay
stat_food .......n/a, n/a
stat_cost .......time, cost, upkeep, upgrade_wp, upgrade_arm, cost_custom
ownership .......faction
data\models\unit_model.cas
Unit model.

data\models_unit\textures\unit_skin.tga.dds
Unit skin. When referring to this file, exlude .dds.

data\models_unit\textures\unit_skin_gloss.tga.dds
Extra unit skin layer for gloss.

data\sprites\unit_sprite_###.tga.dds
data\sprites\unit_sprite_###.spr
Unit sprites. The R:TW engine still uses 2D sprites when units are seen from a distance.

data\ui\units\faction\#unit.tga
Unit icon. The # appears to be nessecary since you didn't refer to it elsewhere, but still it is used for official icons.

data\ui\unit_info\faction\unit.tga
Unit infopic.

Duke John
10-07-2004, 17:23
I have made for a new unit all the above files (in newly created directories). I worked sublime in a custom battle. I guess it also works with the campaign although you do need to add an entry in the building file so that you can actually train them.

I will make a guide soon.