HowTo/Upgrade obsolete script functions: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
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.
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()=====
====GameObject.GetId()====
TODO
TODO


=====GameObject.GetName()=====
====GameObject.GetName()====
TODO
TODO


=====Router.GetGameObject(int)=====
====Router.GetGameObject()====
TODO
TODO


=====Router.GetGameObject(string)=====
====World.Get*List()====
TODO
TODO


=====World.Get*List()=====
====Asset.GetConfigSoup()====
TODO
TODO


=====Asset.GetConfigSoup()=====
====Asset.GetStringTable()====
TODO
TODO


=====Asset.GetStringTable()=====
====TrainzScript.GetAssetList()====
TODO
TODO


=====TrainzScript.GetAssetList()=====
====TrainzScript.SearchAssets()====
TODO
 
=====TrainzScript.SearchAssets()=====
TODO
TODO

Revision as of 01: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.

GameObject.GetId()

TODO

GameObject.GetName()

TODO

Router.GetGameObject()

TODO

World.Get*List()

TODO

Asset.GetConfigSoup()

TODO

Asset.GetStringTable()

TODO

TrainzScript.GetAssetList()

TODO

TrainzScript.SearchAssets()

TODO