Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Crazy racing (android) - res_all.pak

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
fajNYgosciu1234
veteran
Posts: 144
Joined: Fri Oct 30, 2020 2:31 pm
Has thanked: 1 time
Been thanked: 1 time

Crazy racing (android) - res_all.pak

Post by fajNYgosciu1234 »

there should be a script to unpack the archive
fajNYgosciu1234
veteran
Posts: 144
Joined: Fri Oct 30, 2020 2:31 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Crazy racing (android) - res_all.pak

Post by fajNYgosciu1234 »

barncastle
beginner
Posts: 32
Joined: Tue Apr 13, 2021 5:13 pm
Been thanked: 32 times

Re: Crazy racing (android) - res_all.pak

Post by barncastle »

The files inside this archive are all LZMA compressed. The header starts with a list of file information entries that contain their offset (divided by 4), compressed size and a hash of their filename. The game references entries by their filename so they're available but not easily.

I've run a quick dump from v1.9.9.9 and generated some names however it is only about 40% of what's in the archive. Depending on your needs you might need to work out the rest.

Code: Select all

struct Archive
{
    uint FileCount;
    FileInfo FileInfos[FileCount];
    byte Data[x];
}

struct FileInfo
{
    uint Hash;
    int Offset;         // multiply by 4
    int CompressedSize; // LZMA
}

uint Hash(string value)
{
    // append suffix and lowercase 
    // e.g. Res\ALight.mesh => res\res\alight.mesh
    value = (@"res\" + value).ToLower();

    uint h = 0u;
    for (int i = 0; i < value.Length; i++)
        h = 31 * h + (byte)value[i];

    return h;
}
User avatar
ikskoks
Moderator
Posts: 1666
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 647 times
Been thanked: 431 times
Contact:

Re: Crazy racing (android) - res_all.pak

Post by ikskoks »

And here's the wiki article for future reference
http://wiki.xentax.com/index.php/Crazy_Racing_PAK

Thanks for sharing, barncastle :)
fajNYgosciu1234
veteran
Posts: 144
Joined: Fri Oct 30, 2020 2:31 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Crazy racing (android) - res_all.pak

Post by fajNYgosciu1234 »

great, but are the mesh files ogre
also, does this work with urban chaser
fajNYgosciu1234
veteran
Posts: 144
Joined: Fri Oct 30, 2020 2:31 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Crazy racing (android) - res_all.pak

Post by fajNYgosciu1234 »

hmm, bumping this
Post Reply