jaquadro/Substrate — Issue #1: KeyNotFoundException was unhandled when I perform BetaWorld.Open()
Author: JeHor
Created: 2011-12-17 02:13:12+00:00
State: open

I keep getting this exception (only with this world) when I perform the [BetaWorld world = BetaWorld.Open(path);]

I was able to open this world previously but now it always throws this exception. I am able to open other saves I have.

I have the full exception report and the world save zipped up if you'd like. I can also provide my source code.

Let me know what you need,
Jehor

[exception below]
System.Collections.Generic.KeyNotFoundException was unhandled
Message=The given key was not present in the dictionary.
Source=mscorlib
StackTrace:
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Substrate.Nbt.TagNodeCompound.get_Item(String key)
at Substrate.Item.LoadTree(TagNode tree)
at Substrate.ItemCollection.LoadTree(TagNode tree)
at Substrate.Player.LoadTree(TagNode tree)
at Substrate.Level.LoadTree(TagNode tree)
at Substrate.Level.LoadTreeSafe(TagNode tree)
at Substrate.BetaWorld.LoadLevel()
at Substrate.BetaWorld.OpenWorld(String path)
at Substrate.BetaWorld.Open(String path)
at MinecraftItemLocator.Form1.OpenWorld(String path) in C:\Users\jeremy\documents\visual studio 2010\Projects\MinecraftItemLocator\MinecraftItemLocator\Form1.cs:line 51
at MinecraftItemLocator.Form1.openToolStripMenuItem_Click(Object sender, EventArgs e) in C:\Users\jeremy\documents\visual studio 2010\Projects\MinecraftItemLocator\MinecraftItemLocator\Form1.cs:line 34
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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at MinecraftItemLocator.Program.Main() in C:\Users\jeremy\documents\visual studio 2010\Projects\MinecraftItemLocator\MinecraftItemLocator\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: