Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/loadcon command doesn't work #141

Open
Dankage102 opened this issue Aug 21, 2022 · 3 comments
Open

/loadcon command doesn't work #141

Dankage102 opened this issue Aug 21, 2022 · 3 comments

Comments

@Dankage102
Copy link
Contributor

Dankage102 commented Aug 21, 2022

Was used in 1.7.1 to reload settings from soldat.ini so You didn't have to restart the server, for example to change the gamemode, players were kicked from the server in order to apply new settings. Could load server.cfg settings instead.
/LOADCON Reloads soldat.ini server settings.
https://wiki.soldat.pl/index.php/In-game_Commands

@BranDougherty
Copy link
Member

With recent changes, this command kind-of works, as in it will properly kick players and start a new round with some settings refreshed. But not all settings are respected, namely RCON settings, some fileserver settings, and everything marked as CVAR_INITONLY. Adding some concept of CVAR_ROUND_SCOPE, for cvars like sv_gamemode, and allowing them to be updated with this command, would definitely make it more useful. Also, if possible, a command that restarts the executable would allow for reloading all the configuration cleanly, making some of this restructuring unnecessary.

@Dankage102
Copy link
Contributor Author

IMO if /loadcon command together with TGame.LoadCon SC3 function will restart the executable then it would be the best idea.

@Dankage102
Copy link
Contributor Author

Another problem is - does OpenSoldat server allows to load server.cfg named differently? For example /loadcon server2.cfg or Game.LoadCon('server2.cfg') then it would restart the server with server2.cfg instead of server.cfg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants