Add multiplayer command /pause

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Add multiplayer command /pause

Post by Muppet9010 »

Add a /pause command that can be run via console and RCON to pause and un-pause a multiplayer server.

Bilka
Factorio Staff
Factorio Staff
Posts: 3135
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Add multiplayer command /pause

Post by Bilka »

How would that work to unpause considering 70930 ?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Add multiplayer command /pause

Post by eradicator »

How about

Code: Select all

/c game.tick_paused = true
?
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Re: Add multiplayer command /pause

Post 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.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Add multiplayer command /pause

Post 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.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Ideas and Suggestions”