From bdc49b919d5480ef3fef1ea415caadd8408cf35d Mon Sep 17 00:00:00 2001 From: orwell96 Date: Tue, 15 Dec 2020 15:38:53 +0100 Subject: DUMP_DEBUG_SAVE also dumps interlocking data --- advtrains/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'advtrains') diff --git a/advtrains/init.lua b/advtrains/init.lua index d6c3c92..fb17f08 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -462,6 +462,12 @@ advtrains.avt_save = function(remove_players_from_wagons) end file:write(dump(save_tbl)) file:close() + local file, err = io.open(advtrains.fpath.."_interlocking_DUMP", "w") + if err then + return + end + file:write(dump(il_save)) + file:close() end end -- cgit v1.2.3