The new features are terrific, Patrik. The flag display works well, especially being able to quickly flip through the whole library. Two books in my library were forbidden, and I didn't know it. And one book, dropped by a spooked caravan, has been stuck unmovable on the surface for years. With this script, I was able to to turn off the Trader flag and retrieve it.
The zoom-and-return feature seems to be working fine this time.
A suggestion: The "Content Type" submenu would be much more useful if it showed the number of titles in each category.
I ran the script five times, and the third time I got a bunch of errors. The script still ran fine, so far as I could tell. And I can't tell why it was the third time and not any of the others. Here's the error log:
(http://i63.tinypic.com/1539moi.jpg)
(http://i65.tinypic.com/f3zuch.jpg)
I have another error, this time it's not fatal, librarian seems to work fine for what I'm doing (browse the values page to find books to forbid), but when I check back to the dfhack window later, there often is all this error text. Same fort, still playing 44.10, as unmodded as I get to claim in this subforum.
[DFHack]# librarian
...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2636: attempt to ind
ex a nil value (field '?')
stack traceback:
...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2636: in fun
ction <...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2628>
[C]: in field 'on_select'
...DE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui\widgets.lua:544: in meth
od 'moveCursor'
...DE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui\widgets.lua:631: in meth
od 'onInput'
...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:484: in func
tion <...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:479>
(...tail calls...)
...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:484: in func
tion <...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:479>
(...tail calls...)
...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:484: in func
tion <...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:479>
(...tail calls...)
...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:3437: in fun
ction <...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2676>
[C]: in ?
...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2636: attempt to ind
ex a nil value (field '?')
stack traceback:
...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2636: in fun
ction <...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2628>
[C]: in field 'on_select'
...DE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui\widgets.lua:544: in meth
od 'moveCursor'
...DE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui\widgets.lua:631: in meth
od 'onInput'
...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:484: in func
tion <...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:479>
(...tail calls...)
...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:484: in func
tion <...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:479>
(...tail calls...)
...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:484: in func
tion <...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:479>
(...tail calls...)
...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:3437: in fun
ction <...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2676>
[C]: in ?
...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2636: attempt to ind
ex a nil value (field '?')
stack traceback:
...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2636: in fun
ction <...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2628>
[C]: in field 'on_select'
...DE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui\widgets.lua:544: in meth
od 'moveCursor'
...DE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui\widgets.lua:631: in meth
od 'onInput'
...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:484: in func
tion <...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:479>
(...tail calls...)
...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:484: in func
tion <...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:479>
(...tail calls...)
...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:484: in func
tion <...ele\PERIDE~1.10-\Dwarf Fortress 0.44.10\hack\lua\gui.lua:479>
(...tail calls...)
...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:3437: in fun
ction <...~1.10-\Dwarf Fortress 0.44.10/hack/scripts/librarian.lua:2676>
[C]: in ?
Always these three repeats together if it happens, but sometimes there are no errors. No idea what makes the difference.