Autopause game if afk
Moderator: ickputzdirwech
-
- Inserter
- Posts: 21
- Joined: Sat Feb 27, 2021 5:15 pm
- Contact:
Autopause game if afk
tl;dr add ability to auto-pause game if you alt-tab/afk for more that x seconds and something get attaked/damaged (for singleplayer, with disabled autopauseing while alttabed)
So... let's be honest, sometimes we may alt-tab game for soem time, or just go do something and left game runing w/o any control over situation.... so i think it will be greart if you get afk/alt-tab game for long enouth and bugs or something will start causeing problems then just autopause game, it's not that hard to do i think.. since we already hawe alerts system and game pausing feature (or just open game menu), it will allow prevention of possible damage and allow easier idling if you... alreayd build ultimate factory or just get afk because someone told you to take out trask/get milr or whatever + it will allow implimentation of AFK system for muliplayer, servers may pre-set max time w/o controls before taging player as afk and give other players better clue if player lagger, crashed, or actualy just afk-ing
So... let's be honest, sometimes we may alt-tab game for soem time, or just go do something and left game runing w/o any control over situation.... so i think it will be greart if you get afk/alt-tab game for long enouth and bugs or something will start causeing problems then just autopause game, it's not that hard to do i think.. since we already hawe alerts system and game pausing feature (or just open game menu), it will allow prevention of possible damage and allow easier idling if you... alreayd build ultimate factory or just get afk because someone told you to take out trask/get milr or whatever + it will allow implimentation of AFK system for muliplayer, servers may pre-set max time w/o controls before taging player as afk and give other players better clue if player lagger, crashed, or actualy just afk-ing
Re: Autopause game if afk
This is in general conflicting with players, that alt-tab because waiting for some resources.
How do you think it should be implemented?
wait x seconds before pausing the game, when in background (0=never [default])
?
How do you think it should be implemented?
wait x seconds before pausing the game, when in background (0=never [default])
?
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
-
- Inserter
- Posts: 21
- Joined: Sat Feb 27, 2021 5:15 pm
- Contact:
Re: Autopause game if afk
Code: Select all
if windowinbackground-true & afk_enbl !=0
then
#1 for timer
#2 for only if alert happens while afk
#0 is off
#afk_timer set by player
if afk_aenb=1 then
!1
start_timer=afk_timer
if afk_timer=exp_time then
pause_enable
elif goto !1
fi
elif afkenbl=2
!2
if alert=true
pause_enable
efil aletr=false then
goto !2
fi
p.s. yes it's horrible
- eradicator
- Smart Inserter
- Posts: 5207
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Autopause game if afk
Time to learn to mod. on_entity_damaged + game.tick_paused
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.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: Autopause game if afk
If its option in Settings that every1 can ON / OFF... idc...
but i dont want it to be as Forced thing for everyone... im probably gonna play less and less Factorio if my game pause when i alt tab
i alt tab a lot and watch YouTube while waiting for items / research / or jsut afk because everything is working and im too lazy atm. to continue work so i want to break but i want my game to auto progress...
auto pause is annoying when u can't disable it... so ON / OFF this thing in Settings is must have...
and tbh. idk why ppl would want to use it... its best if Dev-s ignore this suggestion xD
but i dont want it to be as Forced thing for everyone... im probably gonna play less and less Factorio if my game pause when i alt tab
i alt tab a lot and watch YouTube while waiting for items / research / or jsut afk because everything is working and im too lazy atm. to continue work so i want to break but i want my game to auto progress...
auto pause is annoying when u can't disable it... so ON / OFF this thing in Settings is must have...
and tbh. idk why ppl would want to use it... its best if Dev-s ignore this suggestion xD
Re: Autopause game if afk
Buy a second monitor? My best investment lately.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Re: Autopause game if afk
I do have Second monitor... i can even use Second computer...
but second monitor i use only when i work... and its... in weird angle to me so i dont want to play Factorio or watch YT
or move window between screens, thats how it works...
Alt / Tab takes like 0.1 sec so its better solution than using second screen in weird angle...
and if u ask about using Second PC... not its not solution either... because they have different mouse and different keyboard
and moving hands from PC1 to PC2 takes longer than using ALT + TAB xD
Anywaa... like i said... dont add this stupid thing that pause ur game on every Alt Tab...
or at least make it optional for weird ppl to use...
Re: Autopause game if afk
this is fine. if it's an option sure why not? ... up until your cat comes along and un-pauses the game allowing the biters to roll over your creation.
when I AFK I usually save before moving the game to the background (or leaving the keyboard).
when I AFK I usually save before moving the game to the background (or leaving the keyboard).
Re: Autopause game if afk
I play always in window mode so that I can react faster if something happens in game. I do not agree with obligatory autopause. It may be an option but it would prevent running at background to wait something or see how base can run long periods. However, it would be nice if sounds were automatically muted when window is not focused.
Re: Autopause game if afk
Muting is another (very old) suggestion, which is handled here viewtopic.php?f=6&t=938
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
-
- Smart Inserter
- Posts: 2768
- Joined: Tue Apr 25, 2017 2:01 pm
- Contact:
Re: Autopause game if afk
I agree with this statement. In most games that have the option, I disable the auto-pause on loss of focus. If I'm planning on alt-tabbing for long enough and am in a situation where I don't feel comfortable leaving it alone, I'll manually pause it, first.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics