Created room not found error while it does exist

Started by arj0n, Fri 21/08/2020 21:09:42

Previous topic - Next topic

arj0n

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:


  • Started AGS
  • created new room (room 35)
  • when trying to open room: Error:
    Unable to load the room file 'room35.crm'.
  • after closing this error message, the 2nd message pops up:
    AGS.Types.AGSEditorException: Unable to load the room file 'room35.crm'.
    Room file was not found or could not be opened.
    Filename: room35.crm..
  • while quiting the editor and saving the game, the 3rth error message pops up:
    Object reference not set to an instance of an object.
  • restarted AGS
  • create new room (room 35 was not shown in the room panel)
  • message is shown that room 35 does exist (although it wasn't shown in the room panel list), and the question was shown: do you want to overwrite existing room.
  • chose to overwrite exiting room35
  • open new room 35: no issue.


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]

SMF spam blocked by CleanTalk