[git]fix Character dump error
Posted: Wed Mar 07, 2012 9:25 am
i don't know how to fix it
fix it in git rev
fix it in git rev
Everything about ToME
https://forums.te4.org/
Code: Select all
Lua Error: /mod/dialogs/CharacterSheet.lua:1248: attempt to index a nil value
At [C]:-1 __index
At /mod/dialogs/CharacterSheet.lua:1248 dump
At /mod/dialogs/CharacterSheet.lua:126 on_input
At /engine/KeyCommand.lua:70 receiveKey
At /engine/ui/Dialog.lua:527 keyEvent
At /engine/ui/Dialog.lua:306
Lua Error: /engine/dialogs/ShowErrorStack.lua:77: attempt to get length of field 'dialogs' (a nil value)
At [C]:-1 __len
At /engine/dialogs/ShowErrorStack.lua:77 init
At /engine/class.lua:97 new
At /engine/Game.lua:197 tick
At /engine/GameTurnBased.lua:42 tick
At /mod/class/Game.lua:904
---------------- Stack Dump ----------------
2: table // 18a5e28
1: table // 18a5e28
--------------- Stack Dump Finished ---------------
Lua Error: /engine/dialogs/ShowErrorStack.lua:77: attempt to get length of field 'dialogs' (a nil value)
At [C]:-1 __len
At /engine/dialogs/ShowErrorStack.lua:77 init
At /engine/class.lua:97 new
At /engine/Game.lua:197 tick
At /engine/GameTurnBased.lua:42 tick
At /mod/class/Game.lua:904
Code: Select all
game/modules/tome/dialogs/CharacterSheet.lua | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/modules/tome/dialogs/CharacterSheet.lua b/game/modules/tome/dialogs/CharacterSheet.lua
index c6dc4b8..94793b3 100644
--- a/game/modules/tome/dialogs/CharacterSheet.lua
+++ b/game/modules/tome/dialogs/CharacterSheet.lua
@@ -1245,7 +1245,7 @@ function _M:dump()
nl(" [Last Messages]")
nl()
- nl(table.concat(game.logdisplay:getLines(40), "\n"):removeColorCodes())
+ nl(table.concat(game.uiset.logdisplay:getLines(40), "\n"):removeColorCodes())
fff:close()