Trainz/Basic Reskinning for beginners
This tutorial will take you through the steps to do a simple reskin. The tutorial uses TS2009 CM2 because this version of Trainz does a lot more error checking than previous versions and this will help you to avoid errors. The re-skinning process is similar in previous versions of Trainz, so if you have TRS2004, TRS2006 or TC3 you will be able to follow this tutorial. (To clone an asset in '06 or TC3 use CMP in a similar manner to the TS2009 description, in TRS2004 access the asset folder (Auran/TRS2004/World/Dispatcher/downloads/asset kuid) and copy the folder. Open the copied folder, open the config.txt file and change the assets kuid number to one with your own ID prefix. Be sure not to duplicate an existing kuid number of yours. Look through the config. file and change words in the description, author, licence, e-mail address and web address as appropriate. Be very careful not to change any other data. Save and close the config.txt. file. Now edit the asset folder's kuid number to the one you used in the config. txt. file.
At this stage you will need to download the excellent free photo editing software GIMP if you don't already have it. http://www.gimp.org/
Trainz has three basic parts to a model or asset. The first is the mesh or shape, the second is the texture file and the third part can be considered to be the written part, including the config.txt and any scripts. You can change the texture file fairly easily to change the appearance of the asset. This is known as re-skinning.
Changing the texture of an asset is a fairly easy way to get into asset creation. Be aware you need to respect copy write and you need the mesh creator's permission before distributing the asset i.e. uploading to the DLS.
Before you start be aware that different types of texture files have slight differences as some file types have more options than others. Some assets have a greater impact on Trainz performance than others. Since we can select which asset we reskin, try to select assets with a single .bmp or .tga texture file.
We'll start with a simple sign that uses a .bmp texture file. kuid:86627:1182 so step one is to clone the asset. Note this sign is Trainz version 1.5 as it doesn't require any features of the later versions. Right click the asset and click on clone. (For TRS 2004 see first paragraph)
Having cloned the asset we now need to edit it. Go to the Open for Edit tab, right click. (TRS 2004 users, open cloned folder)
This opens up a Windows folder containing the asset. We now want to edit the .bmp file using GIMP
Note the two panels one for the image and one containing the tools.
Just below the image is the scale, for ease of use raise this to 400% and increase the window size of the panel. Use the eye dropper tool to pick up the background colour then the paint brush to remove the existing lettering.
GIMP is particularly strong in adding lettering. Note the background / foreground colour squares click on the curved arrow to reverse these to get white lettering. Click on the lettering tool, the letter "A" and select a font, "Gill Sans MT Bold" is fairly useful. It is possible to add fonts to GIMP. You can adjust the font size directly.
Left click with the mouse at the top left hand corner then enter the desired text. It is possible to change the font size before clicking on close.
To position the text type "M" then click on "Move the active layer"
Save the file.
Go to edit the config.txt file.
If you started with a .tga file then the saving process is slightly different. First note the file size of the .tga file. Then when you save ensure that RLE compression is unchecked. 
Compare the file sizes. If your edited file is smaller then double check you have RLE compression off. If your edited file is roughly 33% larger than the original verify you do not have an alpha channel, delete any alpha masks from the copy by clicking Layer, Mask, and Delete Layer Mask, then save again.
Now edit the config.txt file in a basic text editor such as Notepad. (See introductory paragraph on cloning in TRS2004 for details on editing the config.txt file) Do not use word etc. in case it adds invisible characters which will confuse Trainz.
Click to select in CM2 and commit (Ctrl+M) (TRS 2004 users simply make sure that the config.txt file is saved, close the asset folder and back out of the Trainz folder.)
Bring up in Surveyor.
Last modified on 7 September 2011, at 16:35






