Go to file
orwell96 c72d4770b8 Creating new switches, and adding lbms to finally abandon old rails 2016-08-26 18:13:16 +02:00
models Creating new switches, and adding lbms to finally abandon old rails 2016-08-26 18:13:16 +02:00
textures tidying up the tracks and trackworker/placer code and making rail registration a lot more modular 2016-08-22 22:41:09 +02:00
couple.lua check for object load via the getyaw trick and not by checking the object table 2016-06-09 22:16:24 +02:00
damage.lua remove horizontal view offset on engine and try to fix damage when sitting in train 2016-06-09 21:59:06 +02:00
debugitems.lua removing unused debug items 2016-08-21 16:36:25 +02:00
helpers.lua Screwing everything up in order to extend to 16 possible directions with 1/8 precision 2016-07-04 13:08:25 +02:00
init.lua use real pos-in-train calculation also for trainlen calculation, fix bugs and add damage by trains 2016-06-02 14:42:01 +02:00
license.txt added license documents 2016-05-30 20:30:38 +02:00
license_media.txt added license documents 2016-05-30 20:30:38 +02:00
pseudoload.lua fixed even more lua errors and made stable 2016-05-30 19:58:09 +02:00
readme.txt update readme with the latest contents of the forum post 2016-06-09 17:39:19 +02:00
trackplacer.lua tidying up the tracks and trackworker/placer code and making rail registration a lot more modular 2016-08-22 22:41:09 +02:00
tracks.lua Creating new switches, and adding lbms to finally abandon old rails 2016-08-26 18:13:16 +02:00
tracks.lua~ Extending to 30deg rails, creating and adding the models 2016-08-21 16:30:36 +02:00
trainhud.lua Fix train collision and coupling on opposing trains, and try to implement animation (currently does not work) 2016-06-09 17:35:06 +02:00
trainlogic.lua finally fix train collisions (please work now) 2016-08-22 23:28:25 +02:00
wagons.lua fix error in real train index calculation 2016-08-21 16:49:48 +02:00
wagons.lua~ Extending to 30deg rails, creating and adding the models 2016-08-21 16:30:36 +02:00

readme.txt

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

Since there are no trains mods out there that satisfied my needs, I decided to write my own.
Until now are supported:
- tracks and switches, based on angles of 45 degrees
- wagons that drive on these rails and collide with nodes in the environment(they need 3x3x3 space)
- coupling /discoupling of wagons/trains
- trains can travel through unloaded map chunks
- head-up display for train speed and nice controls when sitting in locomotive
Planned features:
- locomotives need coal to drive (and water...)
- more types of trains and rails(electric, diesel, maglevs...)
- make switches controllable by mesecons
- better textures
- physics for train collisions (conservation of momentum)
- Automatic train control (ATC) via mesecons (only available on electric/subway trains, maybe allow for more features with digilines)
- an API, because API's are cool.
(I will probably split trains api and actual trains into two mods, to allow for extensions to be enabled individually)

At the moment, you can try around with the trains. There are some debug messages that shouldn't disturb you. Note that anything may change in future releases.
- Use the 'track' item to place tracks. In most cases it will adjust rails in the direction you need them.
- use the trackworker tool to rotate tracks(right-click) and to change normal rails into switches(left-click)
- to overcome heights you need the rails with the strange gravel texture in the background, place them and you will understand.
- right-click switches to change direction
- place locomotives or wagons by picking the item and placing it on a track.
- right-click a wagon or locomotive to sit onto it.
- inside a locomotive, use W/S to accelerate/decelerate the train. This will fail if the train can't move in the desired direction. Shift stops the train, aux1 (default E) or right-click on wagon will let you off.
- drive two trains together and they will connect by right-clicking that green icon that appears.
- punch the red couple icon between wagons to discouple them

License of code: LGPL 2.1
License of media: CC-BY-SA 3.0
see attached files.