Results 1 to 12 of 12

Thread: Corrupted units causing CTD (maybe?)

  1. #1

    Default Corrupted units causing CTD (maybe?)

    Hey guys, I downloaded this fantastic mod a few days ago and I'm having a real blast! I even got my brother playing this mod now . We're also using the awesome "welsh correction" sub-mod mentioned @ http://www.twcenter.net/forums/showt...me-corrections.

    Unfortunatly we both are running into a similar problem in our own games. There seems to be a re-occuring CTD during the battle loading screen every few battles.
    My suspicion is a unit corruption (whose unit icon is appearing as a Rome 1 peasant unit) similar to the Swordsmen Militia problem some people were having @ http://www.twcenter.net/forums/showt...ing-issue-HELP! and http://www.twcenter.net/forums/showt...battle-map-CTD .

    Both our system logs are looking something like this;

    Code:
    21:28:31.344 [system.io] [info] exists:   found mods/rule_britannia/data/OverlayTextures/burning_02.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.344 [system.io] [info] exists:   found mods/rule_britannia/data/OverlayTextures/burning_02.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.345 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/_Units/EN_Peasant_Padded/helwyr_lod2.mesh (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.346 [system.io] [info] exists:   found mods/rule_britannia/data/OverlayTextures/burning_02.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.346 [system.io] [info] exists:   found mods/rule_britannia/data/OverlayTextures/burning_02.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.347 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/_Units/EN_Peasant_Padded/helwyr_lod3.mesh (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.348 [system.io] [info] exists:   found mods/rule_britannia/data/OverlayTextures/burning_02.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.348 [system.io] [info] exists:   found mods/rule_britannia/data/OverlayTextures/burning_02.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.349 [system.io] [info] exists:   found mods/rule_britannia/data/unit_sprites/wales_Helwyr_sprite.spr (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.360 [system.io] [info] exists: missing mods/rule_britannia/data/OverlayTextures/character_overlay_base.texture
    21:28:31.360 [system.io] [info] exists: missing mods/rule_britannia/data/OverlayTextures/character_overlay_base.texture
    21:28:31.361 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/teulu_skirmishers_lod0.mesh (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.362 [system.io] [trace] file open,,mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/teulu_skirmishers_lod0.mesh,237090
    21:28:31.362 [system.io] [info] open:   found mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/teulu_skirmishers_lod0.mesh (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.365 [system.io] [info] exists: missing mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_wales.texture
    21:28:31.365 [system.io] [info] exists: missing mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_wales.texture
    21:28:31.367 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.367 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.369 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_diff.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.369 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_diff.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.370 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_norm.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.371 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_norm.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.372 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_diff.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.372 [system.io] [trace] file open,,mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_diff.texture,699240
    21:28:31.372 [system.io] [info] open:   found mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_diff.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.376 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_norm.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.376 [system.io] [trace] file open,,mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_norm.texture,1398304
    21:28:31.376 [system.io] [info] open:   found mods/rule_britannia/data/unit_models/AttachmentSets/Final Iberian_wales_norm.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.382 [system.io] [info] exists:   found mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.382 [system.io] [trace] file open,,mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture,1398304
    21:28:31.383 [system.io] [info] open:   found mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture (from: D:\Program Files (x86)\SEGA\Medieval II Total War)
    21:28:31.387 [system.io] [info] exists: missing mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_wales.texture
    21:28:31.388 [system.io] [trace] file open,,data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_wales.texture,,not found
    21:28:31.388 [system.io] [trace] pack open,packs/data_3.pack,data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_wales.texture,,not found
    21:28:31.388 [system.io] [warning] open: data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_wales.texture is missing
    21:28:31.388 [system.io] [info] exists: missing mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_wales.texture__unit_models/AttachmentSets/Final Iberian_wales_diff.texture
    21:28:31.389 [system.io] [info] exists: missing mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_wales.texture__unit_models/AttachmentSets/Final Iberian_wales_diff.texture
    21:28:31.389 [system.io] [info] exists: missing mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture__unit_models/AttachmentSets/Final Iberian_wales_norm.texture
    21:28:31.389 [system.io] [info] exists: missing mods/rule_britannia/data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture__unit_models/AttachmentSets/Final Iberian_wales_norm.texture
    21:28:32.008 [system.rpt] [error] Medieval 2: Total War encountered an unspecified error and will now exit.
    Those experiencing similar problems in the links provided above seemed to resolve the issue themselves. As one put it;

    I think I've resolved the dilemma. After consulting the technical support thread once more I noticed other issues arising from Scotlandís use of the swordsmen militia unit. I made some adjustments to the descr_strat file and have since not encountered a single CTD despite having been engaged in a constant campaign of subjugation against the Scots for the past 3 hours. I've fought at least a dozen battles since and the game seems to be working fine now.
    Since my code-editing abilities peaked with minor unit-stats editing back in Medieval 1, I wouldn't have the slightest idea on what to do in the descr_strat file in order to resolve this corrupt unit issue. Could someone please correct me if I'm wrong or help point my in the right direction? Thanks in advance!

  2. #2

    Default Re: Corrupted units causing CTD (maybe?)

    Did you install the Scotland hotfix? There was a missing texture for one of Scotland's units which causes a crash, so you'll need to grab this if you haven't already. You can get it from here or here.

    Extract the LN_Lmail_Hmail_scotland.texture file to this location where you installed M2TW:

    ...mods\Rule_Britannia\data\unit_models\_units\ln_lmail_hmail\texture

  3. #3

    Default Re: Corrupted units causing CTD (maybe?)

    Yea, we installed the Scot hotfix. We've both done clean re-installs too to no avail. We're currently playing as Wales fighting the Marches of Wales (faction that replaces the Danes in the Wales correction submod). We've fought many battles against them successfully with no issues, it's only when they have one or more of these corrupted units. In my most recent CTD it was 2 Hobilar units in the enemy army that I suspect was causing the CTD with their "Rome 1 peasant" icon. However the line of code in the log file that catches my eye is this;
    Code:
    21:28:31.388 [system.io] [warning] open: data/unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_wales.texture is missing
    Any ideas? Will editing the descr_strat like they did in the other thread fix this?

  4. #4

    Default Re: Corrupted units causing CTD (maybe?)

    Hmm, I've just had a look for that file and I don't seem to have it either. The descr_strat should effect this at all as far as I know, but you could try asking them what they edited to fix the problem I guess.

    Unless the Welsh submod changed it, the modeldb doesn't actually need that file at all anyway for any of the units, in my vanilla copy at least. I'll quickly install the submod and see if it that at all. I'm not really sure at this point to be honest. Modding isn't my strong point, I'm just a lowly tester...

  5. #5

    Default Re: Corrupted units causing CTD (maybe?)

    Alright, I've just downloaded the Wales Corrections and I think I've found the issue here...

    In line 28136 of the battle_models.modeldb file, it refers to the 'LN_peasant_wales.texture' that is causing your crash, but the problem is that this file doesn't actually exist. If You go to the specified folder, i.e. 'data\unit_models\_units\en_peasant_padded\textures', then there's only a file called 'en_peasant_padded_wales.texture'. So I think one of them has been given the wrong name by accident as that file isn't mentioned at all in the modeldb...

    Just noticed my own mistake here. The folder mentioned is in the original Rule Britannia files, but the LN_peasant_wales.texture isn't, and the submod doesn't seem to add it in either. But it is mentioned in the modeldb which is why its crashing I believe.

    I'll post in the Wales Correction thread to check, because I'm not sure which way around they're supposed to be or whatever to fix it, but I reckon that's the problem.
    Last edited by Kaiser Leonidas; January 19, 2015 at 11:30 AM.

  6. #6

    Default Re: Corrupted units causing CTD (maybe?)

    Fantastic! Kaiser Leonidas, you are the Hero of the TWC!

    It's just hit 1.30am here so I'm off to bed and I'll pick this up in the morn. Thank you for your time and effort with our unique problem sir, and another million thanks for what you do here around the forums!

  7. #7

    Default Re: Corrupted units causing CTD (maybe?)

    Quote Originally Posted by Kaiser Leonidas View Post
    The folder mentioned is in the original Rule Britannia files, but the LN_peasant_wales.texture isn't, and the submod doesn't seem to add it in either. But it is mentioned in the modeldb which is why its crashing I believe.
    Correct me if I'm wrong (because I am grasping for straws in the dark here), if the unit is legit and is just missing a texture, and the original authors of this fine mod are no longer interested/active, could this be resolved by copying and renaming this texture as the one missing?
    Code:
    72 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_england.texture
    What do you think?

  8. #8

    Default Re: Corrupted units causing CTD (maybe?)

    Ok, I just copied ln_peasant_normal.texture and renamed it ln_peasant_wales.texture in ...mods\Rule_Britannia\data\unit_models\_units\ln_peasant_padded\textures and the battle is now loading successfully! I'm not sure what consequences will come because of this because I honestly don't know what I'm doing from a modding perspective.

    I still hope that one of the authors of the submod (Colesy or Ceretic) could post a "proper" fix for this wonderful (and historically accurate mod) in the relevant thread, as I've no doubt they would have ran into this bug themselves playing with this submod, but for now this quickfix is better than a broken game!

    So what do you think guys? Can I get away with such a fix without it coming back to bite me in the future?

  9. #9

    Default Re: Corrupted units causing CTD (maybe?)

    I wish I knew how to edit my replies here on the forums so I'm not spamming the thread up, but I've noticed one more thing worth mentioning from the data Colesy posted for his submod. He's included an en_peasant_padded_wales.texture in ...mods\Rule_Britannia\data\unit_models\_units\en_peasant_padded\textures. Could this also be the elusive ln_peasant_wales.texture needed at ...unit_models\_units\ln_peasant_padded\textures? The battle will also load without problems if i copy the former and rename it to the latter. Thanks in advance for your wise advice and support !

  10. #10

    Default Re: Corrupted units causing CTD (maybe?)

    Ok, after some experiments and re-reading the whole thread, I've come to the conclusion that you, sir, were on the money with this;
    Quote Originally Posted by Kaiser Leonidas View Post
    If You go to the specified folder, i.e. 'data\unit_models\_units\en_peasant_padded\textures', then there's only a file called 'en_peasant_padded_wales.texture'. So I think one of them has been given the wrong name by accident as that file isn't mentioned at all in the modeldb.
    All the code and folder jumping got the better of me this morning and this statement was lost on me. I believe the EN/LN mixup is just a simple mistake on the authors behalf as you point out, and that since duplicating and renaming the texture file into it's correct location, the CTDs have entirely ceased in my campaign. I'm happy to claim the issue has been resolved and that I've learnt a lot from your assistance Kaiser, and for that I'm deeply grateful!

    I guess the next thing to do now would be to upload the fix to the Welsh corrections thread so others can enjoy this great sub-mod CTD-free!

  11. #11

    Default Re: Corrupted units causing CTD (maybe?)

    Quote Originally Posted by Merlo View Post
    I guess the next thing to do now would be to upload the fix to the Welsh corrections thread so others can enjoy this great sub-mod CTD-free!
    ^^ This I cannot do as there is an error when I attempt to upload the compressed file to the Welsh corrections thread.

  12. #12

    Default Re: Corrupted units causing CTD (maybe?)

    Quote Originally Posted by Merlo View Post
    So what do you think guys? Can I get away with such a fix without it coming back to bite me in the future?
    Well done on sorting it out! If it works fine then there shouldn't be a problem. It just depends on whether it was the correct texture file that was simply named wrong. If you check that the unit looks right, just in case it's using the wrong texture or something, but it shouldn't really cause any major issues doing that.
    Quote Originally Posted by Merlo View Post
    ^^ This I cannot do as there is an error when I attempt to upload the compressed file to the Welsh corrections thread.
    I'm not sure if there's a limit on when you can upload files, but you can only edit your posts once you've reached 25 posts and been a member here for a week. It's to stop spam bots and such avoiding the filter by posting a normal thread, and then editing in a link or anything dodgy.

    If I may refer you to this excellent guide by Shankbot, which contains quite a few tips and stuff like that.

Posting Permissions

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