Page 1 of 1

WinPct Crash

PostPosted: Fri Aug 16, 2024 9:36 pm
by Brink
I just downloaded, loaded up the real life mod, and started my first season in 2023. After I sim through the first game, I go to check the Media tab and I get a "The given key 'WinPct' was not present in the dictionary.

************* Exception Text **************
System.Collections.Generic.KeyNotFoundException: The given key 'WinPct' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at DDSCF.Team.get_PowerRanking() in C:\Users\brook\Documents\Projects\DDSCF25\DDSCF-Library\Libraries\Team.cs:line 2742
at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
at System.Linq.EnumerableSorter`1.ComputeMap(TElement[] elements, Int32 count)
at System.Linq.OrderedEnumerable`1.ToList()
at DDSCF_Library.Views.MediaPowerRank.OnInitializedAsync() in C:\Users\brook\Documents\Projects\DDSCF25\DDSCF-Library\Views\MediaPowerRank.razor:line 71
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
at Microsoft.AspNetCore.Components.WebView.WindowsForms.WindowsFormsDispatcher.InvokeAsync(Action workItem)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

I can send my game file too if need be!

Re: WinPct Crash

PostPosted: Sat Aug 17, 2024 5:41 am
by slybelle1
Although I don't know the issue, the same error in the same situation happens without the realworld mod loaded so the issue isn't related, which makes sense since nothing in the realworld mod would have an impact on winning percent. The good news for the developer, easy to recreate as this happens all the time if you sim a week/game then go to media.

Re: WinPct Crash

PostPosted: Sat Aug 17, 2024 8:39 am
by brooks_piggott
Thanks, fixed this for the next build.