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

Games with hidden file tables?

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
frogz2007
advanced
Posts: 40
Joined: Mon Nov 10, 2014 2:13 am
Has thanked: 5 times
Been thanked: 1 time

Games with hidden file tables?

Post by frogz2007 »

Various PS2 games, such as Ratchet and Clank, and Sly Cooper (besides the third) have an oddity that makes it so no data files show up, and only the SYSTEM.CNF and SCUS files do. Has there ever been a fix for this?
Vash
mega-veteran
mega-veteran
Posts: 183
Joined: Fri Apr 29, 2005 2:39 pm
Has thanked: 5 times
Been thanked: 26 times

Re: Games with hidden file tables?

Post by Vash »

There can't be a general fix, those ghost TOC (Table of Content) are custom made. I made a tool to extract stuff from Kingdom Hearts <something> ISO but it will never work for another game, as the algo used for it is specific for the logic used to create that image.
frogz2007
advanced
Posts: 40
Joined: Mon Nov 10, 2014 2:13 am
Has thanked: 5 times
Been thanked: 1 time

Re: Games with hidden file tables?

Post by frogz2007 »

I assumed it'd be different for each game, but how did you manage to do it? I'm assuming you ran it through a debugger or something? And have you ever considered looking at the first Sly game, and possibly making your Kingdom Hearts tool work with it? If not, i can understand since, well, they are on different engines and are probably implemented entirely different.
Vash
mega-veteran
mega-veteran
Posts: 183
Joined: Fri Apr 29, 2005 2:39 pm
Has thanked: 5 times
Been thanked: 26 times

Re: Games with hidden file tables?

Post by Vash »

I actually just looked at the iso sectors in an hex editor, found the TOC with pointers, filesizes and filenames and wrote a tool that work with the ISO. It's very very basic

Code: Select all

//Kingdom Hearts Chain Of Memories Hidden Files Extractor
#include <stdio.h>
#include <windows.h>

BYTE buffer[2048];

int main(int argc, char *argv[])
{
    FILE *iso,*ext;
    long long unsigned int pointer;
    unsigned long int i,c,times,len,off=0x00;
    unsigned char name[16];

    if (argc < 2) printf("Kingdom Hearts Chain Of Memories Hidden Files Extractor by Vash v0.9 -www.romhacking.it-\n\nisoext file.iso\n\n");
      else{
      iso=fopen64(argv[1],"r+b");
      mkdir("ISO");
      chdir("ISO");
      for (i=0;i<144;i++)
      {
          fseek(iso,0x122800+off,SEEK_SET);
          fread(name,16,1,iso);
          ext=fopen(name,"w+b");
          fread(&pointer,4,1,iso);
          pointer=pointer*0x800;
          fread(&len,4,1,iso);
          len=len*0x800;
          fseeko64(iso,pointer,SEEK_SET);
          times=len/0x800;
          printf("Extracting %s\n",name);
          for (c=0;c<times;c++)
          {
            fread(buffer,0x800,1,iso);
            fwrite(buffer,0x800,1,ext);
            }
      fclose(ext);
      off=off+0x20;
      }
      
      }
      }
frogz2007
advanced
Posts: 40
Joined: Mon Nov 10, 2014 2:13 am
Has thanked: 5 times
Been thanked: 1 time

Re: Games with hidden file tables?

Post by frogz2007 »

Wow! that was unexpected. Though is there any way you could upload a compiled EXE? and also, do you know if it would be possible to reimport a modified version of the game archive the game uses using this?
Vash
mega-veteran
mega-veteran
Posts: 183
Joined: Fri Apr 29, 2005 2:39 pm
Has thanked: 5 times
Been thanked: 26 times

Re: Games with hidden file tables?

Post by Vash »

Sure, here you are, attached.

With this, you can only extract the files and that's it, it was more of a POC than a will to work on this specific game.

I included some other tools I made for the game (extract dat files and dump text from bin/ctd files) but don't ask to keep on working on them, I don't have time anymore
You do not have the required permissions to view the files attached to this post.
frogz2007
advanced
Posts: 40
Joined: Mon Nov 10, 2014 2:13 am
Has thanked: 5 times
Been thanked: 1 time

Re: Games with hidden file tables?

Post by frogz2007 »

Regardless. Thank you very much, though it came off as a surprise that it was a fairly simple thing. Thanks for taking the time to do this!
frogz2007
advanced
Posts: 40
Joined: Mon Nov 10, 2014 2:13 am
Has thanked: 5 times
Been thanked: 1 time

Re: Games with hidden file tables?

Post by frogz2007 »

Strange. I tried it on my ISO, and it gave me 28 files, totaling 24.8 GB before I stopped it from making any more big files. I wonder why? I'm assuming it's either my ISO is a bit different than yours (mine is the original, black label edition and not the Greatest Hits version, though I doubt it's any different in any way) or I used it improperly. I dragged the ISO file to the isoextr.exe file if that's how you're supposed to do it. But it isn't out of the question for the files to be that big since somebody got a Ratchet & Clank demo WAD to extract, and it had totaled around 10 GB.
Vash
mega-veteran
mega-veteran
Posts: 183
Joined: Fri Apr 29, 2005 2:39 pm
Has thanked: 5 times
Been thanked: 26 times

Re: Games with hidden file tables?

Post by Vash »

well, this tool was very specific for the ISO I owned at the time (don't really remember which one). In this particular case the ghost TOC starts at 0x122800 (sector 0x245), you should either adjust the code or the ISO. That's if the exe file (the slus) has the same size and the logic behind the ghost TOC is the same.

Oh and I never tried drag&droppin files onto my tools, you should just write a batch file

isoext file.iso
pause
fileGates71
n00b
Posts: 14
Joined: Fri Feb 22, 2019 8:12 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Games with hidden file tables?

Post by fileGates71 »

Hello, all. I am looking into ripping the voices and music from the Sly Cooper series. So far, I can't get the hidden files to show up. I have tried using whatever tools are here, but at best, I extract oddly named files without filenames. And looking at them in a hex editor doesn't help. Is there a method to show the hidden files with the tools, or is there a more recent, streamlined method?
theclub654
beginner
Posts: 26
Joined: Wed Oct 14, 2015 1:57 am
Has thanked: 3 times
Been thanked: 1 time

Re: Games with hidden file tables?

Post by theclub654 »

could you do the ps2 sly games
koken
ultra-n00b
Posts: 1
Joined: Fri Oct 23, 2020 12:41 am

Re: Games with hidden file tables?

Post by koken »

Vash wrote: Thu Feb 04, 2016 10:36 am Sure, here you are, attached.

With this, you can only extract the files and that's it, it was more of a POC than a will to work on this specific game.

I included some other tools I made for the game (extract dat files and dump text from bin/ctd files) but don't ask to keep on working on them, I don't have time anymore
Hi!

Thanks for this! (a few years later haha). Is there any way to reduce the size of the .iso of this game? I've reduced the size of lots of them but this one is different from the others and it's really heavy!

Thanks
Post Reply