Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2321.msg26724e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index8c2a-3.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;sa=topics;u=262e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index8c2a-3.html.zxh^0S~OKtext/htmlISO-8859-1gzip8:~Tue, 10 Mar 2020 22:44:55 GMT0 0Ph^&~ Opened eyes Terra Fix

Author Topic: Opened eyes Terra Fix  (Read 964 times)

Madsiur

  • Tunnel Armor
  • *
  • Posts: 149
  • Gender: Male
  • FF6AE coder
    • View Profile
    • Madsiur's Lair
Opened eyes Terra Fix
« on: December 17, 2016, 10:42:02 PM »
I've came up with an event fix for the "bug" mentioned here.

Quote:
When you first reach Terra in Zozo, she's laying in bed with her eyes open. Then during the conversation with Ramuh, she thrashes around, and the party helps her back into bed to recuperate, with her eyes now closed. However, should you leave the room and re-enter, even before getting the Magicite or talking to your comrades, her eyes will be open again. This despite her being equally unresponsive when talked to and the party's dialogue not changing. While I can't rule out it being intentional, it's probably just a side effect of the NPC's startup pose having open eyes.

This patch fix the "bug" by adding an action to NPC $10 (Terra) giving her the closed eyes pose between the time you talk to Ramuh and the time you come back to Zozo after the Magitek Factory. This change is logical with the following argument; Enough time has passed in order for Terra to potentially "recover" and this time is more significant than stepping outside a door and coming back.

The ALT patch is an alternate patch that will make Terra open her eyes when Locke present her Maduin magicite, right after he exclaim himself "Magicite!". This version of the patch is logical with the theory that Maduin Magicite has enough power to wake Terra up because of the bond she shares with him.

Since the original entrance event is only 4 bytes, the following entrance event (map $E8 at CA/F008) was moved and started a few bytes forward in order to make possible a subroutine call for the entrance event we wanted to originally modify. New and extra code is moved to free space D1/F9D0 and cover $19 bytes. The ALT patch take $25 bytes of free space.

One could argue whether this is or not a bug or if the opened eyes were intended. However, the patch falls into the category of things "that make more sense" or at least as a logical tweak. I don't think there is any other way of doing this modification.

:edit: (1): Maybe the opened eyes were intended before she crashes all over the room but not really after she goes back in bed?

:edit: (2): Added new patch version and description.

:edit: (3): Removed event bit check from original patch and included alternate patch.

:edit: (4): Uploaded v1.3

Code: [Select]
Code Changes
------------
; map $E2 entrance event
CA/F004: B2 D9 F9 07        ; Call subroutine $D1F9D9
CA/F008: 60 0E 08           ; Change background layer $0E to palette $08
CA/F00B: FE                 ; Return

; map $E8 entrance event   
CA/F00C: B2 D0 F9 07        ; Call subroutine $D1F9D0
CA/F010: FE                 ; Return

; Free space code
D1/F9D0: F6 81 10 FF                ; Change volume of currently playing song to $FF, transition time 16
D1/F9D4: B2 E1 C8 00                ; Call subroutine $CAC8E1
D1/F9D8: FE                         ; Return

D1/F9D9: C1 53 00 14 03 E5 F9 07    ; If we have not spoke to Ramuhnad or Terra NPC is hidden, return (D1/F9E5), else continue
D1/F9E1: 10 82 13 FF                ; Set NPC $10 pose to eyes closed
D1/F9E5: FE                         ; Return

ALT Patch extra code
--------------------
; Zozo event (after two cranes)
CA/C4C0: B2 EF F9 07        ; Call subroutine $D1F9EF

CA/C512: B2 E6 F9 07        ; Call subroutine $D1F9E6

; Free space code
D1/F9E6: 10 82 01 FF        ; Set NPC $10 pose to eyes opened
D1/F9EA: 01 82 23 FF        ; Character $01 turn left
D1/F9EE: FE                 ; Return

D1/F9EF: 10 02 13 FF        ; Set NPC $10 pose to eyes closed
D1/F9F3: DD 1A              ; Clear event bit $61A
D1/F9F5: DD 19              ; Clear event bit $619
D1/F9F7: FE                 ; Return
« Last Edit: March 10, 2017, 12:17:21 PM by Madsiur »

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Opened eyes Terra Fix
« Reply #1 on: December 18, 2016, 12:46:54 AM »
Doesn't she also have her eyes open when you return from the Magitek Research Facility to wake her up? I get the feeling that in most events she's meant to have them open.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Opened eyes Terra Fix
« Reply #2 on: December 18, 2016, 01:07:55 AM »
Madsiur: thanks for jumping on this one!

Quote
Maybe the opened eyes were intended before she crashes all over the room but not really after she goes back in bed?

that was my view, yes.  she is slightly responsive to start, after all.  perhaps add a check of Variable $1E8A, bit 3.  but as 13375K31C43R suggested, you might also need to check for later developments in the game.

