Results 1 to 20 of 20

Thread: Updated formatted modeldb file and associated syntax checker

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Gognard Member MikeV's Avatar
    Join Date
    Jan 2005
    Location
    Sunny Melbourne (Florida, USA)
    Posts
    203

    Lightbulb Re: Deciphering the battle_models.modeldb file

    Here's another interesting example, the basis for General units:
    Code:
    16 northern_general 
    1 4 
    78 unit_models/_Generals_and_Captains/Northern_General/northern_general_lod0.mesh 121 
    78 unit_models/_Generals_and_Captains/Northern_General/northern_general_lod1.mesh 900 
    78 unit_models/_Generals_and_Captains/Northern_General/northern_general_lod2.mesh 2500 
    78 unit_models/_Generals_and_Captains/Northern_General/northern_general_lod3.mesh 6400 
    18 
    7 england 
    89 unit_models/_Generals_and_Captains/Northern_General/textures/late_general_england.texture 
    88 unit_models/_Generals_and_Captains/Northern_General/textures/late_general_normal.texture 
    0  
     ... 
    18 
    7 england 
    61 unit_models/AttachmentSets/Final General_england_diff.texture 
    61 unit_models/AttachmentSets/Final General_england_norm.texture 
    0  
     ...
    4 
    4 None 15 MTW2_Non_Shield 0  1 18 MTW2_Sword_Primary 0 
    5 horse 18 MTW2_HR_Non_Shield 0  1 18 MTW2_Sword_Primary 0 
    8 elephant 18 MTW2_Elephant_Crew 0  1 18 MTW2_Sword_Primary 0 
    5 camel 18 MTW2_HR_Non_Shield 0  1 18 MTW2_Sword_Primary 0 
    -1 0 0 0 0 0 0
    Note that there are no sprite files. And the animation section has a List of 4 entries -- one for dismounted, and one for each known type of mount. But no animation timing. Looks like another special case, or a stub of earlier work no longer used?

    For comparison, here's the entry for a Northern European Bodyguard unit:
    Code:
    12 ne_bodyguard 
    1 4 
    56 unit_models/_Units/EN_Lmail_Hmail/ne_bodyguard_lod0.mesh 121 
    56 unit_models/_Units/EN_Lmail_Hmail/ne_bodyguard_lod1.mesh 900 
    56 unit_models/_Units/EN_Lmail_Hmail/ne_bodyguard_lod2.mesh 2500 
    56 unit_models/_Units/EN_Lmail_Hmail/ne_bodyguard_lod3.mesh 6400 
    10 
    7 england 
    73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_england.texture 
    72 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_normal.texture 
    44 unit_sprites/england_NE_Bodyguard_sprite.spr 
     ...
    7 england 
    60 unit_models/AttachmentSets/Final Heater_england_diff.texture 
    60 unit_models/AttachmentSets/Final Heater_england_norm.texture 
    0  
     ...
    1 
    5 Horse 13 MTW2_HR_Lance 13 MTW2_HR_Sword 
    2 21 MTW2_HR_Lance_Primary 14 fs_test_shield 
    2 18 MTW2_Sword_Primary 14 fs_test_shield 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    This time there's an entry for a sprite file, and sensible values for Primary and Secondary (Horse Rider) weapon animations.
    Last edited by MikeV; 05-21-2008 at 00:37. Reason: Added that "HR" stands for "Horse Rider"
    Forums are good for sharing questions, wikis are good for sharing answers:
    Spoiler Alert, click show to read: 
    Check out the Online ETW Data in the Totalwar.org wiki.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO