The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Fabio on October 31, 2011, 05:50:44 PM

Title: possible overflow with animation
Post by: Fabio on October 31, 2011, 05:50:44 PM
I'm playing with water ground. I made some graphics with 6 depths and 32 frames each. Some frames are not displayed and cursors, toolbar buttons and symbols appear instead. Is it an owerflow? mind it doesn't happen if i set identical frames for all depths.
Title: Re: possible overflow with animation
Post by: greenling on October 31, 2011, 06:23:51 PM
Fabio gives from those bug Photos?
Title: Re: possible overflow with animation
Post by: Dwachs on October 31, 2011, 07:19:10 PM
@fabio: all these water graphics have to have the same numbers of animation frames. Maybe there are some missing? I cant think of any other error. Could you upload pak or dat + png?
Title: Re: possible overflow with animation
Post by: Fabio on October 31, 2011, 11:44:59 PM
I'll post them as soon as i put my hands on the pc. I checked many times and no frame should be missing, but I'll have you check. The good news is that there is npt an intrinsec limit to the number of frames.
Title: Re: possible overflow with animation
Post by: Fabio on November 02, 2011, 09:54:43 AM
As promised, here's the png & dat giving the problem:

water_ani.png (http://public.gonella.eu/simutrans/grounds/water_ani.png)

water_ani.dat (http://public.gonella.eu/simutrans/grounds/water_ani.dat)

screenshots:

(http://public.gonella.eu/simutrans/grounds/simscr33.png)

(http://public.gonella.eu/simutrans/grounds/simscr34.png)
Title: Re: possible overflow with animation
Post by: Dwachs on November 02, 2011, 11:37:17 AM
it works for me  ??? with the latest release. Could be that 'your' bug was fixed with r4846.

The animation for water level=0 looks beautiful. The transition for the other levels is not as smooth, there is a jump somewhere between frames.
Title: Re: possible overflow with animation
Post by: Fabio on November 02, 2011, 01:18:07 PM
Great, I'll try with latest nightly. If it works i can polish yhe othet levels. Thanks Dwachs!
Title: Re: possible overflow with animation
Post by: Dwachs on November 02, 2011, 01:24:49 PM
Quote from: fabio on November 02, 2011, 01:18:07 PM
If it works i can polish yhe othet levels.
ok :) so this means the jumping animation is not another bug in the program :)
Title: Re: possible overflow with animation
Post by: Fabio on November 02, 2011, 03:31:16 PM
Solved!
Check it out here (http://forum.simutrans.com/index.php?topic=8362.new)
Thanks!