Ensuring Unique ID Compatibility

From Rigs of Rods Wiki

Jump to:navigation, search
  1. Get a unique ID.
  2. Get your author ID (also your forum user ID).

Concept

The goal is to prevent inter-mod compatibility problems.

How to pack?

Pack it to .zip (with WinZip, WinRAR, or similar with no compression [for faster loading]) and ensure that there are no folders inside the .zip.

What to change?

  • Each file inside that zip has a filename of this format: ID-filename.extension. Such as: 0000000000-semi.truck
  • Each dependency of the truck must use the same ID.
    • For example the truck requires the material tracks/Truck/photo
    • The material "material tracks/Truck/photo" is provided in material file "photo.material" which resides inside the zip "truck.zip"
    • The material "material tracks/truck/body" requires the texture "body.png" which also resides in the zip file.
  • No mods may have inter-mod dependencies (provide all files in your own mod), however mods may have base file dependencies, meaning: the files that comes with RoR.
  • General rule: every filename and material provided by this mod must be unique, so that compatibility problems do not exist.
  • Be sure to include the ID in the fileinfo tag in your .truck file.