Page 1 of 1

Cannot save on linux

Posted: Sat Jul 04, 2015 11:45 pm
by TechMasterAllen
I play factorio on ubuntu and windows, and I get the error shown in this picture when I try to save: http://imgur.com/d44ZoPv
This effectively prevents me from playing the game. Is there any way yo fix this?

Re: Cannot save on linux

Posted: Sat Jul 04, 2015 11:47 pm
by Smarty
Stupid question but .....
do you give the save a name?

Re: Cannot save on linux

Posted: Sun Jul 05, 2015 12:41 am
by sillyfly
Here's a similar problem:
http://stackoverflow.com/questions/1910 ... -not-valid

Could it be that something went wrong in the installation? It may be possible that no locales were installed.
You could try something like

Code: Select all

sudo dpkg-reconfigure locales
select the appropriate locales (they are usually in the format cc_LL.encoding where cc=country code, LL = language code). It's probably best to include at least one English locale such as en_US.UTF-8 or en_GB.UTF-8, and additionally any other locales appropriate to your country/language. Then run***

Code: Select all

sudo locale-gen
to generate the selected locales.

If the first command fails it means you don't have the locales package installed, which is very weird, but should be fixed by

Code: Select all

sudo apt-get install locales

Edit: *** Reading some more I am not 100% sure you have to run locale-gen, and it is possible that just reconfiguring the locales package will solve your problem.

Re: Cannot save on linux

Posted: Sun Jul 05, 2015 2:08 pm
by TechMasterAllen
I think I've fixed the locale problem, but I still get the same error. The locale files are there, but the error still occurs. And yes, I do name my saves.

Re: Cannot save on linux

Posted: Sun Jul 05, 2015 2:26 pm
by Oxyd
Can you run

Code: Select all

locale
in a terminal and post the output here?

Re: Cannot save on linux

Posted: Tue Jul 07, 2015 12:58 am
by TechMasterAllen
Yeah, give me a bit.

Re: Cannot save on linux

Posted: Wed Jul 08, 2015 1:09 am
by TechMasterAllen
OK, here it is: user@chrubuntu:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=en
en
LC_CTYPE="en_US.UFT-8"
LC_NUMERIC="en_US.UFT-8"
LC_TIME="en_US.UFT-8"
LC_COLLATE="en_US.UFT-8"
LC_MONETARY="en_US.UFT-8"
LC_MESSAGES="en_US.UFT-8"
LC_PAPER="en_US.UFT-8"
LC_NAME="en_US.UFT-8"
LC_ADDRESS="en_US.UFT-8"
LC_TELEPHONE="en_US.UFT-8"
LC_MEASUREMENT="en_US.UFT-8"
LC_IDENTIFICATION="en_US.UFT-8"
LC_ALL=en_US.UFT-8

Re: Cannot save on linux

Posted: Wed Jul 08, 2015 6:19 am
by MF-
LANGUAGE seems to have a linebreak in it?
Also it lacks the "UTF8" bit.

Re: Cannot save on linux

Posted: Wed Jul 08, 2015 6:21 am
by sillyfly
For some reason you have the locale name wrong in all of the LC_* fields. It should be UTF-8, not UFT-8.

Re: Cannot save on linux

Posted: Wed Jul 08, 2015 8:40 am
by Oxyd
Can you post your /etc/default/locale ? I think you or something else have managed to misconfigure that.

Re: Cannot save on linux

Posted: Wed Jul 08, 2015 11:44 pm
by TechMasterAllen
Here's the locale file: # File generated by update-locale
LANG=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"

Re: Cannot save on linux

Posted: Fri Jul 10, 2015 9:53 pm
by TechMasterAllen
Here you go: # File generated by update-locale
LANG=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"

Re: Cannot save on linux

Posted: Fri Jul 10, 2015 9:57 pm
by sillyfly
This seems in order, but it doesn't match the previous output of 'locale' you pasted.
Could you try restarting (if you haven't since), and re-posting the output of 'locale' ?