Page 1 of 1

Tearing apart .xcr files

Posted: Sat May 28, 2005 12:38 am
by krrpt
I'm in the process of modifiying the UI and I've run across a small annoying issue with the .xcr files. If I open up Picts.xcr in XcRcomp, for example, I see that last resource is zoomCursor.bmp. This file is hidden from the XCREx tool, so there's no way to extract the original. The same issue exists with all the .xcr files - the last resource in the file doesn't show up in XCRex. I was able to modify and rebuild Backgrounds.xcr with no issues only because it was obvious the hidden resource in that file (Welcome.bmp) was 1024x768. With the other files I am out of luck, since I have no clue what they are or what size they are. If everything isn't exactly right, BII crashes. I'm stuck with trial and error on the sizes.

Best solution: Point me to a tool that will allow me to view and/or extract the last resource in each .xcr.

Acceptable solution: Tell me the sizes of the last resources in every .xcr file so I can compile a functional .xcr with a dummy bitmap.

Not so great solution: Explain why the damn tool won't show the last resource and maybe I can figure out a workaround.

Worst solution: Tell me to go read the .xcr file spec and write my own tool.

Thanks for any help!



RE: Tearing apart .xcr files

Posted: Sat May 28, 2005 1:13 am
by JSS
- xcr tools used with the DBWWII aren't SSG/Matrix products

- the problem you describe is well known (and lamented) on the Run5 forums...

- THE file you should be working with is scenariopicts.xcr (in terms of producing custom scenarios)... changing any of the others is not recommended as far as I know.

Solution to your problem:

a) find a better free extractor program (let us all know!)[:D]

b) post which file you are unable to extract... likely someone has a copy they can send you... (this is the method I use)

RE: Tearing apart .xcr files

Posted: Sat May 28, 2005 1:49 am
by krrpt
I jumped the gun with this post. I found a free tool that works great (DragonUnPACKer 5):

http://sourceforge.net/projects/dragonunpacker

Regarding scenariopicts.xcr: I'm not working on any custom scenarios (yet!), just going through the UI and tweaking it here and there...hell everywhere. It's alright by me if you won't support a modified product.