How to Create a Driver Character
m |
m (corrections, cleanup) |
||
Line 1: | Line 1: | ||
− | The information in this Wiki Page applies to '''TANE''', '''TRS19''', '''Trainz Plus''' and '''TRS22'''. | + | The information in this Wiki Page applies to '''TANE''', '''TRS19''', '''Trainz Plus''' and '''TRS22'''.<br> |
− | + | ||
− | + | ||
<table cellpadding=4 bgcolor=#c1e7e7> | <table cellpadding=4 bgcolor=#c1e7e7> | ||
<tr valign="top"> | <tr valign="top"> | ||
Line 7: | Line 5: | ||
<td>'''Driver Character Icons''' are small graphic icons or images that can be selected to reprsent Drivers in the [[file:WikiLink.PNG|link=]] '''[[How to Use Driver Setup Rule|Driver Setup Rule]]'''<td> | <td>'''Driver Character Icons''' are small graphic icons or images that can be selected to reprsent Drivers in the [[file:WikiLink.PNG|link=]] '''[[How to Use Driver Setup Rule|Driver Setup Rule]]'''<td> | ||
</tr> | </tr> | ||
− | </table | + | </table> |
<br> | <br> | ||
+ | __TOC__ | ||
+ | |||
<table> <!-- BEGIN Nav Buttons Table --> | <table> <!-- BEGIN Nav Buttons Table --> | ||
<tr valign="top"> | <tr valign="top"> | ||
Line 25: | Line 25: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[image:DriverIconOriginal.png|link=|alt=Original photo of a cat]]</td> | <td>[[image:DriverIconOriginal.png|link=|alt=Original photo of a cat]]</td> | ||
− | <td>If possible use a photograph with a simple background behind the subject. This keeps the icon simple and can avoid unnecessary "clutter". Most image editors will have some tools for | + | <td>If possible use a photograph with a simple background behind the subject. This keeps the icon simple and can avoid unnecessary "clutter". Most image editors will have some tools for removing unwanted backgrounds but this can be time consuming.<br> |
You may choose to add some clipart - in this case a train drivers cap and a "traditional" red scarf. Copyright free (and royalty free) clipart is recommended.<br> | You may choose to add some clipart - in this case a train drivers cap and a "traditional" red scarf. Copyright free (and royalty free) clipart is recommended.<br> | ||
Line 382: | Line 382: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[image:DotPoint.JPG|link=]]</td> | <td>[[image:DotPoint.JPG|link=]]</td> | ||
− | <td>'''A thumbnail image MUST be present in the asset | + | <td>'''A thumbnail image MUST be present in the asset'''</td> |
</tr> | </tr> | ||
</table> | </table> | ||
Line 410: | Line 410: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:DotPoint.JPG|link=]]</td> | <td>[[file:DotPoint.JPG|link=]]</td> | ||
− | <td>You will need image editing software to create the icon image or to change an existing image to the required dimensions and format.</td> | + | <td>You will need image editing software to create the icon image or to change an existing image to the required dimensions and format</td> |
+ | </tr> | ||
+ | <tr valign="top"> | ||
+ | <td>[[file:DotPoint.JPG|link=]]</td> | ||
+ | <td>See '''Create the Driver Image''' section at the top of this page for an example</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 518: | Line 522: | ||
*'''primary''' - this is the name of the icon image file that contains the '''RGB''' colour image. Any '''alpha channel''' in this file will be ignored | *'''primary''' - this is the name of the icon image file that contains the '''RGB''' colour image. Any '''alpha channel''' in this file will be ignored | ||
*'''alpha''' - this is the name of the icon image file that contains the '''Alpha Channel''' (transparency) image (see '''Notes:''' below) | *'''alpha''' - this is the name of the icon image file that contains the '''Alpha Channel''' (transparency) image (see '''Notes:''' below) | ||
− | *'''tile=st''' - instructs '''Trainz''' to tile the image both horizontally and vertically. This has no effect on the icon | + | *'''tile=st''' - instructs '''Trainz''' to tile the image both horizontally and vertically. This has no effect on the Driver Character icon but must be included for validation purposes |
No "white spaces" between the text characters is allowed.</td> | No "white spaces" between the text characters is allowed.</td> | ||
</tr> | </tr> | ||
Line 623: | Line 627: | ||
='''Using the Asset'''= | ='''Using the Asset'''= | ||
− | Once the new asset has been committed it will be available for use in a '''Driver Setup Rule''' | + | Once the new asset has been committed it will be available for use in a '''Driver Setup Rule'''. |
<table> | <table> | ||
Line 653: | Line 657: | ||
</table> | </table> | ||
<br> | <br> | ||
− | + | The finished product as a Driver.<br> | |
[[image:DriverIconLillian.png|link=]] | [[image:DriverIconLillian.png|link=]] | ||
− | |||
<table> <!-- BEGIN Nav Buttons Table --> | <table> <!-- BEGIN Nav Buttons Table --> |
Revision as of 20:25, 30 November 2022
The information in this Wiki Page applies to TANE, TRS19, Trainz Plus and TRS22.
Driver Character Icons are small graphic icons or images that can be selected to reprsent Drivers in the Driver Setup Rule |
Contents |
Create the Driver Image
This can be done using your favoutite image editor. It can start with a photograph, as shown in the example below, a piece of clip art or a drawing. Best to make sure that there will be no copyright issues so something of your own creation, such as a photograph, would be ideal.
If possible use a photograph with a simple background behind the subject. This keeps the icon simple and can avoid unnecessary "clutter". Most image editors will have some tools for removing unwanted backgrounds but this can be time consuming. You may choose to add some clipart - in this case a train drivers cap and a "traditional" red scarf. Copyright free (and royalty free) clipart is recommended. The clip art can be added as layers to the image which makes them easier to manipulate (resize and move). |
Create Driver Character Asset
The Config.txt FileThis file should follow the same (or a similar) format as the example below.
kuid <kuid: this is an auto-generated number > kind "drivercharacter" face-texture "DriverLillian.texture" username "Driver Lillian" category-class "OHD" trainz-build 4.3 thumbnails { Default { width 240 height 180 image "thumbnail.jpg" } 01 { width 64 height 64 image "driverlillian.texture" } } description "Icon for train driver Lillian"
The Thumbnail Image
The Icon Image
The Texture File
Using the AssetOnce the new asset has been committed it will be available for use in a Driver Setup Rule.
Trainz Wiki
This page was created by Trainz user pware in November 2022 and was last updated as shown below. |