Results 1 to 10 of 10

Thread: Getting a unit to use a texture

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Getting a unit to use a texture

    I made a new unit, and I want it to use a certain texture that I have created (I figured out the problem with the texture) I edited the Dismounted Gothic Knights texture, and placed the new one for a Byzantine unit in C:\Program Files (x86)\SEGA\Medieval II Total War\mods\modname\data\unit_models\_units\ln_gothic_rn_plate\textures\ and named it ln_gothic_rn_plate_byzantium.texture

    well, how do I get the new unit to use the texture (this is not in the EDU txt)
    I assmume it would be in one of the other txt files, but cant find it

  2. #2
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Getting a unit to use a texture

    Moved to Text Editing.

    You'll need to add a new texture to the model in modelsdb or if that model already has a texture for that faction add a new model (which is a copy of the old) with the new texture in place of the old one. There's a modeldb tutorial in the tutorial section.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  3. #3

    Default Re: Getting a unit to use a texture

    You assign textures, the animation, the 3d model it will use etc in battle_models.modeldb aka BMDB file.
    It can be found in:-
    data\unit_models folder.

    You might wanna use Formatted Campaign ModelDB files as the default version is a bit messed up.
    And you open it with notepad.
    Before fiddling with this file search the tutorial section here and read all about it.
    Edit
    Here is the Tutorial for it.
    Last edited by Ishan; November 02, 2010 at 06:32 PM.

  4. #4

    Default Re: Getting a unit to use a texture

    Yea already found it, but...I am trying to adding this to it (bold letters are added)

    25 dismounted_gothic_knights
    1
    4
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod0.mesh 121
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod1.mesh 900
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod2.mesh 2500
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod3.mesh 6400
    1
    3 hre
    77 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_hre.texture
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture
    53 unit_sprites/hre_Dismounted_Gothic_Knights_sprite.spr
    1
    3 hre
    56 unit_models/AttachmentSets/Final Heater_hre_diff.texture
    56 unit_models/AttachmentSets/Final Heater_hre_norm.texture
    9 byzantium
    83 unit_models/_units/ln_gothic_rn_plate/textures/ln_gothic_rn_plate_byzantium.texture

    0
    1
    4 None
    Read some tutorials already
    not working

  5. #5

    Default Re: Getting a unit to use a texture

    That's not the way it works. I'm bit sleepy right now but thing is we need and entire set for it faction wise.

    Like this:-
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod0.mesh 121
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod1.mesh 900
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod2.mesh 2500
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod3.mesh 6400
    ^Defines the model

    3 hre
    77 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_hre.texture
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture
    53 unit_sprites/hre_Dismounted_Gothic_Knights_sprite.spr
    ^defines the unit textures for this faction that is HRE.

    3 hre
    56 unit_models/AttachmentSets/Final Heater_hre_diff.texture
    56 unit_models/AttachmentSets/Final Heater_hre_norm.texture
    ^This defines the textures of the attachments the unit has that is weapons etc.

    Now for byzantine it will be like:-
    25 dismounted_gothic_knights
    1
    4
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod0.mesh 121
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod1.mesh 900
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod2.mesh 2500
    73 unit_models/_Units/LN_Gothic_RN_Plate/dismounted_gothic_knights_lod3.mesh 6400
    2<--As now there are 2 factions
    3 hre
    77 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_hre.texture
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture
    53 unit_sprites/hre_Dismounted_Gothic_Knights_sprite.spr
    9 byzantium
    77 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_hre.texture
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture
    53 unit_sprites/hre_Dismounted_Gothic_Knights_sprite.spr

    2
    3 hre
    56 unit_models/AttachmentSets/Final Heater_hre_diff.texture
    56 unit_models/AttachmentSets/Final Heater_hre_norm.texture
    9 byzantium
    56 unit_models/AttachmentSets/Final Heater_hre_diff.texture
    56 unit_models/AttachmentSets/Final Heater_hre_norm.texture

    0
    1
    4 None
    So i added this unit by giving new sets of textures and attachments to byzantium.

    Now what you do is download this:-Alletun tomb of knowledge
    It's a bit complicated for you right now but there is a page on the BMDB in this guide and it has explained it very nicely, so you might wanna read that page.

  6. #6

    Default Re: Getting a unit to use a texture

    Still not working, copied yours exactly :\

    Actually, after looking at the textures folder, the textures are not even there, only ln_gothic_rn_plate_antioch
    ln_gothic_rn_plate_Jerusalem
    ln_gothic_rn_plate_ireland
    ln_gothic_rn_plate_norway, ect. are there

    I dont see a
    ln_gothic_rn_plate_hre
    or ln_gothic_rn_plate_norm
    Last edited by Hyzoran; November 02, 2010 at 07:15 PM.

  7. #7

    Default Re: Getting a unit to use a texture

    It was just an example not a 100% code lol.
    Read the guide i attached.

  8. #8

    Default Re: Getting a unit to use a texture

    I am doing this exactly how this is telling me to do it and its not working, I just want to add a certain texture to a unit, nothing else, and it wants to mess with me lol

    WHy cant this be simple like the EDU file

  9. #9

    Default Re: Getting a unit to use a texture

    What do you want to do add Dismounted Gothic knights to Byzantium?

  10. #10

    Default Re: Getting a unit to use a texture

    Quote Originally Posted by Ishan View Post
    What do you want to do add Dismounted Gothic knights to Byzantium?
    I made a skin for them, and without specifying a skin, they have a silver texture, while this is acceptable, it is much more fun having my own texture that will fit with Byzantium, anyway, I am trying to get the game to use the texture I made, instead of leaving it just to sit there.

    so mad at Battle_models.modeldb

    Origins Total War: The Origins of Battle_models.modeldb

    Story: Rome Total War, a game of epic proportions, sold trillions of copies, many people played it, many peopled modded it.

    This release made CA, the Creators of this game, Filth Rich. They then started working on the Sequal of the Prequal, Medieval II total war...

    (CA HQ, developers room)

    Dev 1: Okay finished setting all the EDU stats, yes the game is almost finished, all that is left is descr_battle_models.txt

    CA Pres: Okay guys, we have so much money from RTW, what should we do with the money, its nearing Infinite!

    Dev 2: I have an Idea, lets buy drugs!

    CA PreS: Wow! Great Idea!

    (CA bought trillions of tons of drugs and issued it to all CA members)

    Dev 1: uhhh.... I haz an idea, instead of making a descr_battle_models.txt, lets make a scary battle_models.modeldb, it not organized or moddable, its just a scary battle_models.modeldb.

    Dev: Pwnage idea!! Lets do zis!

    This is how battle_models.modeldb was created, am I rite?
    Last edited by Hyzoran; November 02, 2010 at 10:21 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •