øA slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=1328.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexed28-2.html slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1328.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexed28-2.html.z x )´ OK text/html ISO-8859-1 gzip 0|Ö )´ ÿÿÿÿÿÿÿÿ Wed, 11 Mar 2020 01:47:00 GMT 0ó° °® 0® P® €§² ð® ;?h^ ÿÿÿÿÿÿÿÿ$8 )´
Print Page - Spell Animation Guide v0.85
Board of Slick
Library of the Ancients => Final Fantasy V Research & Development => Topic started by: LightPhoenix on January 20, 2010, 01:50:13 PM
Title: Spell Animation Guide v0.85
Post by: LightPhoenix on January 20, 2010, 01:50:13 PM
Version 0.85 is out!
I didn't get nearly as far as I wanted to this month, so I'm calling it version 0.85. Unfortunately my work schedule for the next three to four weeks is brutal, and I can't guarantee I'll make much progress on the guide. I also don't get any time off for the holidays (I work at a hospital). Nonetheless, my plan is to update this on or around January 1st.
I'm proud to say that of the main 128 functions, only two are unknown. F7 is a complete unknown to me right now; it's used in Exploder, and may be an enemy-only function. Removing it from the Blue spell has absolutely no discernible effect. FC runs based on the target, sets a flag, and that's all I know. I think it's a flag to change rows, since it's used in Pull. Of the F5/F6 functions, I'd estimate about a third of them are known, including most of the F5 functions. In particular, Missile and Roulette functions are giving me a bit of trouble.
I'd like people who read through to comment on anything confusing or unclear. If there's any issues, I can try to clarify or fix anything.
Title: Re: Magic Graphics Explained
Post by: Jorgur on January 21, 2010, 04:52:45 AM
This is great progress. We should now be able to add/replace magic to the game.
If you also find the lookup table for items, I can add the Sabre in v0.6 of my hack. ;) Seing as the magic animations go by the common list, I am guessing that is also the case for weapons (and usables ?).
Note: The hacking guide has been updated and split into several documents. Check my topic for links.
Title: Re: Magic Graphics Explained
Post by: LightPhoenix on January 29, 2010, 10:26:19 PM
As it turns out, it's a little more complicated than it first seems.
One problem I was having was the "creature mask;" the color the monster changes when certain spells hit them (ie, blue for Ice, orange for Fire). Changing the spell animation color didn't change this mask.
As it turns out, I was wrong about the meaning of one of the bytes. The third byte isn't actually the animation shape. The third byte is actually an animation routine. This byte (and the high bit from the second byte, which as of yet I've never seen set) is passed to a variable ($F586) that in turn performs a lookup on a table at D9/7D42. This table is a series of two-byte value indicating the address of the animation routine to perform. These addresses all appear to be in the upper half of the D9 bank.
(Aside: they should be very easy to re-direct to expand)
The animation routines vary widely. I'm still decoding them, but the basic format is a three-byte "header" whose purpose I have not discovered yet. After the header are the instructions. The end of the routine is given by a value of #FF. This routine is read at (roughly) C1/C48A.
The instructions have two types. Anything less than #80 is a simple frame call. Anything with the bit 7 set (ie, above #7F) is a special instruction, given by the remaining bits. Special instructions often take parameters, which are bytes that follow the instruction. The number can vary, and is determined by the special instruction.
An example of the very simple code for Fire (at D9/8F5C):
00 20 00 80 0A 10 11 12 13 80 00 FF The first three bytes are a header, whose function I have not determined.
The next byte is 80, which indicates a special function. In this case, #80 indicates to use a creature mask of the color given in the next byte. That makes this instruction 80 0A, and sets the creature mask to orange. Changing the parameter on #80 does change the mask color; more on this below.
Following that are individual frames to play: 10, 11, 12, 13.
Next, we have another call to #80, this time with the parameter 00. This indicates to clear the creature mask.
Finally, FF indicates the routine is over.
Title: Re: Magic Graphics Explained
Post by: LightPhoenix on January 29, 2010, 10:51:24 PM
(Part II: A Little More In Depth)
The parameters for #80 are not entirely straightforward:
00: Clear 02: Violet 0A: Orange 12: Blue 1A: Yellow 22: Green 2A: Grey/Purple (Periwinkle?) 32: Brown 3A: Lavender 42, 4A, 52, 5A, 62, 6A, 72: Black 7A: Gray
Looking at the code for #80, this increment of 08h becomes more apparent; the value gets divided by 8 to determine the color. It also ignores any value higher than #0F (ie, above parameter 80). I removed this restriction, and the function still worked, albeit with poor results. None produced solid colors; most produced psychedelic rainbow patterns. It looks like 42-72 are all blank masks; conceivably other colors could be added here. They may be involved in the creature blinking when attacking though.
As an example of slightly more complicated functions, here are Ice (D9/914D) and Bolt (D9817C).
Ice is an interesting one, but relatively straightforward. The CA/CB function is a loop (#CA: start loop, #CB: end loop), with the first parameter being number of frames and the second being the starting frame. Changing 08 to a lower number will result in a partial animation. Changing it to 00 or greater than 08 crashes the game. Putting in the frames manually (ie, 5D 5E 5F 60) does play the animation fine, albeit only half the animation since it's eight frames. Obviously, using the loop is smaller than listing out every frame individually (4 bytes versus 8 bytes).
Bolt has a long function. #83 superficially appears to control the animation color mask. I believe this can be used for dynamic control of color; for Bolt this gives it a flashing animation as it switched between 83 12 and 83 80 (which I believe indicates no override from the master table). Note that in the master table, #12 indicates a blue color; it does the same here. I don't yet know what #C3 and #B2 do yet (or if it's one function #C3 with three parameters). I'll need to look at the code and experiment.
I have a couple of very busy weeks ahead of me. I'll try to keep up on the research, but it may be a couple of weeks before I post again. After the 14th things should go a little smoother.
Title: Re: Magic Graphics Explained
Post by: Jorgur on January 30, 2010, 06:43:15 AM
Another good piece of progress. Good work, as usual.
It doesn't come as a surprise that each spell has its own routine, seeing as how different the spells can be. Weapon animations, however, I'm not so sure about. I would be happy to give you some advice on how to put down the missing pieces, but my guess is that you would prefer doing it on your own (like I do).
You should make a document on this, or if you don't have time, I could document it in your name (I have plenty of time :p). Perhaps a little later though, when everything has been tested and solved in detail.
Title: Re: Magic Graphics Explained
Post by: LightPhoenix on February 05, 2010, 01:14:12 PM
Just dropping by to say I'm still working on the animation codes.
I've a clue where to start on weapon animations, but any information you might have I'd be glad to take. I do enjoy the challenge of doing it myself, but unfortunately my time is not free.
I'm working on a document, and I'm writing down everything that I find. I tend to be a perfectionist, so I'm holding off on releasing a doc until I've got most of it down. Additionally, I'm occasionally wrong about stuff; the bytes in the master data being one. So putting out incorrect information is not something I'm keen on doing.
After next weekend (the 14th) my time is freed up significantly, so I'll have more time to test then.
Title: Re: Magic Graphics Explained
Post by: LightPhoenix on March 08, 2010, 11:57:20 AM
Another month, another post!
I'm making some decent progress on the animation routines. I've documented roughly 32 of the 128 special commands, although to fully understand some of the them I think I'll have to look at the assembly. I have a feeling some of them are specially designed for individual spells, and may not have general utility with assembly hacking.
Unfortunately the documentation process is less straightforward than plugging in numbers. Many commands are designed to work with each other (as a simple example, C8 XX and C9 indicate a loop, with XX being the number of loops). This means I have to analyze the routines individually. For Black/White/Time it wasn't too rough, but Summons for example are fairly complex.
I've also elucidated two of the three bytes in the header: the first is a reference to a table at C1/B31C (two one-byte values) that gives the height and width, and the second is the animation speed. I'm relatively certain the third value is also a lookup, but I haven't looked into it yet.
I've made no progress on the swinging weapon animations, although I may take a stab at it so I don't burn myself out on the animation routine commands.
I would estimate it will take at least another month or two for me to get all the codes documented. Because of this, I intend on releasing an early version of the guide I'm writing, as well as some references (ie, tables). Most likely this will be by the end of the week.
Title: Re: Magic Graphics Explained
Post by: Jorgur on March 08, 2010, 01:57:09 PM
Yay, more progress! :cookie: Info on spell animations will come in handy later, because I plan on modifying some of them in my hack (e.g. Ice 3). I am coming closer to finishing v0.6, but I won't be changing spell animations at least until v0.7. If you feel like it, could you at least see if you can find the location of the weapon animations for me? All I need is basically to copy the an animation to another, so that would be a big help.
By the way, how is the C1 disassembly coming along?
Title: Re: Magic Graphics Explained
Post by: LightPhoenix on March 11, 2010, 12:56:26 PM
Ice 3 is a neat one, lots of usable codes. I got a lot of the main ones (Animation Offset, Loop Routine) from Ice 3.
I'll see what I can do vis a vis the weapon animations. Right now I'm more focused on the magic animations, but I can at least give it a look. My suspicion is that it will use a similar system to the magic animations.
The C1 disassembly is basically stalled while I work on animations. The bank itself is somewhat fragmented and convoluted, but generally controls battle animation in general. For example, the assembly for all the special commands is in C1 (and takes up a good chunk of it). I'm confident C1 is where the weapon animations are as well. What makes it difficult is that there a large number of tables within C1 itself, so I'm finding I often have to go back and disassemble individual bits of code... even code that at first glance looks okay.
Title: Battle Animation Guide (Updated 5/4/10)
Post by: LightPhoenix on March 12, 2010, 10:57:45 AM
[EDIT]Updated to 0.7, with several more magic animations. More notes below.
[EDIT]I've just updated the guide to 0.6. No new work has been done on the magic animations. However, the guide now includes weapon animation information, researched by request of Jorgur. Also, the Master Tables have been added to the main guide. Therefore, I've removed that file.
****
The Animation Guide is the main file, and contains a relatively complete rundown of what I have so far. With it, basic changes in magic animation (and magic in general) should be possible. If there are any changes or clarifications that you feel should be made, please let me know. Note that I don't know everything about the system yet; some aspects have been a little elusive. I will continue to update this file as I learn more. The current version is 0.5.
The second file is a list of Animation Routines which I use as a reference for testing. This is very rough, contains no explanations or clarifications, and basically is just a dump file so I don't have to keep referring to the ROM during testing.
As I said, I do intend to continue updating the guide with more information. Any updates will be posted in this thread, and I'll edit this post to point them out.
Title: Re: Magic Animation Guide
Post by: Jorgur on March 12, 2010, 04:32:01 PM
This is impressive, to say the least. I did not really expect so much information already in the first version. As usual, I do have some comments though. As I open the main document, the first thing I notice is that the amount of text is rather large. I like reading guides containing figures and examples, as opposed to having to read through blocks of text to understand something. Therefore I find it a little tedious to read in the beginning.
After that point, however, the lists start appearing. These are lightweight and informative, and seem to be well organized. "Routine Command List" and "Routine Commands" are particularly interesting. Like you say, the information is not quite complete enough yet to fully edit spells, but with some work here the guide would be a powerful asset indeed.
I see you refer to the animations as "routines". This can cause confusion. To me, the word "routine" only refers to machine code (but I don't know if that's just me). Maybe "script" is more appropriate?
I have not read through the guide in detail, seeing as how in-depth the animation data goes. Later, when I decide to move onto graphical editing I will probably be able to deliver more specific feedback.
Title: Re: Magic Animation Guide
Post by: LightPhoenix on March 20, 2010, 08:04:38 AM
Jorgur, thanks for the feedback! Personally, I like a little explanation to go along with the lists. Looking over the guide, it is a little long-winded and light on examples. Specifically, at this point I'm going to have to include the master table in it as well.
I wanted a break from deciphering the animation scripts, and since you asked about weapon animations, I decided to look into that. As it turns out, those are included in the Master Table as well. I haven't figured it all out yet, but I'll give you what I have since I know you're interested. I located a series of scripts that corresponded to weapons; the table referencing these is at D9/9E34. This table is loaded at C1/A12B, where X is obtained from $F586. $F586 is set from the Master Table. I was looking at the basic Staff attack, which used row 1F8 from the Master Table (ie, D8/38EE,X, where X = 1F8).
The weapon script is run separately from the magic scripts; there's different code for parsing, and it looks like the commands might be different. I'll know more as I look into it more.
Title: Re: Battle Animation Guide (Updated 3/27/10)
Post by: Jorgur on March 29, 2010, 09:43:11 AM
Quote
$F586 is set from the Master Table. I was looking at the basic Staff attack, which used row 1F8 from the Master Table (ie, D8/38EE,X, where X = 1F8).
Haha, I tried finding the data with that scribbled info without any luck.
Okay, checking the new file now...
This is great! Exactly what I needed. I should be able to add new weapons to v0.6 now. The guide has improved a bit from last version, but I still think it needs more work. The document is clearly dominated by ROM data rips. They are nice to use as examples to look at, but mostly I can use the hex editor to view ROM data.
Title: Re: Battle Animation Guide (Updated 5/4/10)
Post by: LightPhoenix on May 04, 2010, 09:35:54 PM
It's been a month, and I apologize for not updating sooner. Chaotic times and all that. I may be moving in the next month or two, so that may impact updates.
I've got a pretty good chunk of the animation commands done. At this point, a lot of it is involving looking at the assembly to figure out what's going on. An excellent example would be the "Priority" commands; basically they control the Z-stack, but the only reason I figured it out was because it altered the SNES VRAM stuff. I wouldn't have been able to figure it out without Anomie's excellent doc.
As suspected, Byte 4 of the Master Table contains data that certain animation commands use. I don't have it entirely figured out yet. I'm beginning to suspect the third byte of the routine header also contains information on sprite processing.
I've done a lot of work on understanding how sprites are accessed. I'm not prepared in the least to write it up. To tell the truth, I don't understand a lot of it yet. I think it was already known that magic sprites are stored starting at D9/0000 in 3BPP format. Byte 1 of the Master Table is converted in a convoluted manner to get a starting position added to D9/0000. It's not a simple formula at all. The sprite is copied to 7F/D000, where it is presumably processed and drawn to the screen. While the formula is complex, the potential to add new battle sprites seems very possible and dare I say easy on this end. In theory, you could simply redirect D9/0000 (this is directly referenced) to a new E-bank or F-bank even.
Now, the actual frame commands (ie, 10 11 12 13 in Fire) in the routines are a little trickier. It looks like those are actually commands as well. It looks like they determine how frames are processed. I'm really not sure what's going on here, and the assembly isn't really helping either. Somehow this must indicate how to draw the sprites, but I'm really at a loss how. I'll be pursuing this a bit more as I try to finish up the animation commands.
Title: Re: Battle Animation Guide (Updated 5/4/10)
Post by: Jorgur on June 30, 2010, 11:37:48 PM
Do you think the document is completed enough to be submitted to the main site?
Title: Spell Animation Guide v0.8
Post by: LightPhoenix on October 24, 2010, 11:18:16 PM
At long last, the eighth version of the animation guide! I have removed a lot of stuff to other files; they will be uploaded here and to the site over the next week or so once they're cleaned up.
There will probably only be three more updates to the guide. I don't want to promise a date, but my plan is to have one per month. They will cover (in rough order): documenting the special functions (F5/F6/Effect Byte 4), a final pass on the main list to clarify some stuff (esp. f-ing Meteo functions), and a few odds and ends I want to add.
The original purpose of the guide was to share information I learned while modding FF5 classes/abilities. As such, after I finish it up I'll be moving on to other projects. Namely, actually modding FF5. Unless an update is really warranted, once it hits v1.0 I won't be updating it any more. I'll still be doing research, and posting stuff here, but I've had my fill of animation-related assembly.
Title: Re: Spell Animation Guide v0.8
Post by: Jorgur on October 27, 2010, 04:46:23 PM
As always, good to see people are still alive and making progress. :cycle:
This caught my interest. Anything specific in mind?
Title: Re: Spell Animation Guide v0.8
Post by: LightPhoenix on October 28, 2010, 12:57:29 PM
Since the first time I played FF5 many years ago, I've always had a problem with the classes. I love the class system, but the classes themselves are terribly balanced, and many of them are totally useless. I'd like to revamp the class system to provide more balance and utility.
The guide was the first step - learning how abilities were displayed on the screen. That's also how I stumbled on the event system - I was looking to figure out how classes are added to the player inventory. Ultimately, I'd like to add some new abilities (and a few spells). I've just started investigating expanding the ROM to allow for this. The information is, for the most part, all there. There's still some fairly in depth assembly hacking involved though.
Title: Re: Spell Animation Guide v0.8
Post by: Jorgur on November 14, 2010, 07:05:30 AM
These documents are the successors of the Battle Animation Guide version 0.7, right? If you don't mind, I'd like to merge the old topic into this one to clean up the forum page.
Title: Re: Spell Animation Guide v0.8
Post by: LightPhoenix on November 14, 2010, 09:54:36 AM
Yeah, no problem!
Title: Re: Battle Animation Guide (Updated 5/4/10)
Post by: Jorgur on November 14, 2010, 01:55:14 PM
Topics merged. If you want to to change the topic name, change the title in the first post. :wink: I would also suggest updating the first post with the newest material.
:edit: I smacked all three topics together into one. :tongue:
I felt they were all about the same thing and I want to avoid too many outdated topics on the forum page. A slight problem is that the first post now is a really lengthy one, so modifying it means either losing a good deal of text, or making a mixture of new and old information in one post. Alternatively, I could take out one of your older posts from the Battle System topic and insert it, giving you a new top post to modify. As a last resort I could split the new topic back into two parts.
What do you think?
Title: Re: Spell Animation Guide v0.85
Post by: LightPhoenix on December 01, 2010, 05:51:03 PM
While the first post is (IMO) a good intro to how to go about with hacking the game, a lot of the information in the original post was incorrect. I've quoted some sections below for posterity.
Quote
I've made some significant breakthroughs with understanding how magic graphics work. I'll be posting a more detailed breakdown when I finish everything up, but I thought this was important to share.
How does FF5 decide what magic animations to display? Logic would dictate it's linked to the Spell Number (S#), which can be found in Jorgur's Hacking Guide here on the site. As it turns out, this is indeed the case. It also makes sense that it'd be some sort of lookup table, and this is also the case.
I started my search by tracing a variable I came across during my examinations of C1 Fxn A; $2722. This variable, during the magic routine, holds S# ($2723 holds the Effect Number). It's important to note $2722 is not dedicated; this variable holds other animation values when not being used by the magic system. I followed this value backwards to the menu selection and forwards to a function around C1/A847, which led me to the lookup table for spell animations.
The table starts at D8/38EC, and each set of data is five bytes:
As I mentioned, for the first 256 data sets, this follows the S# from the Hacking Guide. There are some groups that get special handling; Sword Magic and Summons being the main two.
After this, there's a set of seven animations, 100h through 106h, for the casting animation. That is, the burst for Black, the sparkles for White, and so on. This is calculated from the S#, starting at C1/B54D; it's relatively straight-forward. Otherwise, these act just like other animations; you can change any of the five bytes. For example, setting the data at 102h (Black) from 1C 28 02 80 48 to 1C (10) 02 80 48 will make the burst red. Changing it to (42) 28 (00) 80 48 will give it the Sword Magic animation.
This should provide an excellent start for people looking to play around with the magic system. I hope to have a full catalog of the data up soon; I will post it when done.
Title: Re: Spell Animation Guide v0.85
Post by: Dana Crysalis on August 03, 2013, 02:56:00 AM
Hiya, I have a question.
v0.8 - Moved Weapon information to separate file
I can't seem to find this separate file, i checked the sticky for hacking docs, but I might be blind and have missed it. I could definitely use info on the weapon animations, is it still lurking around?
Title: Re: Spell Animation Guide v0.85
Post by: Jorgur on August 03, 2013, 03:55:10 AM
Quote
I wanted a break from deciphering the animation scripts, and since you asked about weapon animations, I decided to look into that. As it turns out, those are included in the Master Table as well. I haven't figured it all out yet, but I'll give you what I have since I know you're interested. I located a series of scripts that corresponded to weapons; the table referencing these is at D9/9E34. This table is loaded at C1/A12B, where X is obtained from $F586.
Quote
The weapon script is run separately from the magic scripts; there's different code for parsing, and it looks like the commands might be different. I'll know more as I look into it more.
Quote
At long last, the eighth version of the animation guide! I have removed a lot of stuff to other files; they will be uploaded here and to the site over the next week or so once they're cleaned up.
Sadly, I don't seem to have the files from version v0.6-0.7 which include weapon animation info (I only have v0.5). Apparently he wanted to upload more as separate documents, but never got around to it. :sad:
I will send him a PM and hope for a reply. If anyone reading this has the file(s) from v0.6 or v0.7, please upload!
Title: Re: Spell Animation Guide v0.85
Post by: LightPhoenix on August 03, 2013, 12:31:22 PM
Hey,
I do have the older versions as well as the moved info. I'm not sure how complete it is offhand; it's been quite some time since I've looked at it, to be honest. They're all on my laptop, so give me a couple of hours and I can get them uploaded here. Also, if you have any questions, feel free to ask, I usually scan the board on the weekends when I'm looking at FF5 stuff (right now trying to figure out if/how I can add Life3 to the game).
[EDIT] Okay, I've attached the weapon stuff I have. It's pretty far from complete, and doesn't talk about anything in the C1 bank at all. However, the C1 stuff isn't really necessary for basic editing. For the sake of completeness, most of the C1 code handles animation for characters (especially non-spell abilities). As a couple of examples, it makes the character do the casting pose, or jump to an enemy. Again, it's not strictly necessary for basic animation editing.
[EDIT2] And for total completeness, I've attached the older versions of the animation guide as well. No guarantees anything in them is up to date or correct - use the newest one.
Title: Re: Spell Animation Guide v0.85
Post by: Dana Crysalis on August 03, 2013, 10:53:20 PM
Huge thanks for this, LightPhoenix, my programming friend will be very grateful.
Title: Re: Spell Animation Guide v0.85
Post by: Squall on June 27, 2016, 01:39:55 PM
I'd like people who read through to comment on anything confusing or unclear. If there's any issues, I can try to clarify or fix anything.
TBH I've read like 2-3 times the guide on wiki trying to understand 'whats all about', it just doesnt click, doesnt ring a bell ... nothing. Its like you read an answer, but it doesn't make any sense unless you know the question.
Now I'm reading old topics, trying to find hidden gems and found this:
Quote
How does FF5 decide what magic animations to display? Logic would dictate it's linked to the Spell Number (S#), which can be found in Jorgur's Hacking Guide here on the site. As it turns out, this is indeed the case. It also makes sense that it'd be some sort of lookup table, and this is also the case.
I started my search by tracing a variable I came across during my examinations of C1 Fxn A; $2722. This variable, during the magic routine, holds S# ($2723 holds the Effect Number). It's important to note $2722 is not dedicated; this variable holds other animation values when not being used by the magic system. I followed this value backwards to the menu selection and forwards to a function around C1/A847, which led me to the lookup table for spell animations.
The table starts at D8/38EC, and each set of data is five bytes:
And suddenly it all started to make a sense, pieces started to click to each other - I knew the question :)
But seriously that is a great intro for your guide, it really gives a goal and purpose not just bunch of knowledge piled around. If it is one thing that I learned in my MA study, it will be: 'asking the right question is more important then having the answer'
Now on the topic:
Quote
I've done a lot of work on understanding how sprites are accessed
I'm very interesting in your finding. I'm particularly interested in monsters, but anything is good. I strongly believe that Square had used other instruments given to artists that know a little or no asm to create scripts, graphic, animation, battle system data, monster data, music, ... Let say something like 'RPG Maker'. The things is that in order to give flexibility to artists, you must create complex system behind that feeds with their work. Thats why we often see a complicated system coded, while in the game we barely touch the surface of it. TBH I expect that we will see the same with organizing Sprites (as part of animation or static picture)
Title: Re: Spell Animation Guide v0.85
Post by: Xardas on April 04, 2018, 05:05:01 PM
OMG, necro posting! LYNCH THIS GUY! :laugh:
So, since I want to change many weapons for my hack (not just the stats), I was referring to LightPhoenix's Weapon Animation Guide a lot. I researched by fiddling with the 9 bytes of the master table to find out what they do, and what the effects of each value are. First, I will tell you what I found out about the bytes themselves:
Quote
This table is located at D9/9855, and contains general information used in playing weapon animations. Each entry is nine bytes long.
Byte 1: Weapon Sprite This is true, BUT the sprite itself is also heavily influenced by Byte 3 as well. You don't have much freedom here, as most results end up in displaying garbage, some even crash the game. As far as I tested, only the combinations of Byte 1 and 3 which are actually used by existing weapons lead into acceptable results. Byte 2: Weapon Color (see color table) I tested all values from 00 to FF - my results can be found in the attached txt, although it's not too detailed as I just noted down about 2 colors. CAPS mean that I don't recommend this colorset because it looks just awful. Some colorsets are used more than once. Byte 3: Weapon Routine (see below) See Byte 1 (partially). Byte 4: Weapon Flags? Together with byte 6, this does alter the "cut" animated on the target. Eg. if both byte 4 and 6 are 00, you'll get the cut animation usually done by normal swords, if both are 02 you'll get the knife/spear cut. So far, I didn't find any other esthetically acceptable combinations of byte 4 and 6 other than those used by existing weapons, but I haven't researched these 2 bytes much. Byte 5: Weapon Sound This is NOT the weapon sound byte. This is another color byte, but not for the weapon sprite. This one is for the "cut" animation. Byte 6: Unknown, sent to $F582 See byte 4. Byte 7: Unknown, #20 forces knife animation Still a mystery to me - the appropriate value however is very crucial for katanas. Byte 8: Weapon Type? This one is the byte responsible for the attack sound (except for the katanas, which are still a mystery to me). Byte 9: UnknownStill a mystery to me - the appropriate value however is very crucial for katanas.
Credits to LightPhoenix - without his work I wouldn't have been able to do this.
Title: Re: Spell Animation Guide v0.85
Post by: Squall on April 05, 2018, 02:44:25 AM
Items weapon effects 1B [9Bytes * 128?]: Byte 1 - Weapon graphics Byte 2 - weapon graphics palette Byte 3 - the user of the movement? Byte 4 - attack graphic Byte 5 - attack graphics palette Byte 6 - animation? Byte 7 - flag Byte 8 - sound effects Byte 9 - sound effect at the time of critical?Keep in mind that is a google translation from a ROM map I found in a Japanese site!!!
Although it is google translation actually these names make sense: B1, B2 - Weapon gfx ID / Palette ID B3 - Let me try to explain, that determine where the animation will be placed - some animation are forwarded to a single target, others multiple targets, some time you have same animation regardless who in the praty you hit, sometimes the animation hit a specific targer ... B4, B5, B6 - Animation - tiles, palette, routine ID B7 - ??? B8, B9 Sounds. Crit can be done by Katanas and fist, thats we have values only there * although I call them IDs, most likely it is simply an index (you multiply by something and add a constant, to get the actual address)
Title: Re: Spell Animation Guide v0.85
Post by: Squall on April 05, 2018, 03:05:06 AM
BTW, I'm not sure are you aware of, but I'm making a new tool for graphics ripping/mapping. Here is what I manage to make: (http://www.bwass.org/bucket/VisualSAK - screen4.png) You may try different Width to assemble different Sprites. I hope that will help you in understanding B1 and B4
P.S. we don't have disassembly of D9 bank. noisercross, are you willing to make one? Your C1 is the best disassembly I have used - so easy to read!