How much is recorded for replays?

How much is recorded for replays?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Ralith
Posts: 22
Joined: 06 Aug 2007, 04:43

How much is recorded for replays?

Post by Ralith »

Is it just the orders given by players? If so, how are randomized things like innaccuracy of some weapons prevented from modifying the outcome? Is a seed saved? Would replays work normally if more nondeterministic (unpredictable) elements (such as more advanced/complete physics simulation) were added to the engine?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Just orders given by players.

There are two pseudo random number generators in Spring, the synced one always starts with the same hardcoded seed, the unsynced one is seeded on time.

Synced stuff like weapon accuracy uses the synced random number generator and unsynced stuff like graphical effects use the unsynced random number generator.

If nondeterministic stuff is added to the engine, replays wouldn't work anymore. There's no reason advanced/complete physics would need to be nondeterministic though :-)
Post Reply

Return to “Engine”