View Single Post
Old 18 June 2017, 11:58   #1
Omnia fert aetas

ross's Avatar
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 665
Jurassic Park OCS/AGA files extractor

Hi, as requested i've made a little files extractor for Disk based (RawDIC imaged) version of Jurassic Park (OCS/AGA)
(like the Zool one,

Usage: launch jurassic_extractor.exe from folder where reside the disks.

All files are compressed with ProPack (RNC) so you need xfdDecrunch to unpack.
The only exception is "textures.bin" that is a sub-indexed RNC file.

#include <stdio.h>
#include <stdlib.h>

unsigned char b[4][970752];
char n[]={"Jurassic.d1"};

int main(int argc, char *argv[])
    FILE *fi[4], *fo;
    for (int i=0; i<4; n[10]++, i++) fi[i]=fopen(n,"rb");

    if (fi[0]) {
        for (int i=0; i<4; i++) fread(b[i],1,970752,fi[i]);
        for(int pos=0; b[0][pos+8]; pos+=0x16) {
            if ((fo=fopen((char*)&b[0][pos+8],"wb"))) {
                int disk=(b[0][pos]>>4)-1;
                int strt=(((b[0][pos]&0xf)<<8)+b[0][pos+1]-0x18)*0x200;
                int len=__builtin_bswap32(*((int*)&b[0][pos+4]));
        for (int i=0; i<4; i++) fclose(fi[i]);
    return 0;
Compile with GCC (-fno-strict-aliasing), attached a binary for Win64.

Attached Files
File Type: zip (7.2 KB, 17 views)
ross is online now  
AdSense AdSense  
Page generated in 0.06622 seconds with 10 queries