Page 1 of 1

Allow space in save file names

Posted: Sun Oct 18, 2015 10:45 am
by Zeblote
I'm not sure why this isn't possible, it should be.

Re: Allow space in save file names

Posted: Sun Oct 18, 2015 1:45 pm
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.

Re: Allow space in save file names

Posted: Sun Oct 18, 2015 1:46 pm
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

Re: Allow space in save file names

Posted: Sun Oct 18, 2015 10:25 pm
by bobingabout
I guess they're being lazy by not adding it by default then.

Re: Allow space in save file names

Posted: Mon Oct 19, 2015 4:47 pm
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.

Re: Allow space in save file names

Posted: Mon Oct 19, 2015 6:00 pm
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.

Re: Allow space in save file names

Posted: Tue Oct 20, 2015 9:28 am
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.