Page 3 of 3

Re: [Release] VariableMasslock v1.1

Posted: Sat Jun 27, 2020 4:32 pm
by Milo
While following an escort group, using Synchronised Torus OXP (which modifies scanner classes), upon toggling synchronised torus on and off several times, this happened :
Exception: Error: entity.scanClass cannot be set to that value.
Active script: variablemasslock 1.1
variablemasslock.js, line 94:
t.scanClass = r[1];


> worldScripts.variablemasslock.$VMRocks
[false, [[Ship "Tracker" position: (-165756, 76579.9, 852566) scanClass: CLASS_STATION status: STATUS_IN_FLIGHT], "CLASS_NO_DRAW"]]

> worldScripts.variablemasslock.$VMRocks[1][0]
[Ship "Tracker" position: (-165756, 76579.9, 852566) scanClass: CLASS_STATION status: STATUS_IN_FLIGHT]

> worldScripts.variablemasslock.$VMRocks[1][0].dataKey
tracker_beacon
Note I am also using Tracker OXP and had previously set the escort group leader as a tracking target. The above error was repeating every second until I primed the Tracker equipment and activated it again, removing tracking from the escort group leader. After that, the error stopped. And the $VMRocks became this:
> worldScripts.variablemasslock.$VMRocks
[false, [[object Ship], "CLASS_NO_DRAW"]]

> worldScripts.variablemasslock.$VMRocks[1][0]
[object Ship]

> worldScripts.variablemasslock.$VMRocks[1][0].dataKey

> worldScripts.variablemasslock.$VMRocks[1][0].isShip

> worldScripts.variablemasslock.$VMRocks[1][0].isValid
false