post dialog AGS error (SOLVED)

Started by geork, Sat 12/09/2009 11:39:21

Previous topic - Next topic

geork

 Hey all!
  I had just finished 12 different dialogs (all linked together), and tried to run my game, but I got an "Unhandled error" box, containing these words:

Error: Index was outside the bounds of the array.
Version: AGS 3.1.2.82

System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at AGS.Editor.DialogScriptConverter.ProcessEntryPointTag(String dlgScriptCommand)
  at AGS.Editor.DialogScriptConverter.ConvertDialogScriptCommandToScript(String dlgScriptCommand, StringWriter sw, CompileMessages errors)
  at AGS.Editor.DialogScriptConverter.ConvertDialogScriptLine(String thisLine, StringWriter sw, CompileMessages errors)
  at AGS.Editor.DialogScriptConverter.ConvertDialogScriptToRealScript(Dialog dialog, Game game, CompileMessages errors)
  at AGS.Editor.DialogScriptConverter.ConvertGameDialogScripts(Game game, CompileMessages errors, Boolean rebuildAll)
  at AGS.Editor.AGSEditor.CompileDialogs(CompileMessages errors, Boolean rebuildAll)
  at AGS.Editor.AGSEditor.CompileScripts(Object parameter)
  at AGS.Editor.BusyDialog.RunHandlerOnThread()
  --- End of inner exception stack trace ---
  at AGS.Editor.BusyDialog.Show(String message, ProcessingHandler handler, Object parameter)
  at AGS.Editor.AGSEditor.CompileGame(Boolean forceRebuild, Boolean createMiniExeForDebug)
  at AGS.Editor.Components.BuildCommandsComponent.TestGame(Boolean withDebugger)
  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.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
  at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
  at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData)
  at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut)
  at System.Windows.Forms.ToolStripManager.ProcessCmdKey(Message& m, Keys keyData)
  at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
  at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
  at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
  at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

 I sent error report, but it suggested going on the forums to ask about it, so I am. It was fine with 3 dialogs.
  Thanks

Pumaman

I think this is a compiler bug that will be fixed in the next version of AGS.

Check your dialog scripts, and make sure there aren't any lines like this:

@

I think this crash happens if you have a @ without a number after it.

geork

 Thankyou!
  Yep, it was, I discovered it though, and it has been rectified (@1)
  Thanks again ;)

SMF spam blocked by CleanTalk