aboutsummaryrefslogtreecommitdiff
Commit message (Expand)AuthorAge
...
* No static_save for discouple entitiesorwell962018-10-30
* Make fillout_aspect also fill "info" fieldorwell962018-10-30
* Do not allow static signals for routesettingorwell962018-10-30
* Fix Ks signals not setting aspect (missing set_aspect function)orwell962018-10-30
* Document fix 0a982b6356b2f4b6a28e74f9f90c4f584169a96dorwell962018-10-29
* Actually set last_connid to 1, to prevent warningorwell962018-10-29
* Do not print "couldn't determine section" warning when all traverser ends wer...orwell962018-10-29
* Handle the case that a train is not initialized (train_ensure_init returns ni...orwell962018-10-29
* Allow to accelerate trains slowly towards red signals from stand.orwell962018-10-29
* Fix typo in signal assignment, causing crashorwell962018-10-29
* Miscellaneous routesetting fixesorwell962018-10-29
* atdump() to treat certain values specialorwell962018-10-29
* Fix signal_get_aspect()orwell962018-10-29
* Small fixes which do not have any effectorwell962018-10-29
* Add Interlocking Tool to inspect route locksorwell962018-10-26
* Add "Reset track section" functionorwell962018-10-26
* Complete Ks Main signalsorwell962018-10-26
* Fix demo signalsorwell962018-10-25
* Add doc for supported_aspects, improve other doc and aspect autofillorwell962018-10-25
* Display route_rsn when denying routesetting by subroute locked.orwell962018-10-25
* Fix node database ATC rail bugorwell962018-10-17
* Prevent any user control except "Brake" when an ATC override is presentorwell962018-10-17
* Improve ATC-LZB-User control interaction, smoothen LZB control operationsorwell962018-10-17
* Address H#60, H#17, M#18 and M#7orwell962018-10-17
* Fix H#69orwell962018-10-17
* Fix H#66 (Hemiptera 66) crash on missing double_conn matchorwell962018-10-17
* Actually allow what manual promises (setting IP on non-assigned signals)orwell962018-10-17
* Update manual againorwell962018-10-15
* Properly handle speed restrictionsorwell962018-10-10
* Remote Routesetting from Onboard Computerorwell962018-10-10
* Properly implement invalidate_all_paths, recheck lzb on aspect changeorwell962018-10-10
* Add signal safety control override, restructure control systemorwell962018-10-10
* Make signal influence point (~halt point) specifiableorwell962018-10-09
* Improve route programming:orwell962018-10-07
* Fix route programming lock-placementorwell962018-09-28
* onboard computer fixh-v-smacker2018-08-12
* Remove redundant digtron.lua fileGabriel Pérez-Cerezo2018-08-12
* Make digtron able to build tracks.Gabriel Pérez-Cerezo2018-08-12
* Add 'interlocking' privilege and add security checksorwell962018-08-12
* Automatic working (re-set certain route on train pass)orwell962018-08-12
* Fix ATC rail reversingorwell962018-08-12
* fix digging unconfigured tcbsorwell962018-08-12
;,"..(form_z+edge_z).."]" local lbl={} for x,itx in pairs(itm_cache) do if x>=minx and x<=maxx then for z,y in pairs(itx) do if z>=minz and z<=maxz then local adn=advtrains.detector.get({x=x, y=y, z=z}) local color="gray" if adn then color="red" lbl[sid(adn)]={x=x, z=z} end form=form.."box["..(edge_x*(x-minx))..","..(form_z-(edge_z*(z-minz)))..";"..len_x..","..len_z..";"..color.."]" end end end end for t_id, xz in pairs(lbl) do form=form.."label["..(edge_x*(xz.x-minx))..","..(form_x-(edge_z*(xz.z-minz)))..";"..t_id.."]" end return form end local function cache_ndb() itm_cache={} local ndb_nodes=advtrains.ndb.get_nodes() for y, xzt in pairs(ndb_nodes) do for x, zt in pairs(xzt) do for z, _ in pairs(zt) do if not itm_cache[x] then itm_cache[x]={} end itm_cache[x][z]=y end end end end minetest.register_chatcommand("itm", { params="[x1 z1 x2 z2] or [mdef]", description="Display advtrains train map of given area.\nFirst form:[x1 z1 x2 z2] - specify area directly.\nSecond form:[mdef] - Use a predefined map background(see init.lua)\nThird form: No parameters - use WorldEdit position markers.", privs={itm=true}, func = function(name, param) local mdef=string.match(param, "^(%S+)$") if mdef then local d=map_def[mdef] if not d then return false, "Map definiton not found: "..mdef