aboutsummaryrefslogtreecommitdiff
path: root/advtrains/tracks.lua
Commit message (Collapse)AuthorAge
* Signal influence points: Make sure to clear on removal of signal, clear ↵orwell962021-03-12
| | | | orphaned when digging rail
* Track can-dig check: also notify user when digging is not allowedorwell962021-03-12
|
* Add IGNORE_WORLD mode to test using only the advtrains save dataorwell962021-02-10
|
* fix mis-patched 90+60r crossing connsGabriel Pérez-Cerezo2021-01-10
| | | | Thanks, Maverick2797
* Fix 60/90 degree crossing connectionBlockhead2020-12-03
|
* Remove last files with CR-LF line endings.Gabriel Pérez-Cerezo2020-10-11
|
* Fix 3-way conns table so traverser doesn't complainBlockhead2020-10-11
| | | | | The remaining patch to make advtrains master stable: we can't have any conns entries without a 'c' member, so make all ["3"] entries into just ["c"] entries.
* Forbid track modification when train, IP or TCB is on it, better handle ↵orwell962020-10-07
| | | | removing of TCBs (H#149)
* Fix manual switching on regular track switches.Gabriel Pérez-Cerezo2020-09-14
|
* Fix issues introduced by changes to switchingBlockhead2020-09-14
| | | | | | | The code I wrote worked only for my y-turnout and 3-way variants because it assumed the variant name == the switching state, which is obviously wrong for the default sw(l|r)(st|cr) variants. I have added a 'switchprefix' property to address this.
* Enable three-way turnouts with proper conns support on all sidesBlockhead2020-09-11
| | | | | | | I chose to make three-way turnouts have 5 conns (last one is not used) so that they can be distinguished from crossings easily without refactoring the code. Three-ways should have their last entry with {["3"]=0} instead as a sort of internal mark.
* Add 3-way turnouts and y-turnouts (both diverging)Blockhead2020-09-11
|
* Add two new sets of diamond crossing typesBlockhead2020-08-21
| | | | | | | | | | | | | | | | | | | | | | | | Add two new sets of diamond crossings in addition to the current set of perpendicular crossings. Also cleans up the inside edges on the perpendicular set models. All of these varieties have their mirror images, which was previously a problem with the 45/90 crossing. The naming convention for all of these rail types is this: when facing east and param2=0, the angle and direction of the two crossing rails is indicated. So 30l45r means 30 degrees left and 45 degrees right. The mirror image of that would be 30r45l. There is a recipe for each set of crossing types and the trackworker can change geometry within types with left cick, and rotate between two 90 degree rotations with right-click. When left-clicking, the angles move in an intuitive fashion like rotating rails. * The perpendicular set (already existing) has rails that cross at 90 degrees. * The 90+x set has 90 degree (straight, node aligned) rails plus a rail intersecting that at 30, 45 or 60 degrees. * The diagonal set has both rails not axis-aligned, for example 30r-45l, 60l60r. The latter is quite useful for scissors crossovers.
* Add perpendicular and 45/90 degree crossing railsBlockhead2020-07-06
| | | | | | | | | | | | | | Add a set of new models for crossings to make some new track arrangements possible. This commit adds perpendicular crossigns that can be rotated at any angle: 30/45/60/90 and 45/90 degree crossings in two rotations. In future, further crossing types can be added to the blender file. Add the blender file in rail_crossings.blend that is the source of these files and which refers to the texture inside advtrains_train_track. Add a set of prototypes for rail crossings to advtrains/tracks.lua and register the new crossings in advtrains_train_track.
* Changes for linetrackGabriel Pérez-Cerezo2019-10-21
| | | | Allows defining a suitable substrate for tracks, and liquid pointable tracks
* Fix slope placer protectionorwell962019-02-05
|
* Move passive API to the advtrains coreorwell962018-08-16
| | | | to remove dependency of interlocking on luaautomation
* Implement routesettingorwell962018-07-21
| | | | Missing things: signal aspect updating, waiting routes handling, management /info tool
* Fix bugs found while testingorwell962018-06-14
|
* Mainly make collisions and coupling workorwell962018-06-14
| | | | Missing: ATC stuff, yaw problems
* Rework the privilege system completelyorwell962018-03-14
| | | | See privilege_guide.txt for information
* Log certain events in a logfile in the world directoryGabriel Pérez-Cerezo2018-02-21
| | | | (also fix the output of /at_sync_ndb)
* Rewrite rail connection system...orwell962017-12-18
| | | | | | | | | ...to support an arbitrary number of connections for rails, which leads to these new features: - switches now get recognized by the trackworker correctly - ability to add real rail crosses During this, I also rewrote the rail registering system and the conway function (important part of path prediction) Note, developers: the track preset format changed, you might need to rewrite them according to the presets in tracks.lua if you wrote your own (possibly breaks advcarts)
* Fix multiple track types not working simultaneouslyorwell962017-11-22
| | | | | | | Bug was caused by the drives_on table of every train and advtrains.all_tracktypes sharing the same reference, which caused advtrains.all_tracktypes to become the intersection of all train drives_on's in the world. However, this did become empty, causing nothing to work anymore.
* Make trackplacer align rails by any tracks, not just by tracks with the same ↵orwell962017-11-22
| | | | | | | nnpref This finally fixes the need to rotate atc rails and bumpers. Also prefers rotation that is closer to the player's look dir (placed bumpers will face the player)
* Change name of the node database group in order to clone node database code ↵orwell962017-10-31
| | | | | | into a library mod advtrains will keep its own node database code for reasons of crash recovery, with the handicap that improvements to nplib need to be manually backported.
* Implement multi-occupation in detector.on_node table to finally fix collisionsorwell962017-10-25
|
* Moved default train track to separate mod, for integration with advcarts.Gabriel Pérez-Cerezo2017-10-25
|
* Remove zip release files, move mod to root, exclude assets from Makefile (#92)rubenwardy2017-09-20
|
* Restructure mod directoryorwell962017-01-04
|
* Add Automatic Train Control systemorwell962017-01-04
|
* make detector code clear entries of trains that do not existorwell962017-01-02
|
* Do not duplicate definitions of 'print' in every fileorwell962017-01-02
|
* remove train type concept and calculate train's capabilities based on used ↵orwell962016-12-22
| | | | wagons
* Turning mod into a modpack and separating the trains from the core modorwell962016-12-20