Fish Addicts Anonymous Timer


F.A.A.T. where the F stands for factorio. Factorio is a game that eats lives. Aiming to help save marriages and jobs, we're introduce the addiction-timer. The timer defaults to automatically saving and then closing the game after 1hr (configurable) of play time.

Content
4 months ago
2.0
26
Combat

b crash instead of game exit

19 days ago
(updated 19 days ago)

Great idea for a mod, but I got this error when my first session ended. It created a save point, then tried to exit but crashed instead, after that I can still continue the save right after without waiting a day.

The mod Fish Addicts Anonymous Timer (1.0.1) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event fish-addicts-anonymous-timer.on_nth_tick(60)
fish-addicts-anonymous-timer/control.lua:230: attempt to index global
'exit_game' (a nil value)
stack traceback:
fish-addicts-anonymous-timer/control.lua:230: in function
<fish-addicts-anonymous-timer/control.lua: 151>

edit: I also set the timer for 120 minutes instead of 60 if that matters

15 days ago

Yep I know this is confusing.

There is no way to close the game through the API. So I crash on purpose, which closes the game. Notice the crash name is called "exit_game". Thanks for playing the mod I hope you like it =)

14 days ago

I see, that's definitely one way to do it. Now if only I can resist pressing that continue button haha

New response