Jump to content

Trying to interpret a RAW format


Recommended Posts

Hi everyone,

 

I'm attempting to open up a sprite/graphic from SimCity 2000. As far as I know, they're headerless RAW format image files. I've tried using the dcraw tool although it says it cannot decode the file. I think the problem is that there's nothing to decode - these are supposed to be straight-up Bitmaps with no header whatsoever. If I could just directly import it without programs trying to find a header then failing, I might be able to get somewhere.

 

Can anyone help me get this images opened and converted somehow? I've attached a few samples here.

 

Thanks!

SC2Raw.zip

Edited by tgp1994
Link to comment
Share on other sites

The problem here is that we don't even know what the width or height should be. The first four bytes might contain this information. Is the image 12-bit of 14-bit? SimCity only knows :D

1000130092929292929292FFFFFFFFFFFFFF9292929292019292929292FFFF8A8A8A8A8A8A8AFFFF9292920192929292FF8A8A8A8A9898988A8A8A8AFF929201929292FF8A8A8A8A98988A98988A8A8A8AFF92019292FF8A8A8A8A8A988A8A8A988A8A8A8A8AFF019292FF8A8A8A8A8A8A8A8A98988A8A8A8A8AFF019292FF8A8A8A8A8A8A8A98988A8A8A8A8A8AFF019292FF8A8A8A8A8A8A8A988A8A8A8A8A8A8AFF019292FF8A8A8A8A8A8A8A988A8A8A8A8A8A8AFF01929292FF8A8A8A8A8A8A8A8A8A8A8A8A8AFF920192929292FF8A8A8A8A8A988A8A8A8A8AFF92920192929292FF8A8A8A8A8A8A8A8A8AFFFF92929201929292FF8A8A8AFFFFFFFFFFFFFF9292929292019292FF8A8AFFFF9292929292929292929292920192FF8AFFFF929292929292929292929292929201FFFFFF92929292929292929292929292929292010CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

My best answer is to try IrfanView.

  • Upvote 1
Link to comment
Share on other sites

The problem here is that we don't even know what the width or height should be. The first four bytes might contain this information. Is the image 12-bit of 14-bit? SimCity only knows :D

1000130092929292929292FFFFFFFFFFFFFF9292929292019292929292FFFF8A8A8A8A8A8A8AFFFF9292920192929292FF8A8A8A8A9898988A8A8A8AFF929201929292FF8A8A8A8A98988A98988A8A8A8AFF92019292FF8A8A8A8A8A988A8A8A988A8A8A8A8AFF019292FF8A8A8A8A8A8A8A8A98988A8A8A8A8AFF019292FF8A8A8A8A8A8A8A98988A8A8A8A8A8AFF019292FF8A8A8A8A8A8A8A988A8A8A8A8A8A8AFF019292FF8A8A8A8A8A8A8A988A8A8A8A8A8A8AFF01929292FF8A8A8A8A8A8A8A8A8A8A8A8A8AFF920192929292FF8A8A8A8A8A988A8A8A8A8AFF92920192929292FF8A8A8A8A8A8A8A8A8AFFFF92929201929292FF8A8A8AFFFFFFFFFFFFFF9292929292019292FF8A8AFFFF9292929292929292929292920192FF8AFFFF929292929292929292929292929201FFFFFF92929292929292929292929292929292010CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

My best answer is to try IrfanView.

 

Thank you for the IrfanView suggestion! The RAW plugin is super helpful; at least I can tweak settings and actually try to open images now. You're right though, there are a lot of unknowns at the moment... All I'm getting are garbled images. I'm assuming the dimensions are powers of two, probably square. I went into SCURK and used its BMP export function to see what it did, and for a large building it made a 128 x 256 x 8 BPP BMP. I don't understand how it's doing 8 BPP though since when I try to use that in the RAW import mode, the image is always grayscale?

Link to comment
Share on other sites

I don't understand how it's doing 8 BPP though since when I try to use that in the RAW import mode, the image is always grayscale?

 

Simcity 2000 probably uses a custom 8-bit palette.

  • Upvote 1

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

Simcity 2000 probably uses a custom 8-bit palette.

 

I believe you are correct. In the extracted data, I ended up with a MINE.PAL file, however IrfanView reports that it cannot read the file, so I guess that's my next struggle...

 

Have you tried using SCURK? IIRC it can export some of the game graphics as common formats, so it may work for the ones you're interested in.

 

You're right, it can...

 

I went into SCURK and used its BMP export function to see what it did, and for a large building it made a 128 x 256 x 8 BPP BMP. I don't understand how it's doing 8 BPP though since when I try to use that in the RAW import mode, the image is always grayscale?

 

Which led to my next question above, although I suppose it's neither here nor there since SCURK doesn't have the tiles I'm looking for... I'm hoping to find the ground/water/road tiles that the game uses.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...