[script.unpermittedMethod] ClassifyLHSConditionSelector (OOLegacyScriptWhitelist.m:367): ***** SCRIPT ERROR: in ship "Terrapin" legacy actions, method '[d100_number]' not allowed. In a future version of Oolite, this method will be removed from the handler. If you believe the handler should allow this method, please report it to [email protected].
[script.sanitize.unclassifiedSelector] ClassifyLHSConditionSelector (OOLegacyScriptWhitelist.m:379): ***** ERROR: Whitelisted query method '[d100_number]' has no type suffix, treating as invalid.
No d100_number but another wrong code. Maybe the (0.1) was mend as chance factor and in a later release d100_number was used. Best proof is of cause to look in your current Terrapin ship script.
Cargo_Wreck_Teaser used intensive d100_number and [d100_number] in its script_actions. When that does not give errors I suspect it is a syntax error in the Terrapin script. I start to like the new code already without having used it, because it points much faster to legacy script bugs that were long unnoticed.
Sorry, I should have said a few other things. I am flying a Terrapin. I hve searched (grep) the content of the terrapin oxp and not found d100_number at all.
I imagine that its a player specific script, not a ship specific one.
I do not get the error often, but it is possible that I hve had it a few times and not always noticed.
The thing thats odd, is, as Eric said, it is used quite a bit in various scripts, and I dont see d100_number errors in the logs for them
[script.unpermittedMethod] ClassifyLHSConditionSelector (OOLegacyScriptWhitelist.m:367): ***** SCRIPT ERROR: in ship "Griff Krait" legacy actions, method '[d100_number]' not allowed. In a future version of Oolite, this method will be removed from the handler. If you believe the handler should allow this method, please report it to [email protected].
[script.sanitize.unclassifiedSelector] ClassifyLHSConditionSelector (OOLegacyScriptWhitelist.m:379): ***** ERROR: Whitelisted query method '[d100_number]' has no type suffix, treating as invalid.
[script.unpermittedMethod] SanitizeCondition (OOLegacyScriptWhitelist.m:158): ***** SCRIPT ERROR: in ship "Griff Krait" legacy actions, method '[d100_number]' not allowed.
'the has no type suffix' message is caused by having "d100_number" inside square brackets.
Looking at OOLegacyScriptWhitelist.m it seems to me that all your problems are caused by the brackets. Does the script work OK if you remove them leaving a 'naked' "d100_number" instead of "[d100_number]"?
To be on the safe side we might have to add a bracket remover to the whitelist parser...