$12256 / $11500
Hi,
I have re-configured the hotbar to work like this: Q,E,R,F, Space, Left Mouse Button, Middle Mouse Button, Right Mouse Button.
I have changed the UI image in menus to match this.
However, while I am able to manually change the keybindings on my own computer, the moment it is transferred to another computer, these keybindings are reset to default.
I would like to make it so that when people download my mod, the keybindings that I have set up are the default for my mod. Is it possible for me to do this? Thanks.
Not possible at the moment. I'm okay with adding it, but I want to make sure that a mod can't clobber a user's personal keybinds. Especially for users with different keyboard layouts. Maybe we could prompt the user that a mod has some default keybinds and ask if they want to use them.
Anyway, I've opened an issue for this on Github, so you can watch there for any developments.
Ok, thanks!
I remember pre-Flare 1.0 your saves, settings and config files were stored inside the mod folder itself rather than in AppData? Is it possible do that for Keybindings at least? That way when you enable/disable you disable the keybindings for that mod as well.
___________________
My portfolio site
Flare Project thread
That sounds like a good solution. If a mod contains a keybindings definition, we can then look for a saved keybindings definition under the current save prefix, e.g. "saves/empyrean/keybindings.txt".
Implemented (look for it soon in 1.05): https://github.com/clintbellanger/flare-engine/commit/3755f4c470c8bbae45...
Keybind loading now goes like this:
The syntax of "engine/default_keybindings.txt" permits defining only the actions you wish to change. Here's an example:
[default]
bar1=Q,Q,joy_0
bar7=mouse_1,mouse_1,-1
character=C,C,axis_3-
inventory=I,I,axis_3+
Nice! Thank you so much for this. When is 1.05 going to be released?
___________________
My portfolio site
Flare Project thread
I'm aiming for some time this week. I'm working on some developer mode improvements right now, and I might try to squeeze in #1626 after that.
1.05 is up now: http://flarerpg.org/index.php/2018/04/30/flare-1-05/