1
Editor Discussion / Re: Editor Tutorials
« on: August 20, 2013, 09:02:39 PM »
I'm having the same issue as Dai Tou Zai, here is the error message when I try to launch it from the editor or in game:
"--- UNHANDLED EXCEPTION - 8/20/2013 2:20:29 PM - HMW 1.01 DEBUG ---
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at TiltedEngine.ResourceBank.GetResource[T](String name) in C:\Arbete\Programmering\C#\ARPGProj\trunk\Tilted Engine\TiltedEngine\ResourceBank.cs:line 136
at ARPGGame.ActorBehaviors.CasterActorBehavior..ctor(BehaviorData obj, ResourceBank resBank) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\Behaviors\Enemies\CasterActorBehavior.cs:line 105
at ARPGGame.WorldItemBehaviors.BehaviorFactory.ProduceActorBehavior(String id, BehaviorData param) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\Behaviors\BehaviorFactory.cs:line 129
at TiltedEngine.WorldObjects.WorldObjectProducers.ActorType.Produce(Vector2 pos) in C:\Arbete\Programmering\C#\ARPGProj\trunk\Tilted Engine\TiltedEngine\WorldObjects\WorldObjectProducers\ActorType.cs:line 54
at TiltedEngine.WorldLoader.LoadActors(SObject save, WorldNode world) in C:\Arbete\Programmering\C#\ARPGProj\trunk\Tilted Engine\TiltedEngine\WorldLoader.cs:line 224
at ARPGGame.LevelList.LoadLevel(WorldNode world, WorldDrawer worldDrawer, String level, SObject save) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\LevelList.cs:line 201
at ARPGGame.GameBase.ClearLevel() in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\GameBase.cs:line 494
at ARPGGame.GameBase.Update(Int32 ms) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\GameBase.cs:line 831
at ARPGGame.ARPGGame.OnUpdateFrame(FrameEventArgs e) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\Program.cs:line 667
at OpenTK.GameWindow.RaiseUpdateFrame(Stopwatch update_watch, Double& next_update, FrameEventArgs update_args)
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at ARPGGame.Program.Main(String[] args) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\Program.cs:line 205
------"
"--- UNHANDLED EXCEPTION - 8/20/2013 2:20:29 PM - HMW 1.01 DEBUG ---
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at TiltedEngine.ResourceBank.GetResource[T](String name) in C:\Arbete\Programmering\C#\ARPGProj\trunk\Tilted Engine\TiltedEngine\ResourceBank.cs:line 136
at ARPGGame.ActorBehaviors.CasterActorBehavior..ctor(BehaviorData obj, ResourceBank resBank) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\Behaviors\Enemies\CasterActorBehavior.cs:line 105
at ARPGGame.WorldItemBehaviors.BehaviorFactory.ProduceActorBehavior(String id, BehaviorData param) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\Behaviors\BehaviorFactory.cs:line 129
at TiltedEngine.WorldObjects.WorldObjectProducers.ActorType.Produce(Vector2 pos) in C:\Arbete\Programmering\C#\ARPGProj\trunk\Tilted Engine\TiltedEngine\WorldObjects\WorldObjectProducers\ActorType.cs:line 54
at TiltedEngine.WorldLoader.LoadActors(SObject save, WorldNode world) in C:\Arbete\Programmering\C#\ARPGProj\trunk\Tilted Engine\TiltedEngine\WorldLoader.cs:line 224
at ARPGGame.LevelList.LoadLevel(WorldNode world, WorldDrawer worldDrawer, String level, SObject save) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\LevelList.cs:line 201
at ARPGGame.GameBase.ClearLevel() in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\GameBase.cs:line 494
at ARPGGame.GameBase.Update(Int32 ms) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\GameBase.cs:line 831
at ARPGGame.ARPGGame.OnUpdateFrame(FrameEventArgs e) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\Program.cs:line 667
at OpenTK.GameWindow.RaiseUpdateFrame(Stopwatch update_watch, Double& next_update, FrameEventArgs update_args)
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at ARPGGame.Program.Main(String[] args) in c:\Arbete\Programmering\C#\ARPGProj\trunk\ARPG\ARPGGame\Program.cs:line 205
------"