Flag "jumping" around / Problem with animation
Posted: Tue Nov 19, 2013 7:03 am
Hello fellow modders!
Recently I've been working on a modification aside from enjoying the multiplayer, but it seems that I've reached an impasse.
Currently I'm trying to include some graphics, more specifically flags, that I need to change for my mod. I've created the first flag, using the white surrender flag as a template. So far so good. However, in the game, the flag "jerks" (difficult to describe, really) around the pole, creating a very clunky animation that is very unlike the animation of the flags in the stock game. This should however not happen, as I've based it upon a flag that is already included in the game and when I compare the flags by moving the stock flag over my new one as an opaque layer, the flags' shapes match entirely. In fact, by using the surrender flag instead of my own flag by copypasting it into my flag file over my own flag, the jerking motion ceases.
I've tried saving the file in different TGA resolutions, but to no effect. I think I was able to narrow down the problem by editing the number of frames in the animation in gfx.csv one by one until the error stops appearing - going by that method, the issue would be frame number 5.
I've created a small mod out of the problematic flag that overwrites the default US flag, so if you install it you should be able to see the issue right away by starting a sandbox game.
Any help would be much appreciated!
Recently I've been working on a modification aside from enjoying the multiplayer, but it seems that I've reached an impasse.
Currently I'm trying to include some graphics, more specifically flags, that I need to change for my mod. I've created the first flag, using the white surrender flag as a template. So far so good. However, in the game, the flag "jerks" (difficult to describe, really) around the pole, creating a very clunky animation that is very unlike the animation of the flags in the stock game. This should however not happen, as I've based it upon a flag that is already included in the game and when I compare the flags by moving the stock flag over my new one as an opaque layer, the flags' shapes match entirely. In fact, by using the surrender flag instead of my own flag by copypasting it into my flag file over my own flag, the jerking motion ceases.
I've tried saving the file in different TGA resolutions, but to no effect. I think I was able to narrow down the problem by editing the number of frames in the animation in gfx.csv one by one until the error stops appearing - going by that method, the issue would be frame number 5.
I've created a small mod out of the problematic flag that overwrites the default US flag, so if you install it you should be able to see the issue right away by starting a sandbox game.
Any help would be much appreciated!