How are made replays...

How are made replays...

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
MasterZH
Posts: 54
Joined: 29 Aug 2009, 14:44

How are made replays...

Post by MasterZH »

I want to ask how are made replays for this and other games... in my opinion is easy to store player units moves and every command and then render scene.... but if are weapons in spring with spread which include random trajectory how can it be every time the same? :?:

thx
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: How are made replays...

Post by Satirik »

MasterZH wrote:I want to ask how are made replays for this and other games... in my opinion is easy to store player units moves and every command and then render scene.... but if are weapons in spring with spread which include random trajectory how can it be every time the same? :?:

thx
bad question ... if all the players see the same "weapons in spring with spread which include random trajectory", it means the random generated numbers are the same for everyone ... the replays just store the network traffic
User avatar
KaiserJ
Community Representative
Posts: 3113
Joined: 08 Sep 2008, 22:59

Re: How are made replays...

Post by KaiserJ »

my guess is that the "random" numbers are seeded from the game clock... so they are pseudo-random, and since the clock is a constant for all players, the "random" spread should be identical across the simulation because it was calculated in the exact same way over each instance of simulation
Post Reply

Return to “General Discussion”