Hello, Check your unit file and see if you have the team= flag specified. I think that could be what's causing it... On 3/2/15, garrett knight <wolfofthewind48@xxxxxxxxx> wrote: > hi all > I've been working on a map pack for a wile now but i haven't gotten > verry far. The reason being that when I move over one of my units in the > map editor, I get an error and the game crashes. I'm not sure why i'm > getting this error, but any help in solving the error would be much > appreciated so i can get back to making my map pack and enjoying it. > Thanks once again. > --------------------------- > > --------------------------- > An error has occurred. Please notify the game creator of this error. > You can copy the entire error to your clipboard by pressing control + > C. Then you can paste it into an email by pressing control + V and send > the email to support@xxxxxxxxxxxxxxxxxxx. > System.Collections.Generic.KeyNotFoundException: The given key was not > present in the dictionary. > > at System.Collections.Generic.Dictionary`2.get_Item(TKey key) > > at Ian.Unit.GetTeamName() in > C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 259 > > at Ian.Unit.GetTBName() in > C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 253 > > at Ian.Unit.GetName() in > C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 246 > > at Ian.MapBase.GetTileAnnounceText(Int32 x, Int32 y, String prefix, > Boolean speakCoords) in > C:\Data\Recent\Games\TacticalBattle\MapBase.cs:line 141 > > at Ian.MapBase.AnnounceTile(Int32 x, Int32 y, Boolean playSound, > String prefix, Boolean speakCoords, Boolean soundOverSpeech, Int32 end) > in C:\Data\Recent\Games\TacticalBattle\MapBase.cs:line 103 > > at Ian.MapBase.MoveReview(Int32 x, Int32 y) in > C:\Data\Recent\Games\TacticalBattle\MapBase.cs:line 98 > > at Ian.MapBase.HandleMoveReview(IHaveGameInput ent) in > C:\Data\Recent\Games\TacticalBattle\MapBase.cs:line 63 > > at Ian.TBHM.HandleMoveReview(IHaveGameInput ent) in > C:\Data\Recent\Games\TacticalBattle\TBHelperMethods.cs:line 1234 > > at Ian.MapEditor.Process(TBGlobal ent) in > C:\Data\Recent\Games\TacticalBattle\TBStates\MapEditor.cs:line 86 > > at Ian.SceneMachine`1.Process(T ent) in > C:\Data\Recent\Games\GameEngine\SceneMachine.cs:line 50 > > at Ian.TBGlobal.ProcessScene() in > C:\Data\Recent\Games\TacticalBattle\TBGlobal.cs:line 73 > > at Ian.GL.InnerSingleLoop(IHaveGameEngineStuff ent) in > C:\Data\Recent\Games\GameEngine\GameLoop.cs:line 189 > > at Ian.GL.RunSingleLoop(IHaveGameEngineStuff ent) in > C:\Data\Recent\Games\GameEngine\GameLoop.cs:line 119 > > at Ian.GameWindow.RunGameLoop(Boolean keyPressed) in > C:\Data\Recent\Games\GameEngine\GameWindow.cs:line 126 > > at Ian.GameWindow.GameLoopTimer_Tick(Object sender, EventArgs e) in > C:\Data\Recent\Games\GameEngine\GameWindow.cs:line 266 > > at System.Windows.Forms.Timer.OnTick(EventArgs e) > > at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) > > at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 > msg, IntPtr wparam, IntPtr lparam) > --------------------------- > OK > --------------------------- > > > -- -Mew __________ http://www.savethefrogs.com/