https://online.ts2009.com/mediaWiki/index.php?title=Scripting&feed=atom&action=historyScripting - Revision history2024-03-29T13:25:55ZRevision history for this page on the wikiMediaWiki 1.19.1https://online.ts2009.com/mediaWiki/index.php?title=Scripting&diff=33549&oldid=prevPcas1986: /* Scripting in TRS19 and beyond */2022-08-26T03:14:51Z<p><span dir="auto"><span class="autocomment">Scripting in TRS19 and beyond</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 03:14, 26 August 2022</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 49:</td>
<td colspan="2" class="diff-lineno">Line 49:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [[HowTo/Upgrade_obsolete_script_functions]] - A hub for how to upgrade/replace uses of various obsolete script functions.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [[HowTo/Upgrade_obsolete_script_functions]] - A hub for how to upgrade/replace uses of various obsolete script functions.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [[HowTo/Search_for_objects_in_the_world]] - A discussion, with examples, of commonly used searches.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [[HowTo/Search_for_objects_in_the_world]] - A discussion, with examples, of commonly used searches.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [[HowTo/Upgrade obsolete script functions - simple examples]] - Practical examples of fixing the more simple obsolete functions.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Feedback=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Feedback=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Script Feature Requests]] - ''have a cool idea, but missing that one crucial API? Request it here.''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Script Feature Requests]] - ''have a cool idea, but missing that one crucial API? Request it here.''</div></td></tr>
</table>Pcas1986https://online.ts2009.com/mediaWiki/index.php?title=Scripting&diff=33052&oldid=prevPcas1986: Added para about obsolete methods and links to help fix affected assets2022-07-09T04:15:09Z<p>Added para about obsolete methods and links to help fix affected assets</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 04:15, 9 July 2022</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 44:</td>
<td colspan="2" class="diff-lineno">Line 44:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [https://forums.auran.com/trainz/showthread.php?140135-Deriving-GameObject-from-object-name-in-SP2&highlight=GetNamedObjectList Deriving GameObject from object name in SP2]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [https://forums.auran.com/trainz/showthread.php?140135-Deriving-GameObject-from-object-name-in-SP2&highlight=GetNamedObjectList Deriving GameObject from object name in SP2]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">=Scripting in TRS19 and beyond=</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">From June 2022 assets uploaded to the Download Station with scripts using obsolete methods will be rejected.  In addition to the above information, a number of WiKi pages specifically address how these obsolete methods can be replaced. See:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [[HowTo/Upgrade_obsolete_script_functions]] - A hub for how to upgrade/replace uses of various obsolete script functions.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [[HowTo/Search_for_objects_in_the_world]] - A discussion, with examples, of commonly used searches.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Feedback=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Feedback=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Script Feature Requests]] - ''have a cool idea, but missing that one crucial API? Request it here.''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Script Feature Requests]] - ''have a cool idea, but missing that one crucial API? Request it here.''</div></td></tr>
</table>Pcas1986https://online.ts2009.com/mediaWiki/index.php?title=Scripting&diff=18969&oldid=prevPw3r: /* Scripting in Trainz A New Era SP2 and beyond */2019-06-28T09:14:22Z<p><span dir="auto"><span class="autocomment">Scripting in Trainz A New Era SP2 and beyond</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 09:14, 28 June 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 33:</td>
<td colspan="2" class="diff-lineno">Line 33:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>With TANE SP2 and beyond, we are introducing some major differences in the way routes are loaded and saved. Since we are moving towards information being streamed in as required, scripts will need to be updated to handle these new methods.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>With TANE SP2 and beyond, we are introducing some major differences in the way routes are loaded and saved. Since we are moving towards information being streamed in as required, scripts will need to be updated to handle these new methods.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Here are some links that will assist scripters in discovering more about the new features. We will update the <del class="diffchange diffchange-inline">referece </del>information over time, but meanwhile, feel free to update the wiki yourself with examples of your work.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Here are some links that will assist scripters in discovering more about the new features. We will update the <ins class="diffchange diffchange-inline">reference </ins>information over time, but meanwhile, feel free to update the wiki yourself with examples of your work.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* [[Asynchronous_Route_Streaming]] - <del class="diffchange diffchange-inline">'Explanation </del>of <del class="diffchange diffchange-inline">the new </del>streaming <del class="diffchange diffchange-inline">process'</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* [[Asynchronous_Route_Streaming]] - <ins class="diffchange diffchange-inline">An overview </ins>of <ins class="diffchange diffchange-inline">route </ins>streaming <ins class="diffchange diffchange-inline">and how it affects script</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* [[Category_List]] - <del class="diffchange diffchange-inline">'List of categories to identify how the </del>asset <del class="diffchange diffchange-inline">is used within Trainz that can be </del>used by <del class="diffchange diffchange-inline">scripters'</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* [[Category_List]] - <ins class="diffchange diffchange-inline">Lists </ins>asset <ins class="diffchange diffchange-inline">category codes, which are </ins>used <ins class="diffchange diffchange-inline">to identify or search for assets </ins>by <ins class="diffchange diffchange-inline">type/capability</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">* [[Session_Rule_Implementation]] - A script-focused overview of correct Session Rule behavior</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [http://forums.auran.com/trainz/showthread.php?133200-Internal-test-build-83648 TrainzDev forum thread]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [http://forums.auran.com/trainz/showthread.php?133200-Internal-test-build-83648 TrainzDev forum thread]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [http://forums.auran.com/trainz/showthread.php?137463-Sniffing-messages-sent-to-gameobjects-may-be-not-loaded Sniffing Messages forum thread]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* [http://forums.auran.com/trainz/showthread.php?137463-Sniffing-messages-sent-to-gameobjects-may-be-not-loaded Sniffing Messages forum thread]</div></td></tr>
</table>Pw3rhttps://online.ts2009.com/mediaWiki/index.php?title=Scripting&diff=11692&oldid=prevTonyhilliam at 01:46, 14 March 20182018-03-14T01:46:38Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 01:46, 14 March 2018</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 14:</td>
<td colspan="2" class="diff-lineno">Line 14:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[TrainzScript User Interface]] - ''implementing user interfaces in TrainzScript.''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[TrainzScript User Interface]] - ''implementing user interfaces in TrainzScript.''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[New TrainzScript Features]] - ''recent additions to the scripting environment (TS2009).''</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[New TrainzScript Features <ins class="diffchange diffchange-inline">- TS2009</ins>]] - ''recent additions to the scripting environment (TS2009).''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>Tonyhilliamhttps://online.ts2009.com/mediaWiki/index.php?title=Scripting&diff=11691&oldid=prevTonyhilliam at 01:44, 14 March 20182018-03-14T01:44:03Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 01:44, 14 March 2018</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 30:</td>
<td colspan="2" class="diff-lineno">Line 30:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Incubator]] - ''a home for new script technologies.''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Incubator]] - ''a home for new script technologies.''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">=Scripting in Trainz A New Era SP2 and beyond=</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">With TANE SP2 and beyond, we are introducing some major differences in the way routes are loaded and saved. Since we are moving towards information being streamed in as required, scripts will need to be updated to handle these new methods.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Here are some links that will assist scripters in discovering more about the new features. We will update the referece information over time, but meanwhile, feel free to update the wiki yourself with examples of your work.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [[Asynchronous_Route_Streaming]] - 'Explanation of the new streaming process'</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [[Category_List]] - 'List of categories to identify how the asset is used within Trainz that can be used by scripters'</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [http://forums.auran.com/trainz/showthread.php?133200-Internal-test-build-83648 TrainzDev forum thread]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [http://forums.auran.com/trainz/showthread.php?137463-Sniffing-messages-sent-to-gameobjects-may-be-not-loaded Sniffing Messages forum thread]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [http://forums.auran.com/trainz/showthread.php?128204-Route-Load-Save-Changes Route Load and Save changes]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [https://forums.auran.com/trainz/showthread.php?143549-Category-filter-in-GetNamedObjectList(-)-for-TrackMarks-and-Triggers&highlight=GameObjectID GameObjectID forum thread]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* [https://forums.auran.com/trainz/showthread.php?140135-Deriving-GameObject-from-object-name-in-SP2&highlight=GetNamedObjectList Deriving GameObject from object name in SP2]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Feedback=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=Feedback=</div></td></tr>
</table>Tonyhilliamhttps://online.ts2009.com/mediaWiki/index.php?title=Scripting&diff=9913&oldid=prevTonyhilliam at 04:47, 18 August 20172017-08-18T04:47:29Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 04:47, 18 August 2017</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 14:</td>
<td colspan="2" class="diff-lineno">Line 14:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[TrainzScript User Interface]] - ''implementing user interfaces in TrainzScript.''</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[TrainzScript User Interface]] - ''implementing user interfaces in TrainzScript.''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[New TrainzScript Features]] - ''recent additions to the scripting environment.''</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[New TrainzScript Features]] - ''recent additions to the scripting environment <ins class="diffchange diffchange-inline">(TS2009)</ins>.''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>Tonyhilliamhttps://online.ts2009.com/mediaWiki/index.php?title=Scripting&diff=694&oldid=prevWindwalkr: 1 revision2010-02-03T13:59:42Z<p>1 revision</p>
<table class='diff diff-contentalign-left'>
<tr valign='top'>
<td colspan='1' style="background-color: white; color:black;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black;">Revision as of 13:59, 3 February 2010</td>
</tr></table>Windwalkrhttps://online.ts2009.com/mediaWiki/index.php?title=Scripting&diff=693&oldid=prevWindwalkr at 07:04, 3 February 20092009-02-03T07:04:20Z<p></p>
<p><b>New page</b></p><div>=Script References=<br />
[[TrainzScript Language Reference]] - ''learn the syntax and runtime environment of the [[TrainzScript]] language.''<br />
<br />
[[TrainzScript Library Reference]] - ''read through the API documentation of the system libraries included with Trainz.''<br />
<br />
[[TrainzScript Message Reference]] - ''documentation covering the messaging system in Trainz.''<br />
<br />
[[Getting Started in TrainzScript]] - '' tutorials covering the first steps in writing asset scripts.''<br />
<br />
[[iTrainz]] - ''learn how to establish communication between scripts running on different users' machines and manage persistent data keyed to the local user's account.''<br />
<br />
[[TrackSearch]] - ''perform runtime analysis of the track layout of a route, including junctions, signalling and trains.''<br />
<br />
[[TrainzScript User Interface]] - ''implementing user interfaces in TrainzScript.''<br />
<br />
[[New TrainzScript Features]] - ''recent additions to the scripting environment.''<br />
<br />
<br />
=Script usage within Trainz=<br />
[[Scripted Assets]] - ''customize the behavior of your content using script.''<br />
<br />
[[Session Rules]] - ''create flexible rules which act as building blocks and allow scripters and non-scripters to configure their sessions.''<br />
<br />
[[Script Libraries]] - ''implement reusable library code and distribute it as a standalone asset, allowing yourself or other scripters to make use of your functions without embedding a specific version of your code within each new asset.''<br />
<br />
[[Object Instance Scripts]] - ''customise a specific object instance within a route or session without the need to create a unique asset.''<br />
<br />
[[iTrainz Servlets]] - ''develop server scripts for the iTrainz environment.''<br />
<br />
[[Incubator]] - ''a home for new script technologies.''<br />
<br />
<br />
=Feedback=<br />
[[Script Feature Requests]] - ''have a cool idea, but missing that one crucial API? Request it here.''<br />
<br />
<br />
=Categories=<br />
[[Category:TrainzScript]]</div>Windwalkr