Matthias Mailänder
98b87004cc
Bump SharpZipLib.
2021-09-26 11:18:15 +01:00
Paul Chote
8588af1001
Disable chat for the first 5s (configurable) after joining a server.
2021-09-23 12:52:20 +02:00
Paul Chote
2424ddc79a
Move NetTickScale (now NetFrameInterval) control to the server.
2021-09-21 15:12:36 +02:00
Paul Chote
df798fb620
Overhaul client latency calculations.
...
The ping/pong orders are replaced with a dedicated
(and much smaller) Ping packet that is handled
directly in the client and server Connection wrappers.
This allows clients to respond when the orders are
processed, instead of queuing the pong order to be
sent in the next frame (which added an extra 120ms
of unwanted latency).
The ping frequency has been raised to 1Hz, and pings
are now routed through the server events queue in
preparation for the future dynamic latency system.
The raw ping numbers are no longer sent to clients,
the server instead evaluates a single ConnectionQuality
value that in the future may be based on more than
just the ping times.
2021-09-21 15:12:36 +02:00
Paul Chote
67face8cf0
Rename connection packet handling.
2021-09-21 15:12:36 +02:00
Matthias Mailänder
f08a0b113e
Allow mods to customize application title.
2021-09-19 22:29:50 +02:00
Matthias Mailänder
5bf4daddec
Set the default game name to the player name.
2021-09-15 18:39:24 +02:00
Paul Chote
54c08748e0
Overhaul player disconnect notifications.
2021-09-12 22:53:50 +02:00
Vapre
5ae4662f08
RunUnsynced, do not recalculate sync hash on reentry. Cache debug settings.
2021-09-12 10:06:44 +02:00
abcdefg30
0b75991fbc
Make the editor use an EchoConnection instead of a local server
2021-09-07 20:45:50 +02:00
Paul Chote
e0e219793f
Fix shellmap OrderManager use after dispose.
2021-09-02 23:23:23 +02:00
Paul Chote
8f412f869d
Move order latency control to the server.
2021-09-02 23:23:23 +02:00
Paul Chote
6421c17515
Rework IConnection implementations:
...
* EchoConnection is now a trivial buffer that stores
and repeats orders directly without serialization.
* NetworkConnection no longer subclasses EchoConnection,
and now also caches local orders without serialization.
* Replay recording was moved to NetworkConnection
(it is never used on EchoConnection).
2021-09-02 23:23:23 +02:00
Paul Chote
408f30b5cd
Extract OrderIO.SerializeOrders helper.
...
Note: This changes immediate orders to no longer be
individually framed in their own packets.
2021-09-02 23:23:23 +02:00
teinarss
db74f155bb
Update DropClient to always drop Connection
2021-09-02 08:05:37 +02:00
Andre Mohren
2c84c43607
Fixed odd sprite size "frame hopping".
2021-09-02 07:34:13 +02:00
Paul Chote
e389c00a11
Remove packet byte wrangling from OrderManager.
2021-08-26 22:00:59 +02:00
Paul Chote
512dee0ac0
Fix rendering glitches with EnableDepthBuffer disabled.
2021-08-25 17:42:44 +02:00
teinarss
b4256df9c1
Cleanup in Connection
2021-08-22 09:43:25 +01:00
Paul Chote
3551eb3128
Fix map preview bounds calculation.
2021-08-21 14:16:02 +02:00
Paul Chote
7f94d67d39
Replace Map.CustomTerrain radar colors with IRadarTerrainLayer.
...
* TSVeinsRenderer now shows border cells on the radar
* BuildableTerrainLayer now uses the radar colors defined on the individual tiles
* CliffBackImpassabilityLayer no longer overrides the underlying terrain color.
2021-08-21 14:16:02 +02:00
Paul Chote
dcd3e8d444
Ignore terrain slopes when calculating model shadows.
...
This is less realistic, but better matches the original
game and is the only practical way to reduce visual issues
caused by long shadows being cast over multiple cells.
2021-08-21 13:45:41 +02:00
Paul Chote
68710e48a6
Add terrain orientation support for Mobile.
2021-08-21 13:45:41 +02:00
Paul Chote
c88d1bbefa
Add WRot SLerp and axis-angle ctor.
...
These allow more complex calculations to be made
using rotations.
2021-08-21 13:45:41 +02:00
Paul Chote
27f9f35efb
Fix incorrect world height to screen depth conversion.
2021-08-20 20:17:55 +02:00
Paul Chote
ef1aee5e95
Fix and document the depth buffer calculations.
2021-08-20 20:17:55 +02:00
Paul Chote
962d6496bd
Overhaul depth preview rendering:
...
* Replace Jet color map with grayscale
* Added Shift + \ hotkey to toggle preview
* Added Shift + [, Shift + ] hotkeys to change contrast
* Added Shift + ;, Shift + ' hotkeys to change offset
2021-08-20 20:17:55 +02:00
Vapre
2ea2815529
CallFunc, avoid null check.
2021-08-20 12:31:04 +02:00
abcdefg30
b8ba1b36fe
Don't throw an exception when creating a hardware cursor fails
2021-08-14 17:11:34 +01:00
teinarss
fba4c5049c
Replace Thread.CurrentThread.ManagedThreadId with Environment.CurrentManagedThreadId
2021-08-10 23:02:18 +02:00
abcdefg30
ba7e1319ac
Remove DisableWindowsRenderThread and use threaded renderering for non windowed mode
2021-08-07 14:49:09 +01:00
Paul Chote
7a93ff3258
Add support for TS-style tinted target flashes.
2021-08-02 21:50:32 +02:00
Paul Chote
1ecb3bf99a
Don't add empty Translations nodes to maps.
2021-07-31 13:14:46 +02:00
Paul Chote
24f64ae1a8
Fix an edge case where the wrong sheet may be mapped to a depth sprite.
2021-07-25 19:20:19 +02:00
Paul Chote
70892a6661
Change DrawSprite calls to provide scales instead of sizes.
...
This allows us to remove a hacky workaround for calculating
depth offsets when sprites have size.Z == 0.
2021-07-25 00:32:17 +02:00
Vapre
2e6f444285
Map.Contains check grid type once.
2021-07-24 15:34:56 +02:00
Vapre
627fd4e68b
CellLayer.Index inline CPos.ToMPos.
2021-07-16 09:51:55 +02:00
teinarss
f3777a25e6
Refactor send and receive Orders loop
2021-07-10 23:35:47 +02:00
teinarss
5e1468facb
Fix NRE with ConnectionStateChanged
2021-07-08 01:12:05 +02:00
Paul Chote
aa798c252b
Remove "X has joined the game." notification when starting a Skirmish.
2021-07-06 13:12:51 +02:00
Ivaylo Draganov
2ea6bfba7b
Allow the player to toggle the display of UI Feedback chat pool
2021-07-04 14:02:58 +01:00
Ivaylo Draganov
6af354ff99
Split chat lines into pools
...
- Add a common class for passing around chat lines
- Add wrapper methods for adding chat lines
- Combine repeated chat lines in the display widget
2021-07-04 14:02:58 +01:00
Paul Chote
bc51461427
Make sure the hue returned by Color.RgbToHsv is positive.
2021-07-03 12:18:25 -05:00
teinarss
1f1373509e
Refactor server orders
2021-07-03 14:55:03 +01:00
abc013
2742985520
Prevent saving and starting a map when max player count is exceeded.
2021-07-03 08:25:16 -05:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
Ivaylo Draganov
1af2ab566e
Fix player handicap erroneously set to player team
2021-06-25 09:25:17 -05:00
Andre Mohren
62207313a0
32bpp assets dont need a palette to be defined.
2021-06-25 10:33:54 +02:00
teinarss
b3b10729cd
Remove ServerExternalMod from OrderManager
2021-06-12 12:50:51 +02:00
teinarss
91f99eeb4c
Cleanup in Connect
2021-06-12 12:50:51 +02:00