Skip to content

hmaarrfk/Global-Pause-DST

Repository files navigation

Global Pause

Note from the creator: Mod creator: I am not updating this mod. Use at your own risk. The source is available. Feel free to modify it to get it to work again. I will upload it and credit you :D.

Add the option to pause the game from the start menu.

Features:

  • Pause from the start menu (admin only)
  • Vote to pause from the start menu (everyone else, not yet implemented)
  • Hotkey to toggle pause (default "P", default disabled, admin only)
  • Pause when map is open (default disabled, singleplayer only)
  • Pause when console is open (default disabled, singleplayer only)

When joining a server that is "paused" youll be stuck at the connecting screen, I cannot do anything to fix this.

Known bugs:

  • I don't know what happens if a player joins and the game is paused.

Future improvements: Useful for multi player:

  • vote to (un)pause, which allows servers without an admin present to pause(and unpause) the game. Useful for single player:
  • Option for AutoPause/AutoUnPause on crafting/inventory

Thanks to: pennykid Droozo Qoocla SKKiro for multiplayer testing.

v1.5.0 Improved compatibility with other mods that mess with the pausescreen. Clients pause properly, no more rain particles building up on clients! Servers pause properly, no more desyncing servers by pausing in caves, this mod now makes use of GemCore to make pausing on any shard possible, pause the whole server, and not just the current shard. Made servers automaticaly unpause, when the last player leaves the game. Console and Chat no longer hang or cause the server to(temporarily) unpause.

v1.4.1 Fixed the name of the Mod and Zarklord's name.

v1.4.0 Zarklord: Redux pause menu.

v1.3.2 Non-admin pause. Comments in the code explain why non-admins may not unpause.

v1.3.1 Console no longer hangs.

v1.3.0 Autopause added for map and console.

v1.2.2 Hotkey added. Default state is off.

v1.2.1 Added a proper icon in the game mod list.

v1.2.0 changes Multiplayer pausing should now work (changed logic for this work). The ClientHost now only SetTimeScale(0) after everybody else has.

Also, for some reason, now the animations stop when you pause. that means that animals won't keep moving after you pause. I have no idea what fixed this...

On Klei: http://forums.kleientertainment.com/files/file/1579-global-pause-dst/ On Steam: http://steamcommunity.com/sharedfiles/filedetails/?id=758532836 On Github: https://github.com/hmaarrfk/Global-Pause-DST