[git]fix Character dump error

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
zhouwei_e
Cornac
Posts: 35
Joined: Tue Feb 14, 2012 10:01 am

[git]fix Character dump error

#1 Post by zhouwei_e »

i don't know how to fix it


fix it in git rev
Last edited by zhouwei_e on Thu Mar 22, 2012 8:04 am, edited 1 time in total.

lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

Re: [b38] Character dump error

#2 Post by lukep »

What went wrong?
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

zhouwei_e
Cornac
Posts: 35
Joined: Tue Feb 14, 2012 10:01 am

Re: [b38] Character dump error

#3 Post by zhouwei_e »

in CharacterSheet press "d"

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 

zhouwei_e
Cornac
Posts: 35
Joined: Tue Feb 14, 2012 10:01 am

Re: [b38]fix Character dump error

#4 Post by zhouwei_e »

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()
 

Post Reply