Matthias Mailänder
1c2ce0dcc0
Deprecate string format log shorthand.
2023-05-05 19:03:09 +02:00
Matthias Mailänder
9e659cacf2
Fix rally point sprites not being truely optional.
2023-05-04 22:13:59 +03:00
Matthias Mailänder
c5e9567875
Fix a null reference exception upon empty Fluent strings.
2023-05-02 22:25:51 +02:00
Gustas
44f1af7059
Move TileScale to MapGrid
2023-05-02 16:37:30 +03:00
Matthias Mailänder
4f7a01a291
Localize difficulty settings.
2023-04-25 21:33:02 +03:00
Matthias Mailänder
af6330b1bd
Allow localisation of dictionary values.
2023-04-25 21:33:02 +03:00
Matthias Mailänder
55ff0ac1f4
Inline variables.
2023-04-25 21:33:02 +03:00
Matthias Mailänder
0d36bc19c6
Document radar appear trait and fields.
2023-04-22 23:24:24 +02:00
Gustas
a9a7777293
Report linguini parse errors
...
Reports duplicate keys
2023-04-22 19:23:41 +02:00
Gustas
bf66068557
Add per map linting
2023-04-22 19:23:41 +02:00
Matthias Mailänder
68eec52cef
Add TranslationProvider
2023-04-22 19:23:41 +02:00
Gustas
a065e6a47c
Fix map level lobby options not being translated
2023-04-22 19:23:41 +02:00
Gustas
dc390a7301
Add IMove.MoveOntoTarget interface
...
In `TraitsInterfaces` we expose offset as WPos instead of CPos. In an upcoming PR we'll translate the same change to yaml.
2023-04-21 18:29:43 +02:00
Gustas
ad683d9226
Add MoveOnto Activity
...
No functional changes to `MoveWithinRange` nor `MoveAdjacentTo`. I've just
moved around code to for allow better overwriting.
2023-04-21 18:29:43 +02:00
Gustas
1c2eaa2654
Use nameof for ContrailEndColor description
2023-04-21 17:58:42 +02:00
Gustas
7ef1dccdcf
Add ContrailEndWidth
2023-04-21 17:58:42 +02:00
RoosterDragon
7507333cd3
Fix missing Flags attribute on CABFlags enum.
2023-04-17 00:05:12 +02:00
RoosterDragon
a120b9d37e
Fix CA2208
2023-04-17 00:05:12 +02:00
RoosterDragon
1b1b9dc29b
Fix CA2215
2023-04-17 00:05:12 +02:00
RoosterDragon
ef04e2e1e8
Fix CA2019
2023-04-17 00:05:12 +02:00
RoosterDragon
c3e6c4685f
Fix CA1849
2023-04-17 00:05:12 +02:00
RoosterDragon
07fb5e8027
Fix CA1841
2023-04-17 00:05:12 +02:00
RoosterDragon
01eaa6b228
Fix CA1064
2023-04-17 00:05:12 +02:00
Gustas
1db982276a
Fix actors being added to world while world actors are being iterated
2023-04-15 17:26:02 +02:00
penev92
01e6babd54
Moved ImportLegacyMapCommand to OpenRA.Mods.Cnc
...
Also renamed to `ImportGen1MapCommand`.
Also moved Extensions.DistinctBy().
2023-04-14 20:50:08 +03:00
Ivaylo Draganov
96d023de87
Don't change cursor when mousing over label widgets
...
Labels don't handle input so the cursor should not change over them.
2023-04-12 12:09:50 +03:00
Gustas
3ca2bb1d23
Fix IDE0074, SA1316 and followup CS8141
2023-04-09 10:26:04 +01:00
RoosterDragon
595717fff0
Enable Code Quality Rules
...
Enforces a variety of CAxxxx rules that do not have existing violations.
For the benefit of dotnet_code_quality.CA2241.try_determine_additional_string_formatting_methods_automatically = true, rename parameters of methods that forward to string.Format so format issues will get detected automatically.
2023-04-08 23:15:40 +02:00
Gustas
d838d08570
Add IColorPickerManagerInfo interface
2023-04-08 18:05:20 +03:00
darkademic
265f915442
Resurrected old colour picker.
2023-04-08 18:05:20 +03:00
RoosterDragon
14c0d011ea
Fix SA1414
2023-04-08 16:51:51 +03:00
RoosterDragon
a167f9680f
Fix SA1316
2023-04-08 16:51:51 +03:00
RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
RoosterDragon
164abfdae1
Fix IDE0083
2023-04-08 16:51:51 +03:00
RoosterDragon
bd2b3d9793
Fix IDE0074
2023-04-08 16:51:51 +03:00
RoosterDragon
cbd0583289
Fix IDE0062
2023-04-08 16:51:51 +03:00
RoosterDragon
023d80b94d
Fix IDE0057
2023-04-08 16:51:51 +03:00
RoosterDragon
5254348819
Fix IDE0056
2023-04-08 16:51:51 +03:00
RoosterDragon
4ec5a4b34a
Fix reversed path searches from inaccessible locations.
...
The Harvester trait and MoveAdjacentTo activity called the pathfinder but had a single source and multiple targets. The pathfinder interface only allows for the opposite: multiple sources and a single target. To work around this they would swap the inputs. This works in most cases but not all cases. One aspect of asymmetry is that an actor may move out of an inaccessible source cell, but not onto an inaccessible target cell.
Searches that involved an inaccessible source cell and that applied this swapping method would therefore fail to return a path, when a valid path was possible. Although a rare case, once good way to reproduce is to use a production building that spawns actors on inaccessible cells around it, such as the RA naval yard. A move order uses the pathfinder correctly and the unit will move out. Using a force attack causes the unit to use the broken "swapped" mechanism in MoveAdjacentTo and it will be stuck.
This asymmetry has been longstanding but the pathfinding infrastructure only sporadically accounted for it. It is now documented and applied consistently. Create a new overload on the pathfinder trait that allows a single source and multiple targets, so callers have an overload that does what they need and won't be tempted to swap the positions and run into this issue.
Internally, this requires us to teach Locomotor to ignore the self actor when performing movement cost checks for these "in reverse" searches so the unit doesn't consider the cell blocked by itself.
2023-04-07 16:38:37 +01:00
Gustas
e4ba9733fe
Add sequences linting to ingame lobby
2023-04-07 16:23:30 +01:00
IceReaper
a332fba702
IDFiles should be optional.
2023-04-05 21:13:11 +02:00
RoosterDragon
83561d639d
Update LangVersion to C# 9.
...
mono was the bottleneck restricting our ability to use a newer C# version. mono 6.12 is currently available. Although poorly documented on their website, this supports C# 9. https://www.mono-project.com/docs/about-mono/versioning/#mono-source-versioning indicates mono 6.12 uses Roslyn 3.9.0. https://github.com/dotnet/roslyn/blob/main/docs/wiki/NuGet-packages.md#versioning indicates Roslyn 3.9.0 supports C# 9.
This unlocks C# 8 and C# 9 features previously unavailable to us.
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-80
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-9
A newer version of StyleCop is required to avoid rules tripping up on the new syntax. Currently only prerelease versions are available but their use is encouraged https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3420#issuecomment-994899135
Fix style rule violations on existing rules where the newer language version makes some existing casts redundant or allows use of the null coalescing assignment operator.
2023-04-05 15:27:41 +03:00
RoosterDragon
9dd4f938da
Cache reflection calls when running utility lints and commands.
...
Reduces runtime of --check-yaml command to 70% of original.
2023-04-05 00:25:32 +02:00
Gustas
1a2aafa17c
Fix backwards movement not canceling when BackwardDuration times out
2023-04-04 20:25:04 +02:00
Gustas
a4e80e1153
Fix backwards movement not working correctly when turning in an arc
2023-04-04 20:25:04 +02:00
dnqbob
27f780c5d1
Using support power can uncloak actor
2023-04-04 18:26:11 +03:00
IceReaper
11ab4a7935
Support dos paths in registry.
2023-04-04 16:20:05 +02:00
IceReaper
4dd532f60e
Implemented MP3 detection.
2023-04-03 20:05:52 +02:00
IceReaper
138715b509
Added Zip support to installer source actions.
2023-04-03 17:57:16 +02:00
IceReaper
d97df78f4f
Steam and Gog resolvers now take IDFiles into account.
2023-04-03 17:57:16 +02:00