Go to file
orwell96 f9a7fa68b1 remove horizontal view offset on engine and try to fix damage when sitting in train 2016-06-09 21:59:06 +02:00
models 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
textures add new textures 2016-06-09 21:39:59 +02:00
textures_gravelback add new textures 2016-06-09 21:39:59 +02:00
textures_old add new textures 2016-06-09 21:39:59 +02:00
couple.lua fix discouple appearing on wrong side on flipped wagons, and show discouples only when train stands 2016-06-09 21:50:11 +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 fixed even more lua errors and made stable 2016-05-30 19:58:09 +02:00
helpers.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
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 created git repository 2016-05-29 20:27:30 +02:00
tracks.lua add new textures 2016-06-09 21:39:59 +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 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
wagons.lua remove horizontal view offset on engine and try to fix damage when sitting in train 2016-06-09 21:59:06 +02:00

readme.txt

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.