comparison print_log.lua @ 19:f560cf82e7d3

Smarter handling of missed item cache entries. Basic persistent logging of debug messages (options panel or /loot debug alsolog) and script to print same.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Mon, 29 Aug 2011 01:29:13 +0000
parents
children 8f7ec6ccf5e3
comparison
equal deleted inserted replaced
18:ca797c0f32d4 19:f560cf82e7d3
1 #!/usr/bin/env lua
2
3 if not arg[1] or arg[1] == "" then
4 print"Usage: lua print_log.lua /path/to/OuroLoot_savedvars.lua"
5 print"Don't forget to delete log table after viewing!"
6 os.exit(1)
7 end
8
9 dofile(arg[1])
10
11 if type(OuroLootSV_log) ~= 'table' then
12 print("Did not find OuroLootSV_log in", arg[1])
13 os.exit(1)
14 end
15
16 for _,v in ipairs(OuroLootSV_log) do
17 print(v)
18 end
19
20 os.exit(0)
21
22 -- vim:noet ff=unix