i don't know how to fix it
fix it in git rev
[git]fix Character dump error
Moderator: Moderator
[git]fix Character dump error
Last edited by zhouwei_e on Thu Mar 22, 2012 8:04 am, edited 1 time in total.
Re: [b38] Character dump error
What went wrong?
Re: [b38] Character dump error
in CharacterSheet press "d"
i also test it in git rev but not fixed
i also test it in git rev but not fixed
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
Re: [b38]fix Character dump error
fixed
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()