aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains
Commit message (Collapse)AuthorAge
* write the saved nodedb state back to the map when restoring after a crashorwell962017-05-12
| | | | | also, print a complete stack trace when an error happens also, don't replace nodes in the nodedb when worldedit has been used
* Remove pos_to_string whereever possible to prevent crashesorwell962017-05-12
|
* Performance improvements: Don't clear paths unless absolutely necessaryorwell962017-05-03
| | | | | instead delete path elements that are too far from the train one-by-one Also when switching a switch or changing rails, only clear train paths of trains that are nearby.
* Merge nocrash branch into master and merging it with the unified functions ↵orwell962017-04-29
|\ | | | | | | | | | | so that restoring works how it should Also fix minor bugs and an occasional crash with couples
| * Add pcall wrapper to prevent server crashes when advtrains throws an errororwell962017-04-29
| | | | | | | | | | Instead, read save files again and restore state before the crash Rebased to latest commit
* | Unify globalstep, load and save of all components into single functionsorwell962017-04-29
|/
* Add Andrew's Crossorwell962017-04-27
|
* Fix bug introduced by last commit (revert change)orwell962017-04-12
|
* Add privilege for basic train operation.orwell962017-04-09
| | | | This privilege is granted to singleplayer by default, but is not granted on servers. This prevents unexperienced or evil players from breaking automatic train operation on servers.
* record_protection_violation: fix player name not being passedorwell962017-04-07
|
* Fix #59orwell962017-04-05
|
* Actually check for protection when placing trains and use the train_place ↵orwell962017-04-02
| | | | privilege
* Add support to display text to passengers and on the outside of the trainorwell962017-03-30
| | | | | Outside is currently displayed as infotext. TODO: signs-like draw it on the wagon FIXME: When object properties are set, for some reason the animation restarts
* Respect protection_bypass privilege, fix crash with areas and properly ↵orwell962017-03-30
| | | | record protection violations
* Fix Atc arrows pointing into wrong directionorwell962017-03-12
|
* Screw buttonlike rules for wall signals and use regular rules.orwell962017-03-12
|
* Redo rail modelsorwell962017-03-12
| | | | Use multiple textures for slope objects, include mbb's rail textures and make curves and switches look better. Also add cable template.
* Don't drop items in creative mode when player gets overrun by trainorwell962017-03-11
|
* "Sneak" instead of "Shift" for the sneak keyorwell962017-03-09
|
* Improve debug outputs of couples and increase maximum distanceorwell962017-03-03
|
* Only get on by walking in when there's a platform, improve get off handlingorwell962017-02-28
|
* Add ceiling-mounted signalorwell962017-02-28
| | | | This is the wall signal as ceiling variant. Because the trackdb can only save 4 rotation values, we need a ceiling version of this.
* Fix collision issuesorwell962017-02-21
|
* Also check positions on high platforms at entering doorsorwell962017-02-21
|
* Only place rails on solid nodesorwell962017-02-21
|
* Fix crash when ATC rail exists but no command is saved.orwell962017-02-20
| | | | | Crash was caused by a concatenation for a debug message. atprint can handle nil if passed as separate parameter Setting the train's atc command to nil just means that there is no command.
* don't pass unexistant variable to train_step_b (fixes #46)orwell962017-02-17
|
* fix crash on seatpc nilorwell962017-02-15
|
* fix #34 - end_index not set when step_a returned in phase 2orwell962017-02-15
|
* Proper implementation for getting on by walking into train, rework damage ↵orwell962017-02-09
| | | | and player controls in train, fix death and join bugs, do not spawn bones on death
* Merge PR from gpcf (Get on by walking in)orwell962017-02-07
|\
| * Merge branch 'master' of https://github.com/orwell96/advtrainsGabriel Pérez-Cerezo2017-02-05
| |\
| * | Added getting on and off by walking in and out. Default seat on subway is ↵Gabriel Pérez-Cerezo2017-01-29
| | | | | | | | | | | | now passenger seat.
* | | Do not invalidate paths unnecessarilyorwell962017-02-05
| | | | | | | | | | | | Recomputing paths needs time and computing power, so do this only when really necessary
* | | Fix "lock couples" checkbox on wagon properties formorwell962017-02-05
| | |
* | | Fix ATC components being randomly ignored by trains.orwell962017-02-05
| | | | | | | | | | | | | | | Also add warnings to off_track stuff Also pack for release
* | | Even more bugfixesorwell962017-02-04
| |/ |/| | | | | | | | | | | - add translations of all index values to invert_train - fix on_leave_node callbacks not being called when train reverses - fix callbacks on train creation and destruction - Fix warning when saving ATC rail info
* | Commit 1.6.2orwell962017-02-04
| | | | | | | | | | | | | | | | - Add some more stuff to API for LuaATC rails - Warn on strange events even if debug info is disabled - save atlatc on shutdown too - fix detector rails in unloaded chunks - do not fail silently in simple ATC rails
* | Revert change to node pos hashes, and rewrite trackdb to use individual ↵orwell962017-02-03
| | | | | | | | | | | | | | | | coordinates The precision of integers was not sufficient for saving pos node hashes in most cases, leading to strange bugs. This fixes broken ATC rails, broken LuaAutomation stuff and trackdb on Windows. Probably also fixes trains randomly stopping.
* | add wallmounted light signalorwell962017-02-03
| |
* | Merge PR from mbb: add better textures and craftsorwell962017-02-02
|\ \
| * | add better textures and craftsmbblp2017-02-02
| | |
* | | LuaAutomation - Basic component implementationorwell962017-02-02
| | | | | | | | | | | | | | | | | | Implements the base code for LuaAutomation, an ATC rail and a punch-operated 'operation panel' as well as interface for passive components. Changes in advtrains code where neccessary. Supported passive components are light signals, switches and mesecon switches
* | | Fix collision to work with pos node hashesorwell962017-02-02
| | |
* | | Lua automation - initial incomplete codingorwell962017-02-02
| | |
* | | Replace all table indices that were pos_to_string strings with node hashes.orwell962017-01-31
| | | | | | | | | | | | Lua table string lookup consumes about 10 times more time than numeric indices
* | | Remove lua_atc from advtrains main mod.orwell962017-01-31
|/ /
* | Limit dtime to prevent trains moving too far in a single steporwell962017-01-29
| | | | | | | | and update zip
* | Add getter calls for raw nodedborwell962017-01-29
| | | | | | | | (required for itrainmap mod)
* | Fix wagon properties not saved on button clickorwell962017-01-29
|/