Allow space in save file names
Moderator: ickputzdirwech
Allow space in save file names
I'm not sure why this isn't possible, it should be.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Allow space in save file names
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.
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
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.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?
Edit: Added space to allowed characters and it works just fine...
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Allow space in save file names
I guess they're being lazy by not adding it by default then.
Re: Allow space in save file names
Maybebobingabout wrote:I guess they're being lazy by not adding it by default then.
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.
Re: Allow space in save file names
That means... 0.12.11 is the stable version! Otherwise there'd be no reason to not just add the space to allowed chars in 12.12.Rseding91 wrote: It's planned for 0.13.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Allow space in save file names
Sometimes things get delayed for the simple reason of a version transition.Zeblote wrote:That means... 0.12.11 is the stable version! Otherwise there'd be no reason to not just add the space to allowed chars in 12.12.Rseding91 wrote: It's planned for 0.13.
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.