0 Members and 4 Guests are viewing this topic.
Plus because of Soldat's netcode, the gif frame would not be synchronized when new players join the server.
Quote from: EnEsCe on March 07, 2007, 09:20:15 amPlus because of Soldat's netcode, the gif frame would not be synchronized when new players join the server.Hmm, couldn't this be solved with the ticks? If server and client are synced with eachother, 60 ticks per second, frames of gif's should be handled by ticks. This should prevent bugging, if it is possible.
1. Even Mario had animated sceneries looooong time ago so Soldat deserve them too...2. Gif can't be used for animated sceneries. This file format can only handle grayscale or indexed layers (this means few colours and no semi-transparensy).3. Creating even simple animated sceneries is a hellish job. Not many people are creating even normal sceneries.4. I think that animated sceneries don't demand server-client synchronization.5. The simplest way to bring animated sceneris into Soldat without changing pms file format is to use special files (something like .sas - Soldat animated scenery) that contain several png files merged together (without any modifications, just glued together into single file), so name of big file is name of the scenery, names of sub files are time how long each frame should be displayed.
[...] that contain several png files merged together [...]
You mean a MNG?Why are people worried about the animation synching with the server? Isn't this for background effects (swaying trees, burning tires) that don't affect gameplay - why would it matter if it was out of synchroniozed.
currentFrame = ((timeLimit - timeRemaining) * framesPerSecond) mod framesInAnimation;
How about this idea to keep the animations in synch:Right now, the server sends the time remaining and the time limit to the client. You can see the time remaining when you press F1 and the time limit when you use /info. A bit of math later:Code: [Select]currentFrame = ((timeLimit - timeRemaining) * framesPerSecond) mod framesInAnimation;Assuming every animation loops constantly and starts at frame 1 when the map begins.edit:This may have problems if the admin changes the timelimit mid-round. However:1. This wouldn't happen very often on most servers2. The effects of changing the time limit would be minimal (you could restart the map if you wished)