Author Topic: [FF7 PSX] Changing the hand cursor?  (Read 7621 times)

NERV Agent

  • I sexually identify as a multipurpose synthetic humanoid decisive weapon Evangelion.
  • *
  • Posts: 105
  • Eva Unit 01
    • View Profile
[FF7 PSX] Changing the hand cursor?
« on: 2016-11-27 03:42:38 »
Like the topic says, how do I change the hand cursor that appears in menus? I want to see if I can change it into a sword, or a candy cane, or an entry plug, or something.

Is it as simple as changing a ".TIM" file somewhere on the CD? Or is it more complex than that?

Tsuna

  • Global moderator
  • *
  • Posts: 823
  • Working together to create awesome things!
    • View Profile
    • The home of Tsunamods
Re: [FF7 PSX] Changing the hand cursor?
« Reply #1 on: 2016-11-27 05:05:52 »
I'm not sure about PSX but it's in the magic.lgp I believe,i also think it's the same cursor in battle and field too. It's named  yubi_00 if that helps much

NERV Agent

  • I sexually identify as a multipurpose synthetic humanoid decisive weapon Evangelion.
  • *
  • Posts: 105
  • Eva Unit 01
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #2 on: 2016-11-27 05:20:53 »
Can you give me the directory path of these files? I think that may help in narrowing it down.

Tsuna

  • Global moderator
  • *
  • Posts: 823
  • Working together to create awesome things!
    • View Profile
    • The home of Tsunamods
Re: [FF7 PSX] Changing the hand cursor?
« Reply #3 on: 2016-11-27 06:56:08 »
I have no clue for psx. Never worked with it. Bit on PC its in data/battle/magic. I don't know for sure if it is the same hand used everywhere but the menu overhaul only replaces that 1 so that's where my info comes from

NERV Agent

  • I sexually identify as a multipurpose synthetic humanoid decisive weapon Evangelion.
  • *
  • Posts: 105
  • Eva Unit 01
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #4 on: 2016-11-27 08:58:41 »
Awe man.

On the PSX, the closest to that is:

\BATTLE

And the following files in that directory:

BATINI.X
BATRES.X
BATTLE.X
BROM.X
CO.BIN
SCENE.BIN
TITLE.BIN

PSicture cannot find any graphic images in all of these files.

Does anyone else have any more information on this?

UPDATE: I just used PSicture to scan every directory, and I still can't find it. My guess is that it is compressed in an archive somewhere. Where could it be?
« Last Edit: 2016-11-27 09:08:44 by NERV Agent »

NERV Agent

  • I sexually identify as a multipurpose synthetic humanoid decisive weapon Evangelion.
  • *
  • Posts: 105
  • Eva Unit 01
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #5 on: 2016-11-27 09:42:57 »
Oookay, someone please tell me I'm getting close (or farther).

I thought it might be in "/INIT/KERNEL.BIN" because of this:

http://wiki.qhimm.com/view/FF7/Command_data

Then I take this into account:

http://finalfantasy.wikia.com/wiki/File:FF7Cursor.png

The cursor is 48 x 24.

To accommodate for a 256 color palette, with each color consisting of 3 components (RGB) means the palette size is 256*3 =768 bytes.

Now, I guess the size is (48*24)+768 = 1920 bytes

Then I use FF7Tools and get this:

>python unbingz -l KERNEL.BIN
0/0: 256 bytes
1/0: 3584 bytes
2/0: 3988 bytes
3/0: 2876 bytes
4/0: 3584 bytes
5/0: 5632 bytes
6/0: 1152 bytes
7/0: 512 bytes
8/0: 1920 bytes
9/0: 684 bytes
9/1: 4580 bytes
9/2: 2404 bytes
9/3: 706 bytes
9/4: 274 bytes
9/5: 784 bytes
9/6: 1742 bytes
9/7: 1412 bytes
9/8: 236 bytes
9/9: 2566 bytes
9/10: 1392 bytes
9/11: 1794 bytes
9/12: 488 bytes
9/13: 420 bytes
9/14: 940 bytes
9/15: 744 bytes
9/16: 1620 bytes
9/17: 244 bytes

I notice the line "8/0: 1920 bytes". Could this be it? If it is, what hex address is this, and how do I view it?

EDIT: Ugh, so I decompressed it with unbingz and got "KERNEL_8_0.data". I scanned it with PSicture and got nothing. If this is it, how do I view it? If this isn't it, where else could it be?
« Last Edit: 2016-11-27 09:48:26 by NERV Agent »

NERV Agent

  • I sexually identify as a multipurpose synthetic humanoid decisive weapon Evangelion.
  • *
  • Posts: 105
  • Eva Unit 01
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #6 on: 2017-02-13 01:46:51 »
I've made some "progress", but I still require some help as this is turning out to be more convoluted then I thought.

