READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Warhammer 40,000: Space Marine .PCK Files

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Arcalane
ultra-n00b
Posts: 5
Joined: Sun Jan 11, 2009 3:01 pm
Has thanked: 1 time

Warhammer 40,000: Space Marine .PCK Files

Post by Arcalane » Wed Jan 18, 2012 8:13 am

These files appear to contain a number of .wav files when scanned with certain applications, but extracted files are possibly encoded and unplayable, usually coming out as a mess of static.

This zip file contains four such .pck files, should anyone want to take a crack at figuring them out. Ultimate goal would be extracting the music since it seems to use the same archive and format.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 644 times
Contact:

Re: Warhammer 40,000: Space Marine .PCK Files

Post by aluigi » Wed Jan 18, 2012 1:05 pm

Code: Select all

# Warhammer 40000: Space Marine
# script for QuickBMS http://quickms.aluigi.org

math DIDX_OFF  = 0
math DIDX_SIZE = 0
math DATA_OFF  = 0
get PCK_SIZE asize
do
    getdstring SIGN 4
    get SIZE long
    savepos OFFSET
    if SIGN == "DIDX"
        math DIDX_OFF = OFFSET
        math DIDX_SIZE = SIZE
    elif SIGN == "DATA"
        math DATA_OFF = OFFSET
    endif
    math OFFSET += SIZE
    goto OFFSET
while OFFSET < PCK_SIZE

goto DIDX_OFF
math FILES = DIDX_SIZE
math FILES /= 12
for i = 0 < FILES
    get CRC long
    get OFFSET long
    get SIZE long
    math OFFSET += DATA_OFF
    log "" OFFSET SIZE
next i

Arcalane
ultra-n00b
Posts: 5
Joined: Sun Jan 11, 2009 3:01 pm
Has thanked: 1 time

Re: Warhammer 40,000: Space Marine .PCK Files

Post by Arcalane » Wed Jan 18, 2012 1:25 pm

Everything extracts alright, and it looks like the files can be rendered into playable .ogg files using hcs' ww2ogg app.

Thanks!

Researchman
mega-veteran
mega-veteran
Posts: 314
Joined: Fri Jun 11, 2010 12:08 pm
Has thanked: 78 times
Been thanked: 21 times

Re: Warhammer 40,000: Space Marine .PCK Files

Post by Researchman » Thu Sep 20, 2012 6:55 pm

Script dont work on the big files - extracts only small files from big .pcks(in_game_default, music_01).

WAVE Scanner from here viewtopic.php?f=13&p=74664#p74664 - extract all WAVEfmt data, but some music is cut to pieces, and ww2ogg decode with "scratches".

Post Reply