Implement per-user settings that are available at startup
Posted: Tue Jul 28, 2020 11:07 pm
I recently asked for help with implementing settings for a mod of mine, and found it was impossible to implement a setting that was both available in the 'data' stage (such as the 'startup' setting type), and could be set separately for each user that joins a server (such as the 'runtime-per-user' setting type).
It's possible I'm still misunderstanding something, like perhaps it only matters if the server uses the mod, and having the mod absent from the server won't prevent users with the mod from connecting? I don't have an easy way of testing that right now though, so I'm just assuming that requiring all users to have the same value set for a 'startup' setting also means the mod must be on both the client and server.
Regardless, I believe that there should be a way to make 'client-side only' (which I presume equates to 'per-user') settings which are available during the 'data' loading stage. Essentially, I'm proposing a new setting_type that could be called 'startup-per-user'. I figured there was value in posting this here as a formal request, rather than just having my post asking for help end on 'not possible'.
Note: the reason why the settings I want to implement need to be per-user and not shared, is because they depend on the characteristics of the user's computer display (and the user's personal preference). It defeats the purpose of the setting if everyone who wants to play on a server together has to have the option set to the same value.
It's possible I'm still misunderstanding something, like perhaps it only matters if the server uses the mod, and having the mod absent from the server won't prevent users with the mod from connecting? I don't have an easy way of testing that right now though, so I'm just assuming that requiring all users to have the same value set for a 'startup' setting also means the mod must be on both the client and server.
Regardless, I believe that there should be a way to make 'client-side only' (which I presume equates to 'per-user') settings which are available during the 'data' loading stage. Essentially, I'm proposing a new setting_type that could be called 'startup-per-user'. I figured there was value in posting this here as a formal request, rather than just having my post asking for help end on 'not possible'.
Note: the reason why the settings I want to implement need to be per-user and not shared, is because they depend on the characteristics of the user's computer display (and the user's personal preference). It defeats the purpose of the setting if everyone who wants to play on a server together has to have the option set to the same value.