summaryrefslogtreecommitdiff
path: root/src/net_structrw.c
AgeCommit message (Collapse)Author
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2014-03-29misc: Add string utility functions.Simon Howard
It's more readable to write "M_StringEndsWith(..." than doing a bunch of pointer arithmetic, and this is a common pattern. Also add M_StringStartsWith, M_StringJoin and M_StringCopy. The latter is a safe alternative for strcpy() that works the same as OpenBSD's strlcpy(). Use these functions in a few places where it makes sense.
2013-10-06Change netgame version mismatch message to be reminiscent of the VanillaSimon Howard
message (thanks Alexandre Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2693
2013-09-21Sync -random command line parameter as part of game settings.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2670
2013-04-03Don't start the game until all players are ready. Send waiting data toSimon Howard
players that are ready for startup progress screens. Subversion-branch: /branches/v2-branch Subversion-revision: 2581
2012-10-28Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2537
2012-10-28Add functions for network signature requests. These request the signedSimon Howard
messages from the master server, to be used at the start and end of recording a secure demo. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2535
2012-10-25Switch from MD5 to SHA-1 for network digests.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2530
2011-10-23Fix compiler warnings (thanks Edward-San).Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2459
2011-10-19Send MAXPLAYERS value for game on connect to server. Make server adaptSimon Howard
its player limit to match. Update GUI code to adjust waiting screen list size appropriately. Subversion-branch: /branches/v2-branch Subversion-revision: 2442
2011-10-19Change MAXPLAYERS to NET_MAXPLAYERS and add back individual MAXPLAYERSSimon Howard
defines for each game. Refactor "waiting screen" data code. Subversion-branch: /branches/v2-branch Subversion-revision: 2441
2011-10-17Tweak Strife buttons2 field to be differential against previous value,Simon Howard
rather than against zero. Subversion-branch: /branches/v2-branch Subversion-revision: 2438
2011-10-17Fix tic diffs to handle Strife fields correctly.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2436
2011-10-17Rework net_connect_data_t structure to include WAD and DehackedSimon Howard
checksums, plus the is_freedoom flag. Subversion-branch: /branches/v2-branch Subversion-revision: 2434
2011-10-14Convert Hexen to use common main loop code. Working multiplayer!Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2423
2011-09-17Add multiplayer query code to setup tool, and rework join gameSimon Howard
interface. Subversion-branch: /branches/v2-branch Subversion-revision: 2382
2010-11-20Remove dependency of network code on Doom code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2163
2009-05-07Diff tics containing Heretic/Hexen fields.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1512
2008-10-31- Delete the "all-in-one" project file and rename the solution file toRussell Rice
chocolate.sln - Create separate msvc projects for all games supported, which work the same as the codeblocks ones - Include fixes (nothing compiler specific, just additions of stdio.h) to build with msvc Subversion-branch: /branches/raven-branch Subversion-revision: 1371
2008-09-06Remove includes of doomdef.h where possible, move generic parts into topSimon Howard
level. Subversion-branch: /branches/raven-branch Subversion-revision: 1204
2008-01-24Fix fast / respawning monsters parameter not exchanged when startingSimon Howard
netgames (thanks GhostlyDeath). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1014
2007-06-27Interpret skill level setting as a signed integer, to allow -skill 0.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 927
2006-10-18Strip out CVS logs, RCS Id tags.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 704
2006-10-06Send deh/wad checksums to the server when connecting.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 688
2006-09-17Split off query data into a net_querydata_t structure in net_structrw.cSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 612
2006-09-01Sync the -loadgame parameter across all clients connected to a server.Simon Howard
Loading/saving multiplayer games should all work now. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 593
2006-05-05Syncronise the -timer/-avg parameters across all clients to avoid desyncs.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 475
2006-04-14Add ability to play using the Vanilla player sync codeSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 470
2006-03-02_Really_ fix -nomonsters.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 404
2006-02-27Working client sync: adjust the clock to try to match the latency of other Simon Howard
players. Allow the menu ticker to run even if the main game ticker doesn't run. Remove time request/response code (now using game latency). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 394
2006-02-23Add lowres_turn to indicate whether we generate angleturns which areSimon Howard
8-bit as opposed to 16-bit. This is used when recording demos without -longtics enabled. Sync this option between clients in a netgame, so that if one player is recording a Vanilla demo, all clients record in lowres. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 378
2006-02-23Add lowres_turn parameter to net_full_ticcmd_t structure r/w functionsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 376
2006-02-16Define a new type net_full_ticcmd_t, a structure containing all ticcmdsSimon Howard
for a given tic. Store received game data in a receive window. Add send queues for clients and add data from the receive window to generate complete sets of ticcmds. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 369
2006-01-14Include the game version in the settings structure.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 295
2006-01-13Update prototypes to match header. Make sure we include the header in theSimon Howard
source file. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 288
2006-01-13Signed integer read functions. Use these when reading ticcmd diffs.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 287
2006-01-11ticcmd diffs: allow compare and patching ticcmds, and reading/writingSimon Howard
ticdiffs to packets. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 281
2005-12-30Fix client code to correctly send reply to server on connection.Simon Howard
Add "waiting screen" while waiting for the game to start. Hook in the new networking code into the main game code. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 235