Can't Delete Some Attributes

Jennifer Wren
16 Apr 2023, 03:57

I'm trying to delete the attributes in four rooms related to Feature_Container, now that they are not also containers, and do not have that feature checked. Every time I try to delete any of these attributes, which are marked fale, I am error warned that I have to do something else, first. What would that be? How can I delete the attributes referring to container?

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.Fields.RemoveField(String name)
at TextAdventures.Quest.EditorData.RemoveAttribute(String attribute)
at TextAdventures.Quest.EditorControls.WFAttributesControl.cmdDelete_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.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.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.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)


mrangel
16 Apr 2023, 12:59

That looks like they don't have those attributes. Could be a glitch in the editor?
I'd try saving your progress, exit and reload the editor, and try again. If that fails, you could remove the attributes in code view.


Jennifer Wren
16 Apr 2023, 15:56

I looked into the code view and noticed, even though they are rooms object/rooms, they all say feature_container for inheret . They do not say room anywhere in code view, only in tabs. Could I change inheret labels to room? I have an added attribute on each that has an integer that goes up by one when certain other rooms are entered, and I don't want that to be affected.