SetCrossingState and SetCrossingAutomatic now obsolete?

Christopher824

CDETrainz.com
These script functions passed with build 3.5 before on the DLS, now obsolete? Here is the DLS error;

Code:
An Error Occured with <kuid2:647907:101858:1> Grade Xing US Inc. 2L 1T CDE
<kuid2:647907:101858:1> : VE197: Syntax error in script 'usaxstub_v32.gs' for asset <kuid2:647907:101858:1> "Grade Xing US Inc. 2L 1T CDE"
<kuid2:647907:101858:1> : VE267: usaxstub_v32.gs(48) : function SetCrossingState is obsolete in object Crossing.
<kuid2:647907:101858:1> : VE267: usaxstub_v32.gs(153) : function SetCrossingAutomatic is obsolete in object Crossing.
<kuid2:647907:101858:1> : VE267: usaxstub_v32.gs(154) : function SetCrossingState is obsolete in object Crossing.
<kuid2:647907:101858:1> : VE267: usaxstub_v32.gs(190) : function SetCrossingState is obsolete in object Crossing.

I am trying to update this asset that was using usaxstub.gs to usaxstub_v32.gs

The change will enable the asset to have the full crossing pop-up dialog when you use ? on it. It currently does not. The other assets I have uploaded recently already use the newer script. The one above had the old script. I have updated and tested with current versions of Trainz locally and it works fine with the new script, but the DLS claims these calls are now obsolete.

Is this a bug report, or are these calls now really obsolete?
 
I have found out that the way this method was used in the past is obsolete, not the function itself. The new format requires a SecurityToken. I have updated the Wiki page to help clarify https://online.ts2009.com/mediaWiki/index.php/Class_Crossing

Old;
SetCrossingState(1)
SetCrossingAutomatic(false)

New;
SetCrossingState(SecurityToken,1)
SetCrossingAutomatic(SecurityToken,false)

All new uploads to the DLS that use these methods will now require the token. Assets that are already on the DLS and new local only assets are not effected.
 
Back
Top