aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trackplacer.lua
Commit message (Expand)AuthorAge
* Remove pcall wrappers completely, add command to disable advtrains mainlooporwell962021-02-10
* Forbid track modification when train, IP or TCB is on it, better handle remov...orwell962020-10-07
* Changes for linetrackGabriel Pérez-Cerezo2019-10-21
* Fix protection regarding tracks (track_builder and railway_operator) and docu...orwell962018-11-12
* Complete Ks Main signalsorwell962018-10-26
* Fix H#66 (Hemiptera 66) crash on missing double_conn matchorwell962018-10-17
* Make digtron able to build tracks.Gabriel Pérez-Cerezo2018-08-12
* Fix yaw calculations, track placement orientation and speed up direction look...orwell962018-06-14
* Rewrite rail connection system...orwell962017-12-18
* Use preferred rail orientation algorithm also for double connectionsorwell962017-12-18
* Do not modify rails that should not be modifiedorwell962017-11-24
* Correct yaw to preferred rail direction calculationorwell962017-11-24
* Make trackplacer align rails by any tracks, not just by tracks with the same ...orwell962017-11-22
* Moved default train track to separate mod, for integration with advcarts.Gabriel Pérez-Cerezo2017-10-25
* Remove zip release files, move mod to root, exclude assets from Makefile (#92)rubenwardy2017-09-20
* Restructure mod directoryorwell962017-01-04
* Add Automatic Train Control systemorwell962017-01-04
* Turning mod into a modpack and separating the trains from the core modorwell962016-12-20
n> self.content = self.content..text end function mock_file:create(lines) local f = {} setmetatable(f, mock_file) f.lines = lines or {} f.write = self.write f.close = self.close f.read = self.read f.content = "" return f end local testtable = { key = "value", [1] = "eins", [true] = { a = "b", c = false, }, ["es:cape1"] = "foo:bar", ["es&ca\npe2"] = "baz&bam\nbim", ["es&&ca&\npe3"] = "baz&&bam&\nbim", ["es&:cape4"] = "foo\n:bar" } local testser = [[LUA_SER v=1 B1:T Sa:Sb Sc:B0 E Skey:Svalue Ses&&&&ca&&&npe3:Sbaz&&&&bam&&&nbim N1:Seins Ses&&&:cape4:Sfoo&n&:bar Ses&&ca&npe2:Sbaz&&bam&nbim Ses&:cape1:Sfoo&:bar E END_SER ]] local function check_write(tb, conf) f = mock_file:create() ser.write_to_fd(tb, f, conf or {}) return f.content end function string:split() local fields = {} self:gsub("[^\n]+", function(c) fields[#fields+1] = c end) return fields end local function check_read(text)