Finding 3) >> happens with v.0.9.3 Standard and Modpack version
I have the strange behavior that a season can only be played without any errors as long as the game is not closed.
After loading the latest save state, the game can't be continued. Either "no object instance is availabe" anymore or "the key is already available".
This happens by any time of the game (pre season, regular season, after the bowl games, etc.), whenever a save state was loaded and tried to be continued. In the end, no saved files can be used by me, I simply need to start a new game each time I wanna play CT Football Manager.
I had the same behavior with v0.9.2. Not sure what is really going wrong.
CTFM.log with various crashes:
On Continue: 15.04.2022: 18:52 System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at CTFootballManager.Infrastructure.Model.Helpers.GameHelpers.GetRunningPlay(GameDown down) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameHelpers.cs:line 2649
at CTFootballManager.Infrastructure.Model.Helpers.GameSimulationItem.SimulatePlay(GameDown down, Boolean humanSubs, Boolean hurryup) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameSimulationItem.cs:line 344
at CTFootballManager.Infrastructure.Model.Helpers.GameSimulationItem.SimulateDown(GameDown down, Boolean humanSubs, Boolean hurryup) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameSimulationItem.cs:line 275
at CTFootballManager.Infrastructure.Model.Helpers.GameSimulationItem.SimulateGame() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameSimulationItem.cs:line 82
at CTFootballManager.Infrastructure.Model.Helpers.GameHelpers.StartGame(Game game, Boolean saveGameUpdates) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameHelpers.cs:line 425
at CTFootballManager.Infrastructure.Model.Helpers.GameHelpers.SimulateGames(Boolean simulateHumanGame, Boolean saveGameUpdates) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameHelpers.cs:line 443
at CTFootballManager.Infrastructure.Model.Services.SeasonService.SimulateGameTime(Boolean simulateHumanGame, Boolean saveGameUpdates) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Services\SeasonService.cs:line 88
at CTFootballManager.Modules.Menus.ViewModels.GameMenuViewModel.ProgressClicked(String view) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Modules.Menus\ViewModels\GameMenuViewModel.cs:line 386
An item with the same key has already been added.
End of error
---
On Continue: 15.04.2022: 19:06 System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at CTFootballManager.Infrastructure.Model.Helpers.GameHelpers.GetRunningPlay(GameDown down) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameHelpers.cs:line 2649
at CTFootballManager.Infrastructure.Model.Helpers.GameSimulationItem.SimulatePlay(GameDown down, Boolean humanSubs, Boolean hurryup) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameSimulationItem.cs:line 344
at CTFootballManager.Infrastructure.Model.Helpers.GameSimulationItem.SimulateDown(GameDown down, Boolean humanSubs, Boolean hurryup) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameSimulationItem.cs:line 275
at CTFootballManager.Infrastructure.Model.Helpers.GameSimulationItem.SimulateGame() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameSimulationItem.cs:line 82
at CTFootballManager.Infrastructure.Model.Helpers.GameHelpers.StartGame(Game game, Boolean saveGameUpdates) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameHelpers.cs:line 425
at CTFootballManager.Infrastructure.Model.Helpers.GameHelpers.SimulateGames(Boolean simulateHumanGame, Boolean saveGameUpdates) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\GameHelpers.cs:line 443
at CTFootballManager.Infrastructure.Model.Services.SeasonService.SimulateGameTime(Boolean simulateHumanGame, Boolean saveGameUpdates) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Services\SeasonService.cs:line 88
at CTFootballManager.Modules.Menus.ViewModels.GameMenuViewModel.ProgressClicked(String view) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Modules.Menus\ViewModels\GameMenuViewModel.cs:line 386
An item with the same key has already been added.
End of error
---
On Continue: 15.04.2022: 19:13 System.NullReferenceException: Object reference not set to an instance of an object.
at CTFootballManager.Infrastructure.Model.Helpers.CoachHelpers.GetCoachRatingForPosition(Coach coach, Player player) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\CoachHelpers.cs:line 927
at CTFootballManager.Infrastructure.Model.Helpers.PracticeHelpers.UpdatePracticeForPlayer(Player player) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\PracticeHelpers.cs:line 149
at CTFootballManager.Infrastructure.Model.Helpers.PlayerHelpers.UpdatePracticeForPlayers() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\PlayerHelpers.cs:line 240
at CTFootballManager.Infrastructure.Model.Helpers.AIHelpers.SimulateDay() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\AIHelpers.cs:line 59
at CTFootballManager.Modules.Menus.ViewModels.GameMenuViewModel.ProgressClicked(String view) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Modules.Menus\ViewModels\GameMenuViewModel.cs:line 396
Object reference not set to an instance of an object.
End of error
---
On Continue: 15.04.2022: 19:13 System.NullReferenceException: Object reference not set to an instance of an object.
at CTFootballManager.Infrastructure.Model.Helpers.CoachHelpers.GetCoachRatingForPosition(Coach coach, Player player) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\CoachHelpers.cs:line 927
at CTFootballManager.Infrastructure.Model.Helpers.PracticeHelpers.UpdatePracticeForPlayer(Player player) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\PracticeHelpers.cs:line 149
at CTFootballManager.Infrastructure.Model.Helpers.PlayerHelpers.UpdatePracticeForPlayers() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\PlayerHelpers.cs:line 240
at CTFootballManager.Infrastructure.Model.Helpers.AIHelpers.SimulateDay() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\AIHelpers.cs:line 59
at CTFootballManager.Modules.Menus.ViewModels.GameMenuViewModel.ProgressClicked(String view) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Modules.Menus\ViewModels\GameMenuViewModel.cs:line 396
Object reference not set to an instance of an object.
End of error
---
On Continue: 15.04.2022: 19:23 System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at CTFootballManager.Infrastructure.Model.Helpers.PlayerHelpers.GetPlayerOverallRatingForPosition(Player player, PlayerPosition position) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\PlayerHelpers.cs:line 972
at CTFootballManager.Infrastructure.Model.Helpers.RecruitHelpers.<>c__DisplayClass33_0.<GetTeamPositionScore>b__2(Player p) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\RecruitHelpers.cs:line 646
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Linq.Enumerable.Sum(IEnumerable`1 source)
at CTFootballManager.Infrastructure.Model.Helpers.RecruitHelpers.GetTeamPositionScore(PlayerPosition position, Team team, List`1 teamRecruitPlayers) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\RecruitHelpers.cs:line 646
at CTFootballManager.Infrastructure.Model.Helpers.RecruitHelpers.GetOfferScore(Recruit recruit, Team team, PlayerPosition position, OfferType type) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\RecruitHelpers.cs:line 516
at CTFootballManager.Infrastructure.Model.Helpers.RecruitHelpers.<>c__DisplayClass55_0.<GetRecruitsFromScoutingService>b__1(Recruit r) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\RecruitHelpers.cs:line 1609
at System.Collections.Generic.List`1.FindAll(Predicate`1 match)
at CTFootballManager.Infrastructure.Model.CollectionsModel.Recruits.GetElements(Predicate`1 func) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\CollectionsModel\Recruits.cs:line 38
at CTFootballManager.Infrastructure.Model.Helpers.RecruitHelpers.GetRecruitsFromScoutingService(ScoutingService service) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\RecruitHelpers.cs:line 1609
at CTFootballManager.Infrastructure.Model.Helpers.AIHelpers.UpdateScoutingService() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\AIHelpers.cs:line 799
at CTFootballManager.Infrastructure.Model.Helpers.AIHelpers.SimulateDay() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\AIHelpers.cs:line 128
at CTFootballManager.Modules.Menus.ViewModels.GameMenuViewModel.ProgressClicked(String view) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Modules.Menus\ViewModels\GameMenuViewModel.cs:line 396
Collection was modified; enumeration operation may not execute.
End of error
---
On Continue: 22.04.2022: 09:40 System.NullReferenceException: Object reference not set to an instance of an object.
at CTFootballManager.Infrastructure.Model.Helpers.CoachHelpers.GetCoachRatingForPosition(Coach coach, Player player) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\CoachHelpers.cs:line 927
at CTFootballManager.Infrastructure.Model.Helpers.PracticeHelpers.UpdatePracticeForPlayer(Player player) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\PracticeHelpers.cs:line 149
at CTFootballManager.Infrastructure.Model.Helpers.PlayerHelpers.UpdatePracticeForPlayers() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\PlayerHelpers.cs:line 240
at CTFootballManager.Infrastructure.Model.Helpers.AIHelpers.SimulateDay() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\AIHelpers.cs:line 59
at CTFootballManager.Modules.Menus.ViewModels.GameMenuViewModel.ProgressClicked(String view) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Modules.Menus\ViewModels\GameMenuViewModel.cs:line 396
Object reference not set to an instance of an object.
End of error
---
On Continue: 22.04.2022: 09:45 System.NullReferenceException: Object reference not set to an instance of an object.
at CTFootballManager.Infrastructure.Model.Helpers.CoachHelpers.GetCoachRatingForPosition(Coach coach, Player player) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\CoachHelpers.cs:line 927
at CTFootballManager.Infrastructure.Model.Helpers.PracticeHelpers.UpdatePracticeForPlayer(Player player) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\PracticeHelpers.cs:line 149
at CTFootballManager.Infrastructure.Model.Helpers.PlayerHelpers.UpdatePracticeForPlayers() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\PlayerHelpers.cs:line 240
at CTFootballManager.Infrastructure.Model.Helpers.AIHelpers.SimulateDay() in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Infrastructure\Model\Helpers\AIHelpers.cs:line 59
at CTFootballManager.Modules.Menus.ViewModels.GameMenuViewModel.ProgressClicked(String view) in C:\Users\pjank\source\repos\CTFM\CTFootballManager.Modules.Menus\ViewModels\GameMenuViewModel.cs:line 396
Object reference not set to an instance of an object.
End of error