game.pause() or script.pause()

Place to get help with not working mods / modding interface.
Post Reply

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: game.pause() or script.pause()

Post by darkfrei »

And on next tick unpause?


Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: game.pause() or script.pause()

Post by Rseding91 »

No, pausing halts all script processing so if a script paused the game it would never be able to un-pause it.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: game.pause() or script.pause()

Post by Ranakastrasz »

Given what happens when you set game speed to 0.01, I can believe that. There is a good half second delay between hitting esc and the menu opening. Clearly those are coupled with gamespeed instead of being standalone like UI usually should be.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: game.pause() or script.pause()

Post by darkfrei »

Ranakastrasz wrote:Given what happens when you set game speed to 0.01, I can believe that. There is a good half second delay between hitting esc and the menu opening. Clearly those are coupled with gamespeed instead of being standalone like UI usually should be.
game speed 0.1 is minimum

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: game.pause() or script.pause()

Post by Ranakastrasz »

darkfrei wrote:
Ranakastrasz wrote:Given what happens when you set game speed to 0.01, I can believe that. There is a good half second delay between hitting esc and the menu opening. Clearly those are coupled with gamespeed instead of being standalone like UI usually should be.
game speed 0.1 is minimum
Nope. I tested it. Its 0.01

Unless they changed in within the last day or two, anyhow.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Post Reply

Return to “Modding help”