Skip to content

Commit

Permalink
Removed debug code for release
Browse files Browse the repository at this point in the history
Updated changelog
  • Loading branch information
eduran84 committed Mar 4, 2019
1 parent bf84839 commit 54092ac
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
10 changes: 5 additions & 5 deletions ltnt/logger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion ui/station_tab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 54092ac

Please sign in to comment.