#Flick Trouble
03-Jan-95 18:28:38
Sb: #98106-#Flick Trouble
Fm: Troy Barlow 75416,3364
To: Black Belt Systems 76004,1771
I've seen a similar flc problem in other programs on the PC. I think
it was related to two things. First there is a field in the header
that should be set to 3 (I think it's 3). This field is used to
determine if the flc was closed properly (the header reflects the
data). This might be your problem. Second, the frame count included
the ring frame, and it shouldn't. There are really numframes + 1
since all animations must include a ring frame. No likely your
problem but what the hey.
Frames are stored as follows in a 2 frame FLC (numframes = 1):
FRAME 0 (RLE compressed)
FRAME 1 (SS2 deltas to apply to FR0, resulting frame is FR1)
RING FRAME (SS2 deltas to apply to FR1, resulting frame is same as FR0)
A player will display FR0, then loop on FR1 and the RING FRAME. Frame
0 is no longer used.
One other problem I've found was Autodesk Animator Pro will crash if
you create a FLC that has a custom block of data just before the
first FRAME chunk. You would think a player would skip over unknown
chunks, and most do, as long as it's a unknown "subordinate" chunk
and not another type of frame chunk. Very strange. I found this out
while creating FLC's that had a custom Audio chunks in them, I made
it a sub chunk and the problem went away!
For instance take this FLC:
HEADER
SETTINGS CHUNK TYPE (AutoDesk settings (optional))
FRAME CHUNK TYPE
PSTAMP SUB CHUNK
FRAME CHUNK TYPE
PAL SUB CHUNK
RLE SUB CHUNK
FRAME CHUNK TYPE
PAL SUB CHUNK
SS2 SUB CHUNK
If you stick a custom chunk between HEADER & SETTINGS CHUNKS it will crash
some players. Adding sub chunks are no problem.