-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Error: Map contains invalid custom rules." hides the linter error #14030
Comments
I get this error even if I have incorrect syntax in my yaml files. |
Can you upload your files? |
Not sure if other files are relevant, this is settings.yaml. In map.yaml I've got: ...
Rules: rules/settings.yaml If I have extra/no tab or unwanted spaces in this file(for instance no tab before "Name" property of the pallete). World:
WeatherOverlay:
ChangingWindLevel: true
WindLevels: -2, 0, 2#-7, -5, 5, 7
WindTick: 150, 550
InstantWindChanges: false
UseSquares: true
ScatterDirection: 0, 0
ParticleSize: 0, 1
Gravity: 1.00, 1.00
SwingOffset: 1, 1.001
SwingSpeed: 0.001, 0.0015
SwingAmplitude: 1, 1.015
ParticleColors: D5C200, D5A100, D87F00, C6B700
GlobalLightingPaletteEffect:
ExcludePalettes: cursor, chrome, colorpicker, fog, shroud, alpha
Red: 1.05
Green: 1.05
Blue: 1
Ambient: 1.15
^Palettes:
PaletteFromFile@ra_units:
Name: ra_units
Filename: ratemp.pal
ShadowIndex: 4
RemapIndex: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95 then I get the many messages like: Maybe I'm not getting the point of this thread, but I thought it should throw error on incorrect syntax and stop further map check. Also I found that if I'm trying to pass anything but absolute path(all possible relative paths) to map as a parameter for --check-yaml I get this:
|
When you start the game and try to select your map, it says "Not compatible with this version of OpenRA", right? If it does that you could look into |
No, it just crashes and gives me option to view logs, and there is the same message in logs as I saw during the map check, at least part of it:
this part is not most useful IMO as not found actors are just consequence of syntax error. I must add that this happens when I'm trying to open map in editor. If I load it in game the Start game button is greyed out. |
It only says
OpenRA.Utility(1,1): Error: Map contains invalid custom rules.
instead of pointing to what actually failed. I first really noticed it during #13934, where Monster Tank Madness just gave this not helpful at all error, because a required field (IntoActor
) wasn't set for5tnk.husk
. I believe it is also one of the reasons for bad performance of the lint checks. The ones during ruleset loading are at least conflicting and probably even duplicating the effort making it way too expensive.The text was updated successfully, but these errors were encountered: