[Bug] Crash when trying to assign an unknown key

I have a PC105 keyboard with a Finnish layout.  It has one extra key compared to the PC104 keyboard common in the US.  I was playing around with the keybindings, and trying to bind that key caused the game to crash with:

Unhandled exception:

attempt to use as string a nil value
stack traceback:
    [C]: in function `SetText'
    ...s\demigod\dgdata.zip\lua\options\module_keybinds.lua(156): in function `OnReceivedKeyFromEngine'
    ...s\demigod\dgdata.zip\lua\options\module_keybinds.lua(163): in function <...s\demigod\dgdata.zip\lua\options\module_keybinds.lua:162>

As a side note, a lot of the other special keys don't match my keycaps either.  I'm wondering if there's a reason to use hardcoded key names instead of the GetKeyNameText function?

696 views 0 replies