I have a problem... My code on the battles model folder is exact and battles come up but the unit I was trying to add ( dismounted Mamluks ) is invisible. some please help!!!!
I have a problem... My code on the battles model folder is exact and battles come up but the unit I was trying to add ( dismounted Mamluks ) is invisible. some please help!!!!
never mind it was a code error
I've had some success with the modeldb file adding skins to units, but I still can't figure out how to mount infantry units. Below you can see how I edited modeldb and EDU, but in-game my soldiers stand on their horses! Another issue I had just before was that they rode their horses, but with their weapons a few feet above and to the right of their heads.
Its really frustrating, I've sorted out the campaign map and now all I need to do is mount units and add faction symbols/banners and my mod will be complete...
Code:22 Ghanian_Tribal_Cavalry 1 4 65 unit_models/_Units/ME_Nubian_Padded/sudanese_javelinmen_lod0.mesh 121 65 unit_models/_Units/ME_Nubian_Padded/sudanese_javelinmen_lod1.mesh 900 65 unit_models/_Units/ME_Nubian_Padded/sudanese_javelinmen_lod2.mesh 2500 65 unit_models/_Units/ME_Nubian_Padded/sudanese_javelinmen_lod3.mesh 6400 1 7 normans 69 unit_models/_Units/ME_Nubian_Padded/textures/ME_Nubian_rebels.texture 69 unit_models/_Units/ME_Nubian_Padded/textures/ME_Nubian_normal.texture 49 unit_sprites/slave_Sudanese_Javelinmen_sprite.spr 1 7 normans 66 unit_models/AttachmentSets/Final Middle Eastern_slave_diff.texture 66 unit_models/AttachmentSets/Final Middle Eastern_slave_norm.texture 0 1 5 Horse 17 MTW2_Fast_Javelin 19 MTW2_Fast_Swordsman 2 20 MTW2_Javelin_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 26 Ghanian_Tribal_Cavalry_ug1 1 4 69 unit_models/_Units/ME_Nubian_Padded/sudanese_javelinmen_ug1_lod0.mesh 121 69 unit_models/_Units/ME_Nubian_Padded/sudanese_javelinmen_ug1_lod1.mesh 900 69 unit_models/_Units/ME_Nubian_Padded/sudanese_javelinmen_ug1_lod2.mesh 2500 69 unit_models/_Units/ME_Nubian_Padded/sudanese_javelinmen_ug1_lod3.mesh 6400 1 7 normans 69 unit_models/_Units/ME_Nubian_Padded/textures/ME_Nubian_rebels.texture 69 unit_models/_Units/ME_Nubian_Padded/textures/ME_Nubian_normal.texture 53 unit_sprites/slave_Sudanese_Javelinmen_ug1_sprite.spr 1 7 normans 66 unit_models/AttachmentSets/Final Middle Eastern_slave_diff.texture 66 unit_models/AttachmentSets/Final Middle Eastern_slave_norm.texture 0 1 5 Horse 17 MTW2_Fast_Javelin 19 MTW2_Fast_Swordsman 2 20 MTW2_Javelin_primary 14 fs_test_shield 2 18 MTW2_Sword_Primary 14 fs_test_shield 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002Code:type Ghanian Tribal Cavalry dictionary Ghanian_Tribal_Cavalry ; Ghanian Tribal Cavalry category cavalry class missile voice_type Heavy banner faction main_cavalry banner holy crusade_cavalry soldier Ghanian_Tribal_Cavalry, 32, 0, 1 mount fast pony mount_effect elephant -4, camel -4 attributes sea_faring, hide_forest, hardy, can_withdraw, cantabrian_circle formation 2, 4.4, 3, 6, 3, square stat_health 1, 0 stat_pri 9, 3, javelin, 55, 8, thrown, missile_mechanical, piercing, spear, 25, 1 ;stat_pri_ex 0, 0, 0 stat_pri_attr ap, thrown stat_sec 6, 2, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1 ;stat_sec_ex 0, 0, 0 stat_sec_attr no stat_pri_armour 0, 4, 4, flesh ;stat_armour_ex 0, 4, 0, 0, 3, 6, 6, flesh stat_sec_armour 0, 0, flesh stat_heat 0 stat_ground 0, -2, -4, 0 stat_mental 5, low, untrained stat_charge_dist 45 stat_fire_delay 0 stat_food 60, 300 stat_cost 1, 470, 175, 65, 50, 470, 4, 80 armour_ug_levels 0, 1 armour_ug_models Ghanian_Tribal_Cavalry, Ghanian_Tribal_Cavalry_ug1 ownership normans era 0 normans era 1 normans era 2 normans ;unit_info 6, 6, 9
im trying to add dismounted stratatoi(unit from BC), but how would i be able to do this?
great tut! yet the instructions are a little vague on how to edit the export_units.txt. to help others who might not understand these vague instructions i will post additional instructions on how to edit the export_units.txt.
orginally, this text file as the file extension ".txt.strings.bin". in order to edit this file you must download alpaca's bin converter(link to download is placed in the orginal post of this tutorial). once you have followed alpaca's instructions and have converted all files to .txt, open export_units.txt.
the file is more legible now! it follows this format:
{Dismounted_Knights_Hospitaller}Dismounted Knights Hospitaller
{Dismounted_knights_Hospitaller_descr} bla bla bla
{Dismounted_Knights_Hospitaller_descr_short} bla bla bla
in this case i added text for the dismounted hospitaller knights.
once you have made your changes, save the file, but dont close it!
then you must go File, Save As, export_units.txt.strings.bin, it will ask you if you want to replace existing file, choose yes. voila!(lol) open your game with io_filefirst then view your changes.
just to make sure
1. download alpaca's .bin converter
2. follow alpaca's instructions to convert the .bin files to .txt
3. open export_units
4. make necessary edits
5. save, but dont close!
6 save as export_units.txt.strings.bin, choose yes to replace existing file
7. open game with io_filefirst switch and view your new unit!
p.s. it took me while (and some fits of frustration) to figure this part out so i figured i'd help anyone new to making new units. lol
Ok, I am having some serious problems with makeing the dismounted Tsars Guard. I did all of what you said on this, but I get the black screen, beep, and press enter CTD. What am I doing wrong here?:
heres the modeling:
Spoiler Alert, click show to read:
And with the unit coding:
Spoiler Alert, click show to read:
I dunno what to do with this
Thanks Eothese, but now I've ran into another problem. So I got my dismounted knights to work, but when I upgrade to model 2, I got the invisible unit. Default works fine and shows up, but not ug1. Whats missing in my code (or wrong)?
Spoiler Alert, click show to read:
Also Im kinda new at this too.Spoiler Alert, click show to read:
At a glance, it looks OK. Did you add 1 to the serialization::archive at the top of the battle_models.db for both the basic model and the ug1?
Serialization? Sorry, but whats that? Im really lost here.
The serialization archive is the number at the top of the battle_models.db
22 serialization::archive 3 0 0 0 0 904 0 0
You need to add 1 to this for every new model you add including any upgrades (ug1, ug2 etc.)
Also, now that I take a closer look your ug1 string length is incorrect.
30 dismounted_danish_knights_ug1
Should be,
29 dismounted_danish_knights_ug1
There is no easy way to check string lengths, other than careful counting of characters.
As your new to this, I'll give you a little tip on armour upgrades. To save time you can use the same model (mesh) and simply reference it multiple times in the EDU to give further armour upgrade levels. EG.
Spoiler Alert, click show to read:
There is a way: ModelDB Checker
I was trying to create a Dismounted Jerusalem Lancer/Knight who uses 2-hand sword. I've just found out that I did not add the seri number (total number of unit). But there're other problems too.
I didn't find any ug1 file for Jerusalem's unit in the sprite folder. Does that mean the unit will not be upgradable (armor)? And how do I solve it?
More to ask, I change the texture of the unit, for example, Oathbreaker (Antioch to Jerusalem) but it appears weird. The armor of the unit shown in battle map looks 'wrong' with some black parts while the shields are blank (no image or color).
Any suggestion will be welcomed !!!
Sorry to revive such an old thread, but I encountered a problem with the unpacker when I wanted to do this mod. When I try to execute the unpack_all file it says it can't find MSVCP71.dll.. while it's right there in the Medieval 2 Total War folder where it should be. Is there any way to work around this? It says reïnstalling the game could solve the problem, but I just reïnstalled it yesterday and haven't done any modding since. Could it have anything to do with the fact that I installed it on the E: disk instead of default C:? That shouldn't be a problem right? At least it never is with installing updates or mods..