I am wondering if anyone knows a good way of saving, loading, and defaulting the configuration of a game.
Look at my try to change a keyboard input setting. I just created a C++ empty project with no starter content and edited the level blueprint of the default map. EventF is the subject (there is an ActionMapping so that key F triggers this event), the event ChangeMapping (also an ActionMapping, triggered by C) assigns EventF to another key (here: Q), and event Reset shall reset all:
There are two problems:
- The behaviour of the game is very different depending the mode it is running. When you just play it (Selected Viewport, PIE, …), you do not even need “Save Key Mappings”. Unfortunately, the mapping is changed directly in the project settings in any case. When packaging the game, however, you need “Save Key Mappings”.
- Resetting to default does not work. But it’s far away from possible: Let’s assume we packaged to Development. In WindowsNoEditor/GameName you can find a directory “Saved”. If you delete it, you can start the game and get the default settings.
Furthermore, there seems to be a difference between packaging Development and Shipping. In the later package there is no such directory “Saved”!
Well, guys … has anyone any idea? I am not interested in handling 20 different options tortuously in a save game slot, when I am so close to the solution. And, of course, it would be very pleasant to have the same behaviour of saving/loading/defaulting no matter of the way you start, preview, or package your game.
Many thanks for any hint!