RoRBook/Packaging

From Rigs of Rods Wiki

Jump to:navigation, search
Note: Tutorials marked red are currently not available!
  1. Introduction
  2. Working Environment
  3. Land-based Vehicles and Basics
    1. Basic Requirements
    2. First Beams/Nodes
    3. Rigidity
    4. Wheels
    5. Engine
    6. Suspension
    7. Steering
    8. Commands
    9. Hooks
    10. Submeshes
    11. Flares
    12. Props
    13. Details
  4. Objects and Texturing
    1. Meshes
      1. Tools
      2. Basic Rules
    2. Materials
    3. Flexbodies
  5. Aircraft and Winged Vehicles
    1. Simple Aircraft
    2. Wings
    3. Fusedrag
    4. Engines
      1. Props
      2. Jets
  6. Nautical Vehicles and Boats
    1. Simple Boats
    2. Engines
  7. Packaging

Contents

Packs

Packs, introduced in version 0.32, allow you to package massive amounts of files (meshes, material files, etc) into one convenient file. These is the preferred way of distribution (unless it's just a lone truck/load/etc file).

  • Packs are normal zip files, and should be left uncompressed to save loading time.
  • Packs must NOT have subdirectories. All files must be in the root of the zip file.
  • It is good form to include all dependencies. To avoid duplication errors, you need to use the unique ID system.

Unique ID or UID

Unique ID's ensure that all mods that exist do not interfere with each other. Without them, you could not guarantee that a mod will work. If you found bugs or have problems, please reply here.

Making a Unique ID can be done two ways.

Automatic Way

Currently down for re-coding

Then go to this link to do it all for you. (Its in Alpha stage) It has to be a zip file.

Manual Way

For example:

  • mytruck.truck
  • mytruck.material
  • mytruck.dds
  • go here to get your unique ID [1]

Then add your UID like this

  • d6eaUID-mytruck.truck
  • d6eaUID-mytruck.material
  • d6eaUID-mytruck.dds

After that edit the material file so it looks like this.

material d6eaUID-tracks/mytruck
{
	technique
	{
		pass
		{
			scene_blend alpha_blend
			alpha_rejection greater 128 
			texture_unit
			{
				texture d6eaUID-mytruck.dds
			}
		}
	}
}

Then edit your truck file like this.

mytruck
 
fileformatversion 2
 
fileinfo d6eaUID,  (vehicle type),  1

Wheels

  • Add d6eaUID-mytruckband.dds or d6eaUID-mytruckface.dds

Props

  • Add d6eaUID-mytruck.mesh


About Rigs of Rods

    Rigs of Rods is a unique soft body physics simulator.


Some Tools


Partners

SourceForge.net

Follow us

Twitter youtube Facebook RSS Feed


impressum