[Release] VariableMasslock v1.1

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 462
Joined: Mon Sep 17, 2018 5:01 pm

Re: [Release] VariableMasslock v1.1

Post 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
Post Reply