Page 1 of 1

Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Mon Aug 20, 2012 5:09 pm
by Ekey

Code: Select all

# Sonic & SEGA All-Stars Racing (PC) (XPAC format)
# 
# By Ekey (h4x0r)
# http://www.progamercity.net
#
# script for QuickBMS http://quickbms.aluigi.org

comtype unzip_dynamic

goto 0x8
get TABLESIZE long
goto 0xc
get FILES long
goto 0x18

for i = 0 < FILES
	get HASH long
	get OFFSET long
	get SIZE long
	get SIZED long
	get NULLS long
	string NAME p= "%08X" HASH
	clog NAME OFFSET SIZE SIZE
next i
FileNames hashed

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Tue Aug 21, 2012 1:00 pm
by Delacroix
This for PC or X360? If PC, are you able to deal w/ X360 ver as well?

Any chances for repacking archives?

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Tue Aug 21, 2012 2:52 pm
by Ekey
It's for PC. For Repack read section 3 in QuickBMS readme.

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Tue Aug 21, 2012 3:20 pm
by Delacroix
Will you be able to check out the X360 version of the format as well?

I can send you archives required if you do not have them.

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Tue Aug 21, 2012 3:35 pm
by Ekey
Send me any small archive in pm.

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Tue Aug 21, 2012 3:37 pm
by Delacroix
OK, time to look for'em on my DVDs. Standby, please.

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Tue Aug 21, 2012 8:24 pm
by Ekey
Same format. Just before

Code: Select all

comtype unzip_dynamic
add

Code: Select all

endian big

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Wed Aug 22, 2012 3:14 am
by Delacroix
I seem to have errors:

- invalid zlib compressed data (-3)
- there is an error with the decompression
the returned output size is negative (-1)

Please advise!

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Sat Aug 25, 2012 2:50 pm
by Ekey
What the pak you try unpack ?

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Sat Aug 25, 2012 10:28 pm
by Delacroix
The two I sent you, Sir.

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Sat Aug 25, 2012 11:48 pm
by Ekey
Ok here updated script for Xbox

Code: Select all

# Sonic & SEGA All-Stars Racing (Xbox) (XPAC format) v0.2
# 
# By Ekey (h4x0r)
# http://www.progamercity.net
#
# script for QuickBMS http://quickbms.aluigi.org

endian big
comtype unzip_dynamic

goto 0x8
get TABLESIZE long
goto 0xc
get FILES long
goto 0x18

for i = 0 < FILES
   get HASH long
   get OFFSET long
   get SIZE long
   get SIZED long
   get NULLS long
   string NAME p= "%08X" HASH
if ZSIZE == SIZE
   clog NAME OFFSET SIZE SIZE
else
   clog NAME OFFSET SIZED SIZE
 endif
next i

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Sun Aug 26, 2012 12:24 pm
by Delacroix
OK. Now is ther any way to get the filenames set properly, Sir? :)

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Sun Aug 26, 2012 12:27 pm
by Ekey
I do not know how get filenames for Xbox. For PC need debugging.

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Sun Aug 26, 2012 3:14 pm
by Delacroix
Debugging of what -- the exe's process? Oh. That might be a problem. It is in NO WAY stored in the files, you are certain of that, Sir?

Re: Sonic & SEGA All-Stars Racing (*.XPAC)

Posted: Sun Aug 26, 2012 3:29 pm
by Ekey
Delacroix wrote:Debugging of what -- the exe's process?
Yep