annotate print_log.lua @ 73:32eb24fb2ebf

- This code is not quite ready for prime time. Do not run it yet. - Loot events have associated unique IDs, enabling some new actions over the network. These IDs are preserved as part of realm history. As a result, the stored history format has completely changed (and requires less memory as a bonus). - "Prescan for faster handling" option, default off. - "Mark as <x>" now broadcast to other trackers. Older versions can't receive the message, of course. Future: Broadcast reassigning loot. - New options controlling whether (and where) to print a message when another player broadcasts those kinds of changes to existing loot. - Names colored by class when that data is available; CUSTOM_CLASS_COLORS supported. - Metric boatloads of minor tweaks and optimizations throughout.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Tue, 29 May 2012 22:50:09 +0000
parents 8f7ec6ccf5e3
children
rev   line source
farmbuyer@19 1 #!/usr/bin/env lua
farmbuyer@19 2
farmbuyer@39 3 --[[
farmbuyer@39 4 This is meant to be run from a command-line interpreter. It's what I
farmbuyer@39 5 use in practice, but is shipping primarily an example.
farmbuyer@39 6 ]]
farmbuyer@39 7
farmbuyer@19 8 if not arg[1] or arg[1] == "" then
farmbuyer@19 9 print"Usage: lua print_log.lua /path/to/OuroLoot_savedvars.lua"
farmbuyer@19 10 print"Don't forget to delete log table after viewing!"
farmbuyer@19 11 os.exit(1)
farmbuyer@19 12 end
farmbuyer@19 13
farmbuyer@19 14 dofile(arg[1])
farmbuyer@19 15
farmbuyer@19 16 if type(OuroLootSV_log) ~= 'table' then
farmbuyer@19 17 print("Did not find OuroLootSV_log in", arg[1])
farmbuyer@19 18 os.exit(1)
farmbuyer@19 19 end
farmbuyer@19 20
farmbuyer@19 21 for _,v in ipairs(OuroLootSV_log) do
farmbuyer@19 22 print(v)
farmbuyer@19 23 end
farmbuyer@19 24
farmbuyer@19 25 os.exit(0)
farmbuyer@19 26
farmbuyer@19 27 -- vim:noet ff=unix