The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> DEITM049.ITM Error
BeachBum
post Oct 7 2008, 02:23 AM
Post #1





Forum Member
Posts: 4
Joined: 4-September 08




I am in the middle of installing Big World and specifcally the Lost Crossroads Spell Pack for Baldur's Gate 2 = SpellPackB5 and am encountering an error.

When trying to install the Core Files and Graphics it fails with the following error. "DEITM049.ITM: read out of bounds".

Can anyone help resolve this.

Thanks.

Go to the top of the page
 
Quote Post
 
Start new topic
Replies
Baronius
post Oct 23 2008, 07:06 PM
Post #2


Master of energies
Group Icon

Council Member
Posts: 3324
Joined: 9-July 04
From: Magyarország




QUOTE
1.) The macro looks at the last header, counts the number of effects and compares it to SOURCE_SIZE.

2.) If the (number of effects times the feature block size plus whatever other offsets there might be) is larger than the SOURCE_SIZE but not by more than 48 bytes, then we assume the last feature block didn't get filled in. So we expand the SOURCE_SIZE gets with zeroes as needed.

3.) If the (number of effects times the feature block size plus whatever other offsets there might be) is larger than the SOURCE_SIZE by at least 48 bytes, then we assume there is something wrong with the number of effects. We then start counting the number of effects manually until we run out of bounds, counting feature blocks that might be less than 48 bytes. In that case, we go to 2.).

First, just a quick note: SOURCE_SIZE in WeiDU returns the size of the complete "patched" resource, doesn't it? In this case, you need to take into account the item header size and the extended headers as well in your calculation when making a comparison with SOURCE_SIZE. In your current algorythm, you're comparing the total size of feature blocks with the file size, instead of comparing it with the expected size of the feature block section. You write "plus whatever other offsets there might be", if this is meant to cover the item header and the extended headers, then ignore what I've written above.

It will be an interesting discovery if your suspicion about partial effect blocks proves to be true. To tell the truth, I don't give much chance to it, but we will see. Instead, I assume that the case is similar to the present problem of DEITM049.ITM: the feature block indices of extended headers are incorrect, they point beyond the end of file (but the feature blocks themselves are okay, i.e. their total size is a whole multiple of 48 bytes). I don't find your suspicion too likely, because the original game doesn't contain such files, which means they must have been generated by an editor. I doubt any item editors of the past generated partial blocks (such severely damaged data structures in this case can only be the result of some extraordinary problem such as damage on files on the media or during their transfer). On the other hand, faulty calculation of feature block indices is much more likely for an editor software, so perhaps one of the old editors has this bug. The fact that the base of FR_ROV (DEITM049.ITM ) and NEJ (mentioned by you) is relatively old, it's possible that some older files in these mods were made with an early item editor which might have generated faulty indices to feature blocks in extended headers. Of course, I would like to emphasize that this is also just an assumption.


--------------------
Mental harmony dispels the darkness.
Go to the top of the page
 
Quote Post
The Bigg
post Oct 23 2008, 08:30 PM
Post #3





Forum Member
Posts: 165
Joined: 29-January 05
From: Modena (Italy)




QUOTE(Baronius @ Oct 23 2008, 07:06 PM) *
First, just a quick note: SOURCE_SIZE in WeiDU returns the size of the complete "patched" resource, doesn't it?

SOURCE_SIZE returns the initial size of the file (and is not correct if you use INNER_ACTION or similar). BUFFER_SIZE returns the current size.

QUOTE
The fact that the base of FR_ROV (DEITM049.ITM ) and NEJ (mentioned by you) is relatively old, it's possible that some older files in these mods were made with an early item editor which might have generated faulty indices to feature blocks in extended headers. Of course, I would like to emphasize that this is also just an assumption.

