Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: Borde on 2007-07-10 17:04:40

Title: Battle animations. Is the algorithm right?
Post by: Borde on 2007-07-10 17:04:40
Hello everyone.
I've been trying to use the algorithm suggested by L.Spiro and Qhimm (the same one that's currently referenced on the wiki) to decode FF7 Battle Animations and I can't seem to get anywhere. I can't even get to read the correct possition of the character for any frame but the 1st (obviously) and second one. So it's clear that I'm not even reading at the right offsets.
My cuestion is, does this algorithm really work? I know Mirex tried to use it and failed. Has anyone else tried?
Thanks.
Title: Re: Battle animations. Is the algorithm right?
Post by: Cyberman on 2007-07-11 23:33:18
Don't worry it wasn't just you. I think I was able to only get the first 2 frames working.  However that doesn't mean the information is flawed per sea it just means that some more examination is in order. At least that's my way of looking at things.

Cyb
Title: Re: Battle animations. Is the algorithm right?
Post by: Borde on 2007-07-12 09:58:15
Yeah, most likely.
Well, thanks for answering Cyberman. I supose it's time to knock at ficdeula's door. I don't think I'll get any response, but asking is free...
Title: Re: Battle animations. Is the algorithm right?
Post by: Cyberman on 2007-07-12 23:26:54
Well the information is correct that it is a packed bit frame format. I think the decoding is likely the issue I was having.  Being that sometimes I code like crap instead of code with discipline LOL.

What I suggest is instead of copying the code verbatium is write your own implementation then check the examples in the decoding text.

Cyb
Title: Re: Battle animations. Is the algorithm right?
Post by: Borde on 2007-07-14 14:22:03
Yes, I tried writting my own version of the code. I like to understand what I'm doing and besides, Visual Basic imposes some restrictions to port easily some C code.
But were are those examples you talk about? I only found the position for the first frame of Cloud's first animation. Are there any decoded rotations or something? That would be useful.

EDIT: I asked ficedula and he confirmed me that the algorith from L.Spiro and Qhimm is right. I supose we all should start learning to code :-P