Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Dec 18, 2017 10:24 pm

All times are UTC




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue May 16, 2017 12:08 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sun May 07, 2006 8:22 pm
Posts: 1089
Location: Landgraaf, the Netherlands
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:
      <bit name="cancouple">1</bit>

The number "1"means that the vehicle cannot be coupled, and the "0" means it can be coupled.

Attachment:
tramcott.dat [96.64 KiB]
Downloaded 41 times

Attachment:
tramcort.dat [96.63 KiB]
Downloaded 40 times

Attachment:
tramcong.dat [96.63 KiB]
Downloaded 37 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:
      <variable name="class" size="1">0</variable>
      <variable name="type" size="1">0</variable>


Code:
      <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:
      <useobject desc="tracktype" class="17">TRACKNG </useobject>
      <useobject desc="trackmod" class="16">TREX3RL </useobject>


These for Narrow Gauge with overhead wires:
Code:
      <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:
      <variable name="class" size="1">0</variable>
      <variable name="type" size="1">0</variable>


Code:
      <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:
      <useobject desc="tracktype" class="17">TRACKST </useobject>
      <useobject desc="trackmod" class="16">TREX3RL </useobject>


These for Normal Gauge with overhead wires:
Code:
      <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:
      <variable name="class" size="1">1</variable>
      <variable name="type" size="1">3</variable>


Code:
      <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:
      <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 :?

_________________
Image

:: Emperor' Screenshots :: Problem with Bridges :: The Long Station Patch :: Help with Opie's Dutch Stations :: The Serpent "Mod-Free" :: The Empty Region :: The City Oilwell :: The City Flourmill :: The Food-Mod :: The Valuables-Mod V4.0 :: A "One-Sided Station" :: Standard vehicles for Plastikman's Automod :: Maximum production from industries :: Tutorial to change tracks for trams and trains :: My own vehicle creation thread ::


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.