Author Topic: The YAMADA.BIN, colour coded for your convenience!  (Read 2389 times)

Bosola

  • Fire hazard!
  • Global moderator
  • No life
  • *
  • Posts: 1755
  • Karma: 15
    • View Profile
    • My YouTube Channel
Here's the contents of the YAMADA.BIN file, with annotations

66 02 00 00 00 00 00 00 67 02 00 00 D2 33 00 00  
0266h = LBA of YAMADA.BIN in hex 0267h = LBA of WINDOW.BIN 33d2h = Size of WINDOW.BIN

6E 02 00 00 68 57 00 00 1B 45 00 00 76 04 00 00  
026Eh = LBA of KERNEL.BIN  5768h = length of KERNEL.BIN 451Bh = LBA of BROM.X 0476h = Length of BROM.X

1C 45 00 00 56 32 00 00 23 45 00 00 12 FD 01 00
451Ch = LBA of TITLE.BIN 3256h = length of TITLE.BIN 4523h = LBA of BATTLE.X 01fd12h = Size of BATTLE.X

63 45 00 00 40 16 00 00 66 45 00 00 00 20 04 00
4563 = LBA of BATINI.X 1640h = Length of BATINI.X 4566h = LBA of SCENE.BIN 042000h = Length of SCENE.BIN

EA 45 00 00 1E 0E 00 00 EC 45 00 00 40 16 00 00
45EAh = LBA of BATRES.X 0e1eh = Length of BATRES.X LBA of CO.BIN CO.BIN length

Using this information, it should be possible to get over the the space limitations on the KERNEL and SCENE .BINs by inserting the file somewhere else on the ISO and altering the YAMADA info accordingly.
« Last Edit: 2010-05-03 15:40:35 by Bosola »

halkun

  • Global moderator
  • No life
  • *
  • Posts: 2109
  • Karma: 20
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: The YAMADA.BIN, colour coded for your convenience!
« Reply #1 on: 2010-05-04 05:29:01 »
waitwaitwaitwaitwaitwaitwaitwait....WAT?

You found the LBA lookup table for the PSX?

OMGOMGOMG :)

Gemini

  • Insane poster
  • *
  • Posts: 260
  • Karma: 2
  • Not learner's Guru
    • View Profile
    • Devil Hackers
Re: The YAMADA.BIN, colour coded for your convenience!
« Reply #2 on: 2010-05-04 12:39:22 »
One of the many, anyway.

Bosola

  • Fire hazard!
  • Global moderator
  • No life
  • *
  • Posts: 1755
  • Karma: 15
    • View Profile
    • My YouTube Channel
Re: The YAMADA.BIN, colour coded for your convenience!
« Reply #3 on: 2010-05-04 17:27:31 »
I should really get around to looking at that source code of yours, Gemini. Am I right in assuming FF7 likes the simple LBA+size format? I might try searching for other vals and locating the LBA etc. data for a few other significant files.

halkun

  • Global moderator
  • No life
  • *
  • Posts: 2109
  • Karma: 20
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: The YAMADA.BIN, colour coded for your convenience!
« Reply #4 on: 2010-05-04 17:49:48 »
what would be really cool is that we can update the FF7 file project with this information

Gemini

  • Insane poster
  • *
  • Posts: 260
  • Karma: 2
  • Not learner's Guru
    • View Profile
    • Devil Hackers
Re: The YAMADA.BIN, colour coded for your convenience!
« Reply #5 on: 2010-05-04 21:22:57 »
Am I right in assuming FF7 likes the simple LBA+size format?
Yup, they're all like that. AFAIK, the rest of the tables are stored inside main exe, FIELD\FIELD.BIN, BATTLE\BATTLE.X, WORLD\WORLD.BIN, and probably some other file dealing with mini-game overlays (tho I'm not completely sure about these ones).

halkun

  • Global moderator
  • No life
  • *
  • Posts: 2109
  • Karma: 20
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: The YAMADA.BIN, colour coded for your convenience!
« Reply #6 on: 2010-05-05 07:26:34 »
They will have to be in their own area all bunched together, probably near the end, as they will need to be updated after the disk image is made.

Bosola

  • Fire hazard!
  • Global moderator
  • No life
  • *
  • Posts: 1755
  • Karma: 15
    • View Profile
    • My YouTube Channel
Re: The YAMADA.BIN, colour coded for your convenience!
« Reply #7 on: 2010-05-05 22:44:01 »
Good places to look.

Any thoughts on methods to move the files around? I note that each sector is footed with data CD Mage flags up as ECC (posting on a different partition, so can't verify if that's what it's actually called) - something I haven't been able to find info about. Is this error correction data?  Would we have to modify this data if we move the files around, or preserve it?
« Last Edit: 2010-05-05 22:48:37 by Bosola »

NERV Agent

  • Cool newbie
  • *
  • Posts: 88
  • Karma: 3
  • GOD'S IN HIS HEAVEN. ALL'S RIGHT WITH THE WORLD.
    • View Profile
Re: The YAMADA.BIN, colour coded for your convenience!
« Reply #8 on: 2017-05-14 09:54:26 »
Hi there.

I'm a newbie to FF7 hacking an am currently experimenting with stuff.

I made a modified "WINDOW.BIN" that is larger than the original.

I tried adjusting the size of "WINDOW.BIN" accordingly in "YAMADA.BIN", rebuilt the ISO with psximager, and ran it through ECCRegen. The game still won't load.

I think I need to change the LBA value, too. How do I calculate what value to change it too? And would I need to change the LBA values off all the files listed after "WINDOW.BIN"?