Hidden hotkey to restart the game, for mod developers

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

petrathekat
Burner Inserter
Burner Inserter
Posts: 19
Joined: Fri Apr 19, 2024 7:12 pm
Contact:

Hidden hotkey to restart the game, for mod developers

Post by petrathekat »

TL;DR
A key combination, unbound by default, that closes and restarts the game, like it does when you change your mod settings.

Either it could be in the super secret settings, or probably just unbound by default in the default controls menu.
Why?
I'm currently developing a mod and I spend an awful lot of time closing Factorio, then tabbing back over to Steam among my million windows and launching the game again. Having a shortcut for this would save me a lot of time overall. Hopefully it would be easy to implement (the game already has infrastructure to restart the game, like when you fiddle with mod settings). It's a small annoyance but it would be one rough corner of modding shaved off :)
User avatar
pioruns
Fast Inserter
Fast Inserter
Posts: 112
Joined: Tue Nov 05, 2024 3:38 pm
Contact:

Re: Hidden hotkey to restart the game, for mod developers

Post by pioruns »

If you are a developer, you can program this yourself in 5 minutes by creating sh file with killall command and another to relaunch Factorio. Give your shortcut a key combination to activate in your desktop environment settings, or place shortcut on the panel, to activate by single click.
petrathekat
Burner Inserter
Burner Inserter
Posts: 19
Joined: Fri Apr 19, 2024 7:12 pm
Contact:

Re: Hidden hotkey to restart the game, for mod developers

Post by petrathekat »

Sure, but not everyone is a developer, and it'd be a lot jankier than official support.
User avatar
pioruns
Fast Inserter
Fast Inserter
Posts: 112
Joined: Tue Nov 05, 2024 3:38 pm
Contact:

Re: Hidden hotkey to restart the game, for mod developers

Post by pioruns »

Official support for restarting a game from shortcut is not needed by gamers. Modders are already power users who know how to restart a system process. If you are a modder, why not writing 5 line script to kill and restart your steam game entry? Come on.
angramania
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Mon Oct 21, 2024 12:29 pm
Contact:

Re: Hidden hotkey to restart the game, for mod developers

Post by angramania »

petrathekat wrote: Sun Apr 13, 2025 6:19 pm I spend an awful lot of time closing Factorio, then tabbing back over to Steam among my million windows and launching the game again. Having a shortcut for this would save me a lot of time overall. Hopefully it would be easy to implement (the game already has infrastructure to restart the game, like when you fiddle with mod settings). It's a small annoyance but it would be one rough corner of modding shaved off :)
Why spend time on mouse shaking? Standard Alt+F4 to close, custom shortcut to launch.
Also you may try https://mods.factorio.com/mod/ReloadModsRedux
User avatar
pioruns
Fast Inserter
Fast Inserter
Posts: 112
Joined: Tue Nov 05, 2024 3:38 pm
Contact:

Re: Hidden hotkey to restart the game, for mod developers

Post by pioruns »

Alt+F4, exactly :D
Personally, I would create a two line script, killall factorio and ./factorio, and assign a shortcut for it. But OP, who is a modder, I am sure will figure it out, if it's on steam or not, it's not any more difficult than this.
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 565
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Hidden hotkey to restart the game, for mod developers

Post by Silari »

petrathekat wrote: Sun Apr 13, 2025 6:19 pm I'm currently developing a mod and I spend an awful lot of time closing Factorio, then tabbing back over to Steam among my million windows and launching the game again. Having a shortcut for this would save me a lot of time overall. Hopefully it would be easy to implement (the game already has infrastructure to restart the game, like when you fiddle with mod settings). It's a small annoyance but it would be one rough corner of modding shaved off :)
I keep an empty mod in my mod folder - I toggle it on/off when I need to restart. It doesn't DO anything, just there to let me restart quicker.
petrathekat
Burner Inserter
Burner Inserter
Posts: 19
Joined: Fri Apr 19, 2024 7:12 pm
Contact:

Re: Hidden hotkey to restart the game, for mod developers

Post by petrathekat »

angramania wrote: Mon Apr 14, 2025 8:07 pm Also you may try https://mods.factorio.com/mod/ReloadModsRedux
Oh huh I've never heard of that. How does it work? (It's Unlicense but there's no source code :( )
sakuro
Inserter
Inserter
Posts: 22
Joined: Sat Aug 15, 2020 10:12 am
Contact:

Re: Hidden hotkey to restart the game, for mod developers

Post by sakuro »

petrathekat wrote: Tue Apr 15, 2025 8:39 pm
angramania wrote: Mon Apr 14, 2025 8:07 pm Also you may try https://mods.factorio.com/mod/ReloadModsRedux
Oh huh I've never heard of that. How does it work? (It's Unlicense but there's no source code :( )
Download and unzip the mod:-) It just calls

Code: Select all

game.reload_mods
Modding API Reference
Kyralessa
Filter Inserter
Filter Inserter
Posts: 669
Joined: Thu Sep 29, 2016 5:58 pm
Contact:

Re: Hidden hotkey to restart the game, for mod developers

Post by Kyralessa »

You can also install a .zip version of the game so you don't have to run through Steam at all.

Sample link:

https://factorio.com/get-download/2.0.4 ... n64-manual
Post Reply

Return to “Ideas and Suggestions”