|
|
|
|
Reply From: |
Grass H0PEr |
I solved this for my case.
It was a conflict with my anti-virus.
Using Godot v2.1.4
Using antivirus Clam Sentinel,
which constantly investigates new files & system changes.
I had a similar error for C:/Users/User/AppData/Roaming/Godot/ (different files)
where it was
"Unable to write to file '(C:/.../project path/scene.tscn)', file in
use, locked or lacking permissions".
In the Godot Console it said:
"ERROR: FileAccessWindows::close: Condition ' rename_error ' is true.
At: drivers\windows\file_access_windows.cpp:139"
When my anti-virus scans a file, it opens (or maybe locks) the file momentarily,
then closes it.
When I tried to save --and Godot needed to overwrite these files–
it was unable to, since my anti-virus had them opened in the background to scan.
My solution was:
I went into my anti-virus settings
- set it to not live/actively scan the following directories:
C:/Users/User/AppData/Roaming/Godot/*
C:/…/path with my Godot project files/*
Clam Sentinel syntax note:
If you don’t put the /* at the end of the folder path,
it will skip that folder, but it WILL scan subfolders.
The /* just means, apply rule to this folder, and all subfolders.
No more errors : )
IMPORTANT
I’m not sure how safe this is.
Well, this happens me randomly and not all time. For example, if i want to save what i have done, this error shows. If i let Godot open for like 5 mins and try again, it works fine.
So i’m not going to risk my security if i can “play” safe.
BTW thanks for the answer
GunPoint | 2017-09-24 19:02
Smart choice!
If Godot is working for you well enough, that’s the best decision.
For me it was happening EVERY time I saved.
And I only plan on learning (+ not publishing) with this computer.
Best wishes + have fun!
Grass H0PEr | 2017-09-25 17:59