Crashing when using Shidos
Moderator: Sir Tawmis
Crashing when using Shidos
The game is great - I love it. Unfortunately, I have had the game crash on me twice with Lua scripting errors, both times when trying to use one of the summoned Shidos's abilities. I believe both crashes were two different abilities. One of the crashes was when I tried to use the red healing potion on one of my main characters (the Shido had the red healing potion as an ability). I can't remember what the other one was. The Lua error for the red potion one was having a string where an integer was expected. I think it saved the Lua crash somewhere on my computer. What do I need to do to help you fix this?
Re: Crashing when using Shidos
There should be a crash log at Documents/Ctrl Alt Ninja/Druidstone/shinobi.log. Could you please paste it here so that we can have a look? Which version of the game are you running? The version number is shown in the main menu.
Re: Crashing when using Shidos
Here you go! It has both crashes below. I believe for both crashes I tried to use a Shido ability on one of my heroes. I have the game via GOG. It auto-updated recently but I can't remember if it was before or after the crashes. I believe before.
=== Error ===
abilities.lua:0: attempt to perform arithmetic on field 'x' (a nil value)
stack traceback:
abilities.lua: in function 'call_hook'
item.lua: in function 'use_item'
hero.lua: in function 'update_hero'
battle.lua: in function 'battle_hero_phase'
battle.lua: in function <battle.lua:0>
[C]: in function 'xpcall'
main.lua: in function <main.lua:0>
stack traceback:
[C]: in function 'error'
main.lua: in function 'display'
main.lua: in function <main.lua:0>=== Error ===
objdefs.lua:0: attempt to compare number with string
stack traceback:
objdefs.lua: in function 'call_hook_obj'
mob.lua: in function 'heal_mob'
item.lua: in function 'call_hook'
item.lua: in function 'use_item'
hero.lua: in function 'update_hero'
battle.lua: in function 'battle_hero_phase'
battle.lua: in function <battle.lua:0>
[C]: in function 'xpcall'
main.lua: in function <main.lua:0>
stack traceback:
[C]: in function 'error'
main.lua: in function 'display'
main.lua: in function <main.lua:0>
=== Error ===
abilities.lua:0: attempt to perform arithmetic on field 'x' (a nil value)
stack traceback:
abilities.lua: in function 'call_hook'
item.lua: in function 'use_item'
hero.lua: in function 'update_hero'
battle.lua: in function 'battle_hero_phase'
battle.lua: in function <battle.lua:0>
[C]: in function 'xpcall'
main.lua: in function <main.lua:0>
stack traceback:
[C]: in function 'error'
main.lua: in function 'display'
main.lua: in function <main.lua:0>=== Error ===
objdefs.lua:0: attempt to compare number with string
stack traceback:
objdefs.lua: in function 'call_hook_obj'
mob.lua: in function 'heal_mob'
item.lua: in function 'call_hook'
item.lua: in function 'use_item'
hero.lua: in function 'update_hero'
battle.lua: in function 'battle_hero_phase'
battle.lua: in function <battle.lua:0>
[C]: in function 'xpcall'
main.lua: in function <main.lua:0>
stack traceback:
[C]: in function 'error'
main.lua: in function 'display'
main.lua: in function <main.lua:0>
Re: Crashing when using Shidos
The bug should be fixed in the latest version. Thanks for your help!