Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Save/load keys

A topic by federico3 created May 31, 2017 Views: 250 Replies: 3
Viewing posts 1 to 4

Hello and thanks for the nice game.

It would be really handy to be able to load keys configuration from disk.

Perhaps it's already supported by config.ini ? Thanks!


Hi! I've added this feature already. 

You can configure the controls in the options menu -> controls -> keyboard. It'll save them in config.ini under [Input] -> Keymap

Let me know if it's not working for you.

Thank. The path under ~/.config was getting clobbered but I fixed it.

The game works with the following key conf: keymap="Up:Up;Down:Down;Left:Left;Right:Right;A:K;B:J;X:Left Shift,Right Shift;Y:J;L1:U;L2:I;R1:3;R2:4;Start:Return;Back:Escape,Backspace"

...while it crashes out with: keymap="Up:Up;Down:Down;Left:Left;Right:Right;A:K;B:J;X:;;Y:J;L1:U;L2:I;R1:3;R2:4;Start:Return;Back:Escape,Backspace"

...with the following logs:

matched 0:0,0,0
matched 1:29,43,83
matched 2:126,37,83
matched 3:0,135,81
matched 4:56,108,255
matched 5:95,87,79
matched 6:194,195,199
matched 7:255,241,232
matched 8:255,0,77
matched 9:255,163,0
matched 10:255,240,36
matched 11:0,231,86
matched 12:41,173,255
matched 13:131,118,156
matched 14:255,119,168
matched 15:255,204,170
SIGSEGV: Illegal storage access. (Attempt to read from nil?)


Thanks, looks like a bug in how I'm encoding/decoding the key map, will get that fixed!