Factorio Headless Config.ini problems

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
duncanyoyo1
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu May 25, 2017 5:52 pm
Contact:

Factorio Headless Config.ini problems

Post by duncanyoyo1 »

So I am trying to turn on the experimental updates on my headless server.
I go into the config.ini ( in the user folder of the user who is running the server ) and change the option for experimental updates to true.
But every time I launch the server process it overwrites the file with false. I even tried changing the permissions to 600 and it still gets overwritten.
The user who is running the factorio process does not have root access so this is very strange and I am not quite sure why it's being overwritten.
I have seen similar stuff when an update comes out and the config gets reset, but this is every time I start the server process. Not just when I update it.
Here is a quick video showing how every time I launch the server the file gets overwritten.
You can actually see it. My question is why this is happening. Any information would be greatly appreciated. :D HERE IS THE VIDEO

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Factorio Headless Config.ini problems

Post by daniel34 »

All configuration settings are commented out by default (the ; semicolon before the enable-experimental-updates line), if you remove the semicolon after changing the value to true then it will stay that way.

Factorio always writes a new config file after it restarts, so if you leave the semicolon where it is (as shown in the video) then Factorio will go back to the default setting and change the config file accordingly.
quick links: log file | graphical issues | wiki

duncanyoyo1
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu May 25, 2017 5:52 pm
Contact:

Re: Factorio Headless Config.ini problems

Post by duncanyoyo1 »

Awesome! That makes sense. I wish it said that somewhere in the config file. Thanks for the quick reply!

I have another small question, not about the server, but the client.

When I run the client, the audio is disabled. I searched and it seems the others having this issue are having issues with ALSA, but mine is configured properly. My issue is not with ALSA, and my logs are a little different. It appears that my client is trying to use OSS for sound output instead of ALSA. Is there a config somewhere to change this to ALSA?

Here is the log.

Code: Select all

   
   0.000 2017-05-25 15:46:10; Factorio 0.15.13 (build 29946, linux64, steam)
   0.000 Operating system: Linux
   0.000 Program arguments: "/home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/bin/x64/factorio" 
   0.000 Read data path: /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/data
   0.000 Write data path: /home/duncanyoyo1/.factorio
   0.000 Binaries path: /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/bin
   0.016 System info: [CPU:        Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz, 4 cores, RAM: 5903MB]
   0.017 Display options: [FullScreen: 1] [VSync: 1] [UIScale: 85.8378%] [MultiSampling: OFF] [Screen: 255]
   0.214 Available display adapters: 2
   0.214  [0]: resolution 1600x900px at [0,0]
   0.214  [1]: resolution 1600x900px at [1600,0]
   0.214 Create display on adapter 0. Size 1280x720 at position [150, 72].
   0.463 Initialised OpenGL:[0] Mesa DRI Intel(R) Sandybridge Mobile ; driver: 3.0 Mesa 17.1.0
   0.523 No '/dev/dsp' device available in your system.

   0.523 Perhaps Open Sound System is not installed or running.

   0.523 Failed to init OSS.

   0.523 No audio driver can be used. (error code: 1)

   0.523 Warning Display.cpp:49: Installing audio failed retrying...
   1.023 No '/dev/dsp' device available in your system.

   1.024 Perhaps Open Sound System is not installed or running.

   1.024 Failed to init OSS.

   1.024 No audio driver can be used. (error code: 1)

   1.024 Warning Display.cpp:49: Installing audio failed retrying...
   1.524 No '/dev/dsp' device available in your system.

   1.524 Perhaps Open Sound System is not installed or running.

   1.524 Failed to init OSS.

   1.524 No audio driver can be used. (error code: 1)

   1.524 Warning Display.cpp:49: Installing audio failed retrying...
   2.024 No '/dev/dsp' device available in your system.

   2.025 Perhaps Open Sound System is not installed or running.

   2.025 Failed to init OSS.

   2.025 No audio driver can be used. (error code: 1)

   2.025 Warning Display.cpp:49: Installing audio failed retrying...
   2.525 No '/dev/dsp' device available in your system.

   2.525 Perhaps Open Sound System is not installed or running.

   2.525 Failed to init OSS.

   2.525 No audio driver can be used. (error code: 1)

   2.525 Warning Display.cpp:49: Installing audio failed
   3.026 Graphics settings preset: medium
   3.026 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 25%] [DXT: auto]
   4.236 Loading mod core 0.0.0 (data.lua)
   4.253 Loading mod base 0.15.13 (data.lua)
   4.965 Loading mod base 0.15.13 (data-updates.lua)
   5.175 Checksum for core: 2754918989
   5.175 Checksum of base: 2405345599
   5.490 Info PlayerData.cpp:56: Local player-data.json available, timestamp 1495734889
   5.490 Info PlayerData.cpp:61: Cloud player-data.json available, timestamp 1495639846
   5.917 Loaded shader file /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.glsl
   5.933 Loaded shader file /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.glsl
   5.987 Initial atlas bitmap size is 8192
   6.010 Created atlas bitmap 8192x8187
   6.011 Created atlas bitmap 8192x4111
   6.011 Created atlas bitmap 8192x2101
   6.015 Created atlas bitmap 4096x4096
   6.015 Created atlas bitmap 4096x4008
   6.017 Created atlas bitmap 4096x4092
   6.018 Created atlas bitmap 4096x2652
   6.018 Created atlas bitmap 4096x3652
   6.018 Created atlas bitmap 4096x1568
   6.018 Created atlas bitmap 4096x1860
  24.140 Sprites loaded
  24.140 Convert atlas 4096x4096 to: compressed 
  26.735 Convert atlas 4096x4008 to: compressed 
  29.116 Convert atlas 4096x4092 to: compressed 
  31.034 Convert atlas 4096x2652 to: compressed 
  32.200 Convert atlas 4096x3652 to: mipmap 
  32.422 Convert atlas 4096x1568 to: mipmap compressed 
  33.908 Convert atlas 4096x1860 to: trilinear-filtering 
  34.018 Custom inputs active: 0
  34.170 Factorio initialised
  36.640 Steam API shutdown.
  36.764 Goodbye
