PDA

View Full Version : Corrupt jpeg data


Guest
02-16-2003, 02:18 PM
When loading a level, it crashes, and this message appears. Can anybody help me fix this?

Joe Siegler
02-17-2003, 10:04 AM
Originally posted by gazzak:
When loading a level, it crashes, and this message appears. Can anybody help me fix this? <font size="2" face="Verdana, Arial">Sounds like what it says. Corrupt data. Have you tried reinstalling?

Yatta
02-17-2003, 01:51 PM
maybe your cd is scratched too much if even reinstallation isn't helping.

Daedalus
02-17-2003, 02:13 PM
Originally posted by gazzak:
When loading a level, it crashes, and this message appears. Can anybody help me fix this? <font size="2" face="Verdana, Arial">Yes, I can help you:

There are 3 possible reasons for the "Corrupt jpeg data" error message and you have to check every one of them to fix your problem:

Reason 1.
The engine tried to read a texture file inside your compiled LDB level file which had the extenstion .jpg but which was no real JPG format (missing "JFIF" header and other JPEG related data inside the file).
To fix this you have to manually check all *.jpg files stored inside your LDB with a hex viewer. If you find a file whose filename is name.jpg but which has no "JFIF" string at offset $06 then it's not a JPG format image, more likely a TGA, BMP or other one.
The engine crashes with an error here, because it assumes that a file called name.jpg is actually a JPG image and has proper headers and data inside. If it doesn't find this specific data then it thinks that something is wrong with the JPG file. The engine doesn't know that the extension in the filename just got named wrong accidently and that the file is no JPG format actually.

Reason 2.
The engine can't handle "uneven" resolutions and such which doesn't follow the following system:
8x8, 8x16, 8x32, 8x...
16x16, 16x32, 16x64, 16x...
32x32, 32x64, 32x...
64x64, 64x128, 64x...
128x128, 128x256, 128x...
256x256, ...
512x512, ....

So if you have a texture for example with the resolution 200x300 or 321x345 or stuff like that then the engine can't handle these resolutions, because it's unusual anyway. The most common resultions for textures are 64x64, 128x128, 256x256, 512x512, 1024x1024 and so on.
So to fix this check all your textures for resolutions other than these described above.

Reason 3.
The engine found a JPG image which is not 24-bit color depth (16.7 million colors). Make sure that ALL your textures are 24-bit!

Daedalus
02-17-2003, 02:17 PM
Originally posted by Joe3DR:
</font><blockquote><font size="1" face="Verdana, Arial">quote:</font><hr /><font size="2" face="Verdana, Arial">Originally posted by gazzak:
When loading a level, it crashes, and this message appears. Can anybody help me fix this? <font size="2" face="Verdana, Arial">Sounds like what it says. Corrupt data. Have you tried reinstalling? </font><hr /></blockquote><font size="2" face="Verdana, Arial">I'm shocked and amused at the same time that such a newbie answer comes from a person like you, Joe. images/icons/shocked.gif

No offense, but it seems that you are the kind of user who reinstalls Windows, just because he can't open a file. LOL! images/icons/wink.gif

[ 02-17-2003, 02:22 PM: Message edited by: Daedalus ]

Joe Siegler
02-18-2003, 10:58 AM
It's been our experience that errors such as this are due to corrupt data. The EASIEST way to repair the problem.

I don't appreciate the smug answer - I've been doing this for over a decade, and I can generally tell things quicker than .. aw hell with it. You don't deserve an explanation as to my thought patterns on this one.

When a customer has a problem, we go for the easiest solution first. I would have gone to "OK, if this is a user level, it is likely a corrupted user file, in which case get another copy, or don't use it".

What you posted was rather complex, and we've found that folks who would have knowledge of editing their software would be aware of things like this, and generally don't ask quesitons that can be answered simply. The guy in question has a total of 3 posts - I'd wager he isn't here because he's editing his game and mucked it up (at least not intentionally).

/me sighs. Way to Drazula it up.

[ 02-18-2003, 11:01 AM: Message edited by: Joe3DR ]

Daedalus
02-18-2003, 05:03 PM
^I'm confused now, Joe. How can he have such problem with the original Max Payne data???????!!!!!! images/icons/confused.gif

I mean I never had such problems with my copy of Max Payne! It seems he uses a pirated version which is totally screwed up or s.th. I say this, because I can't imagine that Remedy shipped the original Max Payne with a "corrupt jpeg data" error. If this is really the case, then why this error never occurs in my original MP?!

No, I don't really believe this story. And besides, someone posting 3 topics only is NO indication for him or her not using custom levels and such.

Just my 2 euro cents. images/icons/smile.gif

Crispy Critters
02-18-2003, 10:09 PM
it's possible when he was installing Max, there was a program running in the backround that prevented something from being written to the hard drive properly, or something of that sorts.

Simon Charles
02-19-2003, 11:04 AM
Originally posted by Daedalus:
I mean I never had such problems with my copy of Max Payne! It seems he uses a pirated version which is totally screwed up or s.th. I say this, because I can't imagine that Remedy shipped the original Max Payne with a "corrupt jpeg data" error. If this is really the case, then why this error never occurs in my original MP?!<font size="2" face="Verdana, Arial">Because every system is different? Because there could be a zillion different reasons as to why his data got corrupted?

Daedalus
02-19-2003, 02:02 PM
Originally posted by Simon Charles:
Because every system is different? Because there could be a zillion different reasons as to why his data got corrupted? <font size="2" face="Verdana, Arial">And what are these "zillions of different reasons" if I may ask, huh?!

You talk bullshit out of yer ass and you know it.

Simon Charles
02-19-2003, 05:17 PM
Originally posted by Daedalus:
</font><blockquote><font size="1" face="Verdana, Arial">quote:</font><hr /><font size="2" face="Verdana, Arial">Originally posted by Simon Charles:
Because every system is different? Because there could be a zillion different reasons as to why his data got corrupted? <font size="2" face="Verdana, Arial">And what are these "zillions of different reasons" if I may ask, huh?!

You talk bullshit out of yer ass and you know it. </font><hr /></blockquote><font size="2" face="Verdana, Arial">No, I don't. There could be an infinite number, who knows? Calm down, man.

Joe Siegler
02-21-2003, 04:17 PM
Indeed. Deadalus, you're way wrong - chill out. Now. Let this die.