Qhimm.com Forums

Final Fantasy Forums => Graphical Mods => Topic started by: NERV Agent on 2017-03-04 09:52:09

Title: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: NERV Agent on 2017-03-04 09:52:09
Thanks to luksy (http://forums.qhimm.com/index.php?topic=17476.0), I was finally able to "edit" the PSX FF7 hand cursor, but not with total success.

I used Tile Molester to flood fill the area surrounding the field hand cursor (the one that points at the player's head), so I could see the box where the hand is located in.

(https://s19.postimg.org/4v7uednmb/flood_fill_clut_02_16_portion.png)

Here is the ".TIM" file I modified:

https://www.mediafire.com/?a78wacii38dibir

I generated a new "WINDOW.BIN" using luksy's program.

The good part, the game no longer freezes (to my knowledge).

The bad part?

(https://s19.postimg.org/5m0kk5pzn/shifted.png)

The hand cursors in the menu and field seem to be shifted. Also not seen in the picture, all the text is garbled in game.

What's going on? How do I go about fixing this? Has anyone else modified the PSX hand cursor before, or am I the first one?

Anyway, it's late and I gotta sleep soon.
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: NERV Agent on 2017-03-16 03:26:11
I still haven't found a solution to this, but I thought I'd update the thread in the hopes that someone out there does know a solution.

The original “WINDOW.BIN” is 13,266 bytes. This “offset” version is 13,244 bytes. This is a 22 byte difference.

In the original version, the header entries are:
00 00 1F 8B 08
00 00 1F 8B 08
01 00 1F 8B 08

I made 2 edited versions. One has 22 bytes of 0s at the end of the first header. The other has 22 bytes of 0s before the second header--which is just adding zeroes to the end of the first compressed file.

The one with the 0s after the first header doesn’t even load after "Sony Computer Entertainment Presents". The one with the 0s before the second header end doesn’t load, either.

Some help in figuring this out would be appreciated.
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: NERV Agent on 2017-03-19 03:01:59
Okay, so I tried to make a ".ips" file (using Lunar IPS) that was supposed to repair this, but to no success.

A re-encoded "WINDOW.BIN" containing no changes somehow turns out to 13,187 bytes, but still seems to work in game as far as I know (I only got as far as getting off the train). CDMage pads out the difference with zeroes.

I decoded and re-encoded “WINDOW.BIN” with luksy’s program, to get the smaller yet functional version of that file.

Then, I made an “.ips” file that is supposed to restore the file to its normal state. The “.ips” file’s intent is to restore a smaller file back to its normal size.

“ORIGINAL UNMODIFIED” (target): Re-encoded “WINDOW.BIN”
“NEW MODIFIED” (containing desired changes): Original “WINDOW.BIN”

“WINDOW.BIN” just gets reverted to its original state after applying the patch, which is weird because the patch was only supposed contain the differences between the 2 files. My modifications should of remained, but that didn't happen.

I'd really like to solve this confusing problem.

UPDATE: I tried making the patch again, but with accounting for the padded zeroes that CDMage adds to the re-encoded file.

Same result as before.
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: Tsunamix on 2017-03-19 04:39:02
Is it not just a case of making the blue part transparent?  Never really worked with PS version but I have a lot of knowledge with textures and transparency in models for PC. It may be similar

On a side note whilst messing with these do you think its possible to change the menu aooeatence with that Tim file?
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: NERV Agent on 2017-03-19 04:51:30
You mean alter the CLUT so that "blue" becomes transparency? If that's the case, then I would not be able to see the "box" where the hand is located. I am trying to determine the exact pixel locations of the hand cursor graphics. Another way of saying it is, I am trying to find the exact "coordinate range" where the cursor graphics are in the ".TIM" file. I figure that doing a "flood fill" around the hand cursors will let me see the exact "box" that it is contained in when it loads up in the game.

"Aooeatence"? Do you mean "appearance"? I've been told that "WINDOW.BIN" is where the cursor graphics are stored along with other UI elements, and the other two subfiles contain the whole font and width tables.
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: Tsunamix on 2017-03-19 12:17:55
Would you not be able to leave the cursor where it is and remove the blue from around it using Photoshop or gimp?

Yeah the menu style blue design. I'd love to be able to customise that.
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: NERV Agent on 2017-03-19 21:17:46
The issue is not the blue color. I want to leave the blue color in to see where exactly that cursor sprite is located.

The issue is that the cursor is shifted over to one side. You should notice that the right side of the hand cursor is cutoff, and that cutoff side carries over to the left side.
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: Tsunamix on 2017-03-19 21:28:57
Aha. I get you now. Well from I know they work as tilemaps. There is a program you can get that will show you what uses what. Unsure of the name and how it works I just know toy can.
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: NERV Agent on 2017-03-19 23:56:46
Even if a tilemap program shows me the coordinates or what not, if I wanted to change the hand cursor in the future it would still be shifted over.

I'm guessing the shifting over is a side effect of the compression?

I'm starting to think that hacking the hand cursor might actually be impossible.
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: Kranmer on 2017-03-20 21:09:07
OK so you just want to replace the Hand icon above your head with something else ? As long as what you are trying to replace it with is in the same colour palette it should work but the .TIM you posted seems corrupt (at least no normal TIM viewer or editor will open it so i recommend you try editing the TIM with something else) so i cant really look at it but i spent 5mins trying a few things and i replaced the cursor above clouds head with the buster sword icon as shown in this picture
(http://i.imgur.com/gnV1CyN.png)
seems easy enough with a working TIM file, but with your TIM file it was really messed up.
Also i read through some of your old posts and you really seem to be making a mountain out of a mole hill when inserting the graphics into WINDOW.BIN there is a MUCH MUCH easier way to do it, lasyan's Tool Hack7 has a WINDOW.BIN tool that allows it to extract and reinsert the Graphics from WINDOW.BIN and also put it right back into a ISO for you so you don't have to mess around it does all the work for you, i really recommend it since you wont have to mess around with cdmage and stuff, you just open hack7 click Manage WINDOW.BIN then tell it where your ISO is (or extracted WINDOW.BIN if you don't want it editing your ISO) then click Extract Graphics and it will extract the TIM, and after editing click Insert Graphics and it will put it right back into the ISO for you, all the hard work done (I'm actually surprised no one else here mentioned this).
Title: Re: A little (but not a whole lot of) progress with changing the PSX FF7 hand cursor
Post by: DLPB on 2017-03-20 23:22:42
I had no idea about that at all :P  Seems without you, we're all lost around here when it comes to certain modifications haha.