Map which Include ERCC

Information and discussion for custom maps and mods.
Post Reply
bioinfornatics
Posts: 2
Joined: Mon Oct 04, 2021 8:35 pm

Map which Include ERCC

Post by bioinfornatics »

Dear, I would like to inform that all maps which include ERCC seems to not be compatible with latest release.
As example DI 4[AR] map

Code: Select all

$ ./utility.sh ra --check-yaml DI-4AR.oramap
OpenRA.Utility(1,1): Error: Missing Type: SpawnMPUnitsInfo
OpenRA.Utility(1,1): Error: Missing Type: MPStartLocationsInfo
Testing map: DI 4[AR]
OpenRA.Utility(1,1): Warning: Actor type `proc` grants conditions that are not consumed: critical
OpenRA.Utility(1,1): Error: rules-ERCC.yaml:71 refers to a trait field `ValidStances` that does not exist on `ProximityExternalCondition`.
OpenRA.Utility(1,1): Error: rules-ERCC.yaml:80 refers to a trait field `ValidStances` that does not exist on `ProximityExternalCondition`.
OpenRA.Utility(1,1): Error: OpenRA.Mods.Common.Lint.CheckUnknownTraitFields failed with exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenRA.Mods.Common.Lint.CheckUnknownTraitFields.CheckActors(IEnumerable`1 actors, Action`1 emitError, ModData modData) in /home/jmercier/OpenRA/OpenRA.Mods.Common/Lint/CheckUnknownTraitFields.cs:line 75
   at OpenRA.Mods.Common.Lint.CheckUnknownTraitFields.CheckMapYaml(Action`1 emitError, ModData modData, IReadOnlyFileSystem fileSystem, MiniYaml ruleDefinitions) in /home/jmercier/OpenRA/OpenRA.Mods.Common/Lint/CheckUnknownTraitFields.cs:line 92
   at OpenRA.Mods.Common.Lint.CheckUnknownTraitFields.OpenRA.Mods.Common.Lint.ILintMapPass.Run(Action`1 emitError, Action`1 emitWarning, ModData modData, Map map) in /home/jmercier/OpenRA/OpenRA.Mods.Common/Lint/CheckUnknownTraitFields.cs:line 30
   at OpenRA.Mods.Common.UtilityCommands.CheckYaml.OpenRA.IUtilityCommand.Run(Utility utility, String[] args) in /home/jmercier/OpenRA/OpenRA.Mods.Common/UtilityCommands/CheckYaml.cs:line 108
Errors: 5

Ronald
Posts: 166
Joined: Fri Aug 30, 2019 9:05 pm

Re: Map which Include ERCC

Post by Ronald »

TIP: Perhaps it is a good practice to develop is a regular (automated?) embedded YAML rescan / re-parser / re-LINT-ing of ALL currently
uploaded maps on the Resource Center. just before a new version op OpenRA is being released out in the wild.

TTTPPP
Posts: 89
Joined: Wed Sep 05, 2018 8:25 pm

Re: Map which Include ERCC

Post by TTTPPP »

The map you've linked to was uploaded quite a long time ago. More recent uploads have a working ERCC, or you can grab the extension from here: https://github.com/ubitux/oratools/tree ... s/ercc-bcc

bioinfornatics
Posts: 2
Joined: Mon Oct 04, 2021 8:35 pm

Re: Map which Include ERCC

Post by bioinfornatics »

thanks for the link.

In order to maintain all those maps maybe a feature which allow to reference mod by name and version «à la» python such as

Code: Select all

import ERCC >=1.0
would ease both to maintaining all maps and the use of those mod/plugin a dedicated repo would be awsome

Post Reply