Author Topic: How to change PLATINUM to GOLD (and other currency effects)  (Read 1433 times)

jvarnes

  • Guest
How to change PLATINUM to GOLD (and other currency effects)
« on: March 01, 2009, 10:56:40 AM »
Hello all! Hopefully dumb old Thrull understands this correctly!

Previously in FRUA we could only rename Platinum to a word beginning in P or S. P being for Platinum and S (which we believe stood for Steel - an artifact left over from the old Dragonlance games)

In CKITBYTE.txt in the hackdocs there is a "fix" by Brain O'Donnell  (oops! I mean Brian O'Donnell :D) to make renaming currency (Platinum, Gems, Jewelry) much easier for us. I will posted it verbatim down below (see look it's down there ;))

To use this fix you would add ALL of the lines below to your diff.tbl (or create one if you don't have one - it's just a plain text file. Be sure to have each line on it's own line and end it with a single zero 0 on it's own line)

What this does is allow you to select other letters for your currencies thus bypassing the hardcoded ones of P (or S), G and J.

If you don't know hex don't worry! You can use the following chart to figure out what you need to change to get the letter you desire:

ABCDEFGH I JKLM NOPQRSTUVW XYZ
4142434445464748494A4B4C4D4E4F505152535455565758595A

So for example if you want to change (P)latinum to (G)old you would go to the line 6044A and swap the last two characters 50 (which stands for P on my chart above) to 47 (which stands for G - again on the chart above). In order to avoid problems with (G)ems which also start with G you should change the last two characters of line 6044F to another letter and rename Gems to something (maybe Rupees, Crystals, or even Precious Stones)

Another example: Say you want to change (P)latinum to (C)redits swap 50 at the end of line 6044A with 43

NOTE - again to reiterate this ONLY changes the first letter! You will still need to use one of the text hacking programs for UA to alter the string(s) which contain the whole word after you have made this change.

O.K. on to Brian "the Brain" O'Donnell's Currency Naming Fix:
--------------------------------------
  The following hack was designed to allow a much simpler and
versatile method of selecting which characters may start each
of the various currency (default: Platinum, Gems, Jewelry) strings.
  NOTE: these characters are CASE-sensitive, so a variety of
possibilities is opened up for using two strings which APPEAR
to start with the same letter (i.e. "gold" and "Gems" for example). ;)

  The character for "Platinum" (i.e. "P") is set at 6044A
  The character for "Gems" (i.e. "G") is set at 6044F
  The character for "Jewelry" (i.e. "J") is set at 60454

  for adding to your DIFF.TBL:

60449 2D 3D
6044A 47 50
6044C 3D 74
6044D C 40
6044E 0 3D
6044F 77 47
60450 6F 0
60451 8B 74
60452 D8 21
60453 D1 3D
60454 E3 4A
60455 2E 0
60456 FF 74
60457 A7 50
60458 7A 8B
60459 27 46
6045A 94 FC
6045B 27 8B
6045C E0 E5
6045D 27 5D
6045E E0 CB

« Last Edit: March 01, 2009, 11:35:33 AM by jvarnes »

Offline DesertScrb

  • Sr. Member
  • ****
  • Posts: 266
  • Another day, another dungeon.
    • Super Galactic Dreadnought blog
Re: How to change PLATINUM to GOLD (and other currency effects)
« Reply #1 on: March 01, 2009, 11:15:39 AM »
O.K. on to Brian "the Brain" O'Donnell's Currency Naming Fix:
--------------------------------------
  The following hack was designed to allow a much simpler and
versatile method of selecting which characters may start each
of the various currency (default: Platinum, Gems, Jewelry) strings.
  NOTE: these characters are CASE-sensitive, so a variety of
possibilities is opened up for using two strings which APPEAR
to start with the same letter (i.e. "gold" and "Gems" for example). ;)

  The character for "Platinum" (i.e. "P") is set at 6044A
  The character for "Gems" (i.e. "G") is set at 6044F
  The character for "Jewelry" (i.e. "J") is set at 60454

  for adding to your DIFF.TBL:

60449 2D 3D
6044A 47 50
6044C 3D 74
6044D C 40
6044E 0 3D
6044F 77 47
60450 6F 0
60451 8B 74
60452 D8 21
60453 D1 3D
60454 E3 4A
60455 2E 0
60456 FF 74
60457 A7 50
60458 7A 8B
60459 27 46
6045A 94 FC
6045B 27 8B
6045C E0 E5
6045D 27 5D
6045E E0 CB

I don't understand what Brian's fix does.  He lists three bytes that define the starting characters for money, but the code for the DIFF.TBL has a lot of additional lines.  Is Brian's fix different from what you are suggesting, Thrull?

jvarnes

  • Guest
Re: How to change PLATINUM to GOLD (and other currency effects)
« Reply #2 on: March 01, 2009, 11:33:35 AM »
I don't understand what Brian's fix does.  He lists three bytes that define the starting characters for money, but the code for the DIFF.TBL has a lot of additional lines.  Is Brian's fix different from what you are suggesting, Thrull?

Hi Mack,

I originally found Brian's fix confusing until I finally puzzled out how to use it. It doesn't have a lot of documentation (as you can see) and for an amateur like me it was initiially hard to figure out what the point of it was... after about 10 readings and a little playing I figured out how to alter the letters (although I still haven't puzzled out what numbers to use for lowercase letters and / or special symbols)

Hence I decided to post this thread to make it easier for the lay person to implement it (especially that now there is so much renewed interest in desiging for FRUA again ;))

In truth I do NOT know what the additional lines are for, but since Brian is the guru I differ to his coding on this. I'm assuming the additional lines are to supercede other "hard coding" of those first letters... in other words I'm guessing it's just not as simple as changing JUST those three lines - you need ALL of the lines listed in your diff.tbl for this to work.

But I could be wrong
(wouldn't be the first or last time haha  :-\)

Offline DesertScrb

  • Sr. Member
  • ****
  • Posts: 266
  • Another day, another dungeon.
    • Super Galactic Dreadnought blog
Re: How to change PLATINUM to GOLD (and other currency effects)
« Reply #3 on: March 01, 2009, 02:23:23 PM »
OK, that makes sense.  So you need to include ALL the lines in the DIFF, and then change the three specific lines if you want to change the starting character for each treasure type.

jvarnes

  • Guest
Re: How to change PLATINUM to GOLD (and other currency effects)
« Reply #4 on: March 01, 2009, 03:27:18 PM »
OK, that makes sense.  So you need to include ALL the lines in the DIFF, and then change the three specific lines if you want to change the starting character for each treasure type.

Yep you got it!  :D

Offline Ben J

  • Keeper of the 44 quest variables
  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2723
  • "See how I reward those who fail me!"
Re: How to change PLATINUM to GOLD (and other currency effects)
« Reply #5 on: April 28, 2009, 08:09:06 AM »
Can I change "gems" to "scalps"? :D
Released designs:

The Sect