English Amiga Board


Go Back   English Amiga Board > Support > support.Games

 
 
Thread Tools
Old 18 June 2017, 10:58   #1
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
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, http://eab.abime.net/showpost.php?p=...3&postcount=26).

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.

Code:
#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]));
                fwrite(&b[disk][strt],1,len,fo);
                fclose(fo);
            };
        };
        for (int i=0; i<4; i++) fclose(fi[i]);
    };
    return 0;
}
Compile with GCC (-fno-strict-aliasing), attached a binary for Win64.

Bye
ross
Attached Files
File Type: zip jurassic_extractor.zip (7.2 KB, 104 views)
ross is offline  
Old 18 June 2017, 16:21   #2
dlfrsilver
CaptainM68K-SPS France
 
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 46
Posts: 10,421
Send a message via MSN to dlfrsilver
can you make a binary for X86 -32 bits windows please ?
dlfrsilver is offline  
Old 18 June 2017, 16:44   #3
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
Quote:
Originally Posted by dlfrsilver View Post
can you make a binary for X86 -32 bits windows please ?
Sure.

Cheers
ross
Attached Files
File Type: zip jurassic_extractor_32.zip (5.4 KB, 95 views)
ross is offline  
Old 18 June 2017, 16:59   #4
dlfrsilver
CaptainM68K-SPS France
 
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 46
Posts: 10,421
Send a message via MSN to dlfrsilver
thanks Ross !
dlfrsilver is offline  
Old 18 June 2017, 17:11   #5
dlfrsilver
CaptainM68K-SPS France
 
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 46
Posts: 10,421
Send a message via MSN to dlfrsilver
a few sentences :

"KISS MY ASS, IT'S A CHARACTER SCREEN!"

"Last bit of code"

"CHEAT MODE ACTIVE!"

Last edited by dlfrsilver; 18 June 2017 at 17:18.
dlfrsilver is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Working version of Jurassic park AGA Drake1009 request.Old Rare Games 17 11 December 2019 17:43
Super Skidmarks & Jurassic Park AGA Steve support.Games 18 11 June 2017 11:21
Im looking for a working version of Jurassic Park AGA stridus request.Old Rare Games 45 01 October 2013 19:46
Jurassic Park Old Fool support.Games 4 05 March 2008 13:36
Ripping - Jurassic Park AGA maVado project.Sprites 0 07 October 2005 17:45

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:55.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07905 seconds with 14 queries