![]() |
![]() |
Chapter 1 Setting up the config and directories
In this tutorial you will learn how to reskin a rolling stock item.
Note. To complete this tutorial you will need to have available a suitable locomotive or rolling stock item. For this tutorial I have used prjindigo's
SD40-2 and I will be creating a BN green sd40 with BN logos on the front and sides.
|
1. Create a new folder The first thing we need to do is create a new folder in the xx\World\Custom\trains directory. You can name it anything you like. I usually name the folder with my kuid number first and then a description of the item. For example the BN SD40-2'sfolder is called 86105 9990 BN SD40-2. Using this naming convention allows me to easily search for the item by it's kuid number however the naming of the folder is entirely up to you. 2. Folder contents Now that we have a folder for the locomotive we need to copy the SD40-2 files into the folder. Navigate to the dispatcher/downloads and find the folder containing the SD40-2 files. In this case it is called kuid2 86105 9989. Select all the files contained in the folder to the new folder you created in the custom/trains directory. It is possible to create a reskin in the dispatcher/downloads directory however it is not recommended..
3. Config entries Here is the contents of a typical config file for a locomotive item |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
4. File names Now that you have given the item an asset-filename you will need to change all the referenced filenames to suit. Figure 1 shows the main folder with all the required folders and the correct names given to the folders
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 1 Main folder showing correct names
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Now that you have the folders named you will need to open each folder and rename the referenced files within. Figure 2 shows the mesh file (.im) correctly named. Whatever you do do not rename the texture.txt files. If you rename the image files (.tge, .bmp) then you will need to open the associated texture.txt file and edit the filename listed within. The texture.txt files are created by either gmax or 3d Studio Max and cannot be renamed.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 2 Mesh files including LOD files named correctly
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
You will also need to rename the shadow mesh file and the art files. With the art files you will also need to rename and edit the texture.txt files. The entries contained within tell TRS2004 what the name of the art file is and also where the alpha channel can be found. Primary=BN-SD40-2_art_512.tga
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 3 Art files named correctly
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Once you have everything renamed and the config.txt file is complete then you can try it out in trainz. If it does not show up then you have either not renamed all the correct files, you have a mistake in the config.txt file or you have referenced dependencies that are not on your computer. It can also be useful to check the TRS2004 error log. It is located in x\Cache\Logs with x being the location where you installed TRS2004. 5. Editing image files Now that you have the directory correct and hopefully the object shows up in TRS2004 we can begin the editng of the actual image files. To do this you will need a paint program such as Photoshop or Paint Shop Pro. In this case the files to be edited are 6genSD40-2undec.tga and emdheaddetails.tga These are the main files that give the locomotive its color scheme.Every item has at least one tga or bmp file that will need to be edited. The next big problem is finding which part of the texture file is applied to which part of the rolling stock. 6a. Viewing in TOE Trainz Object Explorer (TOE) is a utility for viewing the mesh files of non default items and will allow you to see the changes you make to the texture files without starting Trainz. TOE can be downloaded from here. Once you have TOE installed and running use TOE to open the BN-SD40-2_body.im file and you should have an undecorated SD40-2. 6b. Viewing in Trainz If the loco you are reskinning has been exported with the latest Trainz exporters that support bump mapping then TOE will be unable to open and view the files and will have a fatal error or lock up. The only way to view these type of files is in TRS2004 itself.
|
Trainz and Trainz Railroad Simulator are trademarks of AuranBest viewed at 1024 x 768 or higher Pages best viewed with Cooper and Cooper Black font installed Copyright © 2007
P. Campbell. All rights reserved. Revised:
June 13, 2007
|