How much is recorded for replays?
Moderator: Moderators
How much is recorded for replays?
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?
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
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
