textadventures / quest

Create text adventure games
https://textadventures.co.uk/quest
MIT License
304 stars 69 forks source link

Quest 5.8.0 editor failure to load correctly #1046

Closed Dravus closed 2 months ago

Dravus commented 6 years ago

Error codes presented at startup: "System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at TextAdventures.Quest.EditorControls.WFEditorTree.SetMenuEnabled(String key, Boolean enabled) at TextAdventures.Quest.Editor.UpdateClipboardButtons() at TextAdventures.Quest.Editor.ShowEditor(String key) at TextAdventures.Quest.Editor.ctlTree_SelectionChanged(String key) at TextAdventures.Quest.EditorControls.WFEditorTree.ChangeSelection(String key) at TextAdventures.Quest.EditorControls.WFEditorTree.SelectCurrentTreeViewItem() at TextAdventures.Quest.EditorControls.WFEditorTree.ctlTreeView_AfterSelect(Object sender, TreeViewEventArgs e) at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e) at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv) at System.Windows.Forms.TreeView.WmNotify(Message& m) 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)"

"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at TextAdventures.Quest.EditorControls.WFEditorTree.SetMenuEnabled(String key, Boolean enabled) at TextAdventures.Quest.Editor.UpdateClipboardButtons() at TextAdventures.Quest.Editor.ShowEditor(String key) at TextAdventures.Quest.Editor._Closure$__64-0._Lambda$__0()"

First error is repeated upon attempting to load any object within the Editor

Nanospliccer commented 6 years ago

I'm experiencing the same error here. Fresh installation on Windows 10, I open the editor for the first time, and I get this:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at TextAdventures.Quest.EditorControls.WFEditorTree.SetMenuEnabled(String key, Boolean enabled) at TextAdventures.Quest.Editor.UpdateClipboardButtons() at TextAdventures.Quest.Editor.ShowEditor(String key) at TextAdventures.Quest.Editor.ctlTree_SelectionChanged(String key) at TextAdventures.Quest.EditorControls.WFEditorTree.ChangeSelection(String key) at TextAdventures.Quest.EditorControls.WFEditorTree.SelectCurrentTreeViewItem() at TextAdventures.Quest.EditorControls.WFEditorTree.ctlTreeView_AfterSelect(Object sender, TreeViewEventArgs e) at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e) at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv) at System.Windows.Forms.TreeView.WmNotify(Message& m) 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)

When I close that, I get this:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at TextAdventures.Quest.EditorControls.WFEditorTree.SetMenuEnabled(String key, Boolean enabled) at TextAdventures.Quest.Editor.UpdateClipboardButtons() at TextAdventures.Quest.Editor.ShowEditor(String key) at TextAdventures.Quest.Editor._Closure$__64-0._Lambda$__0()

This seems like it'll be an ongoing problem with making anything in Quest 5.8.0.

EDIT: Completely uninstalling the program and reinstalling appears to have fixed it so far.

Animalibera1986 commented 6 years ago

i get this at startup, when the editor loads: System.MissingMethodException: Method not found: 'Void TextAdventures.Quest.EditorControls.WFEditorTree.SetMenuSeparatorVisible(System.String, Boolean)'. at TextAdventures.Quest.Editor.SetTreeMenuVisibility() at TextAdventures.Quest.Editor.set_EditorStyle(EditorStyle value) at TextAdventures.Quest.Editor._Closure$__64-0._Lambda$__0() After startup, when i try to select something in the tree, say, verbs and commands, i can't click anything, the cursor tells me something is loading, so i can't do a thing.

king-of-the-internet commented 6 years ago

For what it's worth, I've had this same problem and fixed it by performing a clean reinstall.

sgreig commented 5 years ago

I'm also getting this error when I start Quest 5.8 on Windows 10.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at TextAdventures.Quest.EditorControls.WFEditorTree.SetMenuEnabled(String key, Boolean enabled) at TextAdventures.Quest.Editor.UpdateClipboardButtons() at TextAdventures.Quest.Editor.Redisplay() at TextAdventures.Quest.Main.ctlPlayer_Quit() at TextAdventures.Quest.Player._Lambda$__182-0()

And this message pops up when I click anything in the tree window:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at TextAdventures.Quest.EditorControls.WFEditorTree.SetMenuEnabled(String key, Boolean enabled) at TextAdventures.Quest.Editor.UpdateClipboardButtons() at TextAdventures.Quest.Editor.ShowEditor(String key) at TextAdventures.Quest.Editor.ctlTree_SelectionChanged(String key) at TextAdventures.Quest.EditorControls.WFEditorTree.ChangeSelection(String key) at TextAdventures.Quest.EditorControls.WFEditorTree.SelectCurrentTreeViewItem() at TextAdventures.Quest.EditorControls.WFEditorTree.ctlTreeView_AfterSelect(Object sender, TreeViewEventArgs e) at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e) at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv) at System.Windows.Forms.TreeView.WmNotify(Message& m) 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)

alexwarren commented 2 months ago

Closing out old issues. Please re-open with any additional repro steps if this is still a problem.