<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trainzsimulator.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kris76</id>
	<title>TrainzOnline - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.trainzsimulator.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kris76"/>
	<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/wiki/Special:Contributions/Kris76"/>
	<updated>2026-11-05T07:41:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=TrainzUtil&amp;diff=1688</id>
		<title>TrainzUtil</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=TrainzUtil&amp;diff=1688"/>
		<updated>2010-10-31T10:10:37Z</updated>

		<summary type="html">&lt;p&gt;Kris76: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[TrainzUtil]] is a command line [[Content Management]] tool.&lt;br /&gt;
&lt;br /&gt;
=Functionality=&lt;br /&gt;
&lt;br /&gt;
[[TrainzUtil]] is capable of performing some content management tasks including:&lt;br /&gt;
* Installation, removal and editing of custom content.&lt;br /&gt;
* Limited searching of local content.&lt;br /&gt;
* Packaging local content for distribution.&lt;br /&gt;
[[TrainzUtil]] provides a small subset of the available content management functions, for most operations [[Content Manager]] should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&lt;br /&gt;
[[TrainzUtil]] is a command line utility and cannot be started from the [[Trainz Launcher]]. To start [[TrainzUtil]] open a command prompt and navigate to your Trainz &amp;quot;bin&amp;quot; directory (e.g. C:\Program Files\Auran\TS2010\Bin). You can then launch [[TrainzUtil]] with command arguments as below.&lt;br /&gt;
&lt;br /&gt;
* TrainzUtil help&lt;br /&gt;
:&#039;&#039;Display TrainzUtil help text.&#039;&#039;&lt;br /&gt;
* TrainzUtil version&lt;br /&gt;
:&#039;&#039;Display the TrainzUtil build version.&#039;&#039;&lt;br /&gt;
* TrainzUtil echo &amp;lt;TEXT&amp;gt;&lt;br /&gt;
:&#039;&#039;Echo the supplied text.&#039;&#039;&lt;br /&gt;
* TrainzUtil setlanguage &amp;lt;langCode&amp;gt;&lt;br /&gt;
:&#039;&#039;Set the Trainz language to the language code supplied (eg. US, FR, RU, etc).&#039;&#039;&lt;br /&gt;
* TrainzUtil installCDP &amp;lt;PATH&amp;gt;&lt;br /&gt;
:&#039;&#039;Install an asset from a CDP file.&#039;&#039;&lt;br /&gt;
* TrainzUtil installfrompath &amp;lt;PATH&amp;gt;&lt;br /&gt;
:&#039;&#039;Install an asset from a directory.&#039;&#039;&lt;br /&gt;
* TrainzUtil installfromdls &amp;lt;KUID&amp;gt;&lt;br /&gt;
:&#039;&#039;Install an asset from the Auran Download Station.&#039;&#039;&lt;br /&gt;
* TrainzUtil edit &amp;lt;KUID&amp;gt;&lt;br /&gt;
:&#039;&#039;Open an asset for editing.&#039;&#039;&lt;br /&gt;
* TrainzUtil printconfig &amp;lt;KUID&amp;gt;&lt;br /&gt;
:&#039;&#039;Print the contents of an assets config file to the console.&#039;&#039;&lt;br /&gt;
* TrainzUtil backupkeywords&lt;br /&gt;
:&#039;&#039;Backup all the keywords of your assets.&#039;&#039;&lt;br /&gt;
* TrainzUtil importkeywords&lt;br /&gt;
:&#039;&#039;Import keywords into the Trainz Asset Database.&#039;&#039;&lt;br /&gt;
* TrainzUtil commit &amp;lt;KUID&amp;gt;&lt;br /&gt;
:&#039;&#039;Commit any edits that have been made to the specified asset.&#039;&#039;&lt;br /&gt;
* TrainzUtil revert &amp;lt;KUID&amp;gt;&lt;br /&gt;
:&#039;&#039;Discard any edits that have been made to the specified asset.&#039;&#039;&lt;br /&gt;
* TrainzUtil delete &amp;lt;KUID&amp;gt;&lt;br /&gt;
:&#039;&#039;Delete the specified asset from disk.&#039;&#039;&lt;br /&gt;
* TrainzUtil generateKUID&lt;br /&gt;
:&#039;&#039;Generate a new KUID number in the local user&#039;s KUID range.&#039;&#039;&lt;br /&gt;
* TrainzUtil createCDP &amp;lt;OUTPUT PATH&amp;gt; &amp;lt;KUID1&amp;gt; &amp;lt;KUID2&amp;gt; ... &amp;lt;KUIDX&amp;gt;&lt;br /&gt;
:&#039;&#039;Export assets to a CDP file.&#039;&#039;&lt;br /&gt;
* TrainzUtil repairdatabase&lt;br /&gt;
:&#039;&#039;Repairs the Trainz Asset Database.&#039;&#039;&lt;br /&gt;
* TrainzUtil authors&lt;br /&gt;
:&#039;&#039;List of all the authorIDs that have content in the game.&#039;&#039;&lt;br /&gt;
* TrainzUtil searchbycategory [-a] &amp;lt;CatgoryList&amp;gt;&lt;br /&gt;
:&#039;&#039;List all the local assets with a category set in this format, &amp;quot;CMP;MESH|BD;-ACTV|VE|SCEN&amp;quot;. Use the -a parameter if you want to search the [[Download Station]] as well.&#039;&#039;&lt;br /&gt;
* TrainzUtil importconsists &amp;lt;PATH&amp;gt;&lt;br /&gt;
:&#039;&#039;Import an old style Surveyor consist list, creating consist assets for any unknown entries.&#039;&#039;&lt;br /&gt;
* TrainzUtil status &amp;lt;KUID&amp;gt;&lt;br /&gt;
:&#039;&#039;Print the status of the specified asset.&#039;&#039;&lt;br /&gt;
:&#039;&#039;This will output &amp;lt;KUID&amp;gt; : &amp;lt;Flags&amp;gt; : &amp;lt;category&amp;gt; : &amp;lt;username&amp;gt; where flags are a series of letters with case indicating boolean state. (capital letters are flagged true and lowercase are flagged false.)&#039;&#039;&lt;br /&gt;
:*&#039;&#039;Ee - The asset is open for edit.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;Ii - The asset is installed locally.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;Aa - The asset is archived.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;Dd - The asset is on the download station.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;Ll - The asset is locally modified.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;Mm - The asset has missing dependencies.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;Ee - The asset has errors.&#039;&#039;&lt;br /&gt;
* TrainzUtil validate &amp;lt;KUID&amp;gt;&lt;br /&gt;
:&#039;&#039;Perform validation and display any errors or warnings relating to this asset.&#039;&#039;&lt;br /&gt;
* TrainzUtil compile &amp;lt;PATH&amp;gt;&lt;br /&gt;
:&#039;&#039;Compile a script file.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;&amp;lt;-d&amp;gt; Display gamescript documentation.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;&amp;lt;-s&amp;gt; Silent mode.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;&amp;lt;-bPATH&amp;gt; Specify a file path for the compile log.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;&amp;lt;-pPATH&amp;gt; Specify the output directory.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;&amp;lt;-oPATH&amp;gt; Specify the output library filename.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;&amp;lt;PATH&amp;gt; Input source file.&#039;&#039;&lt;br /&gt;
:*&#039;&#039;&amp;lt;-iPATH&amp;gt; Additional include path.&#039;&#039;&lt;br /&gt;
* TrainzUtil encrypt &amp;lt;PATH&amp;gt;&lt;br /&gt;
:&#039;&#039;Encrypt a script file (gs --&amp;gt; gse).&#039;&#039;&lt;br /&gt;
* TrainzUtil listbuilds &amp;lt;PATH&amp;gt;&lt;br /&gt;
:&#039;&#039;Print the list of installed build numbers to a file.&#039;&#039;&lt;br /&gt;
* TrainzUtil @&amp;lt;file.txt&amp;gt;&lt;br /&gt;
:&#039;&#039;Batch-execute a series of commands from the specified text file (every argument must be between double quotes). Every line of that text file will be processed like a separate call to TrainzUtil&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Notes=&lt;br /&gt;
Due to the Windows command prompt treating the &#039;&amp;lt;&#039; and &#039;&amp;gt;&#039; characters as pipe operators, be sure to include quotes around any KUID parameters.&lt;/div&gt;</summary>
		<author><name>Kris76</name></author>
	</entry>
</feed>