English Amiga Board


Go Back   English Amiga Board > Support > support.Games

 
 
Thread Tools
Old 18 June 2017, 11:58   #1
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 551
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, 16 views)
ross is offline  
AdSense AdSense  
Old 18 June 2017, 17:21   #2
dlfrsilver
CaptainM68K-SPS France
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 40
Posts: 7,175
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, 17:44   #3
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 551
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, 14 views)
ross is offline  
Old 18 June 2017, 17:59   #4
dlfrsilver
CaptainM68K-SPS France
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 40
Posts: 7,175
Send a message via MSN to dlfrsilver
thanks Ross !
dlfrsilver is offline  
Old 18 June 2017, 18:11   #5
dlfrsilver
CaptainM68K-SPS France
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 40
Posts: 7,175
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 18:18.
dlfrsilver is offline  
AdSense AdSense  
 


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

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

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 10:40.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.19947 seconds with 13 queries