XPR2 Unpacker

Textures, recreate headers, conversions, algorithms and parsing of image files
JohnHudeski
Posts: 40
Joined: Mon Dec 29, 2014 8:49 pm

XPR2 Unpacker

Post by JohnHudeski »

I am having some problems using the noesis extactor. The resulting image is horribly tiled
I was wondering if there are any other alternatives ( I seem to remember aluigi working on one I don't remember if he finished)
puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: XPR2 Unpacker

Post by puggsoy »

Please upload one or two files to look at. Also what game is this from?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: XPR2 Unpacker

Post by aluigi »

The script I wrote is available here:
http://aluigi.org/papers/bms/xpr.bms
JohnHudeski
Posts: 40
Joined: Mon Dec 29, 2014 8:49 pm

Re: XPR2 Unpacker

Post by JohnHudeski »

Here is one example
JohnHudeski
Posts: 40
Joined: Mon Dec 29, 2014 8:49 pm

Re: XPR2 Unpacker

Post by JohnHudeski »

C:\Users\xxxxx\Desktop\New folder\w>quickbms xpr.bms CHR_HORIBE_1P.XPR "C:\User
s\xxxxx\Desktop\New folder\w\xpr"


QuickBMS generic files extractor and reimporter 0.6.1d
by Luigi Auriemma
e-mail: aluigi@autistici.org
web: aluigi.org
(Dec 28 2014 - 21:19:39)

http://quickbms.aluigi.org
http://twitter.com/luigi_auriemma
http://zenhax.com

- open input file C:\Users\xxxxx\Desktop\New folder\w\CHR_HORIBE_1P.XPR
- open script xpr.bms
- set output folder C:\Users\xxxxx\Desktop\New folder\w\xpr

offset filesize filename
--------------------------------------

Error: incomplete input file 0: C:\Users\xxxxx\Desktop\New folder\w\CHR_HORIBE_
1P.XPR
Can't read 1 bytes from offset 7975736f.
Anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted.
Please check the following coverage information to know if it's ok.

coverage file 0 0% 52 8740876

Last script line before the error or that produced the error:
89 get NAME string



I don't understand

When I used chorrox noesis plugin I get bad unswizzle and some files dont even open
JohnHudeski
Posts: 40
Joined: Mon Dec 29, 2014 8:49 pm

Re: XPR2 Unpacker

Post by JohnHudeski »

puggsoy wrote:Please upload one or two files to look at. Also what game is this from?

Kengo Legend of 9 xbox 360 (Bad game :P)
It from 2006/7
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: XPR2 Unpacker

Post by aluigi »

I have updated the script to support this format.
It's a sort of work-around but seems to work.
JohnHudeski
Posts: 40
Joined: Mon Dec 29, 2014 8:49 pm

Re: XPR2 Unpacker

Post by JohnHudeski »

I can't Wait to check it out. Seems like its has not yet been uploaded :D
I should have sent you the buggiest image also
Last edited by JohnHudeski on Wed Jan 07, 2015 9:11 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: XPR2 Unpacker

Post by aluigi »

The script online is the updated one, 0.1.2.
Maybe refresh the page with F5.
JohnHudeski
Posts: 40
Joined: Mon Dec 29, 2014 8:49 pm

Re: XPR2 Unpacker

Post by JohnHudeski »

Sweet. They both worked.
Now I just need to know how to open TX2D and TXCM files and if they are swizzled or unswizzled

If anyone knows a converter (to TGA, PNG) or the file format for TX2D or TXCM Please share
JohnHudeski
Posts: 40
Joined: Mon Dec 29, 2014 8:49 pm

Re: XPR2 Unpacker

Post by JohnHudeski »

Please I really don't know what to do with the data dumped cos I don't know what format it is in.
I will repost your code with comments for the part I don't understand
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: XPR2 Unpacker

Post by aluigi »

I don't know. I wrote only the extractor just in case someone finds those files interesting.