1. All those "ai" issues seem to be because the Linter is not able to determine that "ai" has actually been defined.
Code: Select all
this.ai = new worldScripts["oolite-libPriorityAI"].PriorityAIController(this.ship);
ai.setParameter("oolite_flag_watchForCargo",true);
2. Timer is a valid object so this:
Code: Select all
2023-12-13T20:41:43.0865984Z 34:24 error 'Timer' is not defined no-undef
3. These are really weird:
Code: Select all
2023-12-13T20:41:43.0867678Z 30:10 error 'worldScripts' is already defined as a built-in global variable no-redeclare
2023-12-13T20:41:43.0868493Z 30:10 error 'worldScripts' is defined but never used no-unused-vars
2023-12-13T20:41:43.0870253Z 30:10 error 'galaxyNumber' is already defined as a built-in global variable no-redeclare
2023-12-13T20:41:43.0871078Z 30:24 error 'missionVariables' is already defined as a built-in global variable no-redeclare
2023-12-13T20:41:43.0871893Z 30:42 error 'system' is already defined as a built-in global variable no-redeclare
There are more errors where the Linter has not understood valid Oolite objects (log, System, displayNameForCommodity, SoundSource, etc). Unless we whitelist all of these the error list is going to long.