File format · .ja
Trainz Game Content Repair & File Formats
Guide to Trainz game content files, formats, and corruption. Learn how to repair assets, understand config.txt, and recover custom routes.
Trainz Railroad Simulator, developed by N3V Games (formerly Auran), relies heavily on a vast library of user-generated content to create realistic railway environments. Unlike simple saved game files, Trainz "content" consists of complex assets—ranging from locomotives and rolling stock to scenery items and full routes—that are managed by the game's Content Manager. These assets are not single files but rather structured directories containing specific data files, scripts, and configuration metadata. Because the integrity of this content directly impacts the stability of the Driver and Surveyor modules, understanding the structure and potential failure points of these assets is essential for maintaining a functional simulation environment.
File Structure and Technical Specifications
Trainz assets are fundamentally structured as folders, often compressed into archives for distribution. The core of every asset is the config.txt file. This plain-text file acts as the asset's manifest, defining its unique identifier (KUID or KUID2), type, dependencies, and various properties such as physics settings or texture references. The game engine reads this file first to determine how to load the associated 3D meshes, textures, and sound files.
Visually, assets rely on mesh files (historically .lm or .pm formats in older versions, transitioning to .trainzmesh in newer releases) and texture images (typically .bmp, .tga, or .jpg). Scripting behavior, if applicable, is often contained within .gs (GameScript) files. For distribution, particularly via the Download Station (DLS), these directories are packaged, commonly using .cdp (Content Dispatcher Pack) files, which are essentially archives that bundle the asset's folder structure and config.txt into a single installable unit.
Causes of Corruption and Unreadable Content
Corruption in Trainz content usually manifests as missing assets, faulty geometry, or errors reported by the Content Manager. A frequent cause is a malformed config.txt file. Because this file is strictly structured, a single missing bracket, incorrect KUID syntax, or improper character encoding can prevent the game from reading the asset entirely. This often occurs when users manually edit configuration files without adhering to the specific syntax rules or when file transfers introduce encoding errors.
Another common issue involves broken dependencies. An asset may be technically valid in isolation, but if it references a dependency (another asset) that is missing, has an incorrect KUID, or is itself faulty, the parent asset will fail to load or display incorrectly. Physical file corruption can also affect the binary mesh or texture files, leading to visual glitches, "missing texture" blues, or crashes when the game attempts to render the object in Surveyor or Driver mode.
Data Recovery Potential
The potential for data recovery depends heavily on which component of the asset is damaged. If the config.txt file is corrupted but the binary data (meshes, textures, sounds) remains intact, the asset is usually fully recoverable. The raw media files can often be salvaged and re-linked to a corrected configuration file. Similarly, if a texture file is corrupted, it can often be replaced or reskinned using tools like PaintShed or image editing software, provided the original mesh files are unharmed.
Recovery is most difficult when the binary mesh files are corrupted. These files contain the 3D geometry data; if the internal structure is scrambled, the model may appear distorted or fail to load entirely. In such cases, unless a backup exists, the data may be unrecoverable. However, because Trainz assets are modular, it is sometimes possible to salvage parts of a complex asset (such as a locomotive) by isolating and preserving the working sub-components (like the bogies or sounds) even if the main body mesh is lost.
How Recovery and Repair Works
Repairing Trainz content generally begins with the Content Manager (CM) or Content Manager Plus (CMP). These tools include built-in validation features that scan for missing dependencies, faulty file references, and syntax errors in config.txt. For "Faulty" assets, CM often provides an error log indicating the specific line number or issue within the configuration file. Manual repair involves opening the config.txt in a text editor and correcting the syntax, ensuring the KUIDs match the installed dependencies, and verifying that all file paths point to existing files.
For more severe corruption, such as corrupted archives, the .cdp file can sometimes be opened using archive utilities to extract the internal folder structure. Once extracted, the individual files can be inspected. If the config.txt is blank or unreadable, it may be possible to reconstruct it by comparing it against a similar, working asset or by referencing the asset's backup on the Download Station. In cases where the internal database of the game becomes corrupted regarding an asset (showing it as "Modified" or "Unknown" endlessly), deleting the local copy and forcing a re-download from the DLS is often the most effective repair strategy.
FAQ
What is a KUID and why is it important?
A KUID (Koolthing Unique Identifier) is a alphanumeric code that uniquely identifies every piece of content in the Trainz database. It ensures that the game links the correct assets (e.g., a specific locomotive) to the correct dependencies (e.g., the required sounds and cab view). If a KUID in a config.txt file is mistyped, the game cannot find the referenced asset.
Why does my asset show as "Missing Dependencies"?
This error occurs when an asset requires other files to function, but those specific files are not installed in your local database. This can happen if you downloaded an asset but not its required components, or if the KUIDs in the dependency list have changed. Using Content Manager to "View Dependencies" helps identify exactly which files are missing.
Can I edit .cdp files directly?
A .cdp file is an archive, not a text file, so it cannot be edited directly in a text editor. To modify the contents, you must extract the files, edit the config.txt or other components, and then repackage them. However, for simple repairs, it is usually easier to let Content Manager extract and manage the files in its local directory.
What does "Faulty" mean in Content Manager?
"Faulty" indicates that the asset has failed one or more of the game's validation checks. This is often due to syntax errors in the config.txt file, missing thumbnail images, or invalid file references. Clicking the "View Errors/Warnings" option in Content Manager will provide specific details on what needs to be fixed.
If you are experiencing issues with Trainz assets that standard validation cannot fix, or if you have critical custom content that appears corrupted, contact our team for a free evaluation. We can analyze the file structure and help determine the best path for recovering your simulation data.
Send us your .ja file for a free evaluation
Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.
Start a free evaluation