Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Gepard on Tue 07/02/2017 19:55:24

Title: [SOLVED] Cannot create a file when that file already exists.
Post by: Gepard on Tue 07/02/2017 19:55:24
So this thing seems simple. When I try to test my game, either with the button or F5 shortcut, it runs fine, the first time, than I get this:

Unexpected error: Cannot create a file when that file already exists.


Than it might run fine the third time or give me this:

Unexpected error: Access to the path 'C:\Users\MyName\Desktop\Game\_Debug\Game.exe' is denied.


And than it runs fine again. Any idea what is causing this?
Title: Re: Unexpected error: Cannot create a file when that file already exists.
Post by: Cassiebsg on Wed 08/02/2017 17:49:48
Do you have AVAST? Or Win10? Or both?
Title: Re: Unexpected error: Cannot create a file when that file already exists.
Post by: Gepard on Wed 08/02/2017 19:05:30
No, but I did install Comodo antivirus right before it occured. I've uninstalled it already, but the error doesn't seem to go away. What is causing this?
Title: Re: Unexpected error: Cannot create a file when that file already exists.
Post by: Slasher on Wed 08/02/2017 19:47:40
Try creating a new game, just one room and place a character in room. try running game. Does it react the same?
Title: Re: Unexpected error: Cannot create a file when that file already exists.
Post by: Lewis on Thu 09/02/2017 10:58:01
This might sound blindingly obvious, but have you tried closing AGS and re-opening? I've had this error a couple of times, and it's always been resolved by simply rebooting the editor.
Title: Re: Unexpected error: Cannot create a file when that file already exists.
Post by: Gepard on Thu 09/02/2017 17:19:17
Hm... I did a system restore and now it works fine. Don't know why exactly this was, but I'm pretty sure it was because of the Comodo antivirus.