øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=206.msg1599e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index386d.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;u=6;area=showposts;start=3300e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index386d.html.zx¡h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ@>[áOKtext/htmlISO-8859-1gzip0|Ö[áÿÿÿÿÿÿÿÿWed, 11 Mar 2020 08:47:23 GMT0ó°° ®0®P®€§²ð®Á¡h^ÿÿÿÿÿÿÿÿ![á FF5: Adding the world map to player's inventory (event script?)

Author Topic: FF5: Adding the world map to player's inventory (event script?)  (Read 4443 times)

Tzepish

  • Siren
  • *
  • Posts: 71
  • Gender: Male
    • View Profile
FF5: Adding the world map to player's inventory (event script?)
« on: January 02, 2008, 10:58:39 PM »
Hey guys... I'm looking to see if I can have the world map added to the player's inventory sooner in the game... perhaps even starting with it.  Does anyone out there have event script notes handy, or otherwise know how something like this might be accomplished?

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #1 on: January 02, 2008, 11:30:13 PM »
More than likely this is controlled by an event bit. I could probably find it if I had a savestate at that spot where you pick up the map. (Keyword: probably, depends on if Square was smart with the event system in FF5)

119 bugs fixed and counting.

Deathlike2

  • FF4 R&D Master
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #2 on: January 02, 2008, 11:41:55 PM »
Well, if you figure out how they start with the couple of potions you get initially, you might have a chance. :wink:
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Tzepish

  • Siren
  • *
  • Posts: 71
  • Gender: Male
    • View Profile
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #3 on: January 03, 2008, 12:28:13 AM »
I've attached a save state that's right before you grab the map.  If you don't have the time to take a look at this, no worries!
:-)

EDIT:  Forgot to mention it's a ZSNES *.zst file
« Last Edit: January 03, 2008, 10:58:24 PM by Tzepish »

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #4 on: January 03, 2008, 12:57:02 PM »
...There's no map, cause it's already in the inventory. That does me no good. :sad:

119 bugs fixed and counting.

Tzepish

  • Siren
  • *
  • Posts: 71
  • Gender: Male
    • View Profile
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #5 on: January 03, 2008, 02:56:15 PM »
 :wtf:

The map shouldn't be in the inventory, unless I included the wrong save state...  I'll have to check this when I get home from work.  Sorry about that.  :blush:

EDIT:  It turns out I was, indeed, on crack.  Attached is a fixed save state.  Double and triple-checked.
« Last Edit: January 03, 2008, 10:59:51 PM by Tzepish »

Tzepish

  • Siren
  • *
  • Posts: 71
  • Gender: Male
    • View Profile
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #6 on: January 03, 2008, 11:01:20 PM »
...Just realized I should have replied instead of editting my last post so that people will see there's a new reply here...

Batting 1000 today.

 :blush:

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #7 on: January 04, 2008, 01:29:25 AM »
Well, it took a little doing, but I managed to find it. It is indeed an event bit, and I'm so glad Square used the system it used. Made it relatively easy to find. :wink: Ok, somewhere you'll need to put this in:

Code: [Select]
xx/xxxx: 08      PHP
xx/xxxx: E220    SEP #$20
xx/xxxx: A902    LDA #$02      (bit for the world map)
xx/xxxx: 0C4D0A  TSB $0A4D      (one of the rare item bytes)
xx/xxxx: (insert hooked code here...)
xx/xxxx: 28      PLP
xx/xxxx: (...or here)
xx/xxxx: 60      RTS

This didn't stop the world map from being in the ship, so that's probably controlled by a presence bit in the NPC data which I dare not look for. That only means that setting this bit manually means you can still pick up the world map, which would probably look odd. :hmm: Where to put it is up to you, which is why I left all of the addresses blank.

119 bugs fixed and counting.

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #8 on: January 04, 2008, 02:59:32 AM »
Offtopic: FF5 needs to be on the "data gathering" list for when we are done with FF6 and FF4. 

Tzepish

  • Siren
  • *
  • Posts: 71
  • Gender: Male
    • View Profile
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #9 on: March 29, 2008, 04:08:31 PM »
I confess that I'm not quite sure what to do with the code you have supplied me with, Lenophis...  probably because I don't know where the rest of the event data is, nor how to read it.  If this were FF6 it'd be a different story.
:-)

But then I thought... wouldn't it be easier to just modify what happens when you hit the Y button to skip the check for the map item and to just display the map regardless? Of course, you still wouldn't want it to show the map if you were indoors and/or any other conditions the game normally won't show you the map. I'll bet this would be a one-byte hack, similar to autodash [change $001248 from 06 to 00  :-)  ].

What programs are you guys using the trace down stuff like this?

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #10 on: March 31, 2008, 12:51:13 PM »
I was thinking this would be perfect at SRAM initialization. Finding it is another matter. :hmm:

What programs are you guys using the trace down stuff like this?
Although it's not nearly as good as FCEUXDSP, I use Evil Peer's Snes9x tracer. It has a couple major flaws to it (including rom corruption), severe limitations in ram freezing, and the emulation core being out of date (I think FCEUXDSP suffers from that, too). One day, I hope for an actual debugger for the SNES... :sleep:

119 bugs fixed and counting.

Tzepish

  • Siren
  • *
  • Posts: 71
  • Gender: Male
    • View Profile
Re: FF5: Adding the world map to player's inventory (event script?)
« Reply #11 on: August 17, 2008, 05:05:11 PM »
Haven't looked at this for a long time, but I messed around with it today and found a code that adds the World Map to the inventory, but this by itself doesn't allow you to view the world map.  I guess that's controlled by a separate flag that is set when you pick up the world map.  I haven't been able to track that flag down... and part of me just wants to wait until FF5's event script is as transparent to us as FF6's :-)