[raiguard][1.1.57] Tutorial files are read-only copied
Posted: Sat May 07, 2022 6:00 pm
Hi,
I checked the factorio demo on NixOS (linux) prior to buying it and immediately ran into an error when trying to play a tutorial map.
An error message popped up reading:
The problem seems to be that the NixOS store (/nix/store/) is read-only and the game does not check the permissions flags for the lua scripts when copying them.
There exists a GitHub issue in the NixOS repository https://github.com/NixOS/nixpkgs/issues/91409.
This bash command fixes the issue, so I hope it is not difficult to fix in the game.
BR
I checked the factorio demo on NixOS (linux) prior to buying it and immediately ran into an error when trying to play a tutorial map.
An error message popped up reading:
Code: Select all
Error while running reload_script: filesystem error: copy_file "/nix/store/8jpssm9gbl841y00160rnz27rrrqwrjs-factorio-demo-1.1.57/share/factorio/data/base/campaigns/tutorial/lualib/new-hope-util.lua" to "/home/jakob/.factorio/temp/currently-playing/new-hope-util.lua" failed: Permission denied [/nix/store/8jpssm9gbl841y00160rnz27rrrqwrjs-factorio-demo-1.1.57/share/factorio/data/base/campaigns/tutorial/lualib/new-hope-util.lua] [/home/jakob/.factorio/temp/currently-playing/new-hope-util.lua]
Code: Select all
ls -la .factorio/temp/currently-playing/
drwxr-xr-x 4 jakob users 4096 7. Mai 19:40 ./
drwxr-xr-x 4 jakob users 4096 7. Mai 19:40 ../
-rw-r--r-- 1 jakob users 1701817 7. Mai 19:40 blueprint.dat
drwxr-xr-x 47 jakob users 4096 7. Mai 19:40 campaign-locale/
-r--r--r-- 1 jakob users 13580 7. Mai 19:40 control.lua
-rw-r--r-- 1 jakob users 32 7. Mai 19:40 info.json
drwxr-xr-x 37 jakob users 4096 7. Mai 19:40 locale/
-r--r--r-- 1 jakob users 1925 7. Mai 19:40 new-hope-util.lua
This bash command fixes the issue, so I hope it is not difficult to fix in the game.
Code: Select all
while true; do chmod -R +rw $HOME/.factorio/temp; done