[14.21] Error caused by write protection of application directory

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.
logick76
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Jan 06, 2017 9:57 pm
Contact:

[14.21] Error caused by write protection of application directory

Post by logick76 »

Hi, first of all i'm not english so i'll try to be as clear as possible.

I just bought the game an hour ago and I'm having the same stupid error every time I try to enter the campaign.
I'll upload logs and screenshot and I hope my issue can be fixed cause buying a game for 20 bucks and not being able to play it is really frustrating ...
Attachments
factorio-current.log
(12.37 KiB) Downloaded 78 times
bug factorio.png
bug factorio.png (3 MiB) Viewed 3789 times
Loewchen
Global Moderator
Global Moderator
Posts: 10262
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Technical issue when starting campaign

Post by Loewchen »

Factorio seems to be unable to edit files in the application directory. See if it write protected.
logick76
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Jan 06, 2017 9:57 pm
Contact:

Re: Technical issue when starting campaign

Post by logick76 »

Thanks for the fast reply, the application directory was indeed in read only mode but removing read only mode didn't change anything I still have the same error
logick76
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Jan 06, 2017 9:57 pm
Contact:

Re: Technical issue when starting campaign

Post by logick76 »

Weird thing I just noticed : no matter if i remove read only mode, when I launch factorio with steam it goes back to read only so I can't actually tell if that's where the error comes from
Loewchen
Global Moderator
Global Moderator
Posts: 10262
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Technical issue when starting campaign

Post by Loewchen »

Check if the contents itself are still protected or the protection got restored.
logick76
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Jan 06, 2017 9:57 pm
Contact:

Re: Technical issue when starting campaign

Post by logick76 »

I don't understand what you are telling me but all the files are not in read only mode when I start the game then it automatically change to read only
Loewchen
Global Moderator
Global Moderator
Posts: 10262
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Technical issue when starting campaign

Post by Loewchen »

Seems to be a general win 10 issue, but has a fix: https://www.cnet.com/forums/discussions ... -solution/

Code: Select all

   0.011 2017-01-06 22:51:49; Factorio 0.14.21 (build 25327, win64, steam)
   0.011 Operating system: Windows 10 (version 1607) 
   0.012 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.012 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.012 Write data path: C:/Users/bapti/AppData/Roaming/Factorio
   0.012 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.051 System info: [CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 4 cores, RAM: 4007MB]
   0.053 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 150%] [MultiSampling: OFF] [Screen: 255]
   0.055 Available display adapters: 1
   0.055  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics 520 {0x05, [0,0], 1920x1080, 32bit, 60Hz}
   0.055 Create display on adapter 0. Size 1920x1080 at position [0, 0].
   0.124 Initialised Direct3D:[0] Intel(R) HD Graphics 520; driver: igdumdim64.dll 20.19.15.4377
   0.138     Video memory size (dedicated video/dedicated system/shared system/available): 128/0/2003/2123 MB
   0.245 DSound: Starting _dsound_update thread
   0.245 DSound: Enter _dsound_update; tid=6244
   0.246 Device reset internal.
   0.253 Desktop composition is active.
   0.254 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 25%] [DXT: false]
   0.414 Loading mod core 0.0.0 (data.lua)
   0.460 Loading mod base 0.14.21 (data.lua)
   0.872 Checksum for core: 1291735968
   0.872 Checksum for mod base: 786624017
   1.733 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1483739458
   1.733 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1483737934
   2.008 Initial atlas bitmap size is 8192
   2.041 Created atlas bitmap 8192x8189
   2.043 Created atlas bitmap 8192x2778
   2.044 Created atlas bitmap 4096x968
   2.044 Created atlas bitmap 4096x3652
  53.790 Sprites loaded
  53.790 Convert atlas 4096x968 to: trilinear-filtering 
  53.860 Convert atlas 4096x3652 to: mipmap 
  55.413 Loading sounds...
  59.838 Custom inputs active: 0
  59.984 Factorio initialised
  59.990 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\cz.cfg: operation not permitted
  59.991 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\da.cfg: operation not permitted
  59.992 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\de.cfg: operation not permitted
  59.992 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\en.cfg: operation not permitted
  59.997 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\es.cfg: operation not permitted
  60.002 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\fi.cfg: operation not permitted
  60.003 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\fr.cfg: operation not permitted
  60.004 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\it.cfg: operation not permitted
  60.005 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\nl.cfg: operation not permitted
  60.007 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\pl.cfg: operation not permitted
  60.008 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\pt.cfg: operation not permitted
  60.009 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\ru.cfg: operation not permitted
  60.011 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale: operation not permitted
  60.012 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\control.lua: operation not permitted
  60.017 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\cz.cfg: operation not permitted
  60.018 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\da.cfg: operation not permitted
  60.019 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\de.cfg: operation not permitted
  60.019 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\en.cfg: operation not permitted
  60.020 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\es.cfg: operation not permitted
  60.020 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\fi.cfg: operation not permitted
  60.021 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\fr.cfg: operation not permitted
  60.021 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\it.cfg: operation not permitted
  60.022 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\nl.cfg: operation not permitted
  60.022 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\pl.cfg: operation not permitted
  60.023 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\pt.cfg: operation not permitted
  60.024 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\ru.cfg: operation not permitted
  60.024 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale: operation not permitted
  60.026 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing: operation not permitted
  60.026 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp: operation not permitted
 193.482 Info PrototypeMigrationList.cpp:87: Activating migration base/2015-10-16_Factorio_0.13.0.json
 193.482 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-04-22_Factorio_0.13.0.json
 193.482 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-06-14_Factorio_0.13.0.json
 193.482 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-06-21_Factorio_0.13.0.json
 193.483 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-06-25_Factorio_0.13.0.json
 193.483 Info PrototypeMigrationList.cpp:87: Activating migration base/2016-06-27_Factorio_0.13.0.json
 193.524 Applying migration: Base Mod: 2015-07-02_Factorio_0.12.0.lua
 193.541 Applying migration: Base Mod: 2015-11-14_Factorio_0.12.11.lua
 193.543 Applying migration: Base Mod: 2016-03-05_Factorio_0.12.26.lua
 193.544 Applying migration: Base Mod: 2016-04-22_Factorio_0.13.0.lua
 193.545 Applying migration: Base Mod: 2016-06-15_Factorio_0.13.0.lua
 193.547 Applying migration: Base Mod: 2016-06-23_Factorio_0.13.0.lua
 193.552 Applying migration: Base Mod: 2016-06-26_Factorio_0.13.0.lua
 193.553 Applying migration: Base Mod: 2016-06-27_Factorio_0.13.0.lua
 193.555 Applying migration: Base Mod: 2016-06-28_Factorio_0.13.0.lua
 193.558 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\cz.cfg: operation not permitted
 193.559 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\da.cfg: operation not permitted
 193.559 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\de.cfg: operation not permitted
 193.561 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\en.cfg: operation not permitted
 193.563 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\es.cfg: operation not permitted
 193.564 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\fi.cfg: operation not permitted
 193.565 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\fr.cfg: operation not permitted
 193.565 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\it.cfg: operation not permitted
 193.565 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\nl.cfg: operation not permitted
 193.567 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\pl.cfg: operation not permitted
 193.567 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\pt.cfg: operation not permitted
 193.568 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale\ru.cfg: operation not permitted
 193.570 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\campaign-locale: operation not permitted
 193.570 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\control.lua: operation not permitted
 193.571 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\cz.cfg: operation not permitted
 193.571 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\da.cfg: operation not permitted
 193.572 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\de.cfg: operation not permitted
 193.572 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\en.cfg: operation not permitted
 193.572 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\es.cfg: operation not permitted
 193.573 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\fi.cfg: operation not permitted
 193.573 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\fr.cfg: operation not permitted
 193.574 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\it.cfg: operation not permitted
 193.574 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\nl.cfg: operation not permitted
 193.574 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\pl.cfg: operation not permitted
 193.575 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\pt.cfg: operation not permitted
 193.575 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale\ru.cfg: operation not permitted
 193.576 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing\locale: operation not permitted
 193.576 Error FileUtil.cpp:331: Couldn't remove C:\Users\bapti\AppData\Roaming\Factorio\temp\currently-playing: operation not permitted
 193.707 Error Util.cpp:57: copy_file(p1, p2, options): invalid arguments: operation not permitted
 222.944 DSound: Stopping voice
 222.944 DSound: Joining thread
 222.947 DSound: Exit _dsound_update; tid=6244
 222.947 DSound: Waiting for voice to stop ... signaled
 222.947 DSound: Joined thread
 222.948 DSound: Destroying thread
 222.948 DSound: Thread destroyed
 222.948 DSound: Releasing buffer
 222.948 DSound: Voice stopped
 222.948 DSound: Deallocating voice
 222.948 DSound: Deallocated voice
 223.072 Steam API shutdown.
 223.135 Goodbye
