Call Spring.GetConfigInt from _post?
Posted: 21 Nov 2016, 06:54
https://springrts.com/wiki/Lua_UnsyncedCtrl
Is there any way to do this? One of the holy grails of customization would be writing to and reading from a user accessible configuration file. We now have that ability thanks to Spring.GetConfigInt and Spring.SetConfigInt. For example, in post I want to be able to define sets of building groundplates that a player might see, based upon his settings in springsettings.
Essentially it would boil down to if setting=0 then none, setting=1 something else, etc. A nice nifty way around springs global setting of either ALL THE DECALS or None of the decals. But this is just one example.
My question is whether we can read values from springsettings in _post, even if it needs a gadget go-between?
Is there any way to do this? One of the holy grails of customization would be writing to and reading from a user accessible configuration file. We now have that ability thanks to Spring.GetConfigInt and Spring.SetConfigInt. For example, in post I want to be able to define sets of building groundplates that a player might see, based upon his settings in springsettings.
Essentially it would boil down to if setting=0 then none, setting=1 something else, etc. A nice nifty way around springs global setting of either ALL THE DECALS or None of the decals. But this is just one example.
My question is whether we can read values from springsettings in _post, even if it needs a gadget go-between?