aboutsummaryrefslogtreecommitdiff
path: root/advtrains_line_automation
Commit message (Collapse)AuthorAge
* Rework stoprail formspec layout and add mono stylehlqkj2021-03-22
| | | | | - Rework formspec layout, fixed tab order - Added style to use monospaced font for the stn and ars fields
* Do not return early after setting station info on stop railBlockhead2021-03-22
| | | | Solves Hemiptera#171
* Replace deprecated depends.txt's by mod.conf and organize dependencies ↵orwell962021-03-13
| | | | consistently, add modpack.conf
* Stoprail: Set LZB checkpoint speed back to 2orwell962021-02-10
| | | | | Caused problems when approaching stoprail in manual control also better for compatibility
* 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
| | | | | Move the UI of station rails to use checkboxes rather then dropdowns for the reverse command.
* Fix schedule_in() crash when RWT is not in number format (H#159)orwell962020-10-07
|
* Make using the default tracks optional, even in submodsBlockhead2020-07-10
| | | | | | | | | | If advtrains_train_track is disabled, don't register any tracks that use its model like the LuaATC automation rail, point speed restriction rail, station/stop rail. For LuaATC, the definition for firing an event when a train runs over the rail needs to be moved into the common defs so that other mods like linetrack can use that as an interface.
* Apply minetest.formspec_escape() to prevent formspec injection (H#143)MT0.4Blockhead2020-01-04
|
* Fix RWT initialization when creating new world (H#142)orwell962019-12-18
|
* Fix scheduler crash (H#133)orwell962019-11-21
| | | | for loops don't work with manipulating i
* Add "discard all" function to scheduler events and use it to clear schedules ↵orwell962019-11-06
| | | | in luaatc rails
* lines: fix very dumb typo breaking the "add" and "diff" functionorwell962019-11-06
|
* lines: Add rwt adapt mode to adapt to real timeorwell962019-11-06
|
* lines: document scheduler betterorwell962019-11-06
|
* Secure inputs to scheduler so that they don't get recognised when executing ↵orwell962019-08-29
| | | | the schedule
* Add lines scheduler for reliable railway-time scheduling(which is also safer ↵orwell962019-08-26
| | | | than the atlatc scheduler) and document new atlatc functions
* 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
| | | | | The door delay is the time between when the doors start closing and the train departs.
* RWTs can be specified in any form, unify converters, repeating time handlingorwell962019-06-19
|
* Omit cycle in to_Stringorwell962019-06-19
|
* Railway Time: atlatc interface, improve util functionsorwell962019-06-19
|
* Railway Time: Basic time counter and utility functionsorwell962019-06-19
|
* 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
| | | | For signal, need to think of a callback system for signals and moving atlatc queue to core?
* Point speed restriction railsorwell962019-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
basis for "stop rails" Stop rails ATM use the aforementioned things to add a pointwise "2" speed restriction. Seems to work.
ndencies.") else if toadd_hard ~= "" then retval = retval .. "," .. fgettext("Dependencies:") .. "," retval = retval .. toadd_hard end if toadd_soft ~= "" then if toadd_hard ~= "" then retval = retval .. "," end retval = retval .. "," .. fgettext("Optional dependencies:") .. "," retval = retval .. toadd_soft end end retval = retval .. ";0]" end else retval = retval .. ";0]" if selected_pkg.type == "txp" then if selected_pkg.enabled then retval = retval .. "button[8.9,4.65;3,1;btn_mod_mgr_disable_txp;" .. fgettext("Disable Texture Pack") .. "]" else retval = retval .. "button[8.9,4.65;3,1;btn_mod_mgr_use_txp;" .. fgettext("Use Texture Pack") .. "]" end end end retval = retval .. "button[5.5,4.65;3,1;btn_mod_mgr_delete_mod;" .. fgettext("Uninstall Package") .. "]" end return retval end -------------------------------------------------------------------------------- local function handle_buttons(tabview, fields, tabname, tabdata) if fields["pkglist"] ~= nil then local event = core.explode_table_event(fields["pkglist"]) tabdata.selected_pkg = event.row return true end if fields["btn_mod_mgr_install_local"] ~= nil then core.show_file_open_dialog("mod_mgt_open_dlg", fgettext("Select Package File:")) return true end if fields["btn_contentdb"] ~= nil then local dlg = create_store_dlg() dlg:set_parent(tabview) tabview:hide() dlg:show() packages = nil return true end if fields["btn_mod_mgr_rename_modpack"] ~= nil then local dlg_renamemp = create_rename_modpack_dlg(tabdata.selected_pkg) dlg_renamemp:set_parent(tabview) tabview:hide() dlg_renamemp:show() return true end if fields["btn_mod_mgr_delete_mod"] ~= nil then local mod = packages:get_list()[tabdata.selected_pkg] local dlg_delmod = create_delete_content_dlg(mod) dlg_delmod:set_parent(tabview) tabview:hide() dlg_delmod:show()