I recall that CTB had (or still has) such a broken file as well, so that one falls under "old tools" as well (don't these mods predate even IEEP?). I guess somebody at SHS knows which files are broken in both CTB and NEJ.


--------------------
Please do not contact me for assistance in using BGT, BP, any other of the 'large mods', or a mod I didn't write or contribute to. I'm not your paid support staff, so I'd suggest you to direct your help questions to the forum relative to the mod you're playing.

Thanks for your cooperation.
Go to the top of the page
 
Quote Post

Posts in this topic
BeachBum   DEITM049.ITM Error   Oct 7 2008, 02:23 AM
Galactygon   You are not the first to report an out of bounds e...   Oct 7 2008, 02:27 PM
The Bigg   DEITM049.ITM is a broken file from FR_ROV (has 6 e...   Oct 7 2008, 02:40 PM
Baronius   Why isn't the file fixed in such cases when th...   Oct 7 2008, 03:09 PM
The Bigg   Why isn't the file fixed in such cases when th...   Oct 7 2008, 03:15 PM
Azazello   DEITM049.ITM is a broken file from FR_ROV (has 6 e...   Oct 21 2008, 12:38 AM
Baronius   RE: DEITM049.ITM Error   Oct 7 2008, 04:05 PM
The Bigg   ToD vs. UB is a wrong example. UB applies a typica...   Oct 7 2008, 05:04 PM
Baronius   I don't understand this from a grammar POV. ...   Oct 7 2008, 05:34 PM
The Bigg   I meant that you make a pinned topic about the pat...   Oct 7 2008, 06:47 PM
BeachBum   Here is the file before I did as you suggested. I...   Oct 7 2008, 05:40 PM
BeachBum   Opened the file in Near Infinity and then saved it...   Oct 7 2008, 05:52 PM
Baronius   BeachBum: as far as I can see, the file you attach...   Oct 7 2008, 06:58 PM
BeachBum   Baronius - Thanks for the help. This got me by ...   Oct 8 2008, 05:24 AM
Baronius   Since no one has replied yet: I suppose that if i...   Oct 8 2008, 04:43 PM
Galactygon   Unfortunately, I cannot return to SpellPack until ...   Oct 9 2008, 04:08 PM
Baronius   I think BeachBum was merely wondering whether or n...   Oct 9 2008, 05:05 PM
Galactygon   The file I attached has consistent structure for 1...   Oct 10 2008, 10:50 AM
Baronius   Just to make sure I understand your question: are ...   Oct 10 2008, 12:32 PM
Galactygon   Yes, or more like how is the game able to run smoo...   Oct 10 2008, 01:36 PM
Baronius   RE: DEITM049.ITM Error   Oct 10 2008, 04:49 PM
The Bigg   It ignores the problem if an invalid value is retu...   Oct 10 2008, 05:07 PM
Baronius   Possible. One more reason why I generally don...   Oct 10 2008, 05:42 PM
Baronius   I actually meant that the third-party code (e.g. ...   Oct 21 2008, 02:16 AM
Galactygon   I actually meant that the third-party code (e.g. ...   Oct 21 2008, 06:21 AM
Baronius   Glad to hear that. I hope you will practise that i...   Oct 21 2008, 06:50 AM
Galactygon   Glad to hear that. I hope you will practise that i...   Oct 21 2008, 07:21 AM
Baronius   Where do such corrupt files occur? The algorithm y...   Oct 21 2008, 08:57 AM
Galactygon   Where do such corrupt files occur? The algorythm y...   Oct 21 2008, 10:32 AM
Baronius   I see, but I asked what mods (or perhaps the origi...   Oct 21 2008, 03:55 PM
Galactygon   Filled in by what? A WeiDU installer of a mod? If ...   Oct 21 2008, 07:02 PM
Baronius   So you don't want to reveal where do these ...   Oct 21 2008, 08:32 PM
Galactygon   So you don't want to reveal where do these ...   Oct 23 2008, 05:26 PM
Baronius   Perhaps I'm misinterpreting something, so let...   Oct 23 2008, 05:41 PM
Galactygon   Is this correct? If yes, my question was simple: y...   Oct 23 2008, 05:52 PM
Baronius   First, just a quick note: SOURCE_SIZE in WeiDU re...   Oct 23 2008, 07:06 PM
The Bigg   First, just a quick note: SOURCE_SIZE in WeiDU ret...   Oct 23 2008, 08:30 PM
Baronius   I also meant SOURCE_SIZE in that way (my wording ...   Oct 23 2008, 09:24 PM
Leomar   A nice treasure is hidden in this thread. :) So...   May 17 2009, 03:37 AM
Tervadh   So I'll let you know, that we have included th...   May 18 2009, 10:39 PM
Leomar   So I'll let you know, that we have included th...   May 20 2009, 04:04 AM
Galactygon   This issue has been fixed. -Galactygon   Feb 6 2010, 06:46 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 11th August 2025 - 08:24 PM