Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=1213.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexaa2b.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1213.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexaa2b.html.zxxg^1^8OKtext/htmlISO-8859-1gzip8:8Tue, 10 Mar 2020 11:40:26 GMT0 0Pxg^8 Print Page - Leaving key item behind message location?

Board of Slick

Library of the Ancients => Final Fantasy IV Research & Development => Topic started by: Phoenix on September 10, 2009, 06:14:58 PM

Title: Leaving key item behind message location?
Post by: Phoenix on September 10, 2009, 06:14:58 PM
Has anyone come across or fixed this bug? The English versions have garbage for the message when you have too many items and try and leave a key item behind. The Japanese versions have a message saying, "You've left an important item." I tried to attach a screenshot of what both versions look like, but it kept giving me an error saying the upload folder was full.

 :edit:
Here's the image comparing the English version to the Japanese version.

(http://lh4.ggpht.com/_JtmlHRdV1oM/Sqweg0Fk-pI/AAAAAAAAAFU/Fgq9tx_FlHs/s800/Key%20item%20drop%20comparison.png)
Title: Re: Leaving key item behind message location?
Post by: Deathlike2 on September 10, 2009, 06:22:50 PM
There is no bug with it AFAIK....
Title: Re: Leaving key item behind message location?
Post by: Dragonsbrethren on September 10, 2009, 06:30:55 PM
No, I didn't know about this one. There's an "items full" string in the US ROMs, but I think that's for the shops.
Title: Re: Leaving key item behind message location?
Post by: Deathlike2 on September 10, 2009, 07:19:14 PM
The only time I saw this was in DB's Easytype "translation". I've never seen it otherwise.

If you want to properly test it, just force the game to fight the Dr. Lugae (2nd form) battle. That is the only time where a key item is dropped... that should simulate what you're talking about.
Title: Re: Leaving key item behind message location?
Post by: Phoenix on September 10, 2009, 09:39:05 PM
If you want to properly test it, just force the game to fight the Dr. Lugae (2nd form) battle. That is the only time where a key item is dropped... that should simulate what you're talking about.

Not so -- any time you're given a key item, if your inventory is already full, it will pull up the "exchange item" screen. And it will give you the garbled message if you try and leave without putting the key item in your inventory.

I tested this because I will sometimes be giving multiple key items in my hack, and I wondered how it would work if the party's inventory was already full. Now I know, but I'd like to fix the message, if I can find the string.
Title: Re: Leaving key item behind message location?
Post by: Deathlike2 on September 10, 2009, 09:46:43 PM
Hm, I've never seen/tried it then since it happens to me rarely.
Title: Re: Leaving key item behind message location?
Post by: Dragonsbrethren on September 11, 2009, 10:24:08 AM
I would search for the gibberish text you're getting. My guess is they forgot to update a pointer from the Japanese version, so it's pointing to whatever is in the place the text used to be. From there, write a new string + positioning bytes, then update the pointer to point to that.

I think I know the message you're talking about now, I believe I saw it in FF4 once.
Title: Re: Leaving key item behind message location?
Post by: JCE3000GT on September 11, 2009, 04:31:26 PM
Check my FF2usHT.  I fixed it, as well as the 2-handed equip bug. 

(http://www.jce3000gt.com/projects/mods/ff2us/Final%20Fantasy%20II%20-%20HardType%20V1.2%20(Hack)000.png)
Title: Re: Leaving key item behind message location?
Post by: Phoenix on September 11, 2009, 05:53:05 PM
Sweet! I'll check it out, and search for either your text or the gibberish text. Which 2-handed equip bug are you refering to? I'm sure I'm aware of it, but I can't think of it at the moment.
Title: Re: Leaving key item behind message location?
Post by: Dragonsbrethren on September 11, 2009, 07:05:35 PM
Sweet! I'll check it out, and search for either your text or the gibberish text. Which 2-handed equip bug are you refering to? I'm sure I'm aware of it, but I can't think of it at the moment.

The enigmatic "to equip (http://slickproductions.org/forum/index.php?topic=615.0)" text.
Title: Re: Leaving key item behind message location?
Post by: Phoenix on September 11, 2009, 07:22:38 PM
Found it. The text string is the same in the Japanese and English versions (which shows you they didn't change it) but the locations are different. For future reference, the string is:

90020B04D202167E8CAF8C9ECACBDCEA10015403A2937C9C8BA896AF

I'm not sure what each byte of 90020B04D20216 and 10015403 does. Somehow the first one opens the window (I think) and prints "ji" (or rather "shi" with voiced consonant marks -- "ten-ten" in Japanese -- on the line above it). However, the byte for "shi" is 95, and the byte for "ten-ten" is C0, both of which do not appear in the first part. So I don't know how it works. Similarly, the second part prints "ga" ("ka" with "ten-ten") but the byte for "ka" (8F) doesn't appear. Does anyone know how this works?

The location of this string in English versions is 0DFFD. In Japanese versions it's 0E4A0. In FF4ET it's 0E2A5.

 :edit:
I figured out at least some of the control codes, by comparing these strings to the "To equip" strings. Maybe everybody already knew this and I missed it, but the two bytes right before a string (like "5403" in the second string) are its placement on the screen.
Title: Re: Leaving key item behind message location?
Post by: Dragonsbrethren on September 11, 2009, 08:03:36 PM
A little bit on the format:

http://slickproductions.org/forum/index.php?topic=88.0 (http://slickproductions.org/forum/index.php?topic=88.0)

Now, you say this opens a window, so you've probably got both the positioning and size bytes for the window, and the positioning bytes plus text there. The Japanese game uses DTE just like the US game, but its DTE is used to place characters over top of the other characters. Anything in the icon space and above (it starts around $10, before that are control codes) is DTE in the Japanese game - I have a table, but it's on the other PC. That's also why the printing routines do icons separately from the text - they bypass the DTE table to print them.

Control codes are simple enough:

$00: String terminator.
$01: Text terminator. You need positioning bytes for the text that comes after this. A lot of menu text can be stored as a single string. Every option in the main menu is a single string, for instance, the positioning bytes place them 16 pixels below each other.

 :edit:

I should mention that the Japanese DTE is still there in the US menu, they never killed the routine like they did in battle, nor replaced it like the dialogue window. You can actually still make use of it (that's how J2e had a taller font in their translation, they sacrificed storage space for larger text).
Title: Re: Leaving key item behind message location?
Post by: Phoenix on September 11, 2009, 08:15:58 PM
The funny thing is, I remember reading all of that, but it must have just not stuck in my brain.  :blush:

Looking at the dates, it was right after I started getting into hacking, so it was probably more than I could handle at the time. It makes much more sense now, thanks for the help.
Title: Re: Leaving key item behind message location?
Post by: Dragonsbrethren on September 11, 2009, 08:20:46 PM
Quote
December 06, 2007

Almost two years ago...seems like I just wrote that not too long ago, too.
Title: Re: Leaving key item behind message location?
Post by: Phoenix on September 12, 2009, 05:32:12 PM
In case anybody wants to use it, here's my fix to this message. For a FF2us ROM with header, paste in the following data at 0DFFD:

90020C04D402445C69C06FFF5F6D6A6B015403666074FF646F6068C400

It expands the window a bit and changes the message to "Can't drop key item!"

(http://lh3.ggpht.com/_JtmlHRdV1oM/SqwelUjZv_I/AAAAAAAAAFY/vlvxN6YfhWQ/s288/Can%27t%20drop%20key%20item%21.png)
Title: Re: Leaving key item behind message location?
Post by: Deathlike2 on September 23, 2009, 02:58:22 PM
If it wasn't said already, but this is certainly can be seen if you attempt to refuse the key item from Dr. Lugae... it's the same screen shared for any full item list that doesn't quite have "enough" space for the key item.

 :edit:

See image:
(http://img41.imageshack.us/img41/594/myff4hack00033.png) (http://img41.imageshack.us/i/myff4hack00033.png/)  (http://g.imageshack.us/img41/myff4hack00033.png/1/)