Last edited by duncanyoyo1 on Mon May 29, 2017 4:11 pm, edited 1 time in total.

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Factorio Headless Config.ini problems

Post by daniel34 »

Check the entry for "No sound or delayed sound on Linux" in viewtopic.php?f=7&t=3636, this is for forcing OSS but you can probably change it to force ALSA.
quick links: log file | graphical issues | wiki

duncanyoyo1
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu May 25, 2017 5:52 pm
Contact:

Re: Factorio Headless Config.ini problems

Post by duncanyoyo1 »

I tried that with no luck. I set it to
[audio]
driver=alsa
also tried all caps, ALSA and pulseaudio. Nothing. They all give slightly different errors. But they all fail.

Here is when it's set to alsa

Code: Select all

   0.000 2017-05-28 18:36:03; Factorio 0.15.16 (build 30063, linux64, steam)
   0.000 Operating system: Linux
   0.000 Program arguments: "/home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/bin/x64/factorio" 
   0.000 Read data path: /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/data
   0.000 Write data path: /home/duncanyoyo1/.factorio
   0.000 Binaries path: /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/bin
   0.016 System info: [CPU:        Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz, 4 cores, RAM: 5903MB]
   0.017 Display options: [FullScreen: 1] [VSync: 1] [UIScale: 85.8378%] [MultiSampling: OFF] [Screen: 255]
   0.225 Available display adapters: 2
   0.225  [0]: resolution 1600x900px at [0,0]
   0.225  [1]: resolution 1600x900px at [1600,0]
   0.225 Create display on adapter 0. Size 1280x720 at position [150, 72].
   0.477 Initialised OpenGL:[0] Mesa DRI Intel(R) Sandybridge Mobile ; driver: 3.0 Mesa 17.1.1
   0.526 Warning Display.cpp:49: Installing audio failed retrying...
   1.027 Warning Display.cpp:49: Installing audio failed retrying...
   1.527 Warning Display.cpp:49: Installing audio failed retrying...
   2.028 Warning Display.cpp:49: Installing audio failed retrying...
   2.529 Warning Display.cpp:49: Installing audio failed
   3.029 Graphics settings preset: medium
   3.029 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 25%] [DXT: auto]
   3.227 Loading mod core 0.0.0 (data.lua)
   3.243 Loading mod base 0.15.16 (data.lua)
   3.433 Loading mod base 0.15.16 (data-updates.lua)
   3.571 Checksum for core: 2224076952
   3.571 Checksum of base: 2355693671
   3.783 Info PlayerData.cpp:56: Local player-data.json available, timestamp 1496010960
   3.783 Info PlayerData.cpp:61: Cloud player-data.json available, timestamp 1495639846
   3.897 Loaded shader file /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.glsl
   3.909 Loaded shader file /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.glsl
   3.947 Initial atlas bitmap size is 8192
   3.967 Created atlas bitmap 8192x8187
   3.968 Created atlas bitmap 8192x4111
   3.968 Created atlas bitmap 8192x2101
   3.971 Created atlas bitmap 4096x4096
   3.971 Created atlas bitmap 4096x4008
   3.973 Created atlas bitmap 4096x4092
   3.974 Created atlas bitmap 4096x2652
   3.974 Created atlas bitmap 4096x3652
   3.974 Created atlas bitmap 4096x1568
   3.974 Created atlas bitmap 4096x1860
  21.131 Sprites loaded
  21.131 Convert atlas 4096x4096 to: compressed 
  23.490 Convert atlas 4096x4008 to: compressed 
  25.833 Convert atlas 4096x4092 to: compressed 
  27.514 Convert atlas 4096x2652 to: compressed 
  28.519 Convert atlas 4096x3652 to: mipmap 
  28.704 Convert atlas 4096x1568 to: mipmap compressed 
  30.101 Convert atlas 4096x1860 to: trilinear-filtering 
  30.193 Custom inputs active: 0
  30.276 Factorio initialised
