Last loaded file ?

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Last loaded file ?

Post by binbinhfr »

I don't know what is the logic when you are in game and you open the "load menu" : how is determined the file that is proposed by default ?

Because when I load a game with the command line --load-game , if I try to load another file, the file proposed by default is not the one I loaded from the command line. It would be great to have the last loaded file proposed (because we often want to reload it if we made a mistake).
My mods on the Factorio Mod Portal :geek:

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

Re: Last loaded file ?

Post by Rseding91 »

The file selection logic goes off the last created file - not the last loaded one.
If you want to get ahold of me I'm almost always on Discord.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Last loaded file ?

Post by binbinhfr »

Rseding91 wrote:The file selection logic goes off the last created file - not the last loaded one.
Well, why not, but I do not see the benefit for the user.
I often change from map to map and when I want to reload the last one, it is never the last opened file which is proposed.

You could proposed the last opened file (either loaded or created, by menu or by command line).

Or if, for some good reasons, you want to keep the old behaviour, you could add a "reload" item in the main menu when a map is already playing (with a confirmation on "are you sure you want to reload last saved file ?" to avoid errors).
My mods on the Factorio Mod Portal :geek:

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Last loaded file ?

Post by ssilk »

This is current logic:
- LOAD "currentgame"
- PLAY
- SAVE "currentgame"
- LOAD "currentgame"

So when you change your filename before save:
- LOAD "currentgame"
- PLAY
- SAVE "currentgameVersion2"
- LOAD "currentgameVersion2"

Makes much sense.


This is your logic:
- LOAD "lastloaded"
- PLAY
- SAVE "lastloaded"
- LOAD "lastloaded"

When saved with new filename:
- LOAD "lastloaded"
- PLAY
- SAVE "lastloadedVersion2"
- LOAD "lastloaded"

So if you give the file a new name before SAVE (which many do) it will open the old file.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Last loaded file ?

Post by binbinhfr »

Why not keeping track of a currentfile ?

if you load a file, currentfile points to the file.
if you reload, currentfile is proposed.
whenever you save a file, currentfile is proposed as a savename, and currentfile points to the file (and also if you change the name).

if you close the game currentfile is memorized.

if you reopen, at first load, currentfile is proposed.

----
So you are always proposed to load the last saved or last loaded.

The rule of assignation of currentfile is simple :
- currentfile get the name of any loaded file
- currentfile get the name of any saved file
- whenever you need to load or save, currentfile is proposed as a name.
My mods on the Factorio Mod Portal :geek:

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Last loaded file ?

Post by ssilk »

Ok. Added to viewtopic.php?f=80&t=21367 Game Save File Related Suggestions
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Last loaded file ?

Post by binbinhfr »

Infact for the moment, it seems quite simple : you are proposed to load the most recent file in the save directory. If you delete it, the previous one will be used.
My mods on the Factorio Mod Portal :geek:

Post Reply

Return to “Ideas and Suggestions”