Markliujy
Guest
|
 |
« on: April 16, 2010, 10:40:49 am » |
|
I'm sure I remember reading about this somewhere, but I can't find/remember it. Basically, how does one go about reinserting a larger file/recompiling a new psx image? Menu hacking in larger English graphics means the files are larger, and therefore CDMage fails. I seem to remember reading stuff about TOCs and XA and all sorts of fancy stuff?
Is Cless's PSX doc still applicable? I couldn't find CD-Tool either, but from the looks of it PSX translations tend to have custom patchers?
|
|
|
|
cclh12
Guest
|
 |
« Reply #1 on: April 16, 2010, 11:01:20 am » |
|
You can adjust the games LBA table to read the file from the last sector on the disc. That way you can insert the larger file without changing the offsets to the other files.
|
|
|
|
Markliujy
Guest
|
 |
« Reply #2 on: April 17, 2010, 09:13:06 am » |
|
Ah, right, the LBA table. How do you go around changing that though? Ie. what program?
|
|
|
|
cclh12
Guest
|
 |
« Reply #3 on: April 17, 2010, 10:55:00 am » |
|
Their isn't a app to do it for you. It's different for every game.
Say if your game is using a archive to store the files. Their is information stored somewhere telling what offset each individual file is at inside the archive/ISO. You have to find that. Normally its in the header or footer of the archive but can also he stored in a separate file.
|
|
|
|
Markliujy
Guest
|
 |
« Reply #4 on: April 17, 2010, 11:08:49 am » |
|
Ah, right, the LBA is just a position, and every game uses a different LBA table somewhere. So I find that table, and change it. And move the file to that LBA. Thanks for that explanation.
But is there a program for changing LBAs on a disc? Or do I have to hex edit the iso?
|
|
|
|
cclh12
Guest
|
 |
« Reply #5 on: April 17, 2010, 11:42:51 am » |
|
But is there a program for changing LBAs on a disc? Or do I have to hex edit the iso?
Nope, its not always straight forward. So their isn't a ideal way to write a app to modify all LBA tables. I always just hex edit them once I find out how it works for the game i'm examining.
|
|
|
|
Hernan
Guest
|
 |
« Reply #6 on: April 17, 2010, 11:54:07 am » |
|
|
|
|
|
Markliujy
Guest
|
 |
« Reply #7 on: April 17, 2010, 08:27:39 pm » |
|
But is there a program for changing LBAs on a disc? Or do I have to hex edit the iso?
Nope, its not always straight forward. So their isn't a ideal way to write a app to modify all LBA tables. I always just hex edit them once I find out how it works for the game i'm examining. Ok. Thanks. Now I'm getting kinda confused on how TOCs and LBAs and PSX cds work... Do you know any resources about how PSX cds actually work? Or is it the same thing for normal CDs? Hmm, that looks good. Thanks. Don't know how I missed that one...
|
|
|
|
PhOeNiX
Guest
|
 |
« Reply #8 on: April 18, 2010, 11:40:26 am » |
|
As cclh12 said, each game can use its own lba/size file table. But, there are also games wich use directly the CD-ROM Table of Contents. TOC Changer will simply change informations on the standard TOC of the iso file. If you have luck, this should be enough to reinsert your bigger file.
|
|
|
|
Sephiroth 1311
Guest
|
 |
« Reply #9 on: April 19, 2010, 11:33:39 am » |
|
Remember that you might have problems on real hardware, if you place a file at the end of the disc.
First of all, use TOC Changer to check if you can just use the sector padding bytes (the best and safest solution). If you cannot, my suggestion is to locate a dummy file and place your bigger file where the dummy file was.
|
|
|
|
Markliujy
Guest
|
 |
« Reply #10 on: April 20, 2010, 08:17:26 pm » |
|
I gave TOC Changer a try, and as far as I can tell it seems to have worked fine using the sector padding bytes. But if it breaks, I'm assuming that I'll need to find the lba/size file table and change the file sizes. Hopefully I won't need too much extra space and the extra sector padding bytes are enough (my compression works better then theirs :laugh:).
Thanks guys!
|
|
|
|
PhOeNiX
Guest
|
 |
« Reply #11 on: April 21, 2010, 02:07:24 am » |
|
If you are using the sector's padding only, you should not have problems. The PSX's CD-Drive, like any other drive, reads data by sectors, so you will have always the entire sector loaded in ram.
|
|
|
|