Adventure Game Studio

AGS Development => Engine Development => Topic started by: arj0n on Fri 21/08/2020 21:09:42

Title: Created room not found error while it does exist
Post by: arj0n on Fri 21/08/2020 21:09:42
Something strange just happened while creating a new room.
I though it might be wordt posting about it, not sure if this is the right place though.

Using AGS v.3.5.0.25:



Error msg1 - Unable to load the room file 'room35.crm':
Spoiler

Error: Unable to load the room file 'room35.crm'.
Room file was not found or could not be opened.
Filename: room35.crm..
Version: AGS 3.5.0.25

AGS.Types.AGSEditorException: Unable to load the room file 'room35.crm'.
Room file was not found or could not be opened.
Filename: room35.crm..
   at ThrowManagedException(SByte* message)
   at load_room_file(SByte* )
   at load_crm_file(UnloadedRoom roomToLoad)
   at AGS.Editor.Components.RoomsComponent.LoadNewRoomIntoMemory(UnloadedRoom newRoom, CompileMessages errors)
   at AGS.Editor.Components.RoomsComponent.LoadDifferentRoom(UnloadedRoom newRoom)
   at AGS.Editor.Components.RoomsComponent.LoadRoom(String controlID)
   at AGS.Editor.Components.RoomsComponent.ItemCommandClick(String controlID)
   at AGS.Editor.Components.BaseComponentWithFolders`2.CommandClick(String controlID)
   at AGS.Editor.ProjectTree.ProcessClickOnNode(String nodeID, MouseButtons button)
   at AGS.Editor.ProjectTree.projectTree_NodeMouseDoubleClick(Object sender, TreeNodeMouseClickEventArgs e)
   at System.Windows.Forms.TreeView.OnNodeMouseDoubleClick(TreeNodeMouseClickEventArgs e)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[close]

Error msg2 - AGS.Types.AGSEditorException: Unable to load the room file 'room35.crm'. Room file was not found or could not be opened. Filename: room35.crm..:
Spoiler

---------------------------
Adventure Game Studio
---------------------------
A serious error occurred and the AGS Editor may now be in an unstable state. You are STRONGLY ADVISED to shut down the editor and restart it. Before saving your work, make a backup copy of your game folder in case any data has been corrupted.



Error: AGS.Types.AGSEditorException: Unable to load the room file 'room35.crm'.
Room file was not found or could not be opened.
Filename: room35.crm..

   at ThrowManagedException(SByte* message)

   at load_room_file(SByte* )

   at load_crm_file(UnloadedRoom roomToLoad)

   at AGS.Editor.Components.RoomsComponent.LoadNewRoomIntoMemory(UnloadedRoom newRoom, CompileMessages errors)

   at AGS.Editor.Components.RoomsComponent.LoadDifferentRoom(UnloadedRoom newRoom)

   at AGS.Editor.Components.RoomsComponent.LoadRoom(String controlID)

   at AGS.Editor.Components.RoomsComponent.ItemCommandClick(String controlID)

   at AGS.Editor.Components.BaseComponentWithFolders`2.CommandClick(String controlID)

   at AGS.Editor.ProjectTree.ProcessClickOnNode(String nodeID, MouseButtons button)

   at AGS.Editor.ProjectTree.projectTree_NodeMouseDoubleClick(Object sender, TreeNodeMouseClickEventArgs e)

   at System.Windows.Forms.TreeView.OnNodeMouseDoubleClick(TreeNodeMouseClickEventArgs e)

   at System.Windows.Forms.TreeView.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
---------------------------
OK   
---------------------------
[close]

Error msg 3 - The error was: Object reference not set to an instance of an object.
Spoiler

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



Object reference not set to an instance of an object.



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



Error details: System.NullReferenceException: Object reference not set to an instance of an object.

   at AGS.Editor.Components.SourceControlComponent.ToXml(XmlTextWriter writer)

   at AGS.Editor.ComponentController.NotifySavingGame(XmlTextWriter writer)

   at AGS.Editor.ApplicationController._events_SavingGame(XmlTextWriter writer)

   at AGS.Editor.EditorEvents.OnSavingGame(XmlTextWriter writer)

   at AGS.Editor.AGSEditor.SaveGameFilesProcess(Object parameter)

   at AGS.Editor.BusyDialog.RunHandlerOnThread()
---------------------------
OK   
---------------------------
[close]