øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=418.msg3199e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexcc48.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=418.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexcc48.html.zxezg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈÐæOKtext/htmlISO-8859-1gzip0|ÖæÿÿÿÿÿÿÿÿTue, 10 Mar 2020 11:47:09 GMT0ó°° ®0®P®€§²ð®ezg^ÿÿÿÿÿÿÿÿ±#æ 1GP Sell Price Bit

Author Topic: 1GP Sell Price Bit  (Read 4067 times)

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
1GP Sell Price Bit
« on: March 12, 2008, 12:29:58 PM »
It exists, but I don't know where that is. It is tagged for the items Ether1, Ether2, and Elixir (and Megalixir in FF4A).
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: 1GP Sell Price Bit
« Reply #1 on: March 12, 2008, 03:12:17 PM »
It exists, but I don't know where that is. It is tagged for the items Ether1, Ether2, and Elixir (and Megalixir in FF4A).

I've been looking for that bit FOR-FREAKIING-EVER.  I hope someone finds it.  I'm willing to bet since Square coded this game retarded that there is a 256 byte table that signifies which item sells for 1GP.  Yes, no

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: 1GP Sell Price Bit
« Reply #2 on: March 12, 2008, 05:13:46 PM »
It's possible that this is similar to the hard-coded magic spells (summon spells, Life2). I think that the subroutines (in ASM) that run through those do a specific check for the spell number, and if it matches, do something special. Since there's only three items, the subroutine called when selling might also run through a check to see whether the item being sold is one of those three. If that's the case, it makes it a whole heck of a lot harder to find and change, so I hope there's a table somewhere.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: 1GP Sell Price Bit
« Reply #3 on: March 12, 2008, 05:22:59 PM »
Well, that makes me kinda wonder about Summon spells and if they use a bit or a hardcoded range to determine it is a summon (for the internal value multiplier)... although, it's curious how they are listed twice in the spell list.. maybe that's producing the x8 spell base instead of the x4 that all normal spells go through...
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: 1GP Sell Price Bit
« Reply #4 on: March 12, 2008, 06:39:26 PM »
It's possible, although I think the first spell (the one that's actually added to Rydia's list) is just hard-coded to call upon the second one (which is counted as an "enemy attack"). I think it's hard-coded because there's no bit that I can see that would determine which calls which. I guess it would be clever to do that just to produce the x8 base, but it seems awfully convoluted just to get that effect.

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: 1GP Sell Price Bit
« Reply #5 on: September 08, 2009, 09:53:14 PM »
Anyone ever find that 1GP bit?

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: 1GP Sell Price Bit
« Reply #6 on: September 08, 2009, 10:12:57 PM »
I don't have a decent hacking setup here, but try running Geiger's tracer when you try to sell one of those items in the shop. Open the output file and look for CMP, CPX, or CPY instructions comparing to the value of any of the items that sell for 1 gil. As Phoenix said, that's likely how they're stored.

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: 1GP Sell Price Bit
« Reply #7 on: September 09, 2009, 02:29:07 AM »
Code: [Select]
$01/C97D A5 5D       LDA $5D ($015D)    (Item index)
 $01/C97F C9 D4       CMP #$D4           (Compare to D4)
 $01/C981 B0 0A       BCS $C98D          (Branch if equal or greater)
 $01/C983 C9 D1       CMP #$D1           (Compare to D1)
 $01/C985 90 06       BCC $C98D          (Branch if smaller)
 $01/C987 A9 01       LDA #$01           (Only items D1 (Ether1), D2 (Ether2), and D3 (Elixir) will make it here)
 $01/C989 85 5A       STA $5A ($015A)    (Set price to one)
 $01/C98B 64 5B       STZ $5B ($015A)

Courtesy of Novalia Spirit.

119 bugs fixed and counting.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: 1GP Sell Price Bit
« Reply #8 on: September 09, 2009, 09:37:56 AM »
Heh, it's all about relative location. Figures it's that silly.

I think FF4A has a bit for those items though.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: 1GP Sell Price Bit
« Reply #9 on: September 09, 2009, 12:18:04 PM »
I wouldn't call it silly; that's exactly how I would've done it. It's three items, no sense in dedicating a piece of item data to them (of course, there are a few unused/seemingly useless used bits that could be repurposed), it's not like this code is bogging down the shop or anything. There should be something for key items around there too; probably everything below the Gysahl Whistle, plus the Legend (probably its own exception). Key items might have a table somewhere, but I still doubt it; they are a bit more involved than the ethers though (yellow in the treasure/shop menu).

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: 1GP Sell Price Bit
« Reply #10 on: September 09, 2009, 09:53:25 PM »
I know its practicality in this game (and many others), so :P.

I suspect it's not a table that is used to determine key items, but a similar check with an extra special check for the Legend Sword. IIRC, all of the key items are lumped at the end of the item list, it just happens that the Legend Sword is not.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: 1GP Sell Price Bit
« Reply #11 on: September 10, 2009, 10:57:09 AM »
I forget, can you sell the Pass/Member's Writ? That falls between the two Gysahl items, so there might be a check for that one as well.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: 1GP Sell Price Bit
« Reply #12 on: September 10, 2009, 12:12:28 PM »
Yes, the Pass is the only special key item that you can buy or sell. I was hoping for more than a dance there....
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: 1GP Sell Price Bit
« Reply #13 on: September 10, 2009, 12:31:16 PM »
Yes, the Pass is the only special key item that you can buy or sell. I was hoping for more than a dance there....

You get an augment in the dressing room that doubles the gil you get from battle in the DS version.

The After Years mixed it up a bit, it's a little more amusing:

[spoiler]Evidently, the original dancers are still employed, since a bunch of old women run out and steal Palom. The screen then blanks out, which is slightly disturbing. Afterward, you can go into the dressing room and buy a Member's Card, which lets you go down another level. In there, you get normal dancers, who force Leonora to dance with them. You can buy a whole set of status blocking (but awful stats) Queen's equipment for Leonora in here, and a VIP Card, which costs you all of your money (you're capped at 99999 in the tales). This gets you into the bottom level, where the dancers spell out Palom's name. After that, you get a black tail as your reward for wasting so much gil.[/spoiler]

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: 1GP Sell Price Bit
« Reply #14 on: September 10, 2009, 05:54:28 PM »
If anyone finds the check on the Legend sword, can they post it? I just realized I changed my items and it's not really a key item in my hack.