Difference between revisions of "Descr model battle.txt"
Line 22: | Line 22: | ||
At the beginning of the file you will find the peaasants of the city view followed by: | At the beginning of the file you will find the peaasants of the city view followed by: | ||
+ | |||
Mounts and Animals | Mounts and Animals | ||
+ | |||
Generals and officers | Generals and officers | ||
+ | |||
Units of each Culture: | Units of each Culture: | ||
+ | |||
Barbarians | Barbarians | ||
+ | |||
Carthaginians | Carthaginians | ||
+ | |||
Easterners | Easterners | ||
+ | |||
Egyptians | Egyptians | ||
+ | |||
Greeks | Greeks | ||
+ | |||
Romans | Romans | ||
+ | |||
Mercenaries | Mercenaries | ||
Line 36: | Line 46: | ||
Changing textures(.tga files): | Changing textures(.tga files): | ||
+ | |||
İf you have only a texture file which needs to be changed,go to the texture file of your Unit: | İf you have only a texture file which needs to be changed,go to the texture file of your Unit: | ||
Example: | Example: | ||
+ | |||
type barb_scythian_noblewoman | type barb_scythian_noblewoman | ||
+ | |||
skeleton fs_hc_archer, fs_hc_swordsman | skeleton fs_hc_archer, fs_hc_swordsman | ||
+ | |||
indiv_range 40 | indiv_range 40 | ||
+ | |||
'''texture seleucid, data/models_unit/textures/AR_unit_persian_median_cavalry.tga''' | '''texture seleucid, data/models_unit/textures/AR_unit_persian_median_cavalry.tga''' | ||
+ | |||
model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 8 | model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 8 | ||
+ | |||
model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 15 | model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 15 | ||
+ | |||
model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 30 | model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 30 | ||
+ | |||
model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, max | model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, max | ||
+ | |||
model_sprite scythia, 60.0, data/sprites/scythia_barb_scythian_noblewoman_sprite.spr | model_sprite scythia, 60.0, data/sprites/scythia_barb_scythian_noblewoman_sprite.spr | ||
+ | |||
model_tri 400, 0.5f, 0.5f, 0.5f | model_tri 400, 0.5f, 0.5f, 0.5f | ||
And change it to the name of your .tga file: | And change it to the name of your .tga file: | ||
+ | |||
texture seleucid, data/models_unit/textures/'''your unit.tga''' | texture seleucid, data/models_unit/textures/'''your unit.tga''' | ||
Dont forget to put the texture file into the textuers folder in data/models_unit/textures | Dont forget to put the texture file into the textuers folder in data/models_unit/textures | ||
− | But notice that the texture file must match with the model file,if not,you will get an Unit like an Alien | + | |
+ | But notice that the texture file must match with the model file,if not,you will get an Unit | ||
+ | |||
+ | like an Alien | ||
+ | |||
İf there is no texture file,create one | İf there is no texture file,create one | ||
+ | |||
This changes the Skin of the Unit now | This changes the Skin of the Unit now | ||
Line 64: | Line 91: | ||
type barb_scythian_noblewoman | type barb_scythian_noblewoman | ||
+ | |||
+ | |||
skeleton fs_hc_archer, fs_hc_swordsman | skeleton fs_hc_archer, fs_hc_swordsman | ||
+ | |||
indiv_range 40 | indiv_range 40 | ||
− | '''texture seleucid, data/models_unit/textures/AR_unit_persian_median_cavalry.tga | + | |
+ | '''texture seleucid, | ||
+ | data/models_unit/textures/AR_unit_persian_median_cavalry.tga | ||
+ | |||
model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 8 | model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 8 | ||
+ | |||
model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 15 | model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 15 | ||
+ | |||
model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 30 | model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 30 | ||
+ | |||
model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, max''' | model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, max''' | ||
+ | |||
model_sprite scythia, 60.0, data/sprites/scythia_barb_scythian_noblewoman_sprite.spr | model_sprite scythia, 60.0, data/sprites/scythia_barb_scythian_noblewoman_sprite.spr | ||
+ | |||
model_tri 400, 0.5f, 0.5f, 0.5f | model_tri 400, 0.5f, 0.5f, 0.5f | ||
Change the model_flexi and models_flexi_m to the model file(.cas) which you want. | Change the model_flexi and models_flexi_m to the model file(.cas) which you want. | ||
+ | |||
And of course the texture like posted before. | And of course the texture like posted before. | ||
Revision as of 00:44, 19 July 2007
The descr_model_battle file is iöportant for how an Unit should look like. There you can change skins,giving Units a new model.
Structure of the descr_model_battle file:
type:indicates the new model type
skeleton:which animation the Unit will use
but remember:the animation weapon must be the same as the weapons in exort_descr_unit
indiv_range:indicates at what point we start rendering men individually even if we can group render
texture:at the beginning you need the faction name of the Unit and then you write there the path of the textuer(.tga)file
models_flexi and models_flexi_m:location of the models of the unit
modles_sprite:Location of the sprites of the Unit
model_tri:(optional) indicates that this model can be represented by a single triangle
At the beginning of the file you will find the peaasants of the city view followed by:
Mounts and Animals
Generals and officers
Units of each Culture:
Barbarians
Carthaginians
Easterners
Egyptians
Greeks
Romans
Mercenaries
How to edit the file:
Changing textures(.tga files):
İf you have only a texture file which needs to be changed,go to the texture file of your Unit:
Example:
type barb_scythian_noblewoman
skeleton fs_hc_archer, fs_hc_swordsman
indiv_range 40
texture seleucid, data/models_unit/textures/AR_unit_persian_median_cavalry.tga
model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 8
model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 15
model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 30
model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, max
model_sprite scythia, 60.0, data/sprites/scythia_barb_scythian_noblewoman_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
And change it to the name of your .tga file:
texture seleucid, data/models_unit/textures/your unit.tga
Dont forget to put the texture file into the textuers folder in data/models_unit/textures
But notice that the texture file must match with the model file,if not,you will get an Unit
like an Alien
İf there is no texture file,create one
This changes the Skin of the Unit now
Now how to change the Unit completely:
Now you need to change the models and textures.They are marked here black:
type barb_scythian_noblewoman
skeleton fs_hc_archer, fs_hc_swordsman
indiv_range 40
texture seleucid, data/models_unit/textures/AR_unit_persian_median_cavalry.tga
model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 8
model_flexi_m data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 15
model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, 30
model_flexi data/models_unit/AR_unit_persian_median_cavalry_lod1.cas, max
model_sprite scythia, 60.0, data/sprites/scythia_barb_scythian_noblewoman_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
Change the model_flexi and models_flexi_m to the model file(.cas) which you want.
And of course the texture like posted before.
Change the models and textures to this:
type barb_scythian_noblewoman skeleton fs_hc_archer, fs_hc_swordsman indiv_range 40 texture seleucid, data/models_unit/textures/your unit.tga model_flexi_m data/models_unit/your unit.cas, 8 model_flexi_m data/models_unit/your unit.cas, 15 model_flexi data/models_unit/your unit.cas, 30 model_flexi data/models_unit/your unit.cas, max model_sprite scythia, 60.0, data/sprites/scythia_barb_scythian_noblewoman_sprite.spr model_tri 400, 0.5f, 0.5f, 0.5f
İf you changed the name to your models(.cas) and your texture(.tga) file then you need to put your models into data/models_unit and texture to data/models_unit/textures folder