wraitii
87fc52b780
The NetServer stored a complete copy of the game Init Attributes, which it sent to new clients on updates from the controller. This worked well, but prevents incremental updates and other unrelated messages from being sent. This changes the system so that: - in PREGAME state, the server does not update its copy of the game init attributes - the server forwards game setup messages from the controller to all clients - Joining clients get a full copy of the Settings, when joining, from the controller (this is a js-driven behaviour - other situations might not need do it). - Make the StartNetworkGame message take a copy of the final init attributes, to ensure synchronization (and simplify some logic). In practice, this: - makes it possible to send different types of gamesetup messages (this introduces two: a regular update and the full 'initial-update' for new clients). - moves some C++ hardcoding into JS - here in essence the PREGAME server state is now init-attributes-agnostic. - does not change much for readiness control - the server already needed to force a change at game start to set random elements. Note that the loading page is currently still receiving the 'local' game attributes, which assumes that all clients are correctly synchronized (they should be). Refs #3806, #3049 Differential Revision: https://code.wildfiregames.com/D3714 This was SVN commit r25099. |
||
---|---|---|
binaries | ||
build | ||
docs | ||
libraries | ||
source | ||
.arcconfig | ||
.arclint | ||
.gitattributes | ||
license_dbghelp.txt | ||
license_gpl-2.0.txt | ||
license_lgpl-2.1.txt | ||
license_mit.txt | ||
LICENSE.txt | ||
README.txt |
0 A.D. Introductory Information ================================= 0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform real-time strategy game of ancient warfare. This is currently an incomplete, under-development version of the game. We're always interested in getting more people involved, to help bring the game towards completion and to share the interesting experience of developing a project of this scope. There are several ways to contact us and find more information: Web site: http://play0ad.com/ Forums: http://www.wildfiregames.com/forum/ Trac (development info, bug tracker): http://trac.wildfiregames.com/ IRC: #0ad on irc.quakenet.org --------------------------------------- Running precompiled binaries on Windows --------------------------------------- Open the "binaries\system" folder. To launch the game: Run pyrogenesis.exe To launch the map editor: Run Atlas.bat or "pyrogenesis.exe -editor" ----------------------------------- Compiling the game from source code ----------------------------------- The instructions for compiling the game on Windows, Linux and OS X are at http://trac.wildfiregames.com/wiki/BuildInstructions ------------------ Reporting problems ------------------ Bugs should be reported on Trac. For information on reporting problems and finding logs, see http://trac.wildfiregames.com/wiki/ReportingErrors ------------------ Contributing Code ------------------ If you want to help out programming for the game, have a look at https://trac.wildfiregames.com/wiki/GettingStartedProgrammers or contact us on #0ad-dev on irc.quakenet.org -------------------- Contributing Artwork -------------------- If you want to make artwork for the game, have a look at https://trac.wildfiregames.com/#Forartists: or visit the forums http://www.wildfiregames.com/forum ----------- Translating ----------- You can help translating the game at https://www.transifex.com/projects/p/0ad for more information, see https://trac.wildfiregames.com/wiki/Localization