And here with pulseaudio

Code: Select all

   0.000 2017-05-28 18:39:01; Factorio 0.15.16 (build 30063, linux64, steam)
   0.000 Operating system: Linux
   0.000 Program arguments: "/home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/bin/x64/factorio" 
   0.000 Read data path: /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/data
   0.000 Write data path: /home/duncanyoyo1/.factorio
   0.000 Binaries path: /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/bin
   0.020 System info: [CPU:        Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz, 4 cores, RAM: 5903MB]
   0.022 Display options: [FullScreen: 1] [VSync: 1] [UIScale: 85.8378%] [MultiSampling: OFF] [Screen: 255]
   0.249 Available display adapters: 2
   0.249  [0]: resolution 1600x900px at [0,0]
   0.249  [1]: resolution 1600x900px at [1600,0]
   0.249 Create display on adapter 0. Size 1280x720 at position [150, 72].
   0.511 Initialised OpenGL:[0] Mesa DRI Intel(R) Sandybridge Mobile ; driver: 3.0 Mesa 17.1.1
   0.558 PulseAudio not available on this platform (error code: 1)

   0.558 Warning Display.cpp:49: Installing audio failed retrying...
   1.058 PulseAudio not available on this platform (error code: 1)

   1.058 Warning Display.cpp:49: Installing audio failed retrying...
   1.558 PulseAudio not available on this platform (error code: 1)

   1.558 Warning Display.cpp:49: Installing audio failed retrying...
   2.058 PulseAudio not available on this platform (error code: 1)

   2.059 Warning Display.cpp:49: Installing audio failed retrying...
   2.559 PulseAudio not available on this platform (error code: 1)

   2.559 Warning Display.cpp:49: Installing audio failed
   3.059 Graphics settings preset: medium
   3.059 Graphics options: [Graphics quality: normal] [Video memory usage: all] [Light scale: 25%] [DXT: auto]
   3.247 Loading mod core 0.0.0 (data.lua)
   3.261 Loading mod base 0.15.16 (data.lua)
   3.457 Loading mod base 0.15.16 (data-updates.lua)
   3.611 Checksum for core: 2224076952
   3.611 Checksum of base: 2355693671
   3.813 Info PlayerData.cpp:56: Local player-data.json available, timestamp 1496011126
   3.813 Info PlayerData.cpp:61: Cloud player-data.json available, timestamp 1495639846
   3.934 Loaded shader file /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.glsl
   3.947 Loaded shader file /home/duncanyoyo1/.local/share/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.glsl
   3.990 Initial atlas bitmap size is 8192
   4.012 Created atlas bitmap 8192x8187
   4.013 Created atlas bitmap 8192x4111
   4.014 Created atlas bitmap 8192x2101
   4.017 Created atlas bitmap 4096x4096
   4.017 Created atlas bitmap 4096x4008
   4.019 Created atlas bitmap 4096x4092
   4.019 Created atlas bitmap 4096x2652
   4.019 Created atlas bitmap 4096x3652
   4.019 Created atlas bitmap 4096x1568
   4.020 Created atlas bitmap 4096x1860
  21.303 Sprites loaded
  21.303 Convert atlas 4096x4096 to: compressed 
  23.502 Convert atlas 4096x4008 to: compressed 
  25.741 Convert atlas 4096x4092 to: compressed 
  27.429 Convert atlas 4096x2652 to: compressed 
  28.484 Convert atlas 4096x3652 to: mipmap 
  28.665 Convert atlas 4096x1568 to: mipmap compressed 
  30.007 Convert atlas 4096x1860 to: trilinear-filtering 
  30.062 Custom inputs active: 0
  30.131 Factorio initialised

Post Reply

Return to “Technical Help”