From 54092ac12301de2461040d4185a0e62c59c2c49d Mon Sep 17 00:00:00 2001 From: eduran84 <22216687+eduran84@users.noreply.github.com> Date: Mon, 4 Mar 2019 18:05:27 +0100 Subject: [PATCH] Removed debug code for release Updated changelog --- README.md | 1 + changelog.txt | 11 +++++++++++ control.lua | 4 ++-- info.json | 2 +- ltnt/logger.lua | 10 +++++----- ui/station_tab.lua | 1 - 6 files changed, 20 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 55ec0c4..ddf33ae 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,5 @@ The GUI can be switched on and off using a toggle button in the top left corner Special thanks to Optera for creating LTN and for his continued support during the development of this mod. Mod Portal: https://mods.factorio.com/mod/LogisticTrainNetwork + Forums: https://forums.factorio.com/viewtopic.php?f=190&t=64842 diff --git a/changelog.txt b/changelog.txt index 6a8fb83..460a900 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,14 @@ +------------------------------------------------------------- +Version: 0.9.1 +Date: 2019-02-28 + +New features: + - station tab can be sorted by station name or state by + clicking the corresponding column header + - stations can be filtered by name +Bugfixes: + - adjusted various UI components to look better with 0.17 + ------------------------------------------------------------- Version: 0.9.0 Date: 2019-02-28 diff --git a/control.lua b/control.lua index 247db6a..f86b4b3 100644 --- a/control.lua +++ b/control.lua @@ -29,7 +29,7 @@ local custom_events = { -- 3 = not available as setting, only for use during development out = require("ltnt.logger") -debug_level = 2-- tonumber(settings.global["ltnt-debug-level"].value) +debug_level = tonumber(settings.global["ltnt-debug-level"].value) -- modules local prc = require("ltnt.data_processing") @@ -45,7 +45,7 @@ end local function on_init() -- !DEBUG delete old log, for convenience during debugging - game.write_file("ltnt.log", "", false, 1) + -- game.write_file("ltnt.log", "", false, 1) -- check for LTN local ltn_version = nil diff --git a/info.json b/info.json index 31ce77c..942ee4e 100644 --- a/info.json +++ b/info.json @@ -7,5 +7,5 @@ "homepage": "https://forums.factorio.com/viewtopic.php?f=190&t=64842", "description": "A GUI for LTN. Displays information about LTN stops, available items and trains controlled by LTN.", "factorio_version": "0.17", -"dependencies": ["base >= 0.17.2", "LogisticTrainNetwork >= 1.10.0"] +"dependencies": ["base >= 0.17.4", "LogisticTrainNetwork >= 1.10.0"] } diff --git a/ltnt/logger.lua b/ltnt/logger.lua index 61a566f..b32bf56 100644 --- a/ltnt/logger.lua +++ b/ltnt/logger.lua @@ -177,11 +177,11 @@ local function _log(msg_type, tag, pargs) game.print(message) end if debug_level > 0 then - if game then - game.write_file(filename, message.."\n", true) - else - log(message) - end + --if game then + -- game.write_file(filename, message.."\n", true) + --else + log(message) + --end end return message end diff --git a/ui/station_tab.lua b/ui/station_tab.lua index de42b8c..35916bd 100644 --- a/ui/station_tab.lua +++ b/ui/station_tab.lua @@ -257,7 +257,6 @@ local function eqtest(a,b) return a==b end local build_item_table = require("ui.util").build_item_table function gcStopTab:update(pind, index) if index == self.tab_index then - out.info("DEBUG", "gc name:", self.name, "mystorage:", self.mystorage) self:show(pind) global.gui.active_tab[pind] = index