"WINDOW.BIN" is where the cursor graphics is stored, and is the first file in the archive.

I made some changes to the ".TIM" file and am trying to reinsert it into the ISO.

I used this, then I tried to reinsert the new "WINDOW.BIN" that has my changes back into the ISO.

CDMage gives me a warning that the file is smaller, and it will be padded out with zeroes to match the current size.

And as expected, the game freezes after the "Sony Computer Entertainment America Presents" screen.

I thought what I'd do was compress only the file I changed, and paste it back into "WINDOW.BIN" via hex editor. When I did this, got a 10 kb file for the first file, and tried to see if data in this file matches anything inside the original "WINDOW.BIN". My reasoning is I would copy and paste the new file into the old one via hex editor, and only change the ~10kb of data.

I noticed some similarities between the file I generated and "WINDOW.BIN". What I did was, I copied all the bytes of the file I made, and replaced the beginning block of data of matching size in "WINDOW.BIN" with a hex editor.

The game loads, but the cursor graphics seem shifted to the right, the text and everything looks garbled.

Can I send my ".TIM" file to someone to figure out?

I never imagined changing something so small can be so convoluted.

UPDATE:

Ah, the program I am using still is screwed up.

You see, I decompressed and recompressed the extracted files. The output should still be the same, but that's not what happens. The output is smaller than the original.
« Last Edit: 2017-02-13 02:17:57 by NERV Agent »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #7 on: 2017-02-13 02:59:11 »
You may need to manually change the 3 bytes for TYPE VAR that window.bin requires.  Did you do this after using ff7_dec?  Window.bin has 3 bytes that HAVE to be changed. In PC version, the game won't even load unless they are correct.

It is easy to find them by searching with hex editor for 1F 8B 08. Look to the LEFT by 2 bytes. There should be three of these entries (because there are 3 parts to Window.bin - at least there is in PC).

In mine, the three entries look like this:

00 00 1F 8B 08
00 00 1F 8B 08
01 00 1F 8B 08

This MUST be done after using ff7dec.

« Last Edit: 2017-02-13 03:03:28 by DLPB »

NERV Agent

  • I sexually identify as a multipurpose synthetic humanoid decisive weapon Evangelion.
  • *
  • Posts: 105
  • Eva Unit 01
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #8 on: 2017-02-13 03:20:38 »
1F 8B 08 does appear after using ff7dec.

In the original version, the entries are:

00 00 1F 8B 08
00 00 1F 8B 08
01 00 1F 8B 08

But after decompressing and recompressing, the entries in the newly generated file are:

00 00 1F 8B 08
01 00 1F 8B 08
02 00 1F 8B 08

The original "WINDOW.BIN" is 13,266 bytes.

I decompressed and recompressed the unmodified contents of "WINDOW.BIN", and the output was 13,108 bytes, less than the original.

How would I go about compensating for the 158 byte difference?

Also, I can also tell just by looking at the first line of of the hex editor that the original compressed data and the recompressed data (which came from an unmodified file) are different.
« Last Edit: 2017-02-13 03:25:28 by NERV Agent »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #9 on: 2017-02-13 03:28:02 »
The values have to be the same as they once were.

Set them to

00 00 1F 8B 08
00 00 1F 8B 08
01 00 1F 8B 08

The size difference - There's a program out there that can rebuild the psx game and fix all the entries up. Ask Paulzz in irc or here on Qhimm.  He compiled it recently so you don't need to.

« Last Edit: 2017-02-13 03:30:42 by DLPB »

NERV Agent

  • I sexually identify as a multipurpose synthetic humanoid decisive weapon Evangelion.
  • *
  • Posts: 105
  • Eva Unit 01
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #10 on: 2017-02-13 03:31:32 »
The size difference - There's a program out there that can rebuild the psx game and fix all the entries up.

What is the program called? I'll send them a message, but if they don't respond I'm pretty much stuck.  :|
« Last Edit: 2017-02-13 03:33:55 by NERV Agent »

NERV Agent

  • I sexually identify as a multipurpose synthetic humanoid decisive weapon Evangelion.
  • *
  • Posts: 105
  • Eva Unit 01
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #11 on: 2017-02-13 03:35:37 »
I searched the memberlist, and there is no one here named Paulzz.  ???

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [FF7 PSX] Changing the hand cursor?
« Reply #12 on: 2017-02-13 03:55:06 »
I searched the memberlist, and there is no one here named Paulzz.  ???

Paulzz / Paul in irc.

http://forums.qhimm.com/index.php?action=profile;u=5104

Should be same dude.

Edit.  Here:
https://github.com/paulsapps/psximager/releases
« Last Edit: 2017-02-13 03:58:39 by DLPB »