øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1136.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index5d13.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.320e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index5d13.html.zx (h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈà•¤#³OKtext/htmlISO-8859-1gzip@øÕ#³ÿÿÿÿÿÿÿÿWed, 11 Mar 2020 00:08:02 GMT0ó°° ®0®P®€§²ð® (h^’#³ Mystic Quest is irritating me.

Author Topic: Mystic Quest is irritating me.  (Read 2394 times)

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Mystic Quest is irritating me.
« on: August 08, 2009, 05:54:41 PM »
The items, enemy attacks and character equipment names are all varying length but I cannot find a pointer table for these things to be able to pull the length.  So am I to assume that every one of the items, equipment and enemy names are only allowed to be the default length for each one? 

I could use a little assistance here.  I'm trying to code my general text editor and these things are irritating me. 

Vehek

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Mystic Quest is irritating me.
« Reply #1 on: August 09, 2009, 12:08:07 AM »
Items, at least, are actually fixed width according to my current investigations. Instead of having filler bytes at the end of the names, they seem to have the filler bytes before the actual name.

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: Mystic Quest is irritating me.
« Reply #2 on: August 09, 2009, 12:13:57 AM »
Items, at least, are actually fixed width according to my current investigations. Instead of having filler bytes at the end of the names, they seem to have the filler bytes before the actual name.

So that's what that means?  

After opening up the ROM it seems that SQUARE sets the names to be centered in the text box, that is why the crap has those $03's.  I GET IT NOW!  Thanks!

New MQME beta.
« Last Edit: August 09, 2009, 01:31:28 AM by JCE3000GT »

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: Mystic Quest is irritating me.
« Reply #3 on: August 12, 2009, 08:34:10 PM »
Ok part 2 of the irritation. 

I cannot for the life of me find the EXP and GP won from monsters.  It is not located in the same area as the monster stats, and when you search for the values it doesn't show any data that seems organized. 

http://www.gamefaqs.com/console/snes/file/532476/23095  <-- enemy FAQ
$14775 <-- with a header location where the monster stats are

Use my editor to find out the order in which the game stores the monsters.  IE  Brownie, Mint Mint and Red Cap for the 1st three. 

Ok so I just went and replaced ALL occurences of 42 00 which equals 66 EXP that the Brownie gives and the amount of EXP in game did not change so this data must be compressed?

Vehek

  • Siren
  • *
  • Posts: 75
    • View Profile
Re: Mystic Quest is irritating me.
« Reply #4 on: August 12, 2009, 10:39:46 PM »
After some debugger use, here's what I've got.

1417C (Without header) - Reward data?. 3 bytes each, first byte unknown.

EXP is the second byte multiplied by 3.

Gold is very slighly more complex.
If the 3rd byte is less than 0x42, then it's multiplied by 3.
If it's equal to or above 0x42 but less than 0x4A, then it's multiplied by 6.
If it's equal to or above 0x4A, then it's multiplied by 0x0A.

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: Mystic Quest is irritating me.
« Reply #5 on: August 12, 2009, 10:58:46 PM »
After some debugger use, here's what I've got.

1417C (Without header) - Reward data?. 3 bytes each, first byte unknown.

EXP is the second byte multiplied by 3.

Gold is very slighly more complex.
If the 3rd byte is less than 0x42, then it's multiplied by 3.
If it's equal to or above 0x42 but less than 0x4A, then it's multiplied by 6.
If it's equal to or above 0x4A, then it's multiplied by 0x0A.

Thank you, maybe now I can get that into my editor. 

JCE3000GT

  • Master of FF4
  • *
  • Posts: 1,429
  • Gender: Male
  • Vladof
    • View Profile
    • BlitzKrieg Innovations
Re: Mystic Quest is irritating me.
« Reply #6 on: August 24, 2009, 02:04:28 AM »
I'm sleepy so I'll post here what I've documented so far on elemental/ailments.  I'm getting this list together so I can add a feature in my editor to support this stuff.  At least a part of this is done so at least you can manually edit that byte to a point.  Any help?

Quote
00= Nothing
01= Silence
02= Blind
03= Silence + Blind
04= Poison
05= Poison + Silence
06= Poison + Blind
07= Poison + Silence + Blind
08= Confusion
09= Confusion + Silence
0A= Confusion + Blind
0B= Confusion + Silence + Blind
0C= Confusion + Poison
0D= Confusion + Silence + Poison
0E= Confusion + Blind + Poison
0F= Confusion + Silence + Blind + Poison

10= Sleep
11= Sleep + Silence
12= Sleep + Blind
13= Sleep + Silence + Blind
14= Sleep + Poison
15= Sleep + Poison + Silence
16= Sleep + Poison + Blind
17= Sleep + Poison + Silence + Blind
18= Sleep + Confusion
19= Sleep + Confusion + Silence
1A= Sleep + Confusion + Blind
1B= Sleep + Confusion + Silence + Blind
1C= Sleep + Confusion + Poison
1D= Sleep + Confusion + Silence + Poison
1E= Sleep + Confusion + Blind + Poison
1F= Sleep + Confusion + Silence + Blind + Poison

20= Paralyze
21= Paralyze + Silence
22= Paralyze + Blind
23= Paralyze + Silence + Blind
24= Paralyze + Poison
25= Paralyze + Poison + Silence
26= Paralyze + Poison + Blind
27= Paralyze + Poison + Silence + Blind
28= Paralyze + Confusion
29= Paralyze + Confusion + Silence
2A= Paralyze + Confusion + Blind
2B= Paralyze + Confusion + Silence + Blind
2C= Paralyze + Confusion + Poison
2D= Paralyze + Confusion + Silence + Poison
2E= Paralyze + Confusion + Blind + Poison
2F= Paralyze + Confusion + Silence + Blind + Poison

30= Paralyze
31= Paralyze + Silence
32= Paralyze + Blind
33= Paralyze + Silence + Blind
34= Paralyze + Poison
35= Paralyze + Poison + Silence
36= Paralyze + Poison + Blind
37= Paralyze + Poison + Silence + Blind
38= Paralyze + Confusion
39= Paralyze + Confusion + Silence
3A= Paralyze + Confusion + Blind
3B= Paralyze + Confusion + Silence + Blind
3C= Paralyze + Confusion + Poison
3D= Paralyze + Confusion + Silence + Poison
3E= Paralyze + Confusion + Blind + Poison
3F= Paralyze + Confusion + Silence + Blind + Poison

40= Stone
41= Stone + Silence
42= Stone + Blind
43= Stone + Silence + Blind
44= Stone + Poison
45= Stone + Poison + Silence
46= Stone + Poison + Blind
47= Stone + Poison + Silence + Blind
48= Stone + Confusion
49= Stone + Confusion + Silence
4A= Stone + Confusion + Blind
4B= Stone + Confusion + Silence + Blind
4C= Stone + Confusion + Poison
4D= Stone + Confusion + Silence + Poison
4E= Stone + Confusion + Blind + Poison
4F= Stone + Confusion + Silence + Blind + Poison

50= Stone + Sleep
1=
2=
3=
4=
5=
6=
7=
8=
9=
A=
B=
C=
D=
E=
F=

60= Stone + Paralyze
1=
2=
3=
4=
5=
6=
7=
8=
9=
A=
B=
C=
D=
E=
F=

70= Stone + Paralyze + Sleep
1=
2=
3=
4=
5=
6=
7=
8=
9=
A=
B=
C=
D=
E=
F=

80= Dead
1=
2=
3=
4=
5=
6=
7=
8=
9=
A=
B=
C=
D=
E=
F=

Didn't go further due to it being 2am and I'm sleepy.   :sleep:

odditude

  • Vargas
  • *
  • Posts: 91
    • View Profile
Re: Mystic Quest is irritating me.
« Reply #7 on: August 27, 2009, 04:51:41 PM »
at a glance, that looks  like a bitfield.  look at the bytes in binary instead of hex to verify, but i think you'll find the following:
lsb first,
bit 0: silence
bit 1: blind
bit 2: poison
bit 3: confusion
bit 4: sleep
bit 5: paralyze
bit 6: stone
bit 7: dead

therefore, for someone who's stoned, asleep, and poisoned, it should be 54h (0101 0100)