textadventures / quest

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

"KeyNotFound" error loading game to edit #778

Closed IainP closed 9 years ago

IainP commented 9 years ago

A pupil has been working on a game for the last couple of weeks with no problems. This week, she went to load her file and received the following error:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary2.get_Item(TKey key) at TextAdventures.Quest.EditorController.GetElementTreeParent(Element o) at TextAdventures.Quest.EditorController.AddElementToTree(Element o, Nullable1 position, String name) at TextAdventures.Quest.EditorController.AddElementAndChildrenToTree(Element o) at TextAdventures.Quest.EditorController.UpdateTree() at TextAdventures.Quest.Editor._Closure$__1._Lambda$__4()

We've not updated Quest or anything since her last session. Currently on v5.5 (though I note 5.5.1 has just been released, we can't update all the machines due to internal IT policy...).

I'm assuming it's some corruption in her game file :(

alexwarren commented 9 years ago

Could you email me the .aslx file? alex@textadventures.co.uk

On 5 February 2015 at 12:43, IainP notifications@github.com wrote:

A pupil has been working on a game for the last couple of weeks with no problems. This week, she went to load her file and received the following error:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary2.get_Item(TKey key) at TextAdventures.Quest.EditorController.GetElementTreeParent(Element o) at TextAdventures.Quest.EditorController.AddElementToTree(Element o, Nullable1 position, String name) at TextAdventures.Quest.EditorController.AddElementAndChildrenToTree(Element o) at TextAdventures.Quest.EditorController.UpdateTree() at TextAdventures.Quest.Editor._Closure$__1._Lambda$__4()

We've not updated Quest or anything since her last session. Currently on v5.5 (though I note 5.5.1 has just been released, we can't update all the machines due to internal IT policy...).

I'm assuming it's some corruption in her game file :(

— Reply to this email directly or view it on GitHub https://github.com/textadventures/quest/issues/778.

IainP commented 9 years ago

I can't find a way to attach the game file here - too large to copy/paste.

IainP commented 9 years ago

Alex, thanks - will do.