Tearing apart .xcr files

Battles In Italy is the fourth game in the award-winning Decisive Battles of WWII game series from Strategic Studies Group. Battles in Italy recreates all aspects of the Italy campaign, from the landings on Sicily to Salerno, Anzio and Rome. Strategic Studies Group has again updated the Decisive Battles game engine for Battles in Italy with campaign specific features and other enhancements.

Moderator: alexs

Post Reply
krrpt
Posts: 17
Joined: Wed May 25, 2005 1:11 am

Tearing apart .xcr files

Post 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!


JSS
Posts: 780
Joined: Wed Oct 15, 2003 3:24 pm

RE: Tearing apart .xcr files

Post 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)
krrpt
Posts: 17
Joined: Wed May 25, 2005 1:11 am

RE: Tearing apart .xcr files

Post 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.
Post Reply

Return to “Decisive Battles: Battles In Italy”