i wonder how many starting poses they could have given her in the NPC data.  "Graph. index" (whatever that is) only seems to be 0 to 3 (really, 0 or 3) in the table, so that must not give much control..  i dunno whether it's pose-related, anyway.
« Last Edit: December 18, 2016, 02:06:23 AM by assassin »

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Opened eyes Terra Fix
« Reply #3 on: December 18, 2016, 01:40:41 AM »
13375K31C43R: but in that case, there is a catalyst for the pose change in terms of the plot having advanced, and dialogue with her changes as well to reflect her different state.

what i'm talking about here has no change in dialogue, and there simply is no catalyst.  you can have a long conversation with Ramuh, witness 3 Magicites drop to the floor and Ramuh transform to Magicite himself, have a brief exchange with the crystal, "talk to" Terra 80 times, and open two treasure chests before leaving the room, and her eyes stay closed through it all.  yet pass through a door -- with no advancement in plot -- and they magically reopen?  that has to be one special door.
« Last Edit: December 18, 2016, 02:05:36 AM by assassin »

Madsiur

  • Tunnel Armor
  • *
  • Posts: 149
  • Gender: Male
  • FF6AE coder
    • View Profile
    • Madsiur's Lair
Re: Opened eyes Terra Fix
« Reply #4 on: December 18, 2016, 09:49:30 AM »
that was my view, yes.  she is slightly responsive to start, after all.  perhaps add a check of Variable $1E8A, bit 3.  but as 13375K31C43R suggested, you might also need to check for later developments in the game.

I agree with Leet's position for later developments, which I did not had in mind last night. I'll go back and check what is her state in vanilla game. Even if she has her eyes opened before talking to Ramuh, I suspect her "crisis" drained her of her energy, putting her in a more "resting state" a bit in a way like people having epilepsy are totally drained and need to rest after a crisis. Going out the door and coming back shouldn't give her the time of being in a more responsive state.


i wonder how many starting poses they could have given her in the NPC data.  "Graph. index" (whatever that is) only seems to be 0 to 3 (really, 0 or 3) in the table, so that must not give much control..  i dunno whether it's pose-related, anyway.

Yes, they are poses but the more generic "face-up", "face down", "face left" and "face right". There was probably not enough cases of static special pose to add more to the NPC data. Rachel sprite is one that comes to mind, it is probably set in the entrance event too.

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Opened eyes Terra Fix
« Reply #5 on: December 19, 2016, 01:05:51 AM »
The amount of fixes coming out as of late. It is refreshing to see. :childish:

119 bugs fixed and counting.

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Opened eyes Terra Fix
« Reply #6 on: December 19, 2016, 02:55:11 AM »
Quote
I'll go back and check what is her state in vanilla game.

i checked post-Magitek Factory with one of Mnrogar's handy savestates, and her eyes are indeed open then.

i tend to agree that it makes sense, given:
- enough plot has advanced, so Terra's state could have changed in the meanwhile
- you have Maduin's potent Magicite in your possession
- the ensuing dialogue after approaching her is different than when you left, so it's not just her face changing

but i can take the opposite side:
- Terra is unresponsive (both in dialogue and lack of movement) until Maduin's Magicite pops out and starts glowing.  if that's the sole trigger of her waking up, then the eye change is premature.

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Opened eyes Terra Fix
« Reply #7 on: December 19, 2016, 12:48:09 PM »
Consider what her state of mind could be. She could be rambling to herself, a la Sarek in Unification, Star Trek: TNG. She could be in a coma. She is literally in a state of shock and could do any number of things. Really, anything can be correct.

119 bugs fixed and counting.

Madsiur

  • Tunnel Armor
  • *
  • Posts: 149
  • Gender: Male
  • FF6AE coder
    • View Profile
    • Madsiur's Lair
Re: Opened eyes Terra Fix
« Reply #8 on: December 21, 2016, 11:47:45 AM »
I added the new patch version in original post that keep Terra's eyes opened before you speak to Maduin and after you beat the two cranes. To give space to the less interpretation IMO, I basically went with the time argument meaning enough time has passed in order for Terra to potentially "recover" and this time is more significant than stepping outside a door and coming back.

:edit: I've re-updated the 1st post and patch since there was no use of checking the event bit of the two cranes since the event is directly from Vector and entrance event is not checked. I've also included an alternate patch, where Terra would open her eyes with Maduin Magicite power during the Zozo comeback event, right after Locke exclaim himself "Magicite!".
« Last Edit: December 21, 2016, 06:13:52 PM by Madsiur »

Madsiur

  • Tunnel Armor
  • *
  • Posts: 149
  • Gender: Male
  • FF6AE coder
    • View Profile
    • Madsiur's Lair
Re: Opened eyes Terra Fix
« Reply #9 on: March 10, 2017, 12:19:40 PM »
Well I just learned today map entrance event are called when you load a map via events (and not only when entering a map while playing). I corrected the game crashing bug. Version 1.3 in original post!