I want to delete mercs and rebels from vanilla and add those from my mod. What files except for EDU and EDB should i check?
I want to delete mercs and rebels from vanilla and add those from my mod. What files except for EDU and EDB should i check?
In the imperial_campaign folder, campaign_script, descr_strat, descr_mercenaries, and descr_rebel_factions in the main folder.
Ok i must be doing sth wrong here because with mercs i have a problem
I have this in EDU
Spoiler Alert, click show to read:
and i have this in modeldb
Spoiler Alert, click show to read:
I have the unit in a unit models folder under mercs file and the texture.
For now i thought i would put him in Scotland region just to run the test
Spoiler Alert, click show to read:
and i get this error message that says it cannot get attributes for model Batroc in EDU, although as you can see attributes are there. My only guess is that i should have registered this unit elsewhere as well and i didnt so i get the error message. What am i doing wrong?
No those are the only files that you need and i can't see any problem in the code unfortunately.
Eothese do you see anything peculiar in the code bro?![]()
Recreated this slightly different to the OP and it works
EDU
Spoiler Alert, click show to read:
BMDB
Spoiler Alert, click show to read:
Hm i had that suspicion as well and was going to say it but then i saw example without slave BMDB entry so i thought that wasn't it.
Vanilla entry that i saw.Code:24 mercenary_german_knights 1 3 69 unit_models/_Units/EN_Pplate_Plate/mercenary_german_knights_lod0.mesh 121 69 unit_models/_Units/EN_Pplate_Plate/mercenary_german_knights_lod1.mesh 1225 69 unit_models/_Units/EN_Pplate_Plate/mercenary_german_knights_lod2.mesh 6400 1 4 merc 72 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_mercs.texture 73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 55 unit_sprites/merc_Dummy_EN_Plate_Knights_ug1_sprite.spr 1 4 merc 64 unit_models/AttachmentSets/Final Special Heads_merc_diff.texture 64 unit_models/AttachmentSets/Final Special Heads_merc_norm.texture 0 1 5 Horse 13 MTW2_HR_Lance 12 MTW2_HR_Mace 2 21 MTW2_HR_Lance_Primary 14 fs_test_shield 2 17 MTW2_Mace_Primary 14 fs_test_shield 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
Last edited by Ishan; April 05, 2011 at 01:31 PM.
I concur, an EDU entry with the mercenary_unit attribute only needs the one texture ref in the .db for merc.
The string counts are wrong, but the error log sounds as if it may be failing before that point...
48 unit_models/_Units/mercs/textures/Batroc.texture
55 unit_models/_Units/mercs/textures/Batroc_normal.texture
Post the log entry if that does not fix it.
Thanks Eothese for confirming it.
@meliritos
Damnit bro use modeldb checker for eliminating string count errors.![]()
I concur too,
it was a quick copy\paste of the Irish Kerns BMDB texture entries.
![]()
If the string error was the only one then that doesnt do it since i had detected the mistake and corrected it before you had seen it. I dont know if it needs entries for slaves as well as mercs for the textures to work, i will try it when i get home tonight and i will try Eothese entries as well.
Gigantus had mentioned that my EDU may have formatting problems but he is not here to explain further...
By the way what is an OP Eothese?
Last edited by meliritos; April 05, 2011 at 08:42 PM.
OP=Opening Post\Poster
Any error in EDU will be logged.
Any crucial error in BMDB will not start your game and CTD firsthand.![]()
23:35:38.250 [system.rpt] [always] CPU: SSE2
23:35:38.250 [system.rpt] [always] ==== system log start, build date: Feb 25 2008 version development ===
23:35:38.250 [system.io] [always] mounted pack packs/data_0.pack
23:35:38.250 [system.io] [always] mounted pack packs/data_1.pack
23:35:38.265 [system.io] [always] mounted pack packs/data_2.pack
23:35:38.265 [system.io] [always] mounted pack packs/data_3.pack
23:35:38.265 [system.io] [always] mounted pack packs/data_4.pack
23:35:38.265 [system.io] [always] mounted pack packs/localized.pack
23:38:17.296 [data.invalid] [error] DATABASE_TABLE error found : unrecognised record id Bosnian Archers requested.
23:38:17.296 [data.invalid] [error] DATABASE_TABLE error found : unrecognised record id Bosnian Archers requested.
23:38:28.406 [data.invalid] [error] World creation error: couldn't find unit description for unit type 'Norse Archers'.
23:38:28.406 [script.err] [error] Script Error in mods/Bare_Geomod/data/world/maps/campaign/imperial_campaign/descr_strat.txt, at line 2296, column 1
Could not create(Norse Archers) from the unit database.
23:38:28.406 [script.err] [error] Script Error in mods/Bare_Geomod/data/world/maps/campaign/imperial_campaign/descr_strat.txt, at line 2296, column 1
Unable to create new army
but it worked better than before, i will try to track down the errors ... Eothese you either tell me what you changed or i give you to code the rest of the mercs in, what do you say?
Sure thing, I changed the values of the string counts to match the length of the string...
Simple as that.![]()
Then i guess IT IS some formatting error as Gigantus said, because i had done that myself before you told me and it didnt work. Apart from the campaign script for the second error any idea where i should be looking for for the first one?
Just so you know there has to be a space after every line check my code above for German knights.^
Without spaces sometimes it can cause problems.![]()
I'd look at EDU and the Bosnian Archers unit, then check the Norse Archers, just follow on from one file to the next...
Yeah, i am beginning to get the essentials of coding. I checked some mistakes and when i start the campaign now it loads without errors. Even added one more unit, i will continue with the rest, although i dont know if i run into some problems in the future with all these units i am deleting
Removing units is no big deal read this post i posted a while back to a guy who had no idea on modding. Once the unit is gone and your game loads up fine it can never give you headaches later on reset assured bro.![]()