ListCorruption
With the release of 6.24, several things became clear pretty quickly. The main thing, though, was that people were finding ways to get the list management to break in a whole variety of ways I had not predicted. As a result, reports of list corruption were coming in with many different kinds of behaviors. After reviewing all this data, several primary types became evident:
- Somehow having duplicate entries in the Players and Roll lists
- Somehow being able to move a player beyond the "end" of a Roll list
- "holes" in lists (nil, 0 or blank entries)
6.51 implements two new command line commands to help with this.
- /skg checklists
- /skg repairlists
The checklists command takes a look at your Players, Alts and Roll Lists and reports back on any of the above types of corruption that it detects. This command does NOT modify any lists. If it DOES find corruption, details can be found by turning on DEBUG mode and running the command again. What action you take at that point is up to you (pulling the lists again from someone with good data, etc). Remember, this command does NOT fix anything broken, it simply detects the common types of corruption.
The "repairlists" command, however, DOES make an attempt to fix things. I need to note this here to be very clear ... this command is a last resort. It takes a very broad stroke to fixing your lists, and this action can and will remove entries from lists that it believes are corrupted. In addition, as its final step, it will snapshot the newly corrected list. This action is NOT reversible.