Help Home

Tutorials

Weapon Scr. I
Weapon Scr. II
Missions

Reference

All Commands
General
Load/Add
Graphics
HUD
Sounds
Player
Terrain
Projectiles
Particles
Collision
Objects
AI
Nodes
Missions

Hard Sync

What is 'hard sync'?

A hard synced command is synchronized over the internet by sending its parameters to all players. This is done to ensure that the game is 100% synchronized. It leads to some special properties for hard synced commands which are important to know when writing scripts.

Properties

  • You can use random parameters for hard synced commands - the game will stay synchronized anyway
  • Hard synced commands cause additional internet traffic
  • Do not use too many hard synced commands at once - it might lead to lags (or worse!)


What about commands which are not hard synced?

Carnage Contest can become asynchronous if you call these commands with parameters, which are not equal on all involved computers. You should never call them with random parameters (you can if you set a safe and globally equal random seed first). Also you don't have to worry about the traffic because the game will not send the parameters of commands without hard sync.