Users browsing this thread: 1 Guest(s)
Spell Graphics Document

#18
Posts: 181
Threads: 3
Thanks Received: 26
Thanks Given: 4
Joined: Apr 2015
Reputation: 18
Status
None
Nice work with this, the result looks great!

I can add a couple pieces of information about the 6-byte graphics properties. In the byte 1, bit 6 (0x40) is the MSB of the tilemap offset from byte 1. Bit 7 (0x80) determines if the graphics is 2bpp (if 1) or 3bpp (if 0). Like you mention, the 16x16 tiles don't get loaded directly from ROM, but rather from the 2bpp or 3bpp tilemap, which are at D2/C000-D2/DFFF and D2/0000-D2/5FFF. You can view these tilemaps in FF6Tools via Ability -> Attack Tilemap (2bpp) or (3bpp).

Also, for the animation frame data at D1/0141-D1/E988, the 2-byte format is as follows:

Byte 0: xxxxyyyy (x,y) position for this tile
Byte 1: vhtttttt v/h flip and tile index

Each frame is terminated by 0xFFFF *OR* when it reaches the next pointer in the pointer table at D4/DF3C-D4/F645. So if your frames are sequential you can omit the 0xFFFF terminator to save 2 bytes. For reference, the subroutines that load this data are at C1/9F61 for BG threads and C1/A0C6 for sprite threads.
  Find
Quote  
[-] The following 4 users say Thank You to Everything for this post:
  • C-Dude (10-27-2022), DrakeyC (10-27-2022), Gi Nattak (10-28-2022), Warrax (10-29-2022)



Messages In This Thread
Spell Graphics Document - by Zeemis - 03-02-2011, 06:11 PM
RE: Spell Graphics Document - by Gi Nattak - 03-02-2011, 06:31 PM
RE: Spell Graphics Document - by Zeemis - 03-02-2011, 06:52 PM
RE: Spell Graphics Document - by Gi Nattak - 03-02-2011, 07:12 PM
RE: Spell Graphics Document - by Zeemis - 03-02-2011, 07:50 PM
RE: Spell Graphics Document - by DjinnAndTonic - 03-02-2011, 09:33 PM
RE: Spell Graphics Document - by Zeemis - 03-02-2011, 11:31 PM
RE: Spell Graphics Document - by DjinnAndTonic - 03-03-2011, 12:41 AM
RE: Spell Graphics Document - by Zeemis - 03-03-2011, 03:33 AM
RE: Spell Graphics Document - by madsiur - 01-20-2013, 01:48 PM
RE: Spell Graphics Document - by madsiur - 02-01-2013, 09:43 PM
RE: Spell Graphics Document - by Zeemis - 02-01-2013, 11:49 PM
RE: Spell Graphics Document - by madsiur - 06-21-2015, 04:48 PM
RE: Spell Graphics Document - by sleepydude - 09-11-2015, 07:22 PM
RE: Spell Graphics Document - by Everything - 09-19-2015, 11:07 AM
RE: Spell Graphics Document - by sleepydude - 09-21-2015, 05:14 PM
RE: Spell Graphics Document - by DrakeyC - 10-27-2022, 01:34 PM
RE: Spell Graphics Document - by Everything - 10-27-2022, 07:25 PM
RE: Spell Graphics Document - by DrakeyC - 10-27-2022, 09:52 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite