Commit Graph

450 Commits

Author SHA1 Message Date
Paul Chote
efccd610d3 Simplify server tick timeout handling. 2018-08-18 09:31:11 +01:00
Paul Chote
c74159e549 Add player authentication backend. 2018-07-29 00:30:17 +02:00
teinarss
0c1b11ed4f Added Dedicated to GlobalSettings 2018-07-05 23:22:09 +01:00
Paul Chote
8c0f4fde81 Fix newlines in C# files. 2018-07-01 11:08:32 +02:00
Paul Chote
6e400c5d60 Don't trigger LobbyInfoSynced on ping update.
This interface is only used for updating the master
server advertisement, which doesn't use the player
pings at all.  Removing this should reduce the
master server traffic by a factor of several tens.
2018-05-30 18:05:32 +02:00
Paul Chote
178b6b658d Remove broken DEV_VERSION warning.
This (before it was broken) was hardcoding upstream policy-specific
conventions into the core engine.
2018-05-20 13:55:10 +02:00
Paul Chote
9073249fe4 Fix player connection notifications.
New player notifications are now never reported to the joining player,
and always reported in the dedicated server output.
2018-05-20 13:55:10 +02:00
Paul Chote
c77051790a Fix spurious "This isn't a server order" logging on player disconnect. 2018-05-20 12:35:58 +02:00
Paul Chote
7be71eb381 Remove broken Server.ExternalPort setting. 2018-03-31 18:09:07 +02:00
RoosterDragon
d0f7511a62 Add TrimExcess to TypeDictionary.
After adding is finished, this can be used to reduce the memory footprint of the dictionary.
2018-03-21 12:08:23 +01:00
Peter Antal
8fa94c5301 -Perform null check and add exception logging in RuleSet.
-Explicitly recognize connection termination on ServerOrder.Deserialize()
-Use explicit exception type for SDL2HardwareCursor failures.
2018-03-21 01:55:42 -03:00
Peter Antal
3ce2417a06 Create SupportDirPrefix and IsPathRelativeToSupportDirectory() as members on Platform class. 2018-03-10 12:54:01 +00:00
Peter Antal
9ce0bcb0b7 Mop up active Stylecop nits.
Style consistency cleanup.
2018-03-03 11:45:35 +00:00
Arular101
8a60918841 Update copyright notice year to 2018 2018-01-17 00:47:34 +01:00
Paul Chote
205c45198c Remove secondary AllowPortForward setting.
The global setting is fine, and this simplifies
both the code and the UI.
2017-12-24 01:47:44 +01:00
Paul Chote
4c64a37e1d Reject invalid orders from unvalidated clients. 2017-12-23 21:48:59 +01:00
RoosterDragon
ca01a1f186 Presize MemoryStream when possible.
Also use GetBuffer when we know we have presized the stream to the exact required size to prevent a needless copy.
2017-12-19 00:59:11 +01:00
rob-v
78bedb0513 Fix IsSinglePlayer 2017-06-27 22:43:15 +01:00
rob-v
b2e6a0484b Fix Selecting a map resets player color 2017-05-14 14:00:45 +01:00
Paul Chote
b71d4ba7a3 Remove lag-drop frame workaround. 2017-02-04 16:35:55 +00:00
Paul Chote
07c9c9ee8c Only update MostRecentFrame if the frame is the most recent.
This fixes it being reset to 0 after an immediate order
and not being set before dispatching (which may use it).
2017-02-04 16:35:51 +00:00
Taryn Hill
43317e0f5d Update copyright notice year to 2017 2016-12-31 23:46:13 -06:00
Oliver Brakmann
b4f6b25941 Merge pull request #12459 from pchote/fix-server-exploit
Reset server slots and reenable spectators when the last player quits.
2016-12-09 21:34:50 +01:00
Paul Chote
1153cd2f7c Reset slot configuration when all players leave a dedicated server. 2016-12-08 21:06:24 +00:00
Paul Chote
5188a08c81 Remove broken and disabled by default Server.TimeOut setting. 2016-12-08 20:49:28 +00:00
Paul Chote
bbe4864921 Fix dedicated server crash with AllowPortForward. 2016-11-11 13:06:00 +00:00
Oliver Brakmann
90e3912bcd Merge pull request #12076 from pchote/fix-orphaned-pings
Clean up ClientPings when a player drops from the server.
2016-09-21 18:17:26 +02:00
Oliver Brakmann
e108305f4e Merge pull request #12074 from RoosterDragon/runtime-long
Change Game.RunTime to a long to prevent overflow
2016-09-21 18:07:52 +02:00
Oliver Brakmann
92ec538208 Merge pull request #12077 from pchote/crashlog-dates
Include dates in crash/sync log filenames.
2016-09-21 17:54:06 +02:00
Paul Chote
bfa0c008eb Restore missing GameUid. 2016-09-21 05:09:16 +01:00
Paul Chote
709bd5b441 Clean up ClientPings when a player drops from the server. 2016-09-20 21:13:07 +01:00
Paul Chote
093053fd93 Read data from *all* connections to the server. 2016-09-20 20:55:52 +01:00
RoosterDragon
2ffea5db54 Change Game.RunTime to a long to prevent overflow. 2016-09-20 19:06:10 +01:00
abcdefg30
57d6f678e1 Remove an outdated TODO comment 2016-08-27 19:24:25 +02:00
Matthias Mailänder
880d848a66 Avoid duplication in server messages and fix a typo. 2016-08-21 18:27:23 +02:00
Paul Chote
bf4867909f Rename Manifest.Mod -> Metadata. 2016-08-08 22:36:07 +01:00
Paul Chote
3df9efb95d Rework mod enumeration / caching.
- Replaced ModMetadata.AllMods with Game.Mods.
- Store / reference mod Manifest instead of ModMetadata.
- Removes engine dependency on ModContent class.
2016-08-08 22:36:07 +01:00
Paul Chote
7caf636222 Port game speed selection to new lobby backend. 2016-07-03 15:46:08 +01:00
reaperrr
7ed792ba88 Merge pull request #11286 from Mailaender/open.nat-2.0.16
Dump Mono.NAT in favor of Open.Nat 2.0.16
2016-06-26 16:16:11 +02:00
Oliver Brakmann
8e2adc7627 Disable singleplayer games by default on dedicated servers 2016-06-22 20:37:31 +02:00
Matthias Mailänder
5245df729d Migrate to Open.Nat version 2.0.16
Move the dependency from all libraries to game engine only.
Initialize after the renderer setup to ensure a visible window.
2016-06-19 08:41:14 +02:00
Paul Chote
eb884ca76f Convert lobby checkboxes to new options backend. 2016-06-04 10:03:06 +01:00
Paul Chote
923883fad7 Fix and improve custom rule detection. 2016-04-09 13:40:44 -04:00
Paul Chote
a79f40bf4b Log all player joins on dedicated servers. 2016-04-02 17:10:00 +01:00
Paul Chote
4b0aa77ce5 Add missing timestamp to dedicated server logs. 2016-04-02 17:09:52 +01:00
Paul Chote
706d3ae52a Move dedicated server code to OpenRA.Server.exe 2016-03-30 19:26:50 +01:00
Paul Chote
fee899f63d Fix unnecessary uses of Game.ModData. 2016-03-29 23:46:12 +01:00
Paul Chote
1ba7a5e59e Use MapPreview on the server. 2016-03-12 20:07:07 +00:00
Paul Chote
20e8bc249d Restore support for inline map rules. 2016-03-10 19:27:50 +00:00
Paul Chote
8017844a15 Remove LobbyDefaults from mod.yaml. 2016-03-07 21:41:13 +00:00