Looping Characters' Ending Problems on Story Mode Mugen

I have a looping ending problems on my Fatal Fury 2 Mugen Characters' ending. There's some sort of the looping problem. First, I created Fatal Fury 2 Characters' ending: I used Rad Tool, Fighter Factory 3 and Notepad. I renamed ending.def into terryend.def and ending.sff into terryend.sff. Secondly, I chose Terry Bogard on Mugen of Street Fighter II VS Fatal Fury 2 on Story Mode, it's for the test, I finished the game and then the problem is, Terry Bogard's ending on Story Mode starts looping. Terry Bogard's ending starts looping on Story Mode could be a small problem.

According to the text you've attached you have to replace the line "end.time = 3414" with the line "end.time = 642". The looping should disappear.

Why?In your animation there are 321 frames, each of which lasts 2 ticks. Hence the whole animation should last 321*2=642 ticks. However, at the beginning of the code you specify that the scene lasts longer than than 642 (end.time = 3414). Given that the scene is longer than the animation, MUGEN automatically repeats the animation again and again (probably the animation is repeated about 5 times - 3414/642=5.317). To make sure that there are no loops, the duration of the scene should be the same of the duration of the animation.