øA slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=407.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index8fc4.html slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=407.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index8fc4.html.z x ½›g^ ÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ `¦D < OK text/html ISO-8859-1 gzip 8:Ö < ÿÿÿÿÿÿÿÿ Tue, 10 Mar 2020 14:09:24 GMT 0ó° °® 0® P® €§² ð® ¼›g^ ÿÿÿÿÿÿÿÿ0 <
Print Page - Event Offsets
Board of Slick
Library of the Ancients => Final Fantasy IV Research & Development => Topic started by: Phoenix on March 11, 2008, 04:40:58 AM
Title: Event Offsets
Post by: Phoenix on March 11, 2008, 04:40:58 AM
I know Edea has been working on the events, and maybe some of the rest of you are too. A while ago I wrote a script (in Applescript, since I have a Mac) to translate the values in hex to readable text, then I went through and translated all the events. I read through all the scripts I had generated and tried to figure out what they all were, then I made a list of their offsets and descriptions. I just finished this recently, and I thought it would be helpful to everyone, so I've attached it. Have fun tweaking~
:cycle:
Edit: Removed old Event Offsets document. A newer document can be found at http://slickproductions.org/forum/index.php?topic=407.msg5473#msg5473 (http://slickproductions.org/forum/index.php?topic=407.msg5473#msg5473).
Title: Re: Event Offsets
Post by: Paladin on March 12, 2008, 01:01:08 PM
Hey, that's sweet. I've been working on those...specifically I was looking for when Tellah remembers his spells. I'm trying to tweak magics...and anyway...
Thanks for decoding that and posting it up!
Title: Re: Event Offsets
Post by: JCE3000GT on March 12, 2008, 03:51:31 PM
I know Edea has been working on the events, and maybe some of the rest of you are too. A while ago I wrote a script (in Applescript, since I have a Mac) to translate the values in hex to readable text, then I went through and translated all the events. I read through all the scripts I had generated and tried to figure out what they all were, then I made a list of their offsets and descriptions. I just finished this recently, and I thought it would be helpful to everyone, so I've attached it. Have fun tweaking~
:cycle:
That sir is brilliant. I started to do this in 2003 but stopped...this is as far as I got. :laugh:
Quote
90262- Tent/Cabin Music 90400- Begin Scripts 90409- Bahamut Cave - Behemoth Battle Event 90417- Enter the Tower of Babil Event 90420- Hummingway Cave Event 9042B- Learn Sylph Event 90461- Hummingway Dialogue 1-Middle Guy 9046A- Namingway Event 90471- Rubicant Fight Event 905DD- Fireplace (OUCH!) Event 905E0- New Game 90911- Received Package Event 913B4-913B6 New Shop 1 913E1-914F9 Mist Events 92606-92844 Paladin Events 92CFF-92D01 "Here is a special...blah blah blah...Tent & Cabin...blah blah blah." 955D1-95739 Enter Lunar Subterrain Event 95777-95791 Grotto Adamant Tail Collector Pink Tail Event 95944- Get Dragoon (Final)
Title: Re: Event Offsets
Post by: Deathlike2 on March 15, 2008, 09:43:07 PM
If there's still a subroutine that you haven't figured out, I could try to make some guesses for you if need be.. as long as I have some related info as to when it is executed...
Title: Re: Event Offsets
Post by: Phoenix on March 16, 2008, 12:02:28 AM
The only ones I couldn't figure out are the very minor ones, that don't have any clues within them as to when they're executed. Unfortunately, the events aren't in nice chronological order, so it would be difficult to pinpoint what they are. I'm working on deconstructing the speech data today, so once I've finished that I should have a better idea because I can reference the event loads against other data. I'll let you know if there's anything I get stuck on.
Title: Re: Event Offsets
Post by: Deathlike2 on March 16, 2008, 12:08:11 AM
There are a few interesting ones IIRC.
Edward tells you to talk to Yang's wife once you are doing the Big Whale's quest...
Too bad there isn't too many more hints.
Title: Re: Event Offsets
Post by: Dragonsbrethren on March 16, 2008, 06:04:15 AM
I never knew about that one.
Title: Re: Event Offsets
Post by: Deathlike2 on March 16, 2008, 06:21:31 AM
Here's a visual: (http://img374.imageshack.us/img374/8916/finalfantasyivj00042ds1.th.png) (http://img374.imageshack.us/my.php?image=finalfantasyivj00042ds1.png)
It could be triggered when you speak to a Sylph or Yang in the Sylph's Cave... but I wouldn't know what specifically.
Title: Re: Event Offsets
Post by: Phoenix on March 16, 2008, 08:10:16 AM
You have a talent for picking out the weird events, Deathlike2. Turns out the sick room in Toroia castle is another map that loads characters from the underground/moon set rather than the overworld set. I must have missed it in my first pass over the data. I traced it back to another event flag that I didn't know about. It turns out that the in-bed Edward actually has 5 different dialogs, depending on the event flags set.
(The tracing goes like this: I used the character set in the location properties to look up Edward's character number, then looked up his speech data using that number, then decoded the speech data to find out in which situations he says different things. One of them was the event flag that I didn't know about, so I searched my event offsets for that event flag to find out which event sets it, then searched the speech data once again to find out which character loaded that event. :sleep:)
And the final answer is: Deathlike2's guess is right. It's loaded when you speak to a Sylph in the Sylph's House. Second mystery solved. Another :cookie: to me. And a :cookie: to Deathlike2, too, since he was pretty much right on.
Title: Re: Event Offsets
Post by: Deathlike2 on March 16, 2008, 08:19:41 AM
Another pic from FF2 (using Paladin's hack, so it just has a font change, but the dialog is unchanged though): (http://img505.imageshack.us/img505/125/ff2hack200015vn7.th.png) (http://img505.imageshack.us/my.php?image=ff2hack200015vn7.png)
You have a talent for picking out the weird events, Deathlike2. Turns out the sick room in Toroia castle is another map that loads characters from the underground/moon set rather than the overworld set. I must have missed it in my first pass over the data. I traced it back to another event flag that I didn't know about. It turns out that the in-bed Edward actually has 5 different dialogs, depending on the event flags set.
The other 4 dialogs: Party finds Edward and get Twinharp... After defeating the Dark Elf, Tellah thanks Edward... You got Rosa back from the Tower of Zot... The other I believe has to do when the characters come out of the underground for the first time... I don't remember the exact dialog though.
Quote
And the final answer is: Deathlike2's guess is right. It's loaded when you speak to a Sylph in the Sylph's House. Second mystery solved. Another :cookie: to me. And a :cookie: to Deathlike2, too, since he was pretty much right on.
Would you believe I just found that message today? Maybe it's just old school RPG talking here, but the manual suggests to talk to people again after certain events. You would think I would have actually seen this the years ago when I bought FF2.
Title: Re: Event Offsets
Post by: Phoenix on March 16, 2008, 08:36:58 AM
Here's the text from the other 4 things he says:
Displayed before all the following events: "Edward:Cecil...... Save Rosa...!"
Displayed after defeating the Dark Elf: "Please avenge Anna. For my sake too."
Displayed after the top of Tower of Zot events: "Tellah too!? How come the people who I love always leave me?"
Displayed after the Super Cannon destruction: "Oh... Yang... I wish I could do better..."
Title: Re: Event Offsets
Post by: Deathlike2 on March 16, 2008, 08:43:14 AM
Displayed after the Super Cannon destruction: "Oh... Yang... I wish I could do better..."
Same here Edward. Even with your potentially maxable stats, have a enemy race annihliation harp in FF4A, and a reworked Sing command via equipment, your Hiding and Medicine command sucks.
Yang can do better. :tongue:
:offtopic:
Title: Re: Event Offsets
Post by: Phoenix on March 16, 2008, 05:10:16 PM
Quote
Same here Edward.
:laugh:
Title: Re: Event Offsets
Post by: Paladin on March 18, 2008, 07:23:34 PM
869362D-936A3Cecil spinning (visual effect 0B, Exit spell?) Based on your description, this event has to be when Rosa teleports the party out of Zot back to Cecil's room in Baron before Zot is destroyed by Barbariccia's dying magic. Rosa says something like "Hold On To Me" or whatever and then casts Exit/Teleport.
I looked at the Hex and the routine contains, as you mention, the Exit spell being added to a list. It is List $07 which is Rosa's white magic list.
That is the only white magic spell Rosa doesn't naturally learn (Dummied white spells in FF-II notwhithstanding). However it always shows up in her spell list after you rescue her from Zot.
Title: Re: Event Offsets
Post by: Phoenix on March 18, 2008, 07:39:10 PM
I remember thinking the same thing earlier, but never tested it out. It sounds like you've confirmed it, I'll update the document. Thanks
Title: Re: Event Offsets
Post by: Pinkpuff on March 22, 2008, 08:12:18 AM
When events are called by a map object (such as Edward), are they directly linked to the address of the event? Or are they referenced by index and the addresses stored in a table somewhere?
The reason I ask is that when I tried changing the length of an event (making it longer and pushing everything after it ahead by that many bytes), it worked fine for that event but it would screw up some other events and they wouldn't work (presumably due to the pointers being off due to the change in address). If I knew how to update the pointers based on the new addresses that would allow a lot more freedom for event editing.
Title: Re: Event Offsets
Post by: Deathlike2 on March 22, 2008, 08:23:35 AM
869362D-936A3Cecil spinning (visual effect 0B, Exit spell?) Based on your description, this event has to be when Rosa teleports the party out of Zot back to Cecil's room in Baron before Zot is destroyed by Barbariccia's dying magic. Rosa says something like "Hold On To Me" or whatever and then casts Exit/Teleport.
I looked at the Hex and the routine contains, as you mention, the Exit spell being added to a list. It is List $07 which is Rosa's white magic list.
That is the only white magic spell Rosa doesn't naturally learn (Dummied white spells in FF-II notwhithstanding). However it always shows up in her spell list after you rescue her from Zot.
IIRC, Exit is added back when Rosa rejoins.. not during that exact event.
Title: Re: Event Offsets
Post by: Phoenix on March 22, 2008, 08:59:55 AM
Deathlike2: I checked the event scripts, and you're right, it's added during the event of her joining.
Pinkpuff: When events are part of a speech dialog, they are referenced by an index, which looks up the corresponding event in a list. It's probably easier to edit the events than edit the index table (and easier for me to explain). You're correct that the problem you're encountering is the pointers -- the pointers reference the start of the event, so if the starts of the subsequent events are moved, then they won't work properly.
The event pointers come right before the events themselves (FF2us ROM with header: 90200-903FF). The pointers are each 2 bytes -- to find the address that the pointer points to, reverse the two bytes and add 0x90400. For example, if the two bytes of the pointer are [2B 00], then reverse them [00 2B] and add them to [90400]. [90400+002B] = [9042B]. Keep in mind it's all in hex, so you may need a calculator application if you're not good at adding hex values in your head. Or, for a neat little trick, Google's calculator will work with hex values that have the 0x prefix. See example here: http://www.google.com/search?hl=en&q=0x002B+%2B+0x90400&btnG=Search (http://www.google.com/search?hl=en&q=0x002B+%2B+0x90400&btnG=Search)
Just found out now that Google could do that. Coolness! :whoa:
Title: Re: Event Offsets
Post by: Deathlike2 on March 22, 2008, 09:20:43 AM
It is worth point a minor detail. Exit is used is part of the event and executes the animation, but it really isn't "Cecil" that is animated, but whoever the lead character happens to be.
Warp has a weaker animation where the character just puts up their hand... go figure.
Title: Re: Event Offsets
Post by: Dragonsbrethren on June 29, 2008, 04:56:26 PM
I was just looking over this today and noticed some things:
1F91229-91234Unlocking a door (item EF: Key to Baron) 2091235-91240Unlocking a door (item EF: Key to Baron) (different character?)Are you sure one of these isn't the weapon shop and other the door to the waterway?
8F93ABD-93AD1Message EF05, sound effects 17 then 14, casts Mini on you, message EF06A black mage in Baron's black magic class who fails so bad he ends up casting white magic. :tongue:
9193B05-93B18Message EF03, Character 8 spins in place, jumps 2 spaces sideways, door opensArgh, I hate this event! Why can't the door just stay open after talking to him? :angry:
D695060-950B8? Dancer's dance (with Cecil)Baron, after killing Cagnazzo. If you talk to her from the side in the SNES version she'll push you through the wall - she's stronger than she looks. :laugh:
0490409-9040FFight battle with 2 Mad Ogres (remove trigger 51) 0590410-90416Fight battle with 2 Mad Ogres (remove trigger 52) F396801-96807Fight battle with 2 Mad Ogres (or Behemoth), Set trigger flag 50 to completedThese were a mystery until I saw the last one. I bet these are the behemoths in Bahamut's cave.
FD96866-9687FViewing the moon?The telescope in Corio's observatory.
I figured you already knew what most/all of these were, just listed anything that didn't have a location.
Title: Re: Event Offsets
Post by: Phoenix on June 29, 2008, 05:59:13 PM
Thanks for those, I did have some of them, but a few I had never bothered to figure out or confirm. I updated the document with all of those and a few others I had figured out, as well as added my vehicle information and a few other things. I've attached an updated Events document to this post and removed the one from the beginning post. Everyone let me know if there's any other things that you figure out.
Title: Re: Event Offsets
Post by: Deathlike2 on June 29, 2008, 11:20:03 PM
Getting a Grimoire?... Hmm. I've never seen that...
For a thought, it helps a lot if you "speak" to virtually everything in the game to connect the dots...
The text file is apparently in some friendly Mac format.. at least according to Metapad...
Edit:
0x44 - Tellah leaving party + Damacyan soldier removal. 0x91 - Calbrena/Calcobrena spying and entering Giott's Dark Crystal Chamber 0xF1 - The Smith's Shop
Title: Re: Event Offsets
Post by: Phoenix on June 30, 2008, 12:11:47 AM
What's wrong with the formatting when you open it? I can probably fix specific things if I know they aren't showing up right.
Title: Re: Event Offsets
Post by: Deathlike2 on June 30, 2008, 12:16:12 AM
The formatting breaks down post 0x3E in Notepad (not that it's reliable for any text in general. It's not a big deal, but meh, I'm not worried about it.
I added some stuff in an edit...
Title: Re: Event Offsets
Post by: Phoenix on June 30, 2008, 03:26:51 AM
Quote from: Deathlike2
0x44 - Tellah leaving party + Damacyan soldier removal.
Tellah leaving the party is part of the Tellah/Edward battle and Edward joining event. You're right about the Damcyan soldier, he's the one in the basement. The "person/object 01" moving down 8 spaces is actually the door opening mechanism, which is active from then on. Thanks for the info, I've revised this event to: "Speaking to fallen soldier in Damcyan's basement, making door mechanism active."
Quote
0x91 - Calbrena/Calcobrena spying and entering Giott's Dark Crystal Chamber
That can't be, because that small piece is within the entire event of 8C (Meeting Giott, Calbrena battle, rejoining Rydia). Unless there's a pause (where you can move your character) in between events, long sequences like that are all one event.
Quote
0xF1 - The Smith's Shop
I left all the shops as their numbers, since you can easily change the shop numbers within the event codes. However, it's a good idea to reference what the shops originally are, so I added the shop name in parantheses. When I get around to it I'll add the other shop names.
Title: Re: Event Offsets
Post by: Deathlike2 on June 30, 2008, 04:13:34 PM
Some of these messages need some added descriptions... it would be a bit more helpful...
Title: Re: Event Offsets
Post by: Phoenix on June 30, 2008, 06:20:31 PM
Feel free to go ahead and do that.
Title: Re: Event Offsets
Post by: Phoenix on July 05, 2008, 09:43:29 AM
I've been playing FF4A (for the first time -- thought I should probably play through it, finally), and I figured out what event 91 is. It's when the dwarf in the basement of the dwarf castle opens to the door to the back passageway (next to the Fat Chocobo spot).
Title: Re: Event Offsets
Post by: Dragonsbrethren on July 05, 2008, 10:26:15 AM
Ah, yeah, I thought you knew that. :sad:
Title: Re: Event Offsets
Post by: Phoenix on July 05, 2008, 06:53:18 PM
Sorry, I meant to (but forgot to) ask you to clarify your response. :scared: It was one of the few I hadn't come across yet.
Title: Re: Event Offsets
Post by: Dragonsbrethren on July 05, 2008, 11:04:52 PM
I really need to thank you for this list, it just came in very handy for tracking down some incorrect strings in a hack I'll probably end up releasing tomorrow.
Title: Re: Event Offsets
Post by: Phoenix on July 06, 2008, 03:53:22 AM