[Solved] Mod Translation giving "Size Mismatch" error

Post about your mods, learn about OpenMW mod compatibility, check for problematic mods, discuss issues, and give us feedback about your experience with modded OpenMW.
RobbiBlechdose
Posts: 15
Joined: 01 Mar 2017, 10:02

[Solved] Mod Translation giving "Size Mismatch" error

Post by RobbiBlechdose »

Hello everyone,
I just translated "Buy A House Overhauled" into German using the "ESP-ESM Translator", but when trying to start OpenMW (the original mod works), it crashes with this error:

Code: Select all

ESM Error: getHExact(): size mismatch (requested 302, got 311)
   File: X:/X/X/X/Translation.esp
   Record: SCPT
   Subrecord: SCDT
   Offset: 0x90e
(Drive and folder letters habe been replaced)

Any ideas why this is happening?
Last edited by RobbiBlechdose on 19 Mar 2017, 12:40, edited 1 time in total.
User avatar
MiroslavR
Posts: 156
Joined: 12 Feb 2014, 17:45

Re: Mod Translation giving "Size Mismatch" error

Post by MiroslavR »

The "ESP-ESM Translator" utlity could be buggy. The important thing to know is whether Translation.esp works in vanilla Morrowind. If so, please attach the file here.
User avatar
Capostrophic
Posts: 794
Joined: 22 Feb 2016, 20:32

Re: Mod Translation giving "Size Mismatch" error

Post by Capostrophic »

MiroslavR wrote:The "ESP-ESM Translator" utlity could be buggy.
Yep, it's not the first time Morrowind support is broken.
RobbiBlechdose
Posts: 15
Joined: 01 Mar 2017, 10:02

Re: Mod Translation giving "Size Mismatch" error

Post by RobbiBlechdose »

Ok, here is the file:http://s000.tinyupload.com/download.php ... 7134931466
Altough I have no way of testing it in vanilla morrowind, as it doesn't even start on my PC (part of the reason I switched to OpenMW).
Also, the original mod works, whereas the translation crashes OpenMW before reaching the menu.
RobbiBlechdose
Posts: 15
Joined: 01 Mar 2017, 10:02

Re: Mod Translation giving "Size Mismatch" error

Post by RobbiBlechdose »

Any ideas on how to fix this?
Maybe use another program to edit the ESP?
User avatar
MiroslavR
Posts: 156
Joined: 12 Feb 2014, 17:45

Re: Mod Translation giving "Size Mismatch" error

Post by MiroslavR »

ESP-ESM Translator saves script bytecode size (the one inside SCHD subrecord) incorrectly; it doesn't match the size of the SCDT subrecord. Vanilla Morrowind doesn't complain, but from my testing it can break script execution.

We could work around the problem by removing the size check (OpenMW does not use that bytecode anyway), but the best course of action is to contact the author of the tool.
RobbiBlechdose
Posts: 15
Joined: 01 Mar 2017, 10:02

Re: Mod Translation giving "Size Mismatch" error

Post by RobbiBlechdose »

Thanks!
Would there be any way to edit that value manually?
User avatar
MiroslavR
Posts: 156
Joined: 12 Feb 2014, 17:45

Re: Mod Translation giving "Size Mismatch" error

Post by MiroslavR »

It's not just a single value that needs to be changed. These errors are all over the place. Almost every script record is faulty.

Maybe you could resave the plugin with some editor such as MWEdit or TES Construction Set.
RobbiBlechdose
Posts: 15
Joined: 01 Mar 2017, 10:02

Re: Mod Translation giving "Size Mismatch" error

Post by RobbiBlechdose »

Thanks,
I'll try that and report back.
User avatar
Sslaxx
Posts: 233
Joined: 12 Aug 2011, 18:59
Location: Malvern, UK
Contact:

Re: Mod Translation giving "Size Mismatch" error

Post by Sslaxx »

If OpenMW doesn't use that record, it might be a good idea to have it give a warning on the console and otherwise ignore it.
Post Reply