Hey everyone, as the title says, I’m having issues with a knife spell animation that I’m working on. It works fine if I have the knife on the background layer.
However, the issue is that it gets resized and stretches out. But, if I want to use the object layer, the size is fine. But the second time around it glitches out.
Anyone have any ideas on how to solve this issue?
Here’s the script for the animation:
/// - Start Animation
C00
C00
C000040
C02F948
O p- blank.PNG
B p- blankbg.PNG
2
O p- obj1.PNG
B p- blankbg.PNG
1
O p- obj2.PNG
B p- blankbg.PNG
1
O p- obj3.PNG
B p- blankbg.PNG
1
O p- obj4.PNG
B p- blankbg.PNG
1
C00001A
C1F
O p- blank.PNG
B p- blankbg.PNG
2
/// - End Animation
Oh wait we’re probably overthinking it just add some C00s to the start
[quote]C00 – buffer code. Stalls. Needed. If you encounter random looking graphic or palette errors you probably need some of these. Sometimes if the spell progresses too fast it loads the wrong palette or other data in the VRAM or elsewhere interferes with the spell. In short, just add these and take it easy.
C00
C00
C00
C00
C00
C00
C000040 – makes the screen slide. Always have it, and early.[/quote]
I think the problem has to do with line 510 in FEditor’s \asm\FE7\Spell Anim System\CSA System.txt:
@ Not doing this here anymore
@swi #0x12 @LZ77UnCompVram
This writes the object tiles to the OAM each frame (?), but it was commented out and moved somewhere else (for efficiency probably), which I think caused the glitch. Meanwhile it was not changed in FE8 and works fine there. Maybe you could use the spell animation system from an older version of FEditor?
Oh ok. I just need to find an older version of FEditor since I have the most recent one and the render edition.
EDIT: So turns out the older version of FEditor did the trick.
My only issue is that I be able to use the older version of FEditor with the latest one, since it can mess up the ROM. The only reason this worked was because I use the older version AFTER inserting the thief animation. Actually I haven’t tested to see if anything else in the game was messed up from it, so I can’t say if it worked 100%. But it is something though.
The old FEditor that I found didn’t have an asm folder. It’s the 20090711.1 version. Is there another version that’s older than the current one that has the asm folder available?
You’re right, what you need to do is take “CSA System.patch.txt” from the old FEditor and replace “\src\Model\FE7.java” lines 163-246 in the new FEditor. Then run build.py (or is it .bat?) to compile it. Then it works - for clean roms.
If the rom has already been opened in the new FEditor you need to copy the “CSA System.dmp” without the first 0x30 bytes, and paste it to 0xCB680. That should fix it.
The rom has already been opened in the latest version of FEditor, so I want to try to copy the csa system.dmp file. But I’m a little confused about the 0x30 bytes part. Could you explain how many bytes that I need to skip?
Also, the csa system.dmp file is from the new FEditor right?