Is there a way to make a global 'startup' setting, that DOESN'T sync with servers in any way?
Posted: Tue Jul 28, 2020 8:16 am
I have a mod that just replaces the color LUTs for night (and adds a LUT for sunrise/sunset, and replaces the night vision LUT). This doesn't change the game in any way, but it does change the visibility at night - and because not everyone's monitor is going to be the same, I'm wanting to add multiple variations of the LUTs and let the user decide which to use.
However, if I'm reading the mod settings API documentation correctly, only 'startup' settings can be read by the 'data*.lua' scripts... Which are where I have it changing things like the 'data.raw\["utility-constants"\]\["default"\].daytime_color_lookup' value. At the same time, the documentation states that all users of a multiplayer server must have such settings set to the same value.
This is a problem, because the whole point of the setting is that everyone's display is likely to require a different setting. Since the mod does not affect gameplay in any way a server needs to know about, but 'runtime-per-user' is stated to not be readable by 'data*.lua' scripts, I was hoping maybe there was an undocumented 'startup-per-user' setting type, or if perhaps I'm wrong about what the documentation says about the various types (I might simply be reading it wrong, after all).
However, if I'm reading the mod settings API documentation correctly, only 'startup' settings can be read by the 'data*.lua' scripts... Which are where I have it changing things like the 'data.raw\["utility-constants"\]\["default"\].daytime_color_lookup' value. At the same time, the documentation states that all users of a multiplayer server must have such settings set to the same value.
This is a problem, because the whole point of the setting is that everyone's display is likely to require a different setting. Since the mod does not affect gameplay in any way a server needs to know about, but 'runtime-per-user' is stated to not be readable by 'data*.lua' scripts, I was hoping maybe there was an undocumented 'startup-per-user' setting type, or if perhaps I'm wrong about what the documentation says about the various types (I might simply be reading it wrong, after all).