Last loaded file ?

Post your ideas and suggestions how to improve the game.
Post Reply
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Last loaded file ?

Post by binbinhfr » Mon Jul 11, 2016 10:08 am

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: 9253
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Last loaded file ?

Post by Rseding91 » Mon Jul 11, 2016 10:16 am

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: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Last loaded file ?

Post by binbinhfr » Mon Jul 11, 2016 11:15 am

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: 10467
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Last loaded file ?

Post by ssilk » Mon Jul 11, 2016 12:03 pm

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: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Last loaded file ?

Post by binbinhfr » Mon Jul 11, 2016 1:24 pm

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: 10467
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Last loaded file ?

Post by ssilk » Mon Jul 11, 2016 2:13 pm

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: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Last loaded file ?

Post by binbinhfr » Thu Jul 21, 2016 2:13 pm

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”

Who is online

Users browsing this forum: No registered users