Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Can control scheme data be stored with a game

I seem to get random results from people in terms of how their controls work when they test my game. (I have the RGSS dll included and such so they don't need RTP; also, using RMXP) Some get the control scheme I set up, but some have the default. Is it stored somewhere easy to get to, or hidden in the exe or something? I don't really want to script exact controls because I want to allow the player to change them with F1, but I want the defaults for someone without RTP to be standardized and different than the normal RMXP controls.
 
BwdYeti":30hrotpt said:
I seem to get random results from people in terms of how their controls work when they test my game. (I have the RGSS dll included and such so they don't need RTP; also, using RMXP) Some get the control scheme I set up, but some have the default. Is it stored somewhere easy to get to, or hidden in the exe or something? I don't really want to script exact controls because I want to allow the player to change them with F1, but I want the defaults for someone without RTP to be standardized and different than the normal RMXP controls.

I've never tried to access the control scheme directly, but since it is usually shared between multiple projects (at least for me), I asuume it isn't stored in a script. You can always make a small options menu that allows them to change the control scheme manually, if you want.
 

Zeriab

Sponsor

The control scheme data is most likely present in the registry database.
If you find a way to change them you also change the controls for other RMXP games.
I would suggest a script which has the custom controls for your game. When the player presses F1 you can give them the option to use the keys specified in F1. Either way you need to find out where the key mapping are present. (I don't know myself)
 
A good guess, I found it in regedit after just a few minutes of searching for RPGXP.

My_Computer\HKEY_CURRENT_USER\Software\Enterbrain\RGSS
 
Name    ButtonAssign
Type    REG_BINARY
Data    25 bytes

Hm. Like you said, it would be mean to overwrite someone's existing settings, but RMXP sets up the defaults if the entry doesn't exist before the game runs. I think the best way would be an option at the main menu or from the main menu that sets up the controls (or having a first run check and making it ask on the first run if they want to set up their controls maybe ._.)

So... does anyone know anything about editing the registry with Ruby? .-.
 
You could add a .REG file to your projects folder and include your configuration there, including a readme for description... Personally, I'd go for a specified input script within your project... which I made for my game and works great ^^ That's the better method because you don't overwrite anything, and you're registry-independent (The game will still read the data from the registry, but not use it).

Aside from that, why do you need a custom button assignment either way? Just make your game so that it's nicely playable with the default layout, and let people choose how they want it to configure.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top