Hm, detailed unit info viewer?
The screenshot was pretty cool, well lets try it...Hm, don't see a thread, nor helptext
*attempts to get it to work*
[DFHack]# detailedunit
./hack/lua/dfhack.lua:507: Could not find script functions/gui
stack traceback:
[C]: in function 'error'
./hack/lua/dfhack.lua:507: in function 'run_script_with_env'
./hack/lua/dfhack.lua:490: in function 'script_environment'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:37: in function 'f'
./hack/lua/dfhack.lua:562: in function <./hack/lua/dfhack.lua:503>
(...tail calls...)
oh ok, a dependency, lets add it...
[DFHack]# detailedunit
...user/DF/df4303LNP/df_linux/hack/scripts/functions/gui.lua:2263: Cannot read field vector<historical_figure*>.40699: index out of bounds.
stack traceback:
[C]: in function '__index'
...user/DF/df4303LNP/df_linux/hack/scripts/functions/gui.lua:2263: in function 'getEntity'
...user/DF/df4303LNP/df_linux/hack/scripts/functions/gui.lua:2437: in function 'getBaseOutput'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:414: in function 'fillMain'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:317: in function 'fun'
./hack/lua/class.lua:98: in function 'invoke_after_rec'
./hack/lua/class.lua:127: in function 'UnitViewUi'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:622: in function 'show_editor'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:626: in function 'f'
./hack/lua/dfhack.lua:562: in function <./hack/lua/dfhack.lua:503>
(...tail calls...)
Ah, it's using df.global.world.history.figures[unit.hist_figure_id] instead of df.historical_figure.find(unit.hist_figure_id)
[DFHack]# detailedunit
...user/DF/df4303LNP/df_linux/hack/scripts/functions/gui.lua:2805: attempt to index field 'roses' (a nil value)
stack traceback:
...user/DF/df4303LNP/df_linux/hack/scripts/functions/gui.lua:2805: in function 'getClassDetails'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:467: in function <.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:464>
[C]: in function 'on_select'
./hack/lua/gui/widgets.lua:532: in function 'moveCursor'
./hack/lua/gui/widgets.lua:463: in function 'setSelected'
./hack/lua/gui/widgets.lua:458: in function 'setChoices'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:460: in function 'classList'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:324: in function 'fun'
./hack/lua/class.lua:98: in function 'invoke_after_rec'
./hack/lua/class.lua:127: in function 'UnitViewUi'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:622: in function 'show_editor'
.../user/DF/df4303LNP/df_linux/hack/scripts/detailedunit.lua:626: in function 'f'
./hack/lua/dfhack.lua:562: in function <./hack/lua/dfhack.lua:503>
(...tail calls...)
Line 2805: local classTable = persistTable.GlobalTable.roses.ClassTable
Uh
hm. Going to need a class system on vanilla save.
Yeah, I'm starting to see why you said things are pretty closely tied to class system and why you'd recommend downloading everything. Slightly worried/wondering about conflicts (more than I'm curious, anyway), though, given many examples of your great work has already been integrated in dfhack core.
Any present that you can think of?