Author Topic: Solution for ags error needed  (Read 347 times)

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Solution for ags error needed
« on: 04 Jun 2018, 12:01 »
Apart from needing a solution it would be nice to know WHY this error happens...



cheers


Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Solution for ags error needed
« Reply #1 on: 04 Jun 2018, 12:21 »
Both of these errors are related to AGS unable to modify the data in game exe for some reason.

Previously you've posted another problem that also seem to be related to disk access (http://www.adventuregamestudio.co.uk/forums/index.php?topic=56123.0) You have never replied there, were you able to fix that?

Do you have "Enable Game Explorer integration" enabled in General Settings? ("Windows Game Explorer" group).
Not sure why, but it does some stuff in code even if it's disabled.

I will investigate a bit more to see under which conditions these particular issues may take place, and whether it's possible to skip if it did not work (although that may be an indication of a bigger problem).

Do you have anything that may prevent game exe from being modified? For example, Compiled folder opened in the windows Explorer (or another file explorer), Anti-virus? Is the game project on regular folder on hard drive or shared folder/network location? Do you run any kind of backup software that may sync game folder contents with a storage, like Dropbox for example?
« Last Edit: 04 Jun 2018, 12:25 by Crimson Wizard »

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Solution for ags error needed
« Reply #2 on: 04 Jun 2018, 12:46 »
Hi Crimson

The error does not happen all the time but I need to restart computer. But the error eventually arises again.

My virus prog has not changed.

Game Explorer option was set at false.

No folders are open.

ags was the only Program open.

Oh, and it's ags Build 3.4.0.14

cheers

Slasher


Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Solution for ags error needed
« Reply #3 on: 04 Jun 2018, 12:50 »
Another thing to check is, when this error occurs, open task manager and check if there is your game exe among the running processes. If there is, that could mean that it did not shut down correctly, but then it may be forcefully terminated through task manager command.

If the above does not help, have you tried to turn antivirus off, rebuild and see if error is gone without restarting PC?

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Solution for ags error needed
« Reply #4 on: 04 Jun 2018, 13:22 »
Hi Crimson,

I changed Game explorer to true (not quite sure how it went false)...then did a full rebuild (should have done that earlier)...

No errors so far.. fingers crossed.

Task manager by the way did not show any other programs open...

cheers

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Solution for ags error needed
« Reply #5 on: 04 Jun 2018, 13:41 »
I changed Game explorer to true (not quite sure how it went false)...then did a full rebuild (should have done that earlier)...

That's not what I meant, Game explorer is supposed to be OFF by default. Unless you actually want it to be enabled, of course.
I was saying that for some reason AGS does some related stuff even if it's disabled, and wanted to find out why.
« Last Edit: 04 Jun 2018, 13:43 by Crimson Wizard »

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Solution for ags error needed
« Reply #6 on: 04 Jun 2018, 16:41 »
Even though it seemed ok and I changed Game Explorer back to false i'm still getting access to .exe file denied (say 80% of the time).
« Last Edit: 04 Jun 2018, 17:00 by Slasher »

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Solution for ags error needed
« Reply #7 on: 04 Jun 2018, 17:43 »
Task manager by the way did not show any other programs open...

Did you check only Applications tab, or also Processes tab? The Processes is what important, because if game was not shut down properly it may not be displayed in Application. Make sure that there is no "YourGameName.exe" or "acwin.exe" running in the Processes list when this error happens.
You did not mention, have you tried disabling antivirus when this happens, just for a test?

Other thing I forgot to ask, does this happen only when you run game with F5 (debug mode) or also when you make "Rebuild all"?

Even though it seemed ok and I changed Game Explorer back to false i'm still getting access to .exe file denied (say 80% of the time).
To make things clear: "Game Explorer" option does or does not make a difference?

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Solution for ags error needed
« Reply #8 on: 04 Jun 2018, 18:04 »
The next time it happens i will check task manager.

cheers

Slasher

  • slasher
    • I can help with AGS tutoring
    •  
    • I can help with scripting
    •  
    • I can help with story design
    •  
    • Slasher worked on a game that was nominated for an AGS Award!
Re: Solution for ags error needed
« Reply #9 on: 13 Jun 2018, 17:48 »
It looks like it was Malwarebytes that decided to self upgrade.. I uninstalled it and it appears ok at the moment.

Re: Solution for ags error needed
« Reply #10 on: 15 Jun 2018, 19:40 »
Next time, you can try to restart Adventure Game Studio and first thing to do would be build a exe. It works for me.