Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: HandsFree on Fri 24/01/2020 23:07:40

Title: error running games from editor
Post by: HandsFree on Fri 24/01/2020 23:07:40
This problem has been mentioned before I see, but I haven't found an answer yet.
I have used AGS editor 3.4.3.1 without problems, but now I get "The game engine does not appear to have shut down properly" on every project I try.
This happens when I run a game from the editor. If I build the exe and run that, there's no problem.
I created a new game for testing and it gave the same error.

Has anyone found out how to fix this?

BTW, the send error report also gives an error.

Thanks for any insight.

Error: Toegang geweigerd
Version: AGS 3.4.3.1

System.Exception: Toegang geweigerd ---> System.ComponentModel.Win32Exception: Toegang geweigerd
   bij AGS.Editor.Tasks.RunEXEFile(String exeName, String parameter, Boolean raiseEventOnExit)
   bij AGS.Editor.Tasks.TestGame(Boolean withDebugger)
   bij AGS.Editor.InteractiveTasks.TestGame(Boolean withDebugger)
   --- Einde van intern uitzonderingsstackpad ---
   bij AGS.Editor.InteractiveTasks.TestGame(Boolean withDebugger)
   bij AGS.Editor.Components.BuildCommandsComponent.TestGame(Boolean withDebugger)
   bij AGS.Editor.Components.BuildCommandsComponent.CommandClick(String controlID)
   bij AGS.Editor.ToolBarManager.ToolbarEventHandler(Object sender, EventArgs e)
   bij System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   bij System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
   bij System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   bij System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   bij System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   bij System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   bij System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bij System.Windows.Forms.Control.WndProc(Message& m)
   bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bij System.Windows.Forms.ToolStrip.WndProc(Message& m)
   bij AGS.Editor.ToolStripExtended.WndProc(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Title: Re: error running games from editor
Post by: Crimson Wizard on Fri 24/01/2020 23:28:11
Does "Toegang geweigerd" mean "Access denied"?

Couple of thoughts why this may happen: your project is in location where you don't have access rights, the exe file is locked by antivirus or Windows Defender (or other similar program).
Title: Re: error running games from editor
Post by: HandsFree on Fri 24/01/2020 23:41:48
Yes, access denied.
It's just a random location on C:\ so that should not be the problem.
Antivirus: possibly. But this wasn't a problem before.

To be honest I never touch that antivirus (Norton). Is there a way to see if it is locking AGS?

Edit: Ok, I turned off heuristic scanning (don't know if that's wise though) and it works now.
There appears to be no way to just let AGS through.