I made this tutorial cause i can't find a right one here...
I added Dismounted Conquistadores to France(Just for fun and for testing)
If you don't like this ugly file then maybe this will help(Thanks to KnightErrant): http://www.totalwar.org/Downloads/Rt...ed_modeldb.zip
1) Unpack units_models folder from the packs files.
2) Copy the unpacked units_models folder to C:\"installed folder"\Medieval II Total War\data
3) Make a bat file with this line: medieval2.exe @mymod.cfg --io.file_first
4) Go to mymod\data and open export_descr_unit.txt
5) Find Dismounted Conquistadores and add France to ownership after Portugal (It should look like this "ownership spain, portugal, france")
6) Save the file and go to Medieval II Total War\data\units_models folder and open battle_models.modeldb file with a notepad
7) use search to and put this: 25 dismounted_conquistadores so that it's 100% right thing
8) This is the original code:
Code:
-0.090000004 0 0 -0.34999999 0.80000001 0.60000002 25 dismounted_conquistadores 1 4 71 unit_models/_Units/RN_Half_3Q_Plate/dismounted_conquistadores_lod0.mesh 121 71 unit_models/_Units/RN_Half_3Q_Plate/dismounted_conquistadores_lod1.mesh 900 71 unit_models/_Units/RN_Half_3Q_Plate/dismounted_conquistadores_lod2.mesh 2500 71 unit_models/_Units/RN_Half_3Q_Plate/dismounted_conquistadores_lod3.mesh 6400 2 5 spain 75 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_spain.texture 76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.texture 55 unit_sprites/spain_Dismounted_Conquistadores_sprite.spr 8 portugal 78 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_portugal.texture 76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.texture 58 unit_sprites/portugal_Dismounted_Conquistadores_sprite.spr 2 5 spain 59 unit_models/AttachmentSets/Final Iberian_spain_diff.texture 59 unit_models/AttachmentSets/Final Iberian_spain_norm.texture 0 8 portugal 62 unit_models/AttachmentSets/Final Iberian_portugal_diff.texture 62 unit_models/AttachmentSets/Final Iberian_portugal_norm.texture 0 1 4 None 14 MTW2_Swordsman 0 2 18 MTW2_Sword_Primary 14 fs_test_shield 0 16
9) Add these lines(Blue is what to change Red is what to add(You should edit this file with the keyboard not with the mouse):
Code:
-0.090000004 0 0 -0.34999999 0.80000001 0.60000002 25 dismounted_conquistadores 1 4 71 unit_models/_Units/RN_Half_3Q_Plate/dismounted_conquistadores_lod0.mesh 121 71 unit_models/_Units/RN_Half_3Q_Plate/dismounted_conquistadores_lod1.mesh 900 71 unit_models/_Units/RN_Half_3Q_Plate/dismounted_conquistadores_lod2.mesh 2500 71 unit_models/_Units/RN_Half_3Q_Plate/dismounted_conquistadores_lod3.mesh 6400 3 5 spain 75 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_spain.texture 76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.texture 55 unit_sprites/spain_Dismounted_Conquistadores_sprite.spr 6 france 75 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_spain.texture 76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.texture 55 unit_sprites/spain_Dismounted_Conquistadores_sprite.spr 8 portugal 78 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_portugal.texture 76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_normal.texture 58 unit_sprites/portugal_Dismounted_Conquistadores_sprite.spr 3 5 spain 59 unit_models/AttachmentSets/Final Iberian_spain_diff.texture 59 unit_models/AttachmentSets/Final Iberian_spain_norm.texture 0 6 france 59 unit_models/AttachmentSets/Final Iberian_spain_diff.texture 59 unit_models/AttachmentSets/Final Iberian_spain_norm.texture 0 8 portugal 62 unit_models/AttachmentSets/Final Iberian_portugal_diff.texture 62 unit_models/AttachmentSets/Final Iberian_portugal_norm.texture 0 1 4 None 14 MTW2_Swordsman 0 2 18 MTW2_Sword_Primary 14 fs_test_shield 0 16
10) Test the game every time you edit something and remember what you edited because if you do and see something is wrong then you can fix your mistakes.
10.1) Make sure you make no mistakes because if you do then the game won't work anymore and system.log won't show any error report...
10.2) If you still don't understand the code then look in here: http://www.twcenter.net/forums/showthread.php?t=77323
11) - (Optional) If you wan't to add France colors to this unit then change the first line you added
("6 france 75 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_spain.texture") To
("6 france 76 unit_models/_Units/RN_Half_3Q_Plate/textures/rn_half_3q_plate_france.texture")
NB! Make sure the texture file is in the folder because CA didn't make all textures for all factions.
NB2! here is Byzantium musketeer texture(Made By RTR Fan): http://files.filefront.com/Byzantium.../fileinfo.html
To make it work you must copy this file to: Medieval II Total War\data\unit_models\_units\rn_light_lmail\textures
and do what already nr 11 told you...
12) Now if you want Dismounted Conquistadores to have also an unit card and an info card...
Then Medieval II Total War\data\ui\units\spain or portugal and copy #dismounted_conquistadores
to Medieval II Total War\data\ui\units\france
NB! You can edit the picture to whatever you like... I recolored it with photoshop and made it look like french unit...
13) Now the unit info picture
Medieval II Total War\data\ui\unit_info\spain or portugal and copy dismounted_conquistadores_info
to Medieval II Total War\data\ui\unit_info\france
NB! You can edit this picture also to make it look like france...
14) Now to add the new unit to Campaign map edit export_descr_buildings in
"installed folder"\Medieval II Total War\mymod\data
Find all Dismounted Conquistadores:
Code:
recruit_pool "Dismounted Conquistadores" 1 0.4 3 0 requires factions { spain, portugal, } and hidden_resource america
And add France all of them like this(Don't copy paste this on all of them because some numbers are different from each building):
Code:
recruit_pool "Dismounted Conquistadores" 1 0.4 3 0 requires factions { spain, portugal, france, } and hidden_resource america
Optional: http://www.twcenter.net/forums/showthread.php?t=75791
Special Thanks to:
kleemann
RTR Fan
DukeofSerbia
Zorgrath
KnightErrant
Hans Kloss
NB!!!
1) The blue 3 - Shows how many factions have this unit.
2) Number front of factions show's it's letters, that means if you put there hre then it must be 3 hre or 7 england
3) Number front of sentence text shows also how many letters is in this sentence
(remember when you change the first sentence to get right faction colors - remember how many letters you deleted/added and change the number)
4) If there is a 0 then there must be two spaces after the number(like this "0__2")
NB!!!! EXEPT the last two numbers and that i mean this: "fs_test_shield 0 16" <-- here must not be 2 spaces
FAQ:
Q: I have a problem with battle_models.modeldb file can anybody help me?
A: PM M3rcury15 i think he can help you. But describe your problem in detail...
Q: I added an unit to a faction but it's still invisible?
A1: Common problem can be that you forgot to create the bat file that has --io.file_first like this: medieval2.exe @mymod.cfg --io.file_first
A2: Or you accidentally copied battle_models.modeldb to mymod folder. battle_models.modeldb must be in this folder: C:\"installed folder"\Medieval II Total War\data
Q: I added a cavalry unit to a faction. The unit is there, but the horses are invisible?
A: At the beginning of the battle_models.modeldb are mounts. If the unit's horse is invisible, find the horse what the unit should use and add the horse to the faction like you would add any unit.
Q: My edition is perfect but after i change texture name to the faction that i just added i have CTD?
A: The file is just missing.
Q: I tried to create a new unit using old units textures and meshes and i wanted to make a spearman to swordman but the weapon don't change?
A: Weapons and shields of the units are implanted in the mesh file not in the end of unit, i think changing the end will change the animation but i am not sure.
Q: How to make mounted units to dismounted?
A: Here: http://www.twcenter.net/forums/showthread.php?t=78236