aboutsummaryrefslogtreecommitdiff
path: root/advtrains_line_automation/stoprail.lua
Commit message (Expand)AuthorAge
* Stoprail: Set LZB checkpoint speed back to 2orwell962021-02-10
* Fix lots of things around new LZBorwell962021-02-10
* Disable ARS train flag and surrounding usesorwell962021-02-10
* Add K command to station railGabriel Pérez-Cerezo2021-01-08
* Make using the default tracks optional, even in submodsBlockhead2020-07-10
* Apply minetest.formspec_escape() to prevent formspec injection (H#143)MT0.4Blockhead2020-01-04
* math.floor triggers error if it gets something nilGabriel Pérez-Cerezo2019-07-20
* Prevent injection of floating-point delays, that wreck advtrainsGabriel Pérez-Cerezo2019-07-20
* Added option to modify departure speed and door delayGabriel Pérez-Cerezo2019-07-20
* Move LZB system to core and unify approach callback mechanismorwell962019-04-16
* Add ARS rules for stop railsorwell962019-02-19
* Move "Reverse" command in stoprail to directly before departureorwell962019-02-19
* Fix stop rails sometimes not sending stop commandorwell962019-02-16
* Small stoprail fixesorwell962019-02-11
* Minor Bugfixesorwell962019-02-03
* Basic functions of "stop rail", missing ARS rules and signal.orwell962019-01-24
* Signs (static signals)orwell962018-12-08
* no debugpringorwell962018-11-29
* Added on_train_approach callback, non-permanent external LZB brakepoints and ...orwell962018-11-29
pt">(text) minetest.log("action", "[serialize_lib] ("..(minetest.get_current_modname() or "?")..") DEBUG: "..(text or "<nil>")) end -- basic serialization/deserialization -- =================================== local mp = minetest.get_modpath(minetest.get_current_modname()) serialize_lib.serialize = dofile(mp.."/serialize.lua") dofile(mp.."/atomic.lua") local ser = serialize_lib.serialize -- Opens the passed filename, and returns deserialized table -- When an error occurs, logs an error and returns false function serialize_lib.read_table_from_file(filename) local succ, ret = pcall(ser.read_from_file, filename) if not succ then serialize_lib.log_error(ret) end return ret end -- Writes table into file -- When an error occurs, logs an error and returns false function serialize_lib.write_table_to_file(root_table, filename) local succ, ret = pcall(ser.write_to_file, root_table, filename) if not succ then serialize_lib.log_error(ret) end return ret end