Page 1 of 1

Add multiplayer command /pause

Posted: Tue May 21, 2019 5:35 pm
by Muppet9010
Add a /pause command that can be run via console and RCON to pause and un-pause a multiplayer server.

Re: Add multiplayer command /pause

Posted: Tue May 21, 2019 5:37 pm
by Bilka
How would that work to unpause considering 70930 ?

Re: Add multiplayer command /pause

Posted: Tue May 21, 2019 6:05 pm
by eradicator
How about

Code: Select all

/c game.tick_paused = true
?

Re: Add multiplayer command /pause

Posted: Tue May 21, 2019 6:05 pm
by Muppet9010
Do no commands work when a server is paused? If so then that would seem to be something that could be improved as well for the normal and multiplayer commands (separate discussion).

I appreciate any commands that need to be kept in sync within the game state would not be possible while the game is paused. But if I can click a button on my client GUI that tells the server to un-pause the game and distribute that to all clients I don't see why the same couldn't apply to a specific command.

My understanding was that the

Code: Select all

LuaGameScript.tick_paused
relates to pausing game ticks like the editor allows, not the game paused state that you can do via the main menu.

Re: Add multiplayer command /pause

Posted: Tue May 21, 2019 6:13 pm
by eradicator
Muppet9010 wrote: Tue May 21, 2019 6:05 pm My understanding was that the

Code: Select all

LuaGameScript.tick_paused
relates to pausing game ticks like the editor allows, not the game paused state that you can do via the main menu.
Exactly. And thus it doesn't suffer from the "paused server doesn't accept commands" problem. Not sure what your requirements are ofc, so if you say you need the *real* pause than that workaround doesn't work.