Final Fantasy 8 > FF8 Tools

[PSX] File Extractor (Missing Download)

<< < (2/3) > >>

Cyberman:
LBA (Logical Block Address) 0x33A
And the ISO minute:second:frame fit this translation criterion
LBA = (M * 60 + S)* 75 + F
Where M = minutes
 S = seconds
 F = frame
60 seconds per minute and 75 frames per second.
1 frame is a sector.
an LBA of 0x33A translates to
M = 0 (+ 2 because the first 2 minutes are a lead in for the CD-ROM)
S = 11
F = 1
02:11:01 is the coding for the sector ID
So it's 11 seconds the second frame into the disk.
The root directory is only 2K (1 sector) and 11seconds worth of data is roughly 1.5megs. This would include all the files save the big image on the disc.

G
My 'file searching' algorithm on the FF8 discs was just that, ugly :D
I had significant more progress on FF9 than FF8 (because it was easier).  I should dig that thing out and look at your code! :)

Cyb

Hades:
I spent five hours pissing about with IOCTL last night, it must be one of the most severely under-documented system calls on the planet..

I can't figure out how to use CDROMREADRAW properly. I assumed that you give a cdrom_msf struct the starting values, and set the buffer (char array) size to the raw sector size and the ioctl fills the buffer with 2352kb of data. So I set up a working msf struct (as cdromreadraw uses a union) and a loop to increment through it.. but thats where I hit a hurdle. The cdrom_msf struct uses type __u8 (char) so I cant increment it!

Has anybody here had any success with cdromreadraw?

G:

--- Quote ---Has anybody here had any success with cdromreadraw?
--- End quote ---
If you are using windows, IOCTL calls isn't supported for RAW data mode, only for audio cd. You need to use SCSI/ASPI layer commands.

halkun:
The reason why IOCTL (Input/Output Control) is so poorly documented is because, by definition, it is.

IOCTL serves as a generic command to pass undocumented functions to the kernel to be then passed on to the device. It's just a way to bypass normal commands to get a device to directly do your bidding. The format of a IOCTL is up to the kernel developer and the device driver programmer on whatever whim they need.

Hades:

--- Quote from: G on 2007-07-25 13:41:31 ---If you are using windows, IOCTL calls isn't supported for RAW data mode

--- End quote ---
Thats a useful bit of information actually G, thanks. I'm working on a file dumper for Linux at the moment though.


--- Quote from: halkun on 2007-07-25 13:55:06 ---The format of a IOCTL is up to the kernel developer and the device driver programmer on whatever whim they need.

--- End quote ---
I have a feeling that contacting them directly on such an issue would result in me getting severely pwnz0rd  :-D

I made a dump of FF7 using both CDRDAO and psxdump.c and attempted to run them through Cyb's ISO tool. The CDRDAO binary just crashed the program and the psxdump image only displayed some of the volume information.. Baffling  :?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version