HowTo/Upgrade obsolete script functions

From TrainzOnline
< HowTo(Difference between revisions)
Jump to: navigation, search
(Created page with "This page serves as a hub for how to upgrade/replace uses of various obsolete script functions.")
 
Line 1: Line 1:
 
This page serves as a hub for how to upgrade/replace uses of various obsolete script functions.
 
This page serves as a hub for how to upgrade/replace uses of various obsolete script functions.
 +
 +
Note that this is not a comprehensive list. Trainz has existed for more than two decades and there are dozens of obsolete script functions as a result. This guide aims to cover only the more complex upgrade cases, where the replacement functions may not be immediately obvious, or may be considerably more difficult to use.
 +
 +
=====GameObject.GetId()=====
 +
TODO
 +
 +
=====GameObject.GetName()=====
 +
TODO
 +
 +
=====Router.GetGameObject(int)=====
 +
TODO
 +
 +
=====Router.GetGameObject(string)=====
 +
TODO
 +
 +
=====World.Get*List()=====
 +
TODO
 +
 +
=====Asset.GetConfigSoup()=====
 +
TODO
 +
 +
=====Asset.GetStringTable()=====
 +
TODO
 +
 +
=====TrainzScript.GetAssetList()=====
 +
TODO
 +
 +
=====TrainzScript.SearchAssets()=====
 +
TODO

Revision as of 11:27, 3 March 2022

This page serves as a hub for how to upgrade/replace uses of various obsolete script functions.

Note that this is not a comprehensive list. Trainz has existed for more than two decades and there are dozens of obsolete script functions as a result. This guide aims to cover only the more complex upgrade cases, where the replacement functions may not be immediately obvious, or may be considerably more difficult to use.

Contents

GameObject.GetId()

TODO

GameObject.GetName()

TODO

Router.GetGameObject(int)

TODO

Router.GetGameObject(string)

TODO

World.Get*List()

TODO

Asset.GetConfigSoup()

TODO

Asset.GetStringTable()

TODO

TrainzScript.GetAssetList()

TODO

TrainzScript.SearchAssets()

TODO

Personal tools