Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: TDBFW1 on Thu 31/08/2017 12:25:02

Title: Unexpected error: Won't start game.
Post by: TDBFW1 on Thu 31/08/2017 12:25:02
I get this error every time I try to start my game and I don't know why.
Unexpected error: Access to the path 'C:\Users\finnt\OneDrive\Documenten\Own Games\Les Saboteurs\_Debug\Les Saboteurs.exe' is denied.
I've tried accessing the _Debug file but it says I need administrator access.
Please help!

Title: Re: Unexpected error: Won't start game.
Post by: Khris on Thu 31/08/2017 12:39:12
I'd move the game folder out of OneDrive and try again.
Title: Re: Unexpected error: Won't start game.
Post by: on Thu 31/08/2017 14:42:57
A little background would be nice here :) Which engine are you using? Did the game ever start and if so what did you change before you stopped working?
Title: Re: Unexpected error: Won't start game.
Post by: TDBFW1 on Thu 31/08/2017 16:12:04
I can't move it out of OneDrive because it just tells me I need administrator access.
I'm using the latest version of AGS and it was fine for a month but now has stopped working for no apparent reason. I was working on a GUI and now it's broken...
Title: Re: Unexpected error: Won't start game.
Post by: Scorpiorus on Thu 31/08/2017 22:36:09
Do you use this Microsoft service https://en.wikipedia.org/wiki/OneDrive (https://en.wikipedia.org/wiki/OneDrive)?

Can you at least try copying (not moving) your game project folder somewhere else? (note that you don't need to copy the _Debug folder)

EDIT: Also, make sure your Antivirus software doesn't block it somehow!
Title: Re: Unexpected error: Won't start game.
Post by: TDBFW1 on Fri 01/09/2017 15:22:34
That's a good point. I think my antivirus may have broken the game file when trying to "clean" my PC.
Another point, my game file is greyed out in the debug folder. Is there any way to restore this or fix it?
Title: Re: Unexpected error: Won't start game.
Post by: Scorpiorus on Fri 01/09/2017 17:53:44
I would suggest copying everything you can to folder "C:\MyAgsGames". (Don't worry about the _Debug folder, you don't need it to rebuild your game!)
Next, run AGS, select the second option (Continue an existing game) and click [Continue >] button.
From there, find your game project at "C:\MyAgsGames" and open it in AGS.
Finally, rebuild your game EXE.

See if it works.
Title: Re: Unexpected error: Won't start game.
Post by: TDBFW1 on Fri 01/09/2017 18:34:38
Thank you so much. It works! Now I haven't lost hours of work. Seriously, thank you. :-D
Title: Re: Unexpected error: Won't start game.
Post by: Scorpiorus on Sat 02/09/2017 15:29:19
No problem, I'm glad you got it fixed!

But be sure to back up your project regularly -- you don't always known what may happen on the next day :smiley: