Author Topic: Help debugging!  (Read 3652 times)

warlock98

  • Posts: 1
  • Maggot Crusher.
    • View Profile
Help debugging!
« on: January 07, 2014, 03:21:47 AM »
I just spent forever making a level, and I got an error... I don't know what to do. I spent soo long on the map, please help!

--- UNHANDLED EXCEPTION - 06/01/2014 9:15:21 PM - HMW 1.2 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:\Projects\ARPGProj\trunk\Tilted Engine\TiltedEngine\ResourceLoading\ResourceBank.cs:line 145
   at ARPGGame.ActorBehaviors.CasterActorBehavior..ctor(BehaviorData obj, ResourceBank resBank) in c:\Projects\ARPGProj\trunk\ARPG\ARPGGame\Behaviors\Enemies\CasterActorBehavior.cs:line 93
   at ARPGGame.WorldItemBehaviors.BehaviorFactory.ProduceActorBehavior(String id, BehaviorData param) in c:\Projects\ARPGProj\trunk\ARPG\ARPGGame\Behaviors\BehaviorFactory.cs:line 142
   at TiltedEngine.WorldObjects.WorldObjectProducers.ActorType.Produce(Vector2 pos) in c:\Projects\ARPGProj\trunk\Tilted Engine\TiltedEngine\WorldObjects\WorldObjectProducers\ActorType.cs:line 54
   at TiltedEngine.WorldLoader.LoadActors(SObject save, WorldNode world, Vector2 offset) in c:\Projects\ARPGProj\trunk\Tilted Engine\TiltedEngine\WorldLoader.cs:line 320
   at ARPGGame.LevelList.LoadLevel(WorldNode world, WorldDrawer worldDrawer, String level, SObject save) in c:\Projects\ARPGProj\trunk\ARPG\ARPGGame\LevelList.cs:line 200
   at ARPGGame.GameBase.ClearLevel() in c:\Projects\ARPGProj\trunk\ARPG\ARPGGame\GameBase.cs:line 537
   at ARPGGame.GameBase.Update(Int32 ms) in c:\Projects\ARPGProj\trunk\ARPG\ARPGGame\GameBase.cs:line 748
   at ARPGGame.ARPGGame.OnUpdateFrame(FrameEventArgs e) in c:\Projects\ARPGProj\trunk\ARPG\ARPGGame\Program.cs:line 691
   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:\Projects\ARPGProj\trunk\ARPG\ARPGGame\Program.cs:line 206
------

Thanks!

Hipshot

  • Developer
  • Posts: 455
  • Level Designer
    • View Profile
Re: Help debugging!
« Reply #1 on: January 08, 2014, 10:59:24 PM »
Post the level, the folder with all assets.

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: Help debugging!
« Reply #2 on: January 09, 2014, 04:24:40 PM »
You're missing a parameter for one of the skills in an enemy with the caster behavior, probably a sound or projectile.