Please login or register.

Login with username, password and session length
Gender Byte  (Read 341 times)
Pages: [1]
cadence [Posts: 16]
  • View Profile
  • share
  • [May 21, 2019, 04:36:14 PM]
Gender Byte
« on: May 21, 2019, 04:36:14 PM »
http://ffhacktics.com/wiki/World_Stats

I see that a Gender Byte shows up at 0x04 in the Stats List, and then again at 0x70 with different flags but some overlap. Does anyone know what's going on there?
French Maid
Xifanie (Webmistress) [Posts: 4468]
  • View Profile
  • Final Fantasy Hacktics
  • http://steamcommunity.com/id/Xifanie
  • share
  • [May 21, 2019, 05:08:01 PM]
Re: Gender Byte
« Reply #1 on: May 21, 2019, 05:08:01 PM »
You're looking at the graphical section. I'm not even sure why there's a graphical section; it should be its own page.

    • Modding version: PSX
  • <R999> My target market is not FFT mod players
    <Raijinili> remember that? it was awful
    cadence [Posts: 16]
    • View Profile
    • share
    • [May 21, 2019, 07:57:30 PM]
    Re: Gender Byte
    « Reply #2 on: May 21, 2019, 07:57:30 PM »
    The graphical section meaning that's where the data shown in the UI is stored in RAM? So I'm guessing that's not per-unit, and that's why there are a bunch of duplicate fields?

    I did notice the graphical section header but hadn't quite put together what that meant, since yeah it's weird that they share the same page. I could split that section off if you'd like but I'm not sure which pages should link to it and so on. >_>

    Reading through this, I wonder why they decided to store things like Move as halfwords and not single bytes...
    Glain [Posts: 523]
    • View Profile
    • share
    • [May 21, 2019, 11:09:29 PM]
    Re: Gender Byte
    « Reply #3 on: May 21, 2019, 11:09:29 PM »
    Those are two different arrays of unit data.  The first is the main party data, and the second is the unit data used in the formation screen.  I actually have a more detailed definition of that data structure in the Data/Table Locations page.  (Search for "801c8638 (WORLD.BIN)")

    In the case of formation screen unit data offset 0x70, it's copied from party data offset 0x04, so those should have the same value. (This routine is the one that copies the data.)

    As for why they sometimes used 2-byte fields when 1-byte fields would suffice, it probably wasn't a conscious decision.  They probably used a short data type instead of a char data type in their C source code, or something along those lines.
    cadence [Posts: 16]
    • View Profile
    • share
    • [May 23, 2019, 02:15:10 AM]
    Re: Gender Byte
    « Reply #4 on: May 23, 2019, 02:15:10 AM »
    OK, thanks for the links!
    Pages: [1]