You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are such functions as GetConsoleVarAsString, GetConsoleVarAsInt, GetConsoleVarAsFloat, GetConsoleVarAsBool.
Sometimes there is a desire to rigidly set some settings in config.json at the game mode level, so as not to restore them every time.
Yes, you can just move config.json, but sometimes from version to version new items are added to it and you have to spend time on it (although not much, but still).
I suggest to add their analogs only in reverse, which would set var: SetConsoleVarAsString, SetConsoleVarAsInt, SetConsoleVarAsFloat, SetConsoleVarAsBool.
The text was updated successfully, but these errors were encountered:
AddServerRule, SetServerRule, RemoveServerRule affect the information that is used in Query, although they also have limitations, e.g. you can't do anything with rules like: version, allowed_clients.
If you take ConsoleVar (currently GetConsoleVarAsString, GetConsoleVarAsInt, GetConsoleVarAsFloat, GetConsoleVarAsBool), they are responsible for getting the parameters set in the configuration file.
I don't know how necessary it is to add Set analogs of these functions.
There are such functions as
GetConsoleVarAsString
,GetConsoleVarAsInt
,GetConsoleVarAsFloat
,GetConsoleVarAsBool
.Sometimes there is a desire to rigidly set some settings in config.json at the game mode level, so as not to restore them every time.
Yes, you can just move
config.json
, but sometimes from version to version new items are added to it and you have to spend time on it (although not much, but still).I suggest to add their analogs only in reverse, which would set var:
SetConsoleVarAsString
,SetConsoleVarAsInt
,SetConsoleVarAsFloat
,SetConsoleVarAsBool
.The text was updated successfully, but these errors were encountered: