How to Create a Region Asset

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (Car Tags)
m (The Config.txt File)
(42 intermediate revisions by one user not shown)
Line 1: Line 1:
The information in this Wiki Page applies to '''TANE''', '''TRS19''' and '''Trainz Plus'''.
+
The information in this Wiki Page applies to '''TANE''', '''TRS19''', '''Trainz Plus''' and '''TRS22'''.
  
 
__TOC__
 
__TOC__
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=729><span id="stepWhat"></span>&nbsp;</td>
 +
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>&nbsp;</td>
 +
<td width=75>[[file:NextDown.png|link=#stepCreate|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
 +
 
='''What is a Region?'''=
 
='''What is a Region?'''=
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
Line 15: Line 25:
 
</table><br>
 
</table><br>
  
<table cellpadding="4" bgcolor=#ffffb0>
+
<table bgcolor=#000000 width=604>
 +
<tr valign="top">
 +
<td>
 +
<table cellpadding=4 bgcolor=#ffffb0 width=600>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td><span style="font-size: 17px; font-weight: 700;">Region Data:'''</span><br>
 
<td><span style="font-size: 17px; font-weight: 700;">Region Data:'''</span><br>
 +
----
 
When a '''Region''' has been assigned to a route, it will set:-
 
When a '''Region''' has been assigned to a route, it will set:-
 
*the default switch lever to be used in the route
 
*the default switch lever to be used in the route
Line 27: Line 41:
 
*the altitude of a point in the route
 
*the altitude of a point in the route
 
*the number and types of moving road vehicles
 
*the number and types of moving road vehicles
 +
*the default baseboard grid pattern in '''TRS19''' and later versions
 
</td>
 
</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
 +
</td>
 +
</tr>
 +
</table>
 +
 +
<table> <!-- BEGIN Nav Buttons Table -->
 +
<tr valign="top">
 +
<td width=729><span id="stepCreate"></span>&nbsp;</td>
 +
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#stepWhat|alt=Next Up|Top]]</td>
 +
<td width=75>[[file:NextDown.png|link=#stepConfig|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 +
</tr>
 +
</table> <!-- END Nav Buttons Table -->
  
 
='''How to Create a Region Asset'''=
 
='''How to Create a Region Asset'''=
  
<table cellpadding="4" bgcolor=#ffffff> <!-- BEGIN Step table -->
+
<table cellpadding=4 bgcolor=#ffffff> <!-- BEGIN Step table -->
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:Steps.PNG|link=]]<br><br>
 
<td>[[image:Steps.PNG|link=]]<br><br>
Line 43: Line 71:
 
[[image:NewAssetCreated.PNG|link=]]</td>
 
[[image:NewAssetCreated.PNG|link=]]</td>
 
<td>From the '''Trainz''' Launcher
 
<td>From the '''Trainz''' Launcher
#select '''Manage Content'''
+
#select <span style="color: white; background-color: black; font-weight: 700; font-size: 15px;">&nbsp;Manage Content&nbsp;</span>
 
#in '''Content Manager''' open the '''Developer''' menu
 
#in '''Content Manager''' open the '''Developer''' menu
 
#select '''New Content'''
 
#select '''New Content'''
Line 125: Line 153:
 
</table> <!-- END Step 5 table -->
 
</table> <!-- END Step 5 table -->
 
<br>
 
<br>
<table cellpadding="4" bgcolor=#fcbcbc> <!-- BEGIN Step 5 warning table -->
+
<table cellpadding=4 bgcolor=#fcbcbc> <!-- BEGIN Step 5 warning table -->
<tr valign="top"> <!-- warning -->
+
<td colspan=2><span style="font-size: 17px;"><b>Warning:</b></span></td>
+
</tr>
+
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:Stop.PNG|link=]]</td>
 
<td>[[image:Stop.PNG|link=]]</td>
Line 171: Line 196:
 
**Select '''Submit Edits'''
 
**Select '''Submit Edits'''
 
Hopefully there will be no errors.<br><br>
 
Hopefully there will be no errors.<br><br>
<table cellpadding="4" bgcolor=#ffffb0> <!-- BEGIN Step 7 Notes table -->
+
 
 +
<table bgcolor=#000000 width=604> <!-- BEGIN Step 7 Notes table -->
 +
<tr valign="top">
 +
<td>
 +
<table bgcolor=#ffffb0 width=600>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td>[[image:NotePad.PNG|link=]]</td>
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
+
<td>Because you still have the Filter '''Open for Editing''' in operation, the now closed and committed asset will vanish from the '''Content Manager''' display. To check that your asset has been correctly created and renamed, set the Search Filter to '''Today'''.</td>
Because you still have the Filter '''Open for Editing''' in operation, the now closed and committed asset will vanish from the window display. To check that your asset has been correctly created and renamed, set the CM Search Filter to "Today".</td>
+
</tr>
 +
</table>
 +
</td>
 
</tr>
 
</tr>
 
</table> <!-- END Step 7 Notes table -->
 
</table> <!-- END Step 7 Notes table -->
 
<br>
 
<br>
<table cellpadding="4" bgcolor=#ff0000> <!-- BEGIN Step 7 errors table -->
+
<table cellpadding=4 bgcolor=#ff0000> <!-- BEGIN Step 7 errors table -->
 
<tr valign="top">
 
<tr valign="top">
 
<td>
 
<td>
Line 204: Line 235:
 
</table> <!-- END Steps table -->
 
</table> <!-- END Steps table -->
  
<table width="100%"> <!-- BEGIN Back-to-top table -->
+
<table> <!-- BEGIN Nav Buttons Table -->
 
<tr valign="top">
 
<tr valign="top">
<td align="right">[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
+
<td width=729><span id="stepConfig"></span>&nbsp;</td>
 +
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#stepCreate|alt=Next Up|Top]]</td>
 +
<td width=75>[[file:NextDown.png|link=#stepTags|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 
</tr>
 
</tr>
</table> <!-- END Back-to-top table -->
+
</table> <!-- END Nav Buttons Table -->
 
+
 
='''The Config.txt File'''=
 
='''The Config.txt File'''=
  
Line 215: Line 249:
 
*entries in&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;red&nbsp;</span>&nbsp;must not be changed
 
*entries in&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;red&nbsp;</span>&nbsp;must not be changed
 
*the indenting of the lines and the spacing ("tabbing") between the "tags" on the left and their contents on the right are purely to make it easier for humans to read
 
*the indenting of the lines and the spacing ("tabbing") between the "tags" on the left and their contents on the right are purely to make it easier for humans to read
*the use of the '''{}''' braces is to group tags into common "containers". These containers must not be broken up and the number of '''{''' characters must match the number of '''}''' characters
+
*the use of the '''{ }''' braces is to group tags into common "containers". These containers must not be broken up and the number of '''{''' characters must match the number of '''}''' characters
*the order of the "tags" is not important
+
*the order of the "tags" is '''not''' important
  
 
  '''kuid'''                              <span style="background-color: red; color: white; font-weight: 700;"><kuid:this is an auto-generated number></span>
 
  '''kuid'''                              <span style="background-color: red; color: white; font-weight: 700;"><kuid:this is an auto-generated number></span>
Line 227: Line 261:
 
  '''water-color                      75,128,255'''
 
  '''water-color                      75,128,255'''
 
  '''defaultjunction                  <kuid:61119:24120>'''
 
  '''defaultjunction                  <kuid:61119:24120>'''
 +
'''default-texture                  <kuid:-25:1180>'''
 +
'''trainz-build                      4.8'''
 
  '''longitude                        147.0,26.0,1.0'''
 
  '''longitude                        147.0,26.0,1.0'''
 
  '''latitude                          41.0,50.0,-1.0'''
 
  '''latitude                          41.0,50.0,-1.0'''
 
  '''altitude                          212'''
 
  '''altitude                          212'''
 
  '''car0                              <kuid:329364:1568>'''
 
  '''car0                              <kuid:329364:1568>'''
'''trainz-build                      4.3
 
 
  '''thumbnails'''
 
  '''thumbnails'''
 
  {
 
  {
Line 246: Line 281:
 
   '''0                              <kuid:61119:24120>'''
 
   '''0                              <kuid:61119:24120>'''
 
   '''1                              <kuid:329364:1568>'''
 
   '''1                              <kuid:329364:1568>'''
 +
  '''2                              <kuid:-25:1180>'''
 
  }
 
  }
 
   
 
   
<table cellpadding="4" bgcolor=#eeeeee>
+
<table cellpadding=4 bgcolor=#eeeeee>
 
<tr>
 
<tr>
 
<td colspan="2">
 
<td colspan="2">
Line 266: Line 302:
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> water-color </span>&nbsp;identifies the the colour used by water surfaces in this region. See the section [[image:PageLink.PNG|link=]] '''[[#Water Color Tag|Water Color Tag]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> water-color </span>&nbsp;identifies the the colour used by water surfaces in this region. See the section [[image:PageLink.PNG|link=]] '''[[#Water Color Tag|Water Color Tag]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> defaultjunction </span>&nbsp;identifies the junction lever or switch that Trainz will use as its default lever asset whenever a lever is added to a track junction in this region. See the section [[image:PageLink.PNG|link=]] '''[[#Default Junction Tag|Default Junction Tag]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> defaultjunction </span>&nbsp;identifies the junction lever or switch that Trainz will use as its default lever asset whenever a lever is added to a track junction in this region. See the section [[image:PageLink.PNG|link=]] '''[[#Default Junction Tag|Default Junction Tag]]''' below for more details.
 +
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> default-texture </span>&nbsp;identifies the texture that will be applied to every new baseboard that is added to a Route. See the section [[image:PageLink.PNG|link=]] '''[[#Default Texture Tag|Default Texture Tag]]''' below for more details.
 +
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> trainz-build </span>&nbsp;identifies the ''minimum'' Trainz version needed for this asset. A list of asset trainz-build numbers and their corresponding Trainz versions can be found at [[image:WikiLink.PNG|link=]] '''[["Trainz-build"_number|Trainz build numbers]]'''
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> longitude </span>&nbsp;identifies the geographic longitude of a point in the region. See the section [[image:PageLink.PNG|link=]] '''[[#Longitude Tag|Longitude Tag]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> longitude </span>&nbsp;identifies the geographic longitude of a point in the region. See the section [[image:PageLink.PNG|link=]] '''[[#Longitude Tag|Longitude Tag]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> latitude </span>&nbsp;identifies the geographic latitude of a point in the region. See the section [[image:PageLink.PNG|link=]] '''[[#Latitude Tag|Latitude Tag]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> latitude </span>&nbsp;identifies the geographic latitude of a point in the region. See the section [[image:PageLink.PNG|link=]] '''[[#Latitude Tag|Latitude Tag]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> altitude </span>&nbsp;identifies the altitude or '''base height''' of the starting baseboard in the route. See the section [[image:PageLink.PNG|link=]] '''[[#Altitude Tag|Altitude Tag]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> altitude </span>&nbsp;identifies the altitude or '''base height''' of the starting baseboard in the route. See the section [[image:PageLink.PNG|link=]] '''[[#Altitude Tag|Altitude Tag]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> car0 </span>&nbsp;identifies the first moving car that will appear on roads in the region. Upto 15 different cars can be specified. See the section [[image:PageLink.PNG|link=]] '''[[#Car Tags|Car Tags]]''' below for more details.
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> car0 </span>&nbsp;identifies the first moving car that will appear on roads in the region. Upto 15 different cars can be specified. See the section [[image:PageLink.PNG|link=]] '''[[#Car Tags|Car Tags]]''' below for more details.
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> trainz-build </span>&nbsp;identifies the ''minimum'' Trainz version needed for this asset. A list of asset trainz-build numbers and their corresponding Trainz versions can be found at [[image:WikiLink.PNG|link=]] '''[["Trainz-build"_number|Trainz build numbers]]'''
 
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> thumbnails </span>&nbsp;container holds the ''preview'' images of the asset shown by the '''Content Manager''' program, the Web version of the ''DLS'' and, for '''some assets''', the Surveyor main menu image(s). See the section [[image:PageLink.PNG|link=]] '''[[#Thumbnails|Thumbnails]]''' below for more details. Complete information on thumbnails can be found at [[image:WikiLink.PNG|link=]] '''[[Thumbnails]]'''
 
*The&nbsp;<span style="background-color: black; color: white; font-weight: 700;"> thumbnails </span>&nbsp;container holds the ''preview'' images of the asset shown by the '''Content Manager''' program, the Web version of the ''DLS'' and, for '''some assets''', the Surveyor main menu image(s). See the section [[image:PageLink.PNG|link=]] '''[[#Thumbnails|Thumbnails]]''' below for more details. Complete information on thumbnails can be found at [[image:WikiLink.PNG|link=]] '''[[Thumbnails]]'''
 
**The label&nbsp;<span style="background-color: black; color: white; font-weight: 700;">&nbsp;Default&nbsp;</span>&nbsp;is the '''container ID''' or '''placeholder''' for the thumbnail used by CM and the Web based DLS. While its ''exact label'' (or number - eg. "Default", "00", "01", etc) is not important, it must be different from any other labels that might be present in the thumbnail. '''Default''' and '''0''' are commonly used placeholder labels for the 240 x 180 thumbnail image
 
**The label&nbsp;<span style="background-color: black; color: white; font-weight: 700;">&nbsp;Default&nbsp;</span>&nbsp;is the '''container ID''' or '''placeholder''' for the thumbnail used by CM and the Web based DLS. While its ''exact label'' (or number - eg. "Default", "00", "01", etc) is not important, it must be different from any other labels that might be present in the thumbnail. '''Default''' and '''0''' are commonly used placeholder labels for the 240 x 180 thumbnail image
Line 286: Line 323:
 
</table>
 
</table>
  
<table cellpadding="4" bgcolor=#ffffb0>
+
<table cellpadding=4 bgcolor=#ffffe0>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:PencilTips.PNG|link=]]</td>
 
<td>[[image:PencilTips.PNG|link=]]</td>
<td><span style="font-weight: 700; font-size: 17px;">Language Options:</span></td>
+
<td><span style="font-weight: 700; font-size: 17px;">Language Options:</span><br>
 +
----
 +
</td>
 
</tr>
 
</tr>
 
<tr valign="top">
 
<tr valign="top">
Line 301: Line 340:
 
  username                    "Region data for Tasmania 1950 to 1969"
 
  username                    "Region data for Tasmania 1950 to 1969"
 
  username-c2                "塔斯马尼亚州1950年至1969年的区域数据"
 
  username-c2                "塔斯马尼亚州1950年至1969年的区域数据"
 +
username-de                "Regionsdaten für Tasmanien 1950 bis 1969"
 
  username-es                "Datos de la región para Tasmania 1950 a 1969"
 
  username-es                "Datos de la región para Tasmania 1950 a 1969"
 
  username-fr                "Données régionales pour la Tasmanie de 1950 à 1969"
 
  username-fr                "Données régionales pour la Tasmanie de 1950 à 1969"
username-gr                "Regionsdaten für Tasmanien 1950 bis 1969"
 
 
  username-nl                "Regiogegevens voor Tasmanië 1950 tot 1969"
 
  username-nl                "Regiogegevens voor Tasmanië 1950 tot 1969"
 
  username-ru                "Данные по регионам за Тасманию с 1950 по 1969 год"
 
  username-ru                "Данные по регионам за Тасманию с 1950 по 1969 год"
Line 315: Line 354:
 
</table>
 
</table>
  
<table width="100%">
+
<table> <!-- BEGIN Nav Buttons Table -->
 
<tr valign="top">
 
<tr valign="top">
<td align="right">[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
+
<td width=729><span id="stepTags"></span>&nbsp;</td>
 +
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#stepConfig|alt=Next Up|Top]]</td>
 +
<td width=75>[[file:NextDown.png|link=#stepThumb|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 
</tr>
 
</tr>
</table>
+
</table> <!-- END Nav Buttons Table -->
  
 +
='''Region Tags'''=
 
=='''Category Era Tag'''==
 
=='''Category Era Tag'''==
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
Line 329: Line 373:
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
+
 
 +
'''category-era'''<br>
 +
 
 
This identifies the decade or decades in which the region is based. The tag data contains text surrounded by quote (") characters. Each decade name ends with an "s" (e.g. "1950s") and multiple consecutive decades can be specified by using a semi-colon (;) as a separator (e.g. "1950s;1960s"). A list of category-eras can be found at [[image:WikiLink.PNG|link=]] '''[["Category-era"_tag|Category-era tag]]'''.
 
This identifies the decade or decades in which the region is based. The tag data contains text surrounded by quote (") characters. Each decade name ends with an "s" (e.g. "1950s") and multiple consecutive decades can be specified by using a semi-colon (;) as a separator (e.g. "1950s;1960s"). A list of category-eras can be found at [[image:WikiLink.PNG|link=]] '''[["Category-era"_tag|Category-era tag]]'''.
  
 
=='''Category Region Tag'''==
 
=='''Category Region Tag'''==
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
Line 340: Line 386:
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
+
 
 +
'''category-region'''<br>
 +
 
 
This identifies the country or countries in which the region is based. The tag data contains text surrounded by quote (") characters. Each country has a two letter code (e.g. "AU" for Australia) and multiple countries can be specified by using a semi-colon (;) as a separator (e.g. "AU;UK;US"). If no country is to be specified then the two character code "00" (double zero) is used. A list of countries (category regions) can be found at [[image:WikiLink.PNG|link=]] '''[["Category-region"_tag|Category-region tag]]'''.
 
This identifies the country or countries in which the region is based. The tag data contains text surrounded by quote (") characters. Each country has a two letter code (e.g. "AU" for Australia) and multiple countries can be specified by using a semi-colon (;) as a separator (e.g. "AU;UK;US"). If no country is to be specified then the two character code "00" (double zero) is used. A list of countries (category regions) can be found at [[image:WikiLink.PNG|link=]] '''[["Category-region"_tag|Category-region tag]]'''.
  
 
=='''On the Right Tag'''==
 
=='''On the Right Tag'''==
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
Line 351: Line 399:
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
+
 
This identifies which side of the road is used by road traffic in this region. The tag data contains a binary value (0 or 1). 0 = left side, 1 = right side.
+
'''ontheright''' (no hyphens between the words)<br>
 +
 
 +
This identifies which side of the road is used by road traffic in this region. The tag data contains a binary value ('''0''' or '''1'''). 0 = left side, 1 = right side.
  
 
=='''Water Color Tag'''==
 
=='''Water Color Tag'''==
  
<table cellpadding="4" bgcolor=#fcbcbc>
+
<table cellpadding=4 bgcolor=#fcbcbc>
<tr valign="top">
+
<td colspan=2><span style="font-size: 17px; font-weight: 700;">Warning:</span></td>
+
</tr>
+
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:Stop.PNG|link=]]</td>
 
<td>[[image:Stop.PNG|link=]]</td>
Line 366: Line 413:
 
</table>
 
</table>
 
<br>
 
<br>
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of 3.4 and higher</td>
+
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of '''3.4''' and higher</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
+
 
This identifies the colour used by water surfaces added by the Surveyor '''Terrain Tool''' in this region. The tag contains three integers separated by commas (e.g. 75,128,255). The integers specify the RGB ('''R'''ed, '''G'''reen, '''B'''lue) colour values to be used and each value is from 0 to 255.
+
'''water-color'''<br>
 +
 
 +
This identifies the colour used by water surfaces added by the Surveyor '''Terrain Tool''' in this region. The tag contains three integers separated by commas (e.g. 75,128,255). The integers specify the RGB ('''R'''ed, '''G'''reen, '''B'''lue) colour values to be used and each value is from '''0''' to '''255'''.
  
 
=='''Default Junction Tag'''==
 
=='''Default Junction Tag'''==
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of 3.4 and higher</td>
+
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of '''3.4''' and higher</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
+
 
 +
'''defaultjunction''' (no hyphen between the two words)<br>
 +
 
 
This identifies the junction lever or switch that Trainz will use as its default lever asset whenever a lever is added to a track junction in this region. The tag data contains a single valid kuid (e.g. <kuid:61119:24120>).<br>
 
This identifies the junction lever or switch that Trainz will use as its default lever asset whenever a lever is added to a track junction in this region. The tag data contains a single valid kuid (e.g. <kuid:61119:24120>).<br>
  
 
The kuid value of the switch lever must also be added to the '''kuid-table''' container of the config.txt file.
 
The kuid value of the switch lever must also be added to the '''kuid-table''' container of the config.txt file.
  
=='''Longitude Tag'''==  
+
=='''Default Texture Tag'''==
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of 3.4 and higher</td>
+
<td>This tag is <span style="color: white; background-color: black; font-weight:700;">&nbsp;only valid&nbsp;</span> in a Region asset with a build number of '''4.8''' and higher ('''TRS19 SP3''' and later)</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
+
 
<table cellpadding="4" bgcolor=#fcbcbc>
+
'''default-texture'''<br>
 +
 
 +
This identifies the default texture that will be applied to every new baseboard that is added. If it is not present then a system default texture will be used on new baseboards in '''Trainz TRS19''' and later. If present then the '''Trainz Build Tag''' must also be present and set to a minimum value of '''4.8''' ('''TRS19 SP3''' and later).<br>
 +
 
 +
The kuid value shown in the sample '''config.txt''' above, '''&lt;kuid:-25:1180&gt;''', is for the standard '''TRS19''' grid pattern.<br>
 +
 
 +
The kuid value of the texture must also be added to the '''kuid-table''' container of the config.txt file.
 +
 
 +
=='''Trainz Build Tag'''==
 +
 
 +
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
<td colspan=2><span style="font-size: 17px; font-weight: 700;">Warning:</span></td>
+
<td>[[image:DotPoint.JPG|link=]]</td>
</tr>
+
<td>This tag is&nbsp;<span style="background-color: blue; color: white; font-weight: 700;">&nbsp;NOT compulsory&nbsp;</span>&nbsp;in a Region asset unless the '''Default Texture Tag''' is present</td>
<tr valign="top">
+
<td>[[image:Stop.PNG|link=]]</td>
+
<td>The '''Longitude tag''' in a '''Region''' asset has been superseded by the '''Longitude Setting''' in the [[image:WikiLink.PNG|link=]]&nbsp;'''[[How_to_Use_Environment_Tools|Environment Tools]]'''</td>
+
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
+
 
<table cellpadding="4" bgcolor=#ffffb0>
+
'''trainz-build'''<br>
 +
 
 +
The identifies the minimum version of '''Trainz''' that wlll be needed to use this region asset. A list of asset '''trainz-build''' numbers and their corresponding '''Trainz''' versions can be found at [[image:WikiLink.PNG|link=]] '''[["Trainz-build"_number|Trainz build numbers]]'''
 +
 
 +
<table bgcolor=#000000 width=904>
 +
<tr valign="top">
 +
<td>
 +
<table bgcolor=#ffffb0 width=900>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
 
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
There is no known feature, function or operation in a Trainz route or session that actually requires a '''Longitude''' value other than the fact that a valid '''Longitude Tag''' is compulsory in a Region asset with a build number of 3.4 and higher.</td>
+
----
 +
If this tag is present and set to a value of '''3.4''' or higher, then a number of other tags will become '''compulsory''' and must also be present. Specifically:-<br>
 +
*'''water-color'''
 +
*'''defaultjunction'''
 +
*'''longitude'''
 +
*'''latitude'''
 +
*'''altitude'''
 +
</td>
 
</tr>
 
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
 +
 +
=='''Longitude Tag'''==
 +
 +
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 +
<td>[[image:DotPoint.JPG|link=]]</td>
 +
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of '''3.4''' and higher</td>
 +
</tr>
 
</table>
 
</table>
 
<br>
 
<br>
 +
<table cellpadding=4 bgcolor=#fcbcbc>
 +
<tr valign="top">
 +
<td>[[image:Stop.PNG|link=]]</td>
 +
<td>The '''Longitude tag''' in a '''Region''' asset has been superseded by the '''Longitude Setting''' in the [[image:WikiLink.PNG|link=]]&nbsp;'''[[How_to_Use_Environment_Tools|Environment Tools]]'''</td>
 +
</tr>
 +
</table>
 +
 +
'''longitude'''<br>
  
 
This identifies the geographic longitude of a point in the region. The tag contains three ''floating point'' or ''decimal'' values separated by commas (e.g. 147.0,26.0,1.0). The first value is the longitude '''degrees''', the second value is the longitude '''minutes''' and the third is the '''East/West''' value (1.0 = East, -1.0 = West). For example: 147.0,26.0,1.0 would represent longitude 147 degrees 26 minutes East.<br>
 
This identifies the geographic longitude of a point in the region. The tag contains three ''floating point'' or ''decimal'' values separated by commas (e.g. 147.0,26.0,1.0). The first value is the longitude '''degrees''', the second value is the longitude '''minutes''' and the third is the '''East/West''' value (1.0 = East, -1.0 = West). For example: 147.0,26.0,1.0 would represent longitude 147 degrees 26 minutes East.<br>
 +
 +
<table bgcolor=#000000 width=904>
 +
<tr valign="top">
 +
<td>
 +
<table cellpadding=4 bgcolor=#ffffb0 width=900>
 +
<tr valign="top">
 +
<td>[[image:NotePad.PNG|link=]]</td>
 +
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
 +
----
 +
There is no known feature, function or operation in a Trainz route or session that actually requires a '''Longitude''' value other than the fact that a valid '''Longitude Tag''' is compulsory in a '''Region''' asset with a build number of '''3.4''' and higher.</td>
 +
</tr>
 +
</table>
 +
</td>
 +
</tr>
 +
</table>
  
 
=='''Latitude Tag'''==  
 
=='''Latitude Tag'''==  
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of 3.4 and higher</td>
+
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of '''3.4''' and higher</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
 
<br>
 
<br>
<table cellpadding="4" bgcolor=#fcbcbc>
+
<table cellpadding=4 bgcolor=#fcbcbc>
<tr valign="top">
+
<td colspan=2><span style="font-size: 17px; font-weight: 700;">Warning:</span></td>
+
</tr>
+
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:Stop.PNG|link=]]</td>
 
<td>[[image:Stop.PNG|link=]]</td>
Line 437: Line 540:
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
+
 
<table cellpadding="4" bgcolor=#ffffb0>
+
'''latitude'''<br>
 +
 
 +
This identifies the geographic latitude of a point in the region. The tag contains three ''floating point'' or ''decimal'' values separated by commas (e.g. 41,0,50.0,-1.0). The first value is the latitude '''degrees''', the second value is the latitude '''minutes''' and the third is the '''North/South''' value (1.0 = North, -1.0 = South). For example: 41.0,50.0,-1.0 would represent latitude 41 degrees 50 minutes South.<br>
 +
 
 +
<table bgcolor=#000000 width=904>
 +
<tr valign="top">
 +
<td>
 +
<table cellpadding=4 bgcolor=#ffffb0 width=900>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
 
<td><span style="font-size: 17px; font-weight: 700;">Notes:'''</span><br>
The only purpose of the '''Latitude''' entry, specically the '''North/South''' value, is to determine the season of the year along with the '''Date''' setting. Both the '''Latitude''' and '''Date''' can be set in the [[image:WikiLink.PNG|link=]]&nbsp;'''[[How_to_Use_Environment_Tools|Environment Tools]]'''. Many '''SpeedTrees''' assets use the season to determine which foliage layer should be used.</td>
+
----
 +
The purpose of the '''Latitude''' entry is to:-
 +
*determine the season of the year along with the '''Date''' setting. Many '''SpeedTrees''' assets, for example, use the season to determine which foliage layer should be used. Both the '''Latitude''' and '''Date''' can be set in the [[image:WikiLink.PNG|link=]]&nbsp;'''[[How_to_Use_Environment_Tools|Environment Tools]]'''.
 +
*set the sun angle and its maximum height above the horizon line at noon. The times of sunrise and sunset are fixed at 06:00 and 18:00 and these cannot be changed.
 +
</tr>
 +
</table>
 +
</td>
 
</tr>
 
</tr>
<tr valign="top">
 
 
</table>
 
</table>
<br>
 
This identifies the geographic latitude of a point in the region. The tag contains three ''floating point'' or ''decimal'' values separated by commas (e.g. 41,0,50.0,-1.0). The first value is the latitude '''degrees''', the second value is the latitude '''minutes''' and the third is the '''North/South''' value (1.0 = North, -1.0 = South). For example: 41.0,50.0,-1.0 would represent latitude 41 degrees 50 minutes South.<br>
 
  
 
=='''Altitude Tag'''==
 
=='''Altitude Tag'''==
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of 3.4 and higher</td>
+
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset with an asset build number of '''3.4''' and higher</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
 
<br>
 
<br>
<table cellpadding="4" bgcolor=#fcbcbc>
+
<table cellpadding=4 bgcolor=#fcbcbc>
<tr valign="top">
+
<td colspan=2><span style="font-size: 17px; font-weight: 700;">Warning:</span></td>
+
</tr>
+
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:Stop.PNG|link=]]</td>
 
<td>[[image:Stop.PNG|link=]]</td>
<td>The '''Altitude tag''' in a '''Region''' asset has been superseded by the '''Altitude Setting''' in the [[image:WikiLink.PNG|link=]]&nbsp;'''[[How_to_Use_Environment_Tools|Environment Tools]]'''</td>
+
<td>The '''Altitude tag''' in a '''Region''' asset has been superseded by the '''World Origin Altitude Setting''' in the [[image:WikiLink.PNG|link=]]&nbsp;'''[[How_to_Use_Environment_Tools|Environment Tools]]'''</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
 
<br>
 
<br>
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
Line 476: Line 586:
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
 
This sets the initial altitude (height above sea level) of the route. The tag data contains a single integer that represents the altitude in '''metres'''. All terrain and object heights will be set relative to that altitude. For example: if the first baseboard of a route is manually raised to a height of '''20 metres''' using the '''Terrain Height Tool''' and the route is then assigned to a region with the altitude set to '''100 metres''', then the first baseboard will have a height above sea level of 20 + 100 = '''120 metres'''.
 
<br>
 
The altitude is needed in the display of snow effects, for those assets that support snow, and works with the '''Snow Altitude Setting''' which is set in the [[image:WikiLink.PNG|link=]]&nbsp;'''[[How_to_Use_Environment_Tools|Environment Tools]]'''.<br>
 
  
<table cellpadding="4" bgcolor=#ffffb0>
+
'''altitude'''<br>
 +
 
 +
This sets the initial altitude (height above sea level) of the route. It is also used in the display of snow but only with those scenery assets that have a snow effect layer.<br>
 +
 
 +
The tag data contains a single integer that represents the altitude in '''metres'''. All terrain and object heights will be set relative to that altitude. For example: if the first baseboard of a route is manually raised to a height of '''20 metres''' using the '''Terrain Height Tool''' and the route is then assigned to a region with the altitude set to '''100 metres''', then the first baseboard will have a height above sea level of 20 + 100 = '''120 metres'''.<br>
 +
 
 +
The altitude tag works with the '''Snow Altitude Setting''' which is set in the [[image:WikiLink.PNG|link=]]&nbsp;'''[[How_to_Use_Environment_Tools|Environment Tools]]'''.<br>
 +
 
 +
<table bgcolor=#000000 width=900>
 +
<tr valign="top">
 +
<td>
 +
<table bgcolor=#ffffe0>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:PencilTips.PNG|link=]]</td>
 
<td>[[image:PencilTips.PNG|link=]]</td>
<td>The '''Default Region''' has an altitude of 0 metres. If you change the assigned region for an exiting route to the '''Default Region''', then the '''base height''' of that route will be set to 0 metres and all other heights will be adjusted relative to that height. In many cases this will revert the route to its original terrain heights when it was created in Surveyor and before it was assigned to a region.</td>
+
<td>The '''Default Region''' has an altitude of 0 metres. If you change the assigned region for an exiting route to the '''Default Region''', then the '''base height''' of that route will be set to 0 metres and all other heights will be adjusted relative to that height. In many cases this will revert the route to its original terrain height when it was created in Surveyor and before it was assigned to a region.</td>
 +
</tr>
 +
</table>
 +
</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 490: Line 610:
 
=='''Car Tags'''==
 
=='''Car Tags'''==
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
Line 497: Line 617:
 
</table>
 
</table>
 
<br>
 
<br>
<table cellpadding="4" bgcolor=#ffffb0> <!-- BEGIN Car Tag Notes table -->
+
<table bgcolor=#000000 width=904>
 +
<tr valign="top">
 +
<td>
 +
<table cellpadding=4 bgcolor=#ffffb0 width=900>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
 
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
 +
----
 
*There is some confusion over the maximum number of '''different types''' of moving vehicles allowed in a session. Some region assets available on the '''DLS''' claim to produce as many as 100 different types of moving vehicles but whether more than 15 different types can be seen in a '''Driver''' session at any one time is, as yet, unclear.
 
*There is some confusion over the maximum number of '''different types''' of moving vehicles allowed in a session. Some region assets available on the '''DLS''' claim to produce as many as 100 different types of moving vehicles but whether more than 15 different types can be seen in a '''Driver''' session at any one time is, as yet, unclear.
*The '''carrate''' tag, which is used to control the rate at which moving vehicles are created (i.e. how many per minute), has been declared '''obsolete''' by N3Vs devs. This tag is not used in a '''Region''' asset but has been used in some route config.txt files.
+
*The '''carrate''' tag, which is used to control the rate at which moving vehicles are created (i.e. how many per minute), has been declared '''obsolete''' in Route assets. This tag is not used in a '''Region''' asset but has been used in some Route config.txt files. It only applies to road spline assets that support road traffic.
 +
</td>
 +
</tr>
 +
</table>
 
</td>
 
</td>
 
</tr>
 
</tr>
 
</table> <!-- END Car Tag Notes table -->
 
</table> <!-- END Car Tag Notes table -->
 +
 +
'''car0''', '''car1''', '''car2''', etc<br>
  
 
The Car Tag identifies the moving vehicles (cars, trucks, etc) that will appear on roads in the region. Each car tag contains just a single kuid value (e.g. <kuid:329364:1568>) that identifies a single vehicle. There are restrictions and requirements:-
 
The Car Tag identifies the moving vehicles (cars, trucks, etc) that will appear on roads in the region. Each car tag contains just a single kuid value (e.g. <kuid:329364:1568>) that identifies a single vehicle. There are restrictions and requirements:-
*Up to 15 different vehicles, each as a separate tag from '''car0''' to '''car14''' with their '''kuid''' values, can be specified in a region. The car tag numbers must be consecutive with no missing or duplicated entries (see '''Notes''' below)
+
*Up to 15 different vehicles (see '''Notes''' above), each as a separate tag from '''car0''' to '''car14''' with their '''kuid''' values, can be specified in a region. The car tag numbers must be consecutive with no missing or duplicated entries (see '''Notes''' above)
 
*'''The vehicles must be specially configured to allow them to be used as moving vehicles''' - static car assets cannot be used. See [[image:WikiLink.PNG|link=]]&nbsp;'''[[HowTo/Build_a_Car_for_Traffic_(stand-alone_version)#Load_Model_into_Trainz|Build a Car for Traffic]]''' for information on how to configure a static vehicle asset for road traffic
 
*'''The vehicles must be specially configured to allow them to be used as moving vehicles''' - static car assets cannot be used. See [[image:WikiLink.PNG|link=]]&nbsp;'''[[HowTo/Build_a_Car_for_Traffic_(stand-alone_version)#Load_Model_into_Trainz|Build a Car for Traffic]]''' for information on how to configure a static vehicle asset for road traffic
 
*'''Not all roads are configured to carry moving vehicles'''
 
*'''Not all roads are configured to carry moving vehicles'''
Line 519: Line 648:
 
  car3                                    <kuid2:329364:1707:1>
 
  car3                                    <kuid2:329364:1707:1>
  
<table cellpadding="4" bgcolor=#fcbcbc>
+
<table cellpadding=4 bgcolor=#fcbcbc>
<tr valign="top">
+
<td colspan=2><span style="font-size: 17px; font-weight: 700;">Warning:</span></td>
+
</tr>
+
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[file:Stop.PNG|link=]]</td>
 
<td>[[file:Stop.PNG|link=]]</td>
<td>If any of the cars is '''faulty''' then the '''Region''' asset will NOT appear for selection in the '''Region List''' (see '''Using the Asset''' below)</td>
+
<td>If any of the listed cars are '''faulty''' then the '''Region''' asset will NOT appear for selection in the route '''Region List''' (see '''Using the Asset''' below)</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 531: Line 657:
 
=='''Kuid Table Tag'''==
 
=='''Kuid Table Tag'''==
  
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset if the '''defaultjunction''' or '''car''' tags are used</td>
+
<td>This tag is&nbsp;<span style="background-color: red; color: white; font-weight: 700;">&nbsp;compulsory&nbsp;</span>&nbsp;in a Region asset if the '''defaultjunction''', '''default-texture''' or '''car''' tags are used</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
<br>
+
 
This must contain the kuids of the '''Default Junction''' asset and all the cars specified in the '''car''' tags. The kuid order is not important and the tag numbers ("0", "1", etc) do not have to match those used in the '''car''' tags. Using the examples shown above, the '''kuid-table''' could be as shown below.
+
'''kuid-table'''<br>
 +
 
 +
This must contain the kuids of the '''Default Junction Tag''', the '''Default Texture Tag''' and all the cars specified in the '''car''' tags - if any of them are present. The kuid order is not important and the tag numbers ("0", "1", etc) do not have to match those used in the '''car''' tags. Using the examples shown above, the '''kuid-table''' could be as shown below.
  
 
  kuid-table
 
  kuid-table
 
  {
 
  {
 
   0                                    <kuid:61119:24120>
 
   0                                    <kuid:61119:24120>
   1                                    <kuid:329364:1568>
+
   1                                     <kuid:-25:1180>
   2                                     <kuid:309161:100599>
+
  2                                     <kuid:329364:1568>
   3                                     <kuid2:329364:1689:1>
+
   3                                     <kuid:309161:100599>
   4                                     <kuid2:329364:1707:1>
+
   4                                     <kuid2:329364:1689:1>
 +
   5                                     <kuid2:329364:1707:1>
 
  }
 
  }
  
In this example, the first kuid value is for the '''defaultjunction''' and the remaining kuid values are for the four road vehicles, but the order of the entries is not important.
+
In this example, the first kuid value is for the '''defaultjunction''', the second is for the '''default-texture''' and the remaining kuid values are for the four road vehicles, but the order of the entries is not important.
  
<table width="100%">
+
<table> <!-- BEGIN Nav Buttons Table -->
 
<tr valign="top">
 
<tr valign="top">
<td align="right">[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
+
<td width=729><span id="stepThumb"></span>&nbsp;</td>
 +
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#stepTags|alt=Next Up|Top]]</td>
 +
<td width=75>[[file:NextDown.png|link=#bottom|alt=Next Down|Next Down]]</td>
 +
<td width=75>[[file:BackToBottom.png|link=#bottom|alt=Bottom|Bottom]]</td>
 
</tr>
 
</tr>
</table>
+
</table> <!-- END Nav Buttons Table -->
 +
 
 
='''The Thumbnail Image'''=
 
='''The Thumbnail Image'''=
<table cellpadding="4" bgcolor=#c1e7e7>
+
<table cellpadding=4 bgcolor=#c1e7e7>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:DotPoint.JPG|link=]]</td>
 
<td>[[image:DotPoint.JPG|link=]]</td>
Line 564: Line 698:
 
</table>
 
</table>
 
<br>
 
<br>
<table cellpadding="4" bgcolor=#ffffb0>
+
<table bgcolor=#000000 width=904>
 +
<tr valign="top">
 +
<td>
 +
<table cellpadding=4 bgcolor=#ffffb0 width=900>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td>[[image:NotePad.PNG|link=]]</td>
 
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
 
<td><span style="font-size: 17px;">'''Notes:'''</span><br>
 +
----
 
The thumbnail image:-
 
The thumbnail image:-
 
*must be in '''JPG''' format.
 
*must be in '''JPG''' format.
 
*must be 240 pixels wide by 180 pixels tall.
 
*must be 240 pixels wide by 180 pixels tall.
 
*'''does not''' have to be named ''thumbnail.jpg'' as long as the name used is in the '''Thumbnails''' container in the '''config.txt''' file.
 
*'''does not''' have to be named ''thumbnail.jpg'' as long as the name used is in the '''Thumbnails''' container in the '''config.txt''' file.
 +
</td>
 +
</tr>
 +
</table>
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 579: Line 720:
  
 
Once the new asset has been committed it will be available for use as a '''Region'''.
 
Once the new asset has been committed it will be available for use as a '''Region'''.
 +
 +
<table cellpadding=4 bgcolor=#fcbcbc>
 +
<tr valign="top">
 +
<td>[[image:Stop.PNG|link=]]</td>
 +
<td>If the region asset is faulty (for example, if it has an incorrect '''kuid''' code in one of its car tags) then the region '''will not''' appear in the '''Region''' selection list.</td>
 +
</tr>
 +
</table>
  
 
The region is specified when a new route is created and it can be altered by selecting '''Edit Route''' from the main menu in '''TANE''' or the edit menu in '''TRS19'''.
 
The region is specified when a new route is created and it can be altered by selecting '''Edit Route''' from the main menu in '''TANE''' or the edit menu in '''TRS19'''.
Line 584: Line 732:
 
[[image:TasmaniaRegion.png|link=|alt=Load a Region]]
 
[[image:TasmaniaRegion.png|link=|alt=Load a Region]]
  
<table width="100%">
+
<table> <!-- BEGIN Nav Buttons Table -->
 
<tr valign="top">
 
<tr valign="top">
<td align="right">[[image:BackToTop.png|link=#top|alt=Top|Top]]</td>
+
<td width=729><span id="bottom"></span>&nbsp;</td>
 +
<td width=46>[[file:BackToTop.png|link=#top|alt=Top|Top]]</td>
 +
<td width=75>[[file:NextUp.png|link=#stepThumb|alt=Next Up|Top]]</td>
 +
<td width=75>&nbsp;</td>
 +
<td width=75>&nbsp;</td>
 
</tr>
 
</tr>
</table>
+
</table> <!-- END Nav Buttons Table -->
 
+
 
----
 
----
 
----
 
----
 
='''Trainz Wiki'''=
 
='''Trainz Wiki'''=
<table cellpadding="4" bgcolor=#ffffff>
+
<table cellpadding=4 bgcolor=#ffffff>
 
<tr valign="top">
 
<tr valign="top">
 
<td>[[image:TrainzWiki.png|link=]]</td>
 
<td>[[image:TrainzWiki.png|link=]]</td>

Revision as of 20:06, 14 May 2022

The information in this Wiki Page applies to TANE, TRS19, Trainz Plus and TRS22.

Contents

  Top   Next Down Bottom

What is a Region?

DotPoint.JPG A Region defines some of the characteristics of a geographic location (e.g. a country or a province) that is represented in a route
DotPoint.JPG A Region Asset is a config.txt file that contains the region data

NotePad.PNG Region Data:

When a Region has been assigned to a route, it will set:-

  • the default switch lever to be used in the route
  • the colour of the water (lakes, streams, ponds, ocean)
  • the side of the road, left or right, used by all moving road vehicles
  • the latitude of a point in the route
  • the longitude of a point in the route
  • the altitude of a point in the route
  • the number and types of moving road vehicles
  • the default baseboard grid pattern in TRS19 and later versions
  Top Next Up Next Down Bottom

How to Create a Region Asset

Steps.PNG

Steps
DotPoint1.JPG Create the Asset:
NewAsset.PNG

NewAssetCreated.PNG
From the Trainz Launcher
  1. select  Manage Content 
  2. in Content Manager open the Developer menu
  3. select New Content

This will create a new asset and open it for editing.

A message window will appear that will (hopefully) report on the successful creation of a new asset.

  • Close the message window

  DotPoint2.JPG Find the New Asset:
NewAssetSelectOpen.PNG
  • Set the CM Search Filter to Open for Editing

This will display only those assets that have been opened for editing (hopefully only your new and as yet unnamed asset will be shown)


  DotPoint3.JPG Open the Asset in Windows File Explorer:
NewAssetShowExplorer.PNG
  1. Right mouse click on the entry New Asset
  2. Select Open
  3. Select Show in Explorer

  DotPoint4.JPG Open Config.txt File in Notepad:
NewAssetOpenExplorer.PNG There will only be a single item in the asset, its config.txt file
  • Double click on the file to open it in Notepad

  DotPoint5.JPG Edit the Config.txt File:
NewAssetOpenNotepad.PNG You will need to edit the contents of this file.
  • The next section, PageLink.PNG The Config.txt File, identifies the changes you will need to make.
  • The new name you give to the asset will not take effect until after it has been committed.
  • After editing, save the changes and exit Notepad.


Stop.PNG Unless you know exactly what you are doing* DO NOT ALTER THE KUID NUMBER  that has been added to the file
* but even if you do, think twice before you change it !

  DotPoint6.JPG Add a Thumbnail:

You will need to add a thumbnail image as described in the section PageLink.PNG The Thumbnail Image. The thumbnail and the config.txt files are the only two items required in this asset.
Asset contents

The thumbnail does not have to be added immediately but must it be present before the new asset can be used. You can reopen the asset for editing later to add the thumbnail before it is committed.

  DotPoint7.JPG Finish Up:
NewAssetSubmit.PNG
  • Close the Asset window
  • Commit the asset in Content manager
    • Right mouse click on the asset
    • Select Submit Edits

Hopefully there will be no errors.

NotePad.PNG Because you still have the Filter Open for Editing in operation, the now closed and committed asset will vanish from the Content Manager display. To check that your asset has been correctly created and renamed, set the Search Filter to Today.


Bug.png Some of the most common errors that can occur when creating and committing a new asset are:-
  • no thumbnail image in the asset
  • typing errors in the config.txt file
  • poorly formatted tags in the config.txt file
  • incorrect file types added to the asset folder
  • files missing from the asset folder
  • incorrect kuid value (despite the warning you changed it in Step 5)
  Top Next Up Next Down Bottom

The Config.txt File

This file should follow the same (or a similar) format as the example below.

  • entries in  red  must not be changed
  • the indenting of the lines and the spacing ("tabbing") between the "tags" on the left and their contents on the right are purely to make it easier for humans to read
  • the use of the { } braces is to group tags into common "containers". These containers must not be broken up and the number of { characters must match the number of } characters
  • the order of the "tags" is not important
kuid                              <kuid:this is an auto-generated number>
kind                              "region"
username                          "Region data for Tasmania 1950 to 1969"
category-class                    "YX"
category-era                      "1950s;1960s"
category-region                   "AU"
ontheright                        0
water-color                       75,128,255
defaultjunction                   <kuid:61119:24120>
default-texture                   <kuid:-25:1180>
trainz-build                      4.8
longitude                         147.0,26.0,1.0
latitude                          41.0,50.0,-1.0
altitude                          212
car0                              <kuid:329364:1568>
thumbnails
{
  Default
  {
    width                         240
    height                        180
    image                         "Tasmania-Region.jpg"
  }
}
description                       "Vehicle, road, water and geographic data for Tasmania (Australia) in the 1950s and 1960s"
kuid-table
{
  0                               <kuid:61119:24120>
  1                               <kuid:329364:1568>
  2                               <kuid:-25:1180>
}


Gears.PNG Settings:

For the above example:

  • The  kuid  is unique to every asset so it is  not a good idea to choose your own . This will be automatically generated by the Content Manager program when a new asset is created
  • The  kind  identifies the type of asset and the types of files that Trainz will expect to find in the asset. It also tells Trainz how to render and error check the asset. For region assets, the kind is "region". A list of asset kinds can be found at WikiLink.PNG KIND Hierarchy
  • The  username  is your name for the asset and the name that other users will see. It is a good idea to make it short and meaningful.
  • The  category-class  identifies the intent of the asset and is important in classifying it for filtering and searching. For region assets, the category class is "YX". A list of category classes can be found at WikiLink.PNG Category-class
  • The  category-era  identifies the decade or decades in which the region is based (e.g. "1950s"). See the section PageLink.PNG Category Era Tag below for more details.
  • The  category-region  identifies the country or countries in which layout is based. See the section PageLink.PNG Category Region Tag below for more details.
  • The  ontheright  identifies which side of the road is used by road traffic. See the section PageLink.PNG On the Right Tag below for more details.
  • The  water-color  identifies the the colour used by water surfaces in this region. See the section PageLink.PNG Water Color Tag below for more details.
  • The  defaultjunction  identifies the junction lever or switch that Trainz will use as its default lever asset whenever a lever is added to a track junction in this region. See the section PageLink.PNG Default Junction Tag below for more details.
  • The  default-texture  identifies the texture that will be applied to every new baseboard that is added to a Route. See the section PageLink.PNG Default Texture Tag below for more details.
  • The  trainz-build  identifies the minimum Trainz version needed for this asset. A list of asset trainz-build numbers and their corresponding Trainz versions can be found at WikiLink.PNG Trainz build numbers
  • The  longitude  identifies the geographic longitude of a point in the region. See the section PageLink.PNG Longitude Tag below for more details.
  • The  latitude  identifies the geographic latitude of a point in the region. See the section PageLink.PNG Latitude Tag below for more details.
  • The  altitude  identifies the altitude or base height of the starting baseboard in the route. See the section PageLink.PNG Altitude Tag below for more details.
  • The  car0  identifies the first moving car that will appear on roads in the region. Upto 15 different cars can be specified. See the section PageLink.PNG Car Tags below for more details.
  • The  thumbnails  container holds the preview images of the asset shown by the Content Manager program, the Web version of the DLS and, for some assets, the Surveyor main menu image(s). See the section PageLink.PNG Thumbnails below for more details. Complete information on thumbnails can be found at WikiLink.PNG Thumbnails
    • The label  Default  is the container ID or placeholder for the thumbnail used by CM and the Web based DLS. While its exact label (or number - eg. "Default", "00", "01", etc) is not important, it must be different from any other labels that might be present in the thumbnail. Default and 0 are commonly used placeholder labels for the 240 x 180 thumbnail image
      • The image is the name of the thumbnail image. It does not have to be called thumbnail.jpg but it must be a JPG format image
      • The width of the image in pixels must be 240
      • The height of the image in pixels must be 180
  • The  description  provides more details for users than the username
  • The  kuid-table  contains the kuid values of the defaultjunction asset and all the carN assets. See the section PageLink.PNG Kuid Table Tag below for more details.

PencilTips.PNG Language Options:

All Trainz assets have a language facility built into their config.txt files that allows other language translations to be added for certain tags, such as the username and description tags. A full description of the process can be found on the Trainz Wiki at WikiLink.PNG Localize an Asset and a list of all the supported languages with their two character codes at WikiLink.PNG Localization (country) Codes.
At the very basic level any creator can easily provide other language translations for the username and description tags in the assets they create. Examples are shown below for this sample asset.
username                    "Region data for Tasmania 1950 to 1969"
username-c2                 "塔斯马尼亚州1950年至1969年的区域数据"
username-de                 "Regionsdaten für Tasmanien 1950 bis 1969"
username-es                 "Datos de la región para Tasmania 1950 a 1969"
username-fr                 "Données régionales pour la Tasmanie de 1950 à 1969"
username-nl                 "Regiogegevens voor Tasmanië 1950 tot 1969"
username-ru                 "Данные по регионам за Тасманию с 1950 по 1969 год"
Translations to Chinese (simplified), Spanish, French, German, Dutch and Russian, perfect or not, were provided by Google Translate.
  Top Next Up Next Down Bottom

Region Tags

Category Era Tag

DotPoint.JPG This tag is  NOT compulsory  in a Region asset

category-era

This identifies the decade or decades in which the region is based. The tag data contains text surrounded by quote (") characters. Each decade name ends with an "s" (e.g. "1950s") and multiple consecutive decades can be specified by using a semi-colon (;) as a separator (e.g. "1950s;1960s"). A list of category-eras can be found at WikiLink.PNG Category-era tag.

Category Region Tag

DotPoint.JPG This tag is  NOT compulsory  in a Region asset

category-region

This identifies the country or countries in which the region is based. The tag data contains text surrounded by quote (") characters. Each country has a two letter code (e.g. "AU" for Australia) and multiple countries can be specified by using a semi-colon (;) as a separator (e.g. "AU;UK;US"). If no country is to be specified then the two character code "00" (double zero) is used. A list of countries (category regions) can be found at WikiLink.PNG Category-region tag.

On the Right Tag

DotPoint.JPG This tag is  compulsory  in a Region asset

ontheright (no hyphens between the words)

This identifies which side of the road is used by road traffic in this region. The tag data contains a binary value (0 or 1). 0 = left side, 1 = right side.

Water Color Tag

Stop.PNG The water-color tag in a Region asset has been superseded by the Water Color Lighting Setting which is set in the WikiLink.PNG Environment Tools


DotPoint.JPG This tag is  compulsory  in a Region asset with an asset build number of 3.4 and higher

water-color

This identifies the colour used by water surfaces added by the Surveyor Terrain Tool in this region. The tag contains three integers separated by commas (e.g. 75,128,255). The integers specify the RGB (Red, Green, Blue) colour values to be used and each value is from 0 to 255.

Default Junction Tag

DotPoint.JPG This tag is  compulsory  in a Region asset with an asset build number of 3.4 and higher

defaultjunction (no hyphen between the two words)

This identifies the junction lever or switch that Trainz will use as its default lever asset whenever a lever is added to a track junction in this region. The tag data contains a single valid kuid (e.g. <kuid:61119:24120>).

The kuid value of the switch lever must also be added to the kuid-table container of the config.txt file.

Default Texture Tag

DotPoint.JPG This tag is  only valid  in a Region asset with a build number of 4.8 and higher (TRS19 SP3 and later)

default-texture

This identifies the default texture that will be applied to every new baseboard that is added. If it is not present then a system default texture will be used on new baseboards in Trainz TRS19 and later. If present then the Trainz Build Tag must also be present and set to a minimum value of 4.8 (TRS19 SP3 and later).

The kuid value shown in the sample config.txt above, <kuid:-25:1180>, is for the standard TRS19 grid pattern.

The kuid value of the texture must also be added to the kuid-table container of the config.txt file.

Trainz Build Tag

DotPoint.JPG This tag is  NOT compulsory  in a Region asset unless the Default Texture Tag is present

trainz-build

The identifies the minimum version of Trainz that wlll be needed to use this region asset. A list of asset trainz-build numbers and their corresponding Trainz versions can be found at WikiLink.PNG Trainz build numbers

NotePad.PNG Notes:

If this tag is present and set to a value of 3.4 or higher, then a number of other tags will become compulsory and must also be present. Specifically:-

  • water-color
  • defaultjunction
  • longitude
  • latitude
  • altitude

Longitude Tag

DotPoint.JPG This tag is  compulsory  in a Region asset with an asset build number of 3.4 and higher


Stop.PNG The Longitude tag in a Region asset has been superseded by the Longitude Setting in the WikiLink.PNG Environment Tools

longitude

This identifies the geographic longitude of a point in the region. The tag contains three floating point or decimal values separated by commas (e.g. 147.0,26.0,1.0). The first value is the longitude degrees, the second value is the longitude minutes and the third is the East/West value (1.0 = East, -1.0 = West). For example: 147.0,26.0,1.0 would represent longitude 147 degrees 26 minutes East.

NotePad.PNG Notes:

There is no known feature, function or operation in a Trainz route or session that actually requires a Longitude value other than the fact that a valid Longitude Tag is compulsory in a Region asset with a build number of 3.4 and higher.

Latitude Tag

DotPoint.JPG This tag is  compulsory  in a Region asset with an asset build number of 3.4 and higher


Stop.PNG The Latitude tag in a Region asset has been superseded by the Latitude Setting in the WikiLink.PNG Environment Tools

latitude

This identifies the geographic latitude of a point in the region. The tag contains three floating point or decimal values separated by commas (e.g. 41,0,50.0,-1.0). The first value is the latitude degrees, the second value is the latitude minutes and the third is the North/South value (1.0 = North, -1.0 = South). For example: 41.0,50.0,-1.0 would represent latitude 41 degrees 50 minutes South.

NotePad.PNG Notes:

The purpose of the Latitude entry is to:-

  • determine the season of the year along with the Date setting. Many SpeedTrees assets, for example, use the season to determine which foliage layer should be used. Both the Latitude and Date can be set in the WikiLink.PNG Environment Tools.
  • set the sun angle and its maximum height above the horizon line at noon. The times of sunrise and sunset are fixed at 06:00 and 18:00 and these cannot be changed.

Altitude Tag

DotPoint.JPG This tag is  compulsory  in a Region asset with an asset build number of 3.4 and higher


Stop.PNG The Altitude tag in a Region asset has been superseded by the World Origin Altitude Setting in the WikiLink.PNG Environment Tools


DotPoint.JPG The altitude can be set by selecting a Region:-
  • when a new route is created - the route base height will be set to the altitude shown in the selected region so the first baseboard will have its height set to that altitude instead of the usual starting height of 0 metres
  • when an existing route is edited by assigning it a new region - the route will have its base height set to the altitude shown in the new region and all existing heights (terrain, splines, objects) will be set relative to that value

altitude

This sets the initial altitude (height above sea level) of the route. It is also used in the display of snow but only with those scenery assets that have a snow effect layer.

The tag data contains a single integer that represents the altitude in metres. All terrain and object heights will be set relative to that altitude. For example: if the first baseboard of a route is manually raised to a height of 20 metres using the Terrain Height Tool and the route is then assigned to a region with the altitude set to 100 metres, then the first baseboard will have a height above sea level of 20 + 100 = 120 metres.

The altitude tag works with the Snow Altitude Setting which is set in the WikiLink.PNG Environment Tools.

PencilTips.PNG The Default Region has an altitude of 0 metres. If you change the assigned region for an exiting route to the Default Region, then the base height of that route will be set to 0 metres and all other heights will be adjusted relative to that height. In many cases this will revert the route to its original terrain height when it was created in Surveyor and before it was assigned to a region.

Car Tags

DotPoint.JPG This tag is  NOT compulsory  in a Region asset. If not present then no moving vehicles will appear


NotePad.PNG Notes:

  • There is some confusion over the maximum number of different types of moving vehicles allowed in a session. Some region assets available on the DLS claim to produce as many as 100 different types of moving vehicles but whether more than 15 different types can be seen in a Driver session at any one time is, as yet, unclear.
  • The carrate tag, which is used to control the rate at which moving vehicles are created (i.e. how many per minute), has been declared obsolete in Route assets. This tag is not used in a Region asset but has been used in some Route config.txt files. It only applies to road spline assets that support road traffic.

car0, car1, car2, etc

The Car Tag identifies the moving vehicles (cars, trucks, etc) that will appear on roads in the region. Each car tag contains just a single kuid value (e.g. <kuid:329364:1568>) that identifies a single vehicle. There are restrictions and requirements:-

  • Up to 15 different vehicles (see Notes above), each as a separate tag from car0 to car14 with their kuid values, can be specified in a region. The car tag numbers must be consecutive with no missing or duplicated entries (see Notes above)
  • The vehicles must be specially configured to allow them to be used as moving vehicles - static car assets cannot be used. See WikiLink.PNG Build a Car for Traffic for information on how to configure a static vehicle asset for road traffic
  • Not all roads are configured to carry moving vehicles
  • The WikiLink.PNG Environment Tools has a control that will enable and disable ALL road traffic. If this is set to disable then the car tags will be ignored and no moving vehicles will appear.
  • The kuids of the vehicles must be added to the kuid-table container of the config.txt file

For example, the following entries will specify just 4 different moving vehicles for the region.

car0                                    <kuid:329364:1568>
car1                                    <kuid:309161:100599>
car2                                    <kuid2:329364:1689:1>
car3                                    <kuid2:329364:1707:1>
Stop.PNG If any of the listed cars are faulty then the Region asset will NOT appear for selection in the route Region List (see Using the Asset below)

Kuid Table Tag

DotPoint.JPG This tag is  compulsory  in a Region asset if the defaultjunction, default-texture or car tags are used

kuid-table

This must contain the kuids of the Default Junction Tag, the Default Texture Tag and all the cars specified in the car tags - if any of them are present. The kuid order is not important and the tag numbers ("0", "1", etc) do not have to match those used in the car tags. Using the examples shown above, the kuid-table could be as shown below.

kuid-table
{
  0                                     <kuid:61119:24120>
  1                                     <kuid:-25:1180>
  2                                     <kuid:329364:1568>
  3                                     <kuid:309161:100599>
  4                                     <kuid2:329364:1689:1>
  5                                     <kuid2:329364:1707:1>
}

In this example, the first kuid value is for the defaultjunction, the second is for the default-texture and the remaining kuid values are for the four road vehicles, but the order of the entries is not important.

  Top Next Up Next Down Bottom

The Thumbnail Image

DotPoint.JPG A thumbnail image MUST be present in the asset


NotePad.PNG Notes:

The thumbnail image:-

  • must be in JPG format.
  • must be 240 pixels wide by 180 pixels tall.
  • does not have to be named thumbnail.jpg as long as the name used is in the Thumbnails container in the config.txt file.

Using the Asset

Once the new asset has been committed it will be available for use as a Region.

Stop.PNG If the region asset is faulty (for example, if it has an incorrect kuid code in one of its car tags) then the region will not appear in the Region selection list.

The region is specified when a new route is created and it can be altered by selecting Edit Route from the main menu in TANE or the edit menu in TRS19.

Load a Region

  Top Next Up    


Trainz Wiki

TrainzWiki.png

More Tutorials and Guides to Using Trainz


This page was created by Trainz user pware in April 2020 and was last updated as shown below.


Personal tools