-
January 02, 2010, 08:54 PM
#1
Laetus
Problems with adding a unit in battle_models.modeldb
Hello, I didn't really know where to post this, but I'll try here. Sorry if I posted it wrong.
So, I have patched the game correctly up to 1.4 (I have been playing it and everything works correctly) and now I'm edeting the game files
to add a unit from the 1.3 Additional Units Mod by Agostinos
(http://www.twcenter.net/forums/showthread.php?t=254552), the unit is the Eldar
Swordsmen with shields (I just can't field an army if I don't have a basic shield
with sword unit, it's like the bulk of all my armies, always) and everything is
working good untill I get to the battle_models.modeldb. I have been adding this (red text):
13 elf_sword_upg
1 1
41 unit_models/_Units/my_units/elf_lod0.mesh 6400
1
5 egypt
48 unit_models/_Units/my_units/textures/elf.texture
55 unit_models/_Units/my_units/textures/elf_normal.texture
39 unit_sprites/egypt_elf_sword_sprite.spr
1
5 egypt
59 unit_models/_Units/my_units/textures/elf_attachment.texture
66 unit_models/_Units/my_units/textures/elf_attachment_normal.texture
0
1
4 None
16 MTW2_2HSwordsman
0
1
24 MTW2_2HSwordsman_Primary
0
16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
15 elf_shieldsword
1 1
53 unit_models/_Units/my_units/elf_shieldsword_lod0.mesh 6400
1
5 egypt
48 unit_models/_Units/my_units/textures/elf.texture
55 unit_models/_Units/my_units/textures/elf_normal.texture
39 unit_sprites/egypt_elf_sword_sprite.spr
1
5 egypt
59 unit_models/_Units/my_units/textures/elf_attachment.texture
66 unit_models/_Units/my_units/textures/elf_attachment_normal.texture
0
1
4 None
14 MTW2_Swordsman 0
2
18 MTW2_Sword_Primary
14 fs_test_shield 0
16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
9 elf_spear
1 1
47 unit_models/_Units/my_units/elf_spear_lod0.mesh 6400
1
5 egypt
48 unit_models/_Units/my_units/textures/elf.texture
55 unit_models/_Units/my_units/textures/elf_normal.texture
39 unit_sprites/egypt_elf_spear_sprite.spr
1
5 egypt
59 unit_models/_Units/my_units/textures/elf_attachment.texture
66 unit_models/_Units/my_units/textures/elf_attachment_normal.texture
0
1
4 None
10 MTW2_Spear
0
2
18 MTW2_Spear_primary
14 fs_test_shield
0
16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
to where it is as you see now, but I crash to the desktop when I try to run the game
with this log message:
03:21:11.825 [system.rpt] [always] CPU: SSE2
03:21:11.828 [system.rpt] [always] ==== system log start, build date: Feb 25 2008
version development ===
03:21:11.832 [system.io] [always] mounted pack packs/data_0.pack
03:21:11.833 [system.io] [always] mounted pack packs/data_1.pack
03:21:11.835 [system.io] [always] mounted pack packs/data_2.pack
03:21:11.838 [system.io] [always] mounted pack packs/data_3.pack
03:21:11.839 [system.io] [always] mounted pack packs/data_4.pack
03:21:11.839 [system.io] [always] mounted pack packs/localized.pack
03:21:26.363 [script.err] [error] Script Error in
mods/Third_Age/data/export_descr_unit.txt, at line 7894, column 1
Could not find soldier battle model for unit type 'isengard_monster_ribault_crew'.
03:21:26.363 [data.invalid] [error] DATABASE_TABLE error found : error reading
record from file mods/Third_Age/data/export_descr_unit.txt.
and if I put the unit (red text minus the first line plus the blue text) last in the
battle_models.modeldb I crash and get this log message:
03:26:52.210 [system.rpt] [always] CPU: SSE2
03:26:52.213 [system.rpt] [always] ==== system log start, build date: Feb 25 2008
version development ===
03:26:52.219 [system.io] [always] mounted pack packs/data_0.pack
03:26:52.220 [system.io] [always] mounted pack packs/data_1.pack
03:26:52.222 [system.io] [always] mounted pack packs/data_2.pack
03:26:52.225 [system.io] [always] mounted pack packs/data_3.pack
03:26:52.226 [system.io] [always] mounted pack packs/data_4.pack
03:26:52.226 [system.io] [always] mounted pack packs/localized.pack
03:26:57.432 [script.err] [error] Script Error in
mods/Third_Age/data/export_descr_unit.txt, at line 8633, column 1
Could not find soldier battle model for unit type 'elf_shieldsword'.
03:26:57.432 [data.invalid] [error] DATABASE_TABLE error found : error reading
record from file mods/Third_Age/data/export_descr_unit.txt.
I have read about how to edit the battle_models.modeldb but just a little bit, all
I've done is basically copied and pasted to the most logical place. And I have tried
putting the unit in many places (in the battle_models.modeldb file) but I always
crash. So can someone please explain (preferably in noobish) to me how I'm supposed
to make it work.
My guess is that the problem lies in some sort of positioning system used is the
battle_models.modeldb file. And I have probably completley noobed it up.
NOTE: This is not something I will release, since this is someone elses work. I just
want to edit in this unit for myself because I refuse to play the game without my
bulk unit
(And all I have done is basically copied and pasted things).
-
January 04, 2010, 12:45 PM
#2
Re: Problems with adding a unit in battle_models.modeldb
Go to the top:
22 serialization::archive 3 0 0 0 0 1163 0 0
Change the number to:
22 serialization::archive 3 0 0 0 0 1164 0 0
It counts the number of entries in the file. There should be 1163, now that you added a unit it should be 1164.
EDIT: It doesnt matter where you put the unit, it wont cause a crash. As long as you dont paste it in the middle of another unit.
-
January 04, 2010, 06:32 PM
#3
Laetus
Re: Problems with adding a unit in battle_models.modeldb
Ok, thanks alot! It finally works now! The battle_models.modeldb made me go almost completley insane 
Thanks!
Exitialis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules