check your map's actual txt file. A typo in where the unit was placed can cause this error.
On 3/2/2015 5:08 PM, garrett knight wrote:
hi allI'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 259at Ian.Unit.GetTBName() in C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 253at Ian.Unit.GetName() in C:\Data\Recent\Games\TacticalBattle\Unit.cs:line 246at Ian.MapBase.GetTileAnnounceText(Int32 x, Int32 y, String prefix, Boolean speakCoords) in C:\Data\Recent\Games\TacticalBattle\MapBase.cs:line 141at 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 103at Ian.MapBase.MoveReview(Int32 x, Int32 y) in C:\Data\Recent\Games\TacticalBattle\MapBase.cs:line 98at Ian.MapBase.HandleMoveReview(IHaveGameInput ent) in C:\Data\Recent\Games\TacticalBattle\MapBase.cs:line 63at Ian.TBHM.HandleMoveReview(IHaveGameInput ent) in C:\Data\Recent\Games\TacticalBattle\TBHelperMethods.cs:line 1234at Ian.MapEditor.Process(TBGlobal ent) in C:\Data\Recent\Games\TacticalBattle\TBStates\MapEditor.cs:line 86at Ian.SceneMachine`1.Process(T ent) in C:\Data\Recent\Games\GameEngine\SceneMachine.cs:line 50at Ian.TBGlobal.ProcessScene() in C:\Data\Recent\Games\TacticalBattle\TBGlobal.cs:line 73at Ian.GL.InnerSingleLoop(IHaveGameEngineStuff ent) in C:\Data\Recent\Games\GameEngine\GameLoop.cs:line 189at Ian.GL.RunSingleLoop(IHaveGameEngineStuff ent) in C:\Data\Recent\Games\GameEngine\GameLoop.cs:line 119at Ian.GameWindow.RunGameLoop(Boolean keyPressed) in C:\Data\Recent\Games\GameEngine\GameWindow.cs:line 126at Ian.GameWindow.GameLoopTimer_Tick(Object sender, EventArgs e) in C:\Data\Recent\Games\GameEngine\GameWindow.cs:line 266at 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 ---------------------------