logick76
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Jan 06, 2017 9:57 pm
Contact:

Re: [14.21] Error caused by write protection of application directory

Post by logick76 »

I couldn't understand everything on the post but I did give myself all permissions but it keeps on changing file options on read only mode whenever I launch the game ...
logick76
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Jan 06, 2017 9:57 pm
Contact:

Re: [14.21] Error caused by write protection of application directory

Post by logick76 »

The issue is not that I can't change to non read only, it's that every time I do change it to non read only and launch the game, it somehow changes it back to read only mode. This never happened to me and i'd be gutted if there was no fix for it ...
User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: [14.21] Error caused by write protection of application directory

Post by impetus maximus »

try running Factorio as admin.
logick76
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Jan 06, 2017 9:57 pm
Contact:

Re: [14.21] Error caused by write protection of application directory

Post by logick76 »

Finally found a working fix for me by following these advices :

"No good because it's a safety feature in Windows 10.
Though a backup helps for corrupt files even dropping a backed up file in the folder will convert it to Read Only. The folder itself is the issue because it sets all it's files to Read Only.
The files are not corrupt or broken. You can still Save As to Desktop.
You just have to change the attribute for the Document folder located in C:\users\user.
Deselect Read Only and apply to all files and subfolders.
It's more an annoyance then an effect safety feature."

Thanks for identifying the problem, hopefully this helps someone

(ps : however it didn't fix the issue with read only mode on factorio files, that is totally weird idk why it acts like this ...)
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [14.21] Error caused by write protection of application directory

Post by posila »

Hi, try to delete whole Factorio folder in C:\Users\bapti\AppData\Roaming\ (I assume you don't have any saves there since you just bought the game).

If it doesn't let you delete the folder, there is probably some problem with your filesystem. Running Scan Disk on C: drive usually helps to resolve this problem. If you don't know how to run it here is guide for Windows 10. After Scan disk finishes try to delete the folder again, now it should let you and the game should work normally after that.
Post Reply

Return to “Technical Help”