Can I delete a registry line to make a game load?

Started by EnterTheStory (aka tolworthy), Fri 11/06/2010 10:43:45

Previous topic - Next topic

EnterTheStory (aka tolworthy)

My games often refuse to save or load in the editor. Until now rebooting the computer always fixed it, but no longer. Presumably this is due to some registry permissions thing? Is there a line in the registry (or some ini file) I can edit to allow me to run a game?

Here are sample error messages from two different games:
Code: ags

---------------------------
Adventure Game Studio
---------------------------
An error occurred whilst trying to load your game. The error was: 

The process cannot access the file 'C:\AGS\sandbox\GlobalScript.asc' because it is being used by another process.

If you cannot resolve the error, please post on the AGS Technical Forum for assistance.

Error details: System.IO.IOException: The process cannot access the file 'C:\AGS\sandbox\GlobalScript.asc' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at AGS.Types.Script.LoadFromDisk()
   at AGS.Types.Script..ctor(XmlNode node)
   at AGS.Types.Scripts..ctor(XmlNode node)
   at AGS.Types.Game.FromXml(XmlNode node)
   at AGS.Editor.AGSEditor.LoadGameFile(String fileName)
   at AGS.Editor.Tasks.LoadGameFromDisk(String gameToLoad, Boolean interactive)
   at AGS.Editor.InteractiveTasks.LoadGameFromDisk(String gameToLoad)
---------------------------
OK   
---------------------------


---------------------------
Adventure Game Studio
---------------------------
An error occurred whilst trying to load your game. The error was: 

The process cannot access the file 'C:\AGS\Les Miserables\misc code.asc' because it is being used by another process.

If you cannot resolve the error, please post on the AGS Technical Forum for assistance.

Error details: System.IO.IOException: The process cannot access the file 'C:\AGS\Les Miserables\misc code.asc' because it is being used by another process.   
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)   
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)   
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   
at AGS.Types.Script.LoadFromDisk()   
at AGS.Types.Script..ctor(XmlNode node)   
at AGS.Types.Scripts..ctor(XmlNode node)   
at AGS.Types.Game.FromXml(XmlNode node)   
at AGS.Editor.AGSEditor.LoadGameFile(String fileName)   
at AGS.Editor.Tasks.LoadGameFromDisk(String gameToLoad, Boolean interactive)   
at AGS.Editor.InteractiveTasks.LoadGameFromDisk(String gameToLoad)
---------------------------
OK   
---------------------------


abstauber

I have of course no idea what causing this, but this line makes me think.

Quote
The process cannot access the file 'C:\AGS\sandbox\GlobalScript.asc' because it is being used by another process.

You can try to take a look which programm is still accessing the file with this tool:
http://download.sysinternals.com/Files/ProcessMonitor.zip

EnterTheStory (aka tolworthy)

Thanks. On further investigation it may be a combination of AVG and Copernic Desktop Search both fighting to access files while AGS tries to read them. I hope it's just that, as that would be fairly easy to avoid.

Dataflashsabot

The tables are broken, please add a linebreak or three to the message

EnterTheStory (aka tolworthy)

Quote from: Dataflashsabot on Fri 11/06/2010 19:26:17
The tables are broken, please add a linebreak or three to the message
That sounds almost Biblical! (see Exodus 32) :)

SMF spam blocked by CleanTalk