Extract resourses from .SAR files

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
strikestar
ultra-n00b
Posts: 1
Joined: Thu Jan 07, 2016 10:55 am

Extract resourses from .SAR files

Post by strikestar »

Hello! How to extract resourses from files ZELRES1.SAR, ZELRES2.SAR, ZELRES3.SAR from game Zeliard? I need image sprites and other game resousres, please help me!
ZELRES1.zip
You do not have the required permissions to view the files attached to this post.
heksesang
ultra-n00b
Posts: 5
Joined: Mon Nov 17, 2014 3:12 pm

Re: Extract resourses from .SAR files

Post by heksesang »

Code: Select all

typedef struct
{
    local uint32 offset = 0;
    local uint32 count = 0;
    
    do
    {
        uint32 Entry;
    } while ((offset = ReadUInt()) > Entry[count++]);
} SARChunkTable;

typedef struct
{
    uint32 size;
    byte data[size] <optimize=false>;
} SARChunk;

uint32 GetTableSize(SARChunkTable &table)
{
    return sizeof(table) / sizeof(table.Entry);
};

typedef struct
{
    SARChunkTable table;
    SARChunk chunk[GetTableSize(table)] <optimize=false>;
} SARFile;
That's as much as I have figured out. First chunk seems to contain strings and some filename list.
Post Reply