Hi there.
I was wondering how to best provide configuration for users.
Giving the user access to conf.lua would be nice, mainly because the user could set the resolution, fullscreen mode, etc. and have the game start with those settings. I was thinking of keeping the conf.lua in the same directory as the game itself, but I suppose that this is impossible due to the restrictions imposed by love.filesystem. However, I can't expect users to unpackage and repackage the game just to change a setting.
How do you solve this problem?
Configuration for users
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Configuration for users
I used my own config, as far as I remember. You can set these settings via code. With toggleFullscreen you could just add it to your options menu and save that in an external config file, which you could load on startup.
Now that I think about it...a library for that would be nice indeed.
Now that I think about it...a library for that would be nice indeed.
Re: Configuration for users
Wouldn't loading the setting from a config file first apply the settings of conf.lua and then switch to the settings of the config file afterwards?
Ideally conf.lua would read some settings (for example fullscreen) from the custom config file if available, so that the game starts in the correct mode right away. Is this possible?
I'd still need to expose the settings in the game itself, but I guess I can live with that.
Ideally conf.lua would read some settings (for example fullscreen) from the custom config file if available, so that the game starts in the correct mode right away. Is this possible?
I'd still need to expose the settings in the game itself, but I guess I can live with that.
Re: Configuration for users
You could disable the window in conf.lua then, when loading the config file, create the screen with the right settings to prevent a different window appearing briefly
Your screen is very zoomed in...
Who is online
Users browsing this forum: No registered users and 77 guests