Cannot save on linux

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
TechMasterAllen
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jul 04, 2015 11:09 pm
Contact:

Cannot save on linux

Post 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?

User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: Cannot save on linux

Post by Smarty »

Stupid question but .....
do you give the save a name?

sillyfly
Smart Inserter
Smart Inserter
Posts: 1099
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: Cannot save on linux

Post 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.

TechMasterAllen
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jul 04, 2015 11:09 pm
Contact:

Re: Cannot save on linux

Post 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.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: Cannot save on linux

Post by Oxyd »

Can you run

Code: Select all

locale
in a terminal and post the output here?

TechMasterAllen
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jul 04, 2015 11:09 pm
Contact:

Re: Cannot save on linux

Post by TechMasterAllen »

Yeah, give me a bit.

TechMasterAllen
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jul 04, 2015 11:09 pm
Contact:

Re: Cannot save on linux

Post 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

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: Cannot save on linux

Post by MF- »

LANGUAGE seems to have a linebreak in it?
Also it lacks the "UTF8" bit.

sillyfly
Smart Inserter
Smart Inserter
Posts: 1099
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: Cannot save on linux

Post 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.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: Cannot save on linux

Post by Oxyd »

Can you post your /etc/default/locale ? I think you or something else have managed to misconfigure that.

TechMasterAllen
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jul 04, 2015 11:09 pm
Contact:

Re: Cannot save on linux

Post 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"

TechMasterAllen
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jul 04, 2015 11:09 pm
Contact:

Re: Cannot save on linux

Post 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"

sillyfly
Smart Inserter
Smart Inserter
Posts: 1099
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: Cannot save on linux

Post 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' ?

Post Reply

Return to “Technical Help”