[HOWTO] Change tracks for Trams to Narrow Gauge/Normal Gauge or Vice Versa

Got problems with Locomotion? Find assistance here!

Moderator: Locomotion Moderators

Post Reply
User avatar
Emperor Darth Sidious
Tycoon
Tycoon
Posts: 1103
Joined: 07 May 2006 20:22
Location: Landgraaf, the Netherlands

[HOWTO] Change tracks for Trams to Narrow Gauge/Normal Gauge or Vice Versa

Post by Emperor Darth Sidious »

Hello again,

I've seen this problem on the forums on many topics, but I never found a nice tutorial of how it's actually done. So to help you guys out on how it's done I decided to play around a little and figure out a way on how it's done. After I tested everything I decided to share this with a tutorial on how to do it. I will also include three combi-tram vehicles from the original game that can drive on tram-track, narrow gauge track and normal gauge track. No original files will be overwritten. I also changed something else on these. You can couple multiple units to each other. You can change this in the code by placing the "0" in this part of the code:

Code: Select all

		<bit name="cancouple">1</bit>
The number "1"means that the vehicle cannot be coupled, and the "0" means it can be coupled.
tramcott.dat
(96.64 KiB) Downloaded 215 times
tramcort.dat
(96.63 KiB) Downloaded 243 times
tramcong.dat
(96.63 KiB) Downloaded 244 times
Ok, on to our tutorial for now:

This what you need:

- The .dat files of a tracked vehicle (found in your Obj.Data Folder)
- LocoTool ( viewtopic.php?t=10314 )
- Plain texteditor (e.g. notepad)

How to change the tracks for trams. In this case I show you how to change the tracks for every possibility. From tram-track to normal/narrow gauge and from normal/narrow gauge to tram-track.

First you need to find a vehicle that drives on tracks. In the bottom screenshot you can see that I have used 4 types of vehicles. Three of those vehicles come from the Dutch RET-Metro-pack made by Illegal Alien (wich I cannot include because I have no rights for that), and the last one comes from the game itself.

1. If you have found the vehicle of your choice. Doesn't matter what type of vehicle you select (Tram, Train or a NG-Train, you always use one of the codes below to change it to your choice of track)
2. Drag the file over the LocoTool.exe and drop, you will see an .XML file with the same name as the .dat file you just dragged and dropped.
3. Open up the XML-file.
4. Use one of the codes to change the tracks for your chosen vehicle:

Use these codes to change any vehicle to Narrow Gauge tracks:

Code: Select all

		<variable name="class" size="1">0</variable>
		<variable name="type" size="1">0</variable>

Code: Select all

		<bit name="bit_0">1</bit>
		<bit name="rackrail">0</bit>
		<bit name="anytrack">0</bit>
		<bit name="cancouple">0</bit>
		<bit name="dualhead">0</bit>
		<bit name="refittable">0</bit>
		<bit name="noannounce">0</bit>
These for Narrow Gauge with 3rd rail:

Code: Select all

		<useobject desc="tracktype" class="17">TRACKNG </useobject>
		<useobject desc="trackmod" class="16">TREX3RL </useobject>
These for Narrow Gauge with overhead wires:

Code: Select all

		<useobject desc="tracktype" class="17">TRACKNG </useobject>
		<useobject desc="trackmod" class="19">RDEXCAT1</useobject>
Use these codes to change any vehicle to Normal Gauge tracks:

Code: Select all

		<variable name="class" size="1">0</variable>
		<variable name="type" size="1">0</variable>

Code: Select all

		<bit name="bit_0">1</bit>
		<bit name="rackrail">0</bit>
		<bit name="anytrack">0</bit>
		<bit name="cancouple">0</bit>
		<bit name="dualhead">0</bit>
		<bit name="refittable">0</bit>
		<bit name="noannounce">0</bit>
These for Normal Gauge with 3rd rail:

Code: Select all

		<useobject desc="tracktype" class="17">TRACKST </useobject>
		<useobject desc="trackmod" class="16">TREX3RL </useobject>
These for Normal Gauge with overhead wires:

Code: Select all

		<useobject desc="tracktype" class="17">TRACKST </useobject>
		<useobject desc="trackmod" class="19">RDEXCAT1</useobject>
Use these codes to change any vehicle to Tram-tracks:

Code: Select all

		<variable name="class" size="1">1</variable>
		<variable name="type" size="1">3</variable>

Code: Select all

		<bit name="rackrail">0</bit>
		<bit name="bit_8">1</bit>
		<bit name="anytrack">0</bit>
		<bit name="cancouple">0</bit>
		<bit name="dualhead">0</bit>
		<bit name="refittable">0</bit>
		<bit name="noannounce">0</bit>
These for Tram-tracks with overhead wires (tram-tracks with 3rd rail is not tested, and I think it's not possible):

Code: Select all

		<useobject desc="tracktype" class="20">ROADTRAM</useobject>
		<useobject desc="trackmod" class="19">RDEXCAT1</useobject>
If you leave the trackmod out of it, it can be used for vehicles that don't need overhead wires, for example if you want to change a diesel-locomotive to tram-tracks (bottom screenshot)

5. After you have changed the codes you save the XML-file.
6. Delete (or make a backup) the original dat.file.
7. Drag the XML file over LocoTool.exe drop it, it will generate the .dat
8. Your new file is created.
9. Place this .dat in your Locomotion objdata folder.

Good luck on trying...If you need any help, you know where to find me :lol: :wink:

Here's a screenshot for all of the four vehicles that I changed via this way:
Image

Here's a screenshot where a dieseltrain runs over a tram-track without overhead wires (left), so this is where you can leave the overhead wires out of the code. The other train is a normal train that needs overhead wires (right)...Also on a tram-track :lol: :roll:
Image

As you can see...Options are endless :lol:

A little warning here ! As far as I know, this can only be done with rail-vehicles. I won't say that you can't let a bus drive on a train-track because that is possible as well, but this a tutorial for rail-vehicles, everything that happens beyond is not tested by me. This is tested without crashing the game in any way, but I don't know what will happen if you use this method for road-vehicles...so beware of that :?
Post Reply

Return to “Locomotion Problems, FAQs and Tutorials”

Who is online

Users browsing this forum: No registered users and 2 guests