[t00]Anleitung zum Einbau [t01]

Wer kann DBTracks verwenden?

Der Einbau von DBTracks ist nichts für Anfänger.
DBTracks kann im Prinzip jeder verwenden, der nicht irgendjemand fragen muss, wie man so etwas macht.
Die Benutzung von DBTracks geschieht auf eigene Gefahr.
Nützliche Hinweise gibt es im Tiefbau-Thread im TSSF-Forum, dort können auch Fragen gestellt werden.

[t02]

Download PDF Wie kann man normale Gleise durch DBTracks ersetzen?

Zurzeit stehen als DBTracks fünf Varianten der Gleise der MSTS-Grundausstattung zur Verfügung.

  • DB1 - Oberbau W
  • -  Betonschwellen neu
  • DB2 - Oberbau W
  • -  Betonschwellen alt
  • DB3 - Oberbau K
  • -  Holzschwellen
  • DB4 - Oberbau KS
  • -  Stahlschwellen
  • DB5 - Oberbau S15
  • -  Y-Stahlschwellen

    Verschiedene Oberbau-Versionen können nebeneinander verwendet werden. Der Austausch wird durch geänderte Dateinamen bewirkt.
    Auf diese Weise ergeben sich keine Änderungen in der Schienendatenbank. Alle bestehenden Spielaufgaben sind weiter funktionsfähig.

    1
    1. Bitte daran denken, die vorhandenen Daten jetzt zu sichern !
    2. Herunterladen der gewünschten Gleispakete hier von dieser Seite.
    3. Anlegen eines neuen Unterverzeichnisses GLOBAL/SHAPES/DB.
      (Ich empfehle, die DBtracks in diesem separaten Unterverzeichnis abzulegen. Durch die vielen Varianten werden sich dort leicht mehrere tausend Dateien ansammeln. Andere Gleispakete wie XTracks, NewRoads, ScaleRail etc., die üblicherweise direkt im Ordner SHAPES liegen, zählen ebenfalls tausende Dateien. Es ist auf diese Weise einfacher, die DBTracks-Dateien zu verwalten.)
    4. Entpacken der Gleispakete in GLOBAL/SHAPES/DB, entpacken der Texturen ins TEXTURES-Verzeichnis im Streckenordner.
    5. Dekomprimieren aller .W-Dateien im Unterverzeichnis WORLD im Streckenordner (mit Route_Riter oder Zipper)
    6. Laden aller .W-Dateien in einen Texteditor, der viele Dateien gleichzeitig öffnen und bearbeiten kann (Notetab Light, Notepad++)
    7. Anwenden der "Suchen und Ersetzen"-Funktion ('Find and Replace') (hier gezeigt in Notetab Light)

    Anmerkung: 'DB3_' ist nur ein Beispiel. Andere DBTracks-Dateinamen beginnen z.B. mit 'DB1_' oder 'DB2f_'. Alle DBTracks-Dateinamen haben Prefixe dieser Art dem original Dateinamen vorangestellt.

    Wiederholen dieser "Suchen und Ersetzen"-Aktion für FileName ( a2t, ...a3t, ...a4t

    Diese Maßnahme ist wichtig, um das Suchmuster eindeutig zu halten und nicht aus Versehen andere Dateinamen zu bearbeiten, die mit 'a' beginnen.


    Eine Empfehlung zu den Pfad-Trennzeichen im MSTS:

    Generell sollte der einfache Schrägstrich / als Pfad-Trennzeichen verwendet werden. Es ist die einzige Schreibweise, die keine Anführungszeichen benötigt (wenn keine Leer- oder Sonderzeichen vorkommen). Sie wird auch korrekt in Route_Riter erkannt.

    Die Verwendung eines doppelten Rückstrichs (Backslash) \\ funktioniert prinzipiell im MSTS, allerdings verarbeitete die Komprimierungs­funktion in Älteren Route_Riter-Versionen diese Zeichenfolge nicht korrekt. Anführungszeichen sind verpflichtend für diese Schreibweise.

    Der einfache Rückstrich (Backslash) \ funktioniert im MSTS niemals korrekt, damit wird das nachfolgende Zeichen unterdrückt (maskiert).


    Eine Anmerkung zu Notetab Light ... und warum ich dieses Programm bevorzuge:

    Notetab Light hat eine sehr leistungsfähige Anwendungsmöglichkeit "regulärer Ausdrücke" (Regular Expressions). Inzwischen habe ich eine lange Liste an "Suchen und Ersetzen"-Formeln für die Arbeit mit DBTracks. Hier ist ein Beispiel:

    Es bewirkt dasselbe wie oben beschrieben, aber für a1t, a2t, etc. in einem Arbeitsschritt.

    Ich persönlich finde es sicherer, die Bearbeitung aller Dateien sichtbar prüfen zu können - im Gegensatz zur verdecken Bearbeitung in ganzen Verzeichnissen (Notepad++).

    Das ist aber meine persönliche Präferenz. Jeder Anwender mag meine Bearbeitungsempfehlungen im Editor seiner Wahl anwenden.

    2

    Nun sollten die "Dynamischen Schienen" mit dem Programm Dynatrax in die entsprechenden DBTracks-Profile umgewandelt werden.
    Alles weitere dazu findet sich in der Anleitung für Dynatrax. Die Installation und die Anwendung ist dort beschrieben, außerdem gibt es dort das aktuelle DBTracks-Bauprofil zum herunterladen.

    3

    Nach dem öffnen der bearbeiteten Strecke im Streckeneditor wird man feststellen, dass die Gleiskörper teilweise in den Untergrund eingesunken sind.
    Die kommt daher, weil die DBTracks-Gleise ein vorbildgerecht geformtes Schotterbett haben und im Modell höher sind als die MSTS Standardgleise. Die Höhe der Schienenoberkante kann nicht verändert werden, weil sie zur Lauffläche der Räder der Zöge passen muss.

    Um diesen Mangel auszugleichen, hat es sich als nützlich erwiesen, alle Gleise (und Straßen und zugehörige Objekte) um 15 cm anzuheben. Das reicht aus, um alle Gleise aus dem Boden zu heben. Im großen MSTS-Werkzeug-Programm "Route_Riter" ist das Werkzeug "TSUtils" enthalten, das mit einer speziellen Funktion diese Aufgabe übernahmen kann.

    Die (nach meiner Meinung) einfachste Methode, diese Funktion auszuführen ist die Anfertigung einer (wiederverwendbaren) .BAT-Datei.

    @echo off
    REM Pfad zum TSUtils-Ordner anpassen:
    REM ---------------------------------

    CD /D "C:\MSTS_Tools\Route_Riter\TSUtil"

    REM ---------------------------------
    REM Pfad zum Streckenordner anpassen:
    REM ---------------------------------

    SET ROUTE="C:\MSTS\ROUTES\MyROUTE"
    SET LOGFILE="C:\WORK\_mveobj.log"

    REM ---------------------------------
    java -Xmx1024m TSUtil -l%LOGFILE% mveobj -t -w %ROUTE% 0 +0.15 0
    ECHO ----------------------------------------
    PAUSE
    (In die Box klicken, um den Inhalt zu kopieren)

    Pfade müssen in Anführungszeichen gesetzt werden, wenn Leer- oder Sonderzeichen darin vorkommen (Anführungszeichen sind niemals falsch).

    Zur Anwendung kopiert man den Text aus dieser Box, fügt sie in ein Texteditor-Fenster ein und speichert eine .BAT-Datei auf der Festplatte ab. Zum Ausführen muss man diese .BAT-Datei doppelt anklicken. Mit korrekt eingetragenen Pfadangaben kann diese Datei aus einem beliebigen Verzeichnis auf der Festplatte (z.B. im Arbeitsverzeichnis) ausgeführt werden. Auch die Protokolldatei (LOGFILE) sollte ins Arbeitsverzeichnis adressiert werden, damit sie ggf. zur Fehlersuche verwendet werden kann.

    Für einen fehlerfreien Ablauf ist unbedingt eine aktuelle Version of Java (Runtime) und TSUtil erforderlich. Dies kann sichergestellt werden, indem die neueste Version von Route_Riter installiert wird.

    4

    Ein weiterer ungewöhnlicher Schritt ist die Überprüfung, ob die Weichenantriebe richtig platziert sind. Bei einigen Kombination kann es vorkommen, dass bei aufeinanderfolgenden (Pnt10d-)Weichen der Weichenantrieb im abzweigenden Gleis zu finden ist.

    Die Beschreibung dieser Weiche muss nun in der zugehörigen WORLD-Datei gefunden werden (z.B. Über die Koordinaten im Eigenschafts-Fenster).

    Dann fügt man dem Dateinamen der Weiche (z.B.  DB3_a1tPnt10dLft.s ) am Ende das Suffix '_M2' an.

    Damit wird dann eine Weiche  DB3_a1tPnt10dLft_M2.s  mit Antrieb auf der anderen Seite geladen.

    5

    Es gibt einige weitere Weichenvarianten, z.b. für Versionen ohne Laternen und Handhebel kann das Suffix '_Sx' angehängt werden.

    [t03]

    Was muss beachtet werden, wenn eine mit DBTracks ausgestattete Freeware-Strecke veröffentlicht werden soll?

    Bei Veröffentlichung als Freeware ist keine ausdrückliche Genehmigung erforderlich.
    Gemäß den Nutzungsbedingungen muss die Herkunft der verwendeten Materialien in geeigneter Weise erklärt sein.
    Folgender Text sollte in der Streckenbeschreibung ("ReadMe", "LiesMich" o.ä.) stehen:

    Diese Strecke enthält DBTracks Gleise und Ausstattung von DBTracks.com
    DBTracks Texturen basieren zum Teil auf Bildvorlagen von CGTextures.com

    [t00]Installation Instructions [t01]

    Who can use DBTracks?

    To work with DBTracks is not recommended for beginners.
    DBTracks can in principle be used by anyone who does not have to ask how it's done.
    The use of DBTracks is at everyone's own risk. Useful information is available in the TrainSim.com forums (search for 'dbtracks').
    There are already some threads about US projects and experienced users who can help.

    [t02]

    Download PDF How can I replace standard track with DBTracks?

    Currently DBTracks provides replacements for MSTS' original track selection in five versions:

  • DB1 - Track ballast, type "W"
  • -  New concrete ties
  • DB2 - Track ballast, type "W"
  • -  Old concrete ties
  • DB3 - Track ballast, type "K"
  • -  Wooden ties
  • DB4 - Track ballast, type "KS"
  • -  Steel ties
  • DB5 - Track ballast, type "S15"
  • -  Y-steel ties

    Different versions can be applied side by side. The replacement is triggered by the assignment of a different file name.
    With this kind of substitution there are no changes made to the track database. All existing activities will remain functional.

    1
    1. Don't forget to backup your data now !
    2. Download the track sets and textures you want to have from here
    3. Create a new subfolder GLOBAL/SHAPES/DB.
      (I recommend this to have DBtracks files separated from others. It's file count will exceed several thousand easily. Other add-ons like XTracks, NewRoads, ScaleRail etc. have also several thousand files and may possibly reside in your SHAPES folder, too. This way it's easier to maintain DBTracks by having it in a separate folder from scratch.)
    4. Extract the tracks into GLOBAL/SHAPES/DB, extract the textures into your route's TEXTURES folder
    5. Decompress all .W files in your route's WORLD folder (with Route_Riter or Zipper)
    6. Load all .W files in a text editor which is able to open and edit many files at the same time (Notetab Light, Notepad++)
    7. Use the 'Find and Replace' function (shown in Notetab Light)

    Note: 'DB3_' is just an example. You can use other DBTracks identifiers like 'DB1_' or 'DB2f_' here. All DBTracks use these kind of prefixes in combination with the original filenames.

    Repeat 'Find and Replace' for
    FileName ( a2t, ...a3t, ...a4t

    This prodecure is important to make sure, your seach pattern is unique and will not affect harmless static objects beginning with 'a'.


    A hint about Path Separators in MSTS:

    Always use a single slash / as path seperator. It is the only notation that does not require quotes (if there are no white spaces or special characters). This notation will be recognized correctly by RouteRiter.

    Using a double backslash \\ is generally working in MSTS. However, compression tools in older Route_Riter versions did not process this string correctly. Quotes are always mandatory for this notation.

    The single \ doesn't work correctly at all. It will make itself disappear, including the following character.


    A note about Notetab Light and why I prefer it:

    Notetab Light has a very powerful functionality with "regular expressions". I have a long list of formulas working with these search & replace options. Here is an example:

    It does the same like shown above, but for a1t, a2t, etc. in one single step.

    I personally like it to have all files visible in the program window and can have a look at each part of operation instead of a blind editing of a list of files in a directory (Notepad++).

    However this is my personal preference.
    I'm sure everyone will be able to adopt my intructions into his/her favorite editor's functionality.

    2

    Now you will need to convert dynamic tracks to your chosen DBTracks profile.
    Please follow the instructions in the Dynatrax Manual. The setup and operation of Dynatrax is well described and you will find the required track profile to download at the top of the page.

    3

    When you open your route in the route editor you may find that in some areas tracks look like they are sunken into the ground.
    This is because both the rails and the ballast shape is (prototypical) higher than MSTS standard track. And the height of the rail tops cannot be altered because it has to meet the running surface of the wheels of the trains.
    For this inconvenience I found a method to raise tracks and roads for 15 centimeters, which is enought to lift the tracks out of the ground. Included in Route_Riter you can find the TSUtils toolset.

    For me, it is always the easiest way to use this toolset by writing a (mostly reusable) .BAT file

    @echo off
    REM set drive and path to the TSUtils directory
    REM ---------------------------------

    CD /D "C:\MSTS_Tools\Route_Riter\TSUtil"

    REM ---------------------------------
    REM set path to the Routes folder:
    REM ---------------------------------

    SET ROUTE="C:\MSTS\ROUTES\MyROUTE"
    SET LOGFILE="C:\WORK\_mveobj.log"

    REM ---------------------------------
    java -Xmx1024m TSUtil -l%LOGFILE% mveobj -t -w %ROUTE% 0 +0.15 0
    ECHO ----------------------------------------
    PAUSE
    (to copy the text, click in the box)

    A path which contains white spaces or special characters, must be enclosed in quotes (Quotes are never wrong).

    Copy the text out of the box, edit the paths marked in red color to your needs and save the whole text as .BAT file. To execute just doubleclick it. With correct path entries this batch file will run from whereever you save it on your harddisc (e.g. your working directory). Also, the log file should be addressed to the working directory so that it can eventually be used for troubleshooting.

    Please make sure you have an up-to-date version of Java and TSUtil. This can be ensured by updating Route_Riter.

    4

    The next step will be to find out if there are switches which need to have a variant in place. In some combinations the switchstand of a Pnt10d switch will be found misplaced in the flanking track.

    The description of this switch must now be found in the corresponding WORLD file (e.g. the coordinates in the Properties window).

    Search for the filename (e.g.) DB3_a1tPnt10dLft.s and append the identifier '_M2'.

    Now it should read DB3_a1tPnt10dLft_M2.s

    5

    There are other switch variants available, e.g. to make it more suitable for routes in non-German countries.
    You can use switch stands without lanterns and hand levers, if you add '_Sx' at the end of the filename.

    [t03]

    What must be considered when a freeware route with DBTracks is to be published?

    If published as freeware there is no explicit permission needed.
    In accordance with the Terms of Use, the origin of the materials used must be declared in an appropriate manner.
    The following text should be included the route's description files ("Install...", "Readme...", "Manual..." or similar)

    This route contains DBTracks tracks and equipment from DBTracks.com
    Some DBTracks textures have been created with images from CGTextures.com