Commit Graph

324 Commits

Author SHA1 Message Date
RoosterDragon
3b5798b5e8 Fix cancellation of downloads.
The Download class cancels asynchronously, which means callers must handle cancellation inside the completion event, and not after requesting cancellation.
2016-07-30 16:27:45 +01:00
reaperrr
526f851489 Merge pull request #11426 from pchote/actorpreview-dynamic-facing
Support dynamic ActorPreview facings and creating previews from live actors.
2016-06-20 14:38:11 +02:00
Paul Chote
55cd2ca8f5 Move initial map suitability calculation to MapCache.
This was previously trying to use values that had
not yet been initialised, which meant that *all*
maps were treated as unsuitable.  This would cause
the mod to always fall back to the first installed
map.
2016-06-18 11:04:37 +01:00
teees
b7bf7b6ec0 Move mod-level ActorInits out of the engine. 2016-06-15 20:35:22 +01:00
Paul Chote
b4d1517d0d Set yaml filename when loading from FileSystem. 2016-06-04 15:23:44 +01:00
abcdefg30
72ce367522 Fix a wrong string.Format index in the Map ctor 2016-05-24 21:01:01 +02:00
Paul Chote
756d2428d9 Add depth support to TileSet. 2016-04-21 17:23:08 +01:00
Matthias Mailänder
48ea9dc300 Fix NRE if package download fails or is corrupted. 2016-04-17 15:57:00 +02:00
Oliver Brakmann
b25eb81a42 Fix ready checkbox in the lobby being unusable after installing a map 2016-04-12 18:30:37 +02:00
Paul Chote
dabea59b7d Pass depth scale factors to vertex shaders. 2016-04-10 09:41:01 -04:00
Paul Chote
923883fad7 Fix and improve custom rule detection. 2016-04-09 13:40:44 -04:00
Matthias Mailänder
d57e53dc53 Merge pull request #10992 from pchote/server-maps
Allow Dedicated Servers to query map info from the Resource Center.
2016-04-03 12:19:41 +02:00
Paul Chote
4ec1369553 Let servers query map details from the resource centre. 2016-03-31 21:08:36 +01:00
Paul Chote
65f7d46025 Parse map rules and players from remote maps. 2016-03-31 21:08:36 +01:00
Paul Chote
81f22f8871 Remove Game.RunAfterTick from UpdateRemoteSearch.
RunAfterTick isn't available from the Server.
2016-03-31 21:08:36 +01:00
Paul Chote
b5c2703eba Pass random to ChooseInitialMap. 2016-03-29 23:46:12 +01:00
Paul Chote
fee899f63d Fix unnecessary uses of Game.ModData. 2016-03-29 23:46:12 +01:00
Paul Chote
2150a5e865 Move ChooseInitialMap to MapCache. 2016-03-29 23:46:11 +01:00
Pavel Penev
c78ad58e4b Merge pull request #10948 from pchote/custom-map-merger
Add --map-rules utility command for the resource center
2016-03-27 22:12:47 +03:00
Paul Chote
96eda08677 Replace map type with a category list. 2016-03-27 12:16:55 +01:00
Paul Chote
c696c318c4 Log rule errors when loading from MapPreview. 2016-03-26 17:26:51 +00:00
Paul Chote
3e00d72255 Rework map data load/save. 2016-03-21 23:15:12 +00:00
Matthias Mailänder
ed6067cd2f Merge pull request #10939 from pchote/fix-map-install-kick
Notify the server after installing a map.
2016-03-21 20:37:12 +01:00
Matthias Mailänder
dd0d8c86c6 Merge pull request #10942 from pchote/remove-map-lazyness
Remove map lazyness.
2016-03-21 20:23:47 +01:00
Paul Chote
4052da3ea6 Move Map.TilesByDistance to MapGrid and make non-static. 2016-03-20 21:41:04 +00:00
Paul Chote
0dc939e0e8 Notify the server after installing a map. 2016-03-18 20:53:48 +00:00
Paul Chote
e6b28c2a00 Remove Map.AssetExists. 2016-03-18 20:23:52 +00:00
Paul Chote
1e5065e06a Remove lazy loading of map rules. 2016-03-18 20:23:52 +00:00
Paul Chote
4a7ef68b39 Remove Map.SpawnPoints. 2016-03-18 20:16:25 +00:00
Paul Chote
65df25b1a4 Remove lazy loading of binary map data. 2016-03-18 20:16:24 +00:00
Paul Chote
d40bff3fd9 Support map-defined AI in the lobby. 2016-03-16 21:03:31 +00:00
Paul Chote
ab6a9597bb Remove Map usage from LobbyLogic. 2016-03-16 21:03:31 +00:00
Paul Chote
e79fbe1bb9 Reference SubCells directly from MapGrid. 2016-03-16 18:57:07 +00:00
abcdefg30
e1b2f5a280 Merge pull request #10901 from pchote/server-maps
Remove Map usage from the server and mission browser.
2016-03-13 11:24:04 +01:00
Paul Chote
6c319d53dd Remove an obsolete comment from Map. 2016-03-12 20:01:39 +00:00
Paul Chote
be5eee0227 Allow rules to be constructed from a MapPreview. 2016-03-12 20:01:39 +00:00
Paul Chote
7993068c8f Remove Map.SequenceProvider. 2016-03-12 19:46:20 +00:00
abcdefg30
d7bdc840d6 Merge pull request #10909 from pchote/remove-ruleset-cache
Remove ruleset cache
2016-03-12 20:41:03 +01:00
abcdefg30
6c4d24e505 Merge pull request #10851 from obrakmann/prod-from-map-edge_ground-units-fixes
Fix ProductionFromMapEdge to work properly with ground units
2016-03-12 20:37:02 +01:00
Paul Chote
82a9d69a51 Remove RulesetCache and push rule parsing to background thread. 2016-03-11 21:18:32 +00:00
Paul Chote
a3b1baa654 Extract default TileSet/Sequence dictionaries to ModData. 2016-03-11 21:18:32 +00:00
Paul Chote
b0c0bf3151 Revert format upgrader and map importers saving rules to external file. 2016-03-11 16:46:22 +00:00
Paul Chote
20e8bc249d Restore support for inline map rules. 2016-03-10 19:27:50 +00:00
Paul Chote
c58520e41b Add upgrade rules for Map format 9 -> 10. 2016-03-08 22:19:25 +00:00
Paul Chote
9c4dd54fa3 Generate map previews on save. 2016-03-08 21:13:38 +00:00
Paul Chote
b969d61466 Move advanced map yaml to their own files. 2016-03-08 20:54:54 +00:00
Paul Chote
e59557f588 Include all yaml and lua files in Map UID. 2016-03-08 20:54:26 +00:00
Paul Chote
8532f4deef Move smudge definitions from Map to SmudgeLayer. 2016-03-08 20:54:26 +00:00
Paul Chote
4a7dfb9d4c Add upgrade rules for Map format 8 -> 9. 2016-03-07 21:41:14 +00:00
Paul Chote
01a14d9ae5 Move mission briefing to rules. 2016-03-07 21:41:14 +00:00