Paul Chote
0bbb32e8ac
Rework MapPreview custom rule handling.
...
The previous asynchronous approach did not work particularly well,
leading to large janks when switching to custom maps or opening the
mission browser.
This commit introduces two key changes:
* Rule loading for WorldActorInfo and PlayerActorInfo is made
synchronous, in preparation for the next commit which will
significantly optimize this path.
* The full ruleset loading, which is required for map validation,
is moved to the server-side and managed by a new ServerMapStatusCache.
The previous syntax check is expanded to include the ability to run
lint tests.
2021-04-21 18:57:44 +02:00
Paul Chote
abee274f88
Remove direct access to MapPreview.Rules.
2021-04-21 18:57:44 +02:00
Matthias Mailänder
5a0bcc01a6
Add a lint check for trait placement on hardcoded actor names.
2021-04-11 20:20:00 +02:00
reaperrr
aa834db1e3
Make perf.log output for ticking things opt-in
...
Both writing to perf.log frequently as well as GetTimestamp
aren't free and hurt performance particularly on slower systems
(which can have notably higher output to perf.log, further
amplifying the problem).
Therefore we make simulation perf logging opt-in.
Additionally, logging of the current tick and tick type
(local/net) is removed from debug.log, and some
remnant debug logging for kills and pips is removed
to keep performance-sensitive logging limited to
perf.log.
2021-04-10 15:59:24 +02:00
reaperrr
1a9dfc0893
Refactor GameSpeed setting
...
*Remove internal GameSpeed defaults
Enforce setting values explicitly all the time
Require definition of a DefaultSpeed
*Remove Global.Timestep default
*Remove the hacky Timestep/OrderLatency setting via LobbyInfo
*Fix shellmaps ignoring mod-defined gamespeeds
*Make DateTimeGlobal use the MapOptions gamespeed
2021-04-09 22:58:14 +01:00
Matthias Mailänder
d15e7f76fc
Port back to Mono.Nat and make discovery async.
2021-03-27 18:36:12 +00:00
teinarss
d60c05eff3
Change to use pattern matching
2021-03-27 17:29:20 +01:00
Matthias Mailänder
e13fd4816e
Extract the directory if the registry value points to a filename.
2021-03-20 18:42:02 +01:00
Paul Chote
80e92849da
Replace ResourceType with strings in interfaces/public methods.
2021-03-20 16:45:41 +01:00
Paul Chote
7e9d291223
Add IResourceRenderer interface.
2021-03-20 16:45:41 +01:00
Paul Chote
cbea08e1fe
Fix non-relative path handling in install logic.
2021-03-13 15:56:38 +01:00
Paul Chote
d52ba83f96
Replace terniary null checks with coalescing.
2021-03-08 18:11:25 +01:00
teinarss
7073279ab8
Replace WebClient with HttpClient
2021-03-07 16:04:57 +00:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Ivaylo Draganov
641b05eb21
Split settings panels logic and add support for custom panels
2021-02-08 11:25:50 +01:00
Paul Chote
2c09b1414c
Ignore invalid server entries instead of the entire list.
2021-01-30 13:44:51 +01:00
Paul Chote
4251ed69bb
Keep Discord join button active for spectators.
2021-01-29 14:38:13 +01:00
teinarss
30e5c807b0
Add Map and server name to discord details
2021-01-22 14:14:02 +01:00
Paul Chote
53db1230ab
Move default tileset parsing to Mods.Common.
2021-01-11 21:57:55 +01:00
Paul Chote
995c33a942
Remove Ruleset.TileSet.
2021-01-11 21:57:55 +01:00
Paul Chote
2782620081
Add ITemplatedTerrainInfo interface.
2021-01-11 21:57:55 +01:00
Paul Chote
be2ca77acf
Add ITerrainInfoNotifyMapCreated interface.
2021-01-11 21:57:55 +01:00
Paul Chote
87790069e9
Add ITerrainInfo interface.
2021-01-11 21:57:55 +01:00
Paul Chote
0a374e2264
Move ownership of tile sprites to the terrain renderer.
2021-01-11 21:57:55 +01:00
Paul Chote
02a2624bcc
Add a per-player handicap option to the lobby.
...
Handicaps reduce unit health, firepower, and build speed.
2021-01-10 22:23:52 +01:00
Matthias Mailänder
7bc17b59f5
Add a generic video player widget.
2021-01-10 10:21:17 +01:00
Paul Chote
16d0f8a5a6
Add a setting to pause the shellmap.
2021-01-10 00:23:30 +01:00
nvrnight
b3f39bffce
Issue #18936 : The game no longer crashes when TextFieldWidget sends Enter key press and onSelect action is null.
2021-01-03 12:26:52 +01:00
Ivaylo Draganov
ff60540fac
Add player random faction info in the objectives panel
2020-12-30 01:44:50 +00:00
Paul Chote
6e7ad9df25
Remove vestigial translation plumbing.
...
This was never completed to the level required to
be properly used ingame.
2020-12-25 16:18:28 +01:00
Matthias Mailänder
fb20479379
Add .vxl support to the asset browser.
2020-12-25 00:00:11 +00:00
Paul Chote
1cc1f93fb0
Rename Platform.GameDir to Platform.EngineDir.
2020-11-24 17:53:48 +01:00
Paul Chote
de7a84e8ed
Don't use Platform.ResolvePath when constructing hardcoded paths.
2020-11-22 16:42:46 +01:00
Paul Chote
1dd5b113c7
Fix asset browser and map editor paths for SDK-based mods.
2020-11-22 16:42:46 +01:00
abcdefg30
8840a690c6
Fix maps without spawn points no longer working
2020-11-15 09:38:02 +01:00
abcdefg30
77e85e7c58
Change DisabledSpawnPoints from List to HashSet
2020-11-15 09:38:02 +01:00
Pavol Molnar
6943cf5ad5
fixed tooltip, issue 18301
2020-11-15 09:36:56 +01:00
abcdefg30
10f645bf77
Replace usage of the Stances dict by a method call
2020-11-14 11:04:41 +00:00
abcdefg30
eda9966d27
Rename Stance to PlayerRelationship
2020-11-14 11:04:41 +00:00
Trevor Nichols
d66e0bb22e
Right click lobby spawns to disable or remove players.
2020-11-07 19:33:28 +01:00
Paul Chote
6b6b1e56e6
Resolve random players and spawn points in server replays.
2020-10-31 14:31:44 +01:00
Paul Chote
87c5cc96ad
Add an "Automatic" GL profile.
2020-10-12 12:24:22 +02:00
Paul Chote
60df247416
Streamline SpawnOccupant management.
2020-10-09 12:19:19 +02:00
Niklas Holma
8596ce00cc
Add a text field next to the map editor actor initializer sliders.
2020-09-28 15:46:19 +02:00
Matthias Mailänder
7a7393b9f0
cachedWidth is never assigned.
2020-09-27 22:56:41 +01:00
Matthias Mailänder
f13e6fb76d
Fix Analyzer warning V3008 variable is assigned values twice.
2020-09-27 22:56:41 +01:00
Matthias Mailänder
8d7e5f4663
Fix Analyzer warning: V3022 Expression is always true.
2020-09-26 22:59:39 +01:00
Paul Chote
1aca6da1ea
Hide "Furthest" battlefield camera option if the mod disables it.
2020-09-20 20:28:28 +02:00
abcdefg30
3fc5859f08
Add 'AddToAssetsValue' to 'UpdatesPlayerStatistics'
2020-09-11 23:44:30 +02:00
abcdefg30
1a77f7320b
Fix a crash when updating the DiscordPresence party size
2020-09-05 10:36:35 +02:00