(If line breaks doesn't work, get a real text editor such as Notepad++)

This directory contains tracks for the Eneroth Railroad System. Tracks are loaded dynamically so feel free to add some of your own :) .
This file describes how to add a custom track.

The existing tracks are also great for understanding file structure and models.


Create dictionary (And define ID)
	
	The name of the track's directory is also the id of this track type.
	This directories name must start with your initial or some other rather unique character combination, followed bu an underscore (_), to prevent name collisions.
	IDs without leading initials (such as bridge rather than ene_bridge) are reserved for the tracks shipped with the extension.
	Using such an ID for your own track may lead to it being overwritten when updating extension.
	Create a directory in tracks/ by this name.
	

Making the Models

	Extrusion Profiles
	
		Each face being extruded is saved in an individual file named <code>profile_*.skp</code>. Each face can also have one material.
		All these faces should be drawn in the x-z plane (red, blue) with the front of the face pointing towards negative y (the side view in Camera > Views > Front).
		The origin is the point extruded along the calculated path.
		Only the front of the face should be painted with a material, the back sill be towards the inside of the extrusion.
		
		#NOTE: reversed face for tunnels? remove end faces of extrusion.
		
		The most important extrusions are the 2 rails. The standard gauge (distance between inner sides of rails) is 1,435 m. #NOTE: change r-stocks and tracks
		The top side of the rails must be along the x axis (red). The inner side should be half the gauge distance from the model origin.
		
		Usually there is also ballast under the rails.#NOTE: rename bank ballast in existing tracks.
		Tunnels being inside out, reversed face.
	
	
	Ties/Sleepers

		along_<distance>_ties.skp
		distance in meters, point(.) as decimal sign.
		_ties is used to separate these from other objects put along track so they can be disable from track properties NOTE: not implemented
		
		
	Endings

		ending_railroad.skp where railroad ends, buffer stop for instance
		ending_track_type.skp where another track type is connected, used for tunnel portals for instance
		ending_track.skp end of this individual track, such as bridge pillar
		
		
Creating Info File
		
	Each track has an info file containing name and description. To create the info file write this in the console.
	replace NAME_OF_YOUR_TRACK and INFORMATION_ABOUT_YOUR_TRACK with name and description.
	<code>
		track_info = {:name => "NAME_OF_YOUR_TRACK", :info => "INFORMATION_ABOUT_YOUR_TRACK"}
		File.open(filename, 'w+'){|f|Marshal.dump(track_info, f)}
	<code>
	
	Naming conversion
		
		Comma separated describing name of tracks
		
		Always start with gauge (in mm such as "600 mm") if not default (1435 mm)
		
		<Tunnel | Bridge etc >, <material, or material + construction>, <construction>
		Tunnel, Stone
		Tunnel, Concrete, aerodynamic (ICE)
		Tunnel, metal beam
		etc
		
		", Double" at end of name.
		"Bridge, Stone, Arc, Double" should be directly after "Bridge, Stone, Arc" in the alphabetically ordered list in track properties dialog.
		

	Description (named info? NOTE: change?)

		length etc
	
		
Create Preview Image

	Screen resolution
	viewport size: 1362*627
	set height to 100 (might need to be increased with by 1px so height isn't rounded to 99px)
	scenes?