Feature Request: make --load-game argument optional/implied when passed a Filename argument

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

eugenekay
Filter Inserter
Filter Inserter
Posts: 575
Joined: Tue May 15, 2018 2:14 am
Contact:

Feature Request: make --load-game argument optional/implied when passed a Filename argument

Post by eugenekay »

According to the Factorio Wiki you can use "--load-game FILE" to automatically load a game. This request is to make the "--load-game" parameter implied IF AND ONLY IF the only other argument passed is a FILE. Ex

Code: Select all

C:\path\to\factorio\bin\x64\factorio.exe C:\path\to\savegame.zip
The rationale for this request is to enable the "Right Click" --> "Open With" menu to be able to support loading a Factorio Save directly by double-clicking it.

For testing purposes, I have added an association for the "FZIP" file type to Factorio (and manually renamed some save files). However, Windows' default does not include the "--load-game" argument; so the game stops at the Main Menu. I have modified my Registry as such to add this parameter:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\factorio.exe\shell\open\command]
@="\"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Factorio\\bin\\x64\\factorio.exe\" --load-game \"%1\""

[HKEY_CLASSES_ROOT\fzip_auto_file\shell\open\command]
@="\"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Factorio\\bin\\x64\\factorio.exe\" --load-game \"%1\""
With this setup it is possible to double-click a FZIP file, and it works! But even better, you get the Factorio icon on the FZIP files. :-)
Screenshot 2024-12-14 164536.png
Screenshot 2024-12-14 164536.png (95.43 KiB) Viewed 174 times
I don't think it would be worth writing-up an entire Request to support a new Extension for Save files ("FZIP")..... but hey, a guy can dream right? I am planning to use a Script to modify these filenames myself, if this proves to be a useful workflow for me.

Yes, this is a very silly and niche request. Please feel free to say No if it would be hard to implement. :-)

Thank you for reading!
Post Reply

Return to “Ideas and Suggestions”