Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
FLARE [ARCHIVED]

Transferable Keybindings.txt?

Ateo88
Tuesday, April 24, 2018 - 07:12

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.

  • Log in or register to post comments
dorkster
joined 12 years 11 months ago
Tuesday, April 24, 2018 - 17:20
dorkster's picture

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.

  • Log in or register to post comments
Ateo88
joined 10 years 3 months ago
Wednesday, April 25, 2018 - 07:12

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

  • Log in or register to post comments
dorkster
joined 12 years 11 months ago
Wednesday, April 25, 2018 - 10:08
dorkster's picture

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".

  • Log in or register to post comments
dorkster
joined 12 years 11 months ago
Saturday, April 28, 2018 - 13:19
dorkster's picture

Implemented (look for it soon in 1.05): https://github.com/clintbellanger/flare-engine/commit/3755f4c470c8bbae45...

Keybind loading now goes like this:

  1. Engine defaults are set as a baseline.
  2. If the mod has "engine/default_keybindings.txt", try to load the user's keybinds from "saves/SAVE_PREFIX/keybindings.txt".
  3. Try to load from mod's "engine/default_keybindings.txt"
  4. Try to load from user's saved global keybindings.txt
  5. If nothing could be loaded by this point, keybinds will be the engine defaults.

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+

  • Log in or register to post comments
Ateo88
joined 10 years 3 months ago
Sunday, April 29, 2018 - 05:02

Nice! Thank you so much for this. When is 1.05 going to be released?

 

___________________

My portfolio site

Flare Project thread

  • Log in or register to post comments
dorkster
joined 12 years 11 months ago
Sunday, April 29, 2018 - 13:23
dorkster's picture

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.

  • Log in or register to post comments
dorkster
joined 12 years 11 months ago
Monday, April 30, 2018 - 15:58
dorkster's picture

1.05 is up now: http://flarerpg.org/index.php/2018/04/30/flare-1-05/

  • Log in or register to post comments