Allow space in save file names

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Allow space in save file names

Post by Zeblote »

I'm not sure why this isn't possible, it should be.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Allow space in save file names

Post by bobingabout »

use an understore or dash instead.
game_save-2 for example. (an underscore and a dash there)

This is most likely an issue to help make it easilly cross platform internal workings and all that.
Spaces are used as an instruction seperator by the command interface (shell, terminal, or whatever else you want to call it). Windows for example, if you want to type a command relating to a filename with spaces in it, you have to encapsulate the file path in quotes. Different OSs might do things in a different way, so the easy solution is to ban spaces in filenames.
In case you're wondering, we might not see any command interface in the game, but this is what pretty much everything has to use to interface with a file on your hard drive. Make sense?

On the topic though, I would very much like to see you able to use spaces in filenames.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: Allow space in save file names

Post by Zeblote »

bobingabout wrote: Spaces are used as an instruction seperator by the command interface (shell, terminal, or whatever else you want to call it). Windows for example, if you want to type a command relating to a filename with spaces in it, you have to encapsulate the file path in quotes. Different OSs might do things in a different way, so the easy solution is to ban spaces in filenames.
Make sense?
Maybe, but factorio doesn't execute command line operations. I'm very sure whatever file API they're using can handle spaces in strings just fine on any platform.

Edit: Added space to allowed characters and it works just fine...

Image
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Allow space in save file names

Post by bobingabout »

I guess they're being lazy by not adding it by default then.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14912
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Allow space in save file names

Post by Rseding91 »

bobingabout wrote:I guess they're being lazy by not adding it by default then.
Maybe :D

It's planned for 0.13. It's something I've wanted for a while now as well. All of the platforms we support support spaces in file names so it's just making the UI allow them at this point.
If you want to get ahold of me I'm almost always on Discord.
Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: Allow space in save file names

Post by Zeblote »

Rseding91 wrote: It's planned for 0.13.
That means... 0.12.11 is the stable version! :D Otherwise there'd be no reason to not just add the space to allowed chars in 12.12.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Allow space in save file names

Post by bobingabout »

Zeblote wrote:
Rseding91 wrote: It's planned for 0.13.
That means... 0.12.11 is the stable version! :D Otherwise there'd be no reason to not just add the space to allowed chars in 12.12.
Sometimes things get delayed for the simple reason of a version transition.

In any case, there needs to be a 0.12.12, because there's some fairly obvious buge keeping 0.12.11 from being "Stable", including locale files being broken in mods that are in ZIP format.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Ideas and Suggestions”