Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Icey on Thu 15/09/2011 00:54:03

Title: Error message [Soveld]
Post by: Icey on Thu 15/09/2011 00:54:03
I tried to compile my to give it a test when I got this message. I aso get it whe rebuilding the files.

Error: Load_room: inconsistent blocks for object names
Version: AGS 3.2.1.111

AGS.Types.AGSEditorException: Load_room: inconsistent blocks for object names
  at ThrowManagedException(SByte* message)
  at load_room_file(SByte* )
  at load_crm_file(UnloadedRoom roomToLoad)
  at AGS.Native.NativeMethods.LoadRoomFile(UnloadedRoom roomToLoad)
  at AGS.Editor.Components.RoomsComponent.LoadNewRoomIntoMemory(UnloadedRoom newRoom, CompileMessages errors)
  at AGS.Editor.Components.RoomsComponent.RecompileAnyRoomsWhereTheScriptHasChanged(CompileMessages errors, Boolean rebuildAll)
  at AGS.Editor.Components.RoomsComponent.AGSEditor_PreCompileGame(PreCompileGameEventArgs evArgs)
  at AGS.Editor.AGSEditor.PreCompileGameHandler.Invoke(PreCompileGameEventArgs evArgs)
  at AGS.Editor.AGSEditor.CompileGame(Boolean forceRebuild, Boolean createMiniExeForDebug)
  at AGS.Editor.Components.BuildCommandsComponent.CompileGame(Boolean forceRebuild)
  at AGS.Editor.Components.BuildCommandsComponent.CommandClick(String controlID)
  at AGS.Editor.GUIController._mainForm_OnMenuClick(String menuItemID)
  at AGS.Editor.MainMenuManager.MenuEventHandler(Object sender, EventArgs e)
  at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
  at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
  at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
  at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
  at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
  at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
  at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  at System.Windows.Forms.ToolStrip.WndProc(Message& m)
  at System.Windows.Forms.ToolStripDropDown.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)

Now I no this is caused by some thing I did but I can't figure out what this means
"inconsistent blocks for object names"
Title: Re: Error message
Post by: monkey0506 on Thu 15/09/2011 18:17:33
Sounds like your room file(s) got corrupted. Looks like that's the end of PMQ... :'(
Title: Re: Error message
Post by: Icey on Fri 16/09/2011 00:08:55
Corrupted! and this is osd. I guess I gotta figure out which room to fix.
Title: Re: Error message
Post by: Icey on Fri 16/09/2011 00:21:00
I got it. I had to delete all the unused rooms from the game.
Title: Re: Error message
Post by: Monsieur OUXX on Fri 16/09/2011 10:13:38
Are you sure it's not because you gave some names to the scripts supposed to be executed by some room events (for example: MyButton_onclick) and then changed the names in the script itself without changing it in the room editor?

Anyway if you fixed it, problem solved.
Title: Re: Error message
Post by: monkey0506 on Sun 18/09/2011 03:10:46
Monsieur, even if he did that it would cause a run-time error about "unresolved import", not cause an explosive editor crash.
Title: Re: Error message
Post by: Alan v.Drake on Sun 18/09/2011 21:45:36
You didn't write the names with weird japanese unicode characters, did you ? Admitted that is indeed possible, maybe rewriting them with normal ascii ones would have fixed things. Or perhaps not. Whatever, I'm sweating so hard I can't think straight.


- Alan
Title: Re: Error message
Post by: Icey on Mon 19/09/2011 04:42:15
Oh I never put this as solved did I.

Only problem I had after I said it was fixed was during the game play I made it up to room 10 and it crashed saying something about out of memory. So I restarted the game and it said the same thing from before only this time it let me run the game.

I fixed that problem and so far it works.