Mercurial > wow > ouroloot
view print_log.lua @ 114:67bf97136273
- Start paying attention to cross-realm names. New 'fname' and 'realm' keys
in snapshot (now indexed by name only), 'person_realm' key in loot entries.
Realm data not stored if it's the same as the player's realm. Manual
rebroadcasting does not include realm data (do we care?).
- New history_suppress_LFR and history_ignore_xrealm options.
- This implementation depends on no two cross-realm players sharing the same
player name. Is that guaranteed by Blizzard, or merely "unlikely"?
- Gather history suppression knobs into a single function.
- If restoring loot data, make sure the item cache has their values; fix up
any missing data on load.
- Memory tweaks for player history sorting.
- Handle some long-standing FIXME's: reassigning loot to the same player,
using expunge() for history, no partial duplication of effort for
addHistoryEntry.
- Try to be more graceful when discovering messed up history during column 3
display loops. Don't leave History tab in player-focused mode when all
that player's data have been removed elsewhere.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Mon, 13 Aug 2012 21:49:08 -0400 |
parents | 8f7ec6ccf5e3 |
children |
line wrap: on
line source
#!/usr/bin/env lua --[[ This is meant to be run from a command-line interpreter. It's what I use in practice, but is shipping primarily an example. ]] if not arg[1] or arg[1] == "" then print"Usage: lua print_log.lua /path/to/OuroLoot_savedvars.lua" print"Don't forget to delete log table after viewing!" os.exit(1) end dofile(arg[1]) if type(OuroLootSV_log) ~= 'table' then print("Did not find OuroLootSV_log in", arg[1]) os.exit(1) end for _,v in ipairs(OuroLootSV_log) do print(v) end os.exit(0) -- vim:noet ff=unix