aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains_luaautomation
Commit message (Collapse)AuthorAge
* Fix issue #40orwell962017-05-22
| | | | Was caused by arrowconn not being set. Instructs user to revisit.
* 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
|
* record_protection_violation: fix player name not being passedorwell962017-04-07
|
* Assert some variable types obtained from lua automationorwell962017-03-30
|
* 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 privilege enforcement being uselessorwell962017-03-16
| | | | Privilege violations caused an error message but didn't abort the operation
* 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.
* Add passive component namingorwell962017-02-28
|
* Fix manual operation of mesecon switchesorwell962017-02-20
|
* use mesecons_switch as correct dependency for luaautomationorwell962017-02-15
|
* Use identical proxy environment with swapped metatable to not having to ↵orwell962017-02-07
| | | | setfenv every function in F.
* Check if node is actually loaded before querying get_meta()orwell962017-02-05
| | | | Known to cause a segfault in engine sometimes.
* Fix LuaAtc Interrupt savingorwell962017-02-05
| | | | The timer was loaded, but not saved, leading to it being counted from 0 upwards every restart, which of course broke interrupts.
* 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 quick position lookup by punching nodesorwell962017-02-03
|
* Add documentation and pack for releaseorwell962017-02-02
|
* LuaAutomation: Add interrupt to the ingame API and implement initialization ↵orwell962017-02-02
| | | | code handling and env management
* 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