tyfon7 / UIFixes

Small QOL fixes for SPTarkov
MIT License
8 stars 1 forks source link

Cannot exit inventory after opening an item panel #3

Closed schkuromi closed 3 months ago

schkuromi commented 3 months ago

UI Fixes version: 1.3.0

It worked fine for the first few times, but when I went to view an item mid-raid, it showed a slightly different menu and locked my entire screen. I cannot change tabs in the inventory, or exit it anymore.

Image of the weird item menu: image It happened on the first one I opened, and I checked another item to see if it occured again. They cannot be closed.

Error that appeared in the console:

[Error  : Unity Log] FormatException: Input string was not in a correct format.
Stack trace:
System.Number.ParseSingle (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Single.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Single.Parse (System.String s) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
UIFixes.ItemPanelPatches+FormatValuesPatch.Postfix (EFT.UI.CompactCharacteristicPanel __instance, TMPro.TextMeshProUGUI ___ValueText) (at <889614f9924e469c8e45029e65b7a70b>:0)
(wrapper dynamic-method) EFT.UI.CompactCharacteristicPanel.DMD<EFT.UI.CompactCharacteristicPanel::SetValues>(EFT.UI.CompactCharacteristicPanel)
EFT.UI.CompactCharacteristicPanel.CompareWith (ItemAttributeClass attribute) (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemSpecificationPanel.smethod_1[T] (GClass3078`2[T,U] viewList, System.Collections.Generic.IReadOnlyCollection`1[T] changedList) (at <448e567fc8c849f8a66327014c6f134c>:0)
(wrapper dynamic-method) EFT.UI.ItemSpecificationPanel.DMD<EFT.UI.ItemSpecificationPanel::method_6>(EFT.UI.ItemSpecificationPanel,EFT.InventoryLogic.Item)
EFT.UI.ItemSpecificationPanel.method_14 () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemSpecificationPanel.method_8 () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemSpecificationPanel.Close () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.InfoWindow.Close () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemUiContext.method_17 () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemUiContext.CloseAllWindows () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemsPanel+Struct910.MoveNext () (at <448e567fc8c849f8a66327014c6f134c>:0)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.GetResult () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
DrakiaXYZ.LootRadius.Patches.LootPanelOpenPatch+<PatchPostfix>d__9.MoveNext () (at <43b14b7ca52145578473983ddbd9f585>:0)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <ca21460feb9c47d0ac337b9893474cc6>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Class358:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()

[Error  : Unity Log] FormatException: Input string was not in a correct format.
Stack trace:
System.Number.ParseSingle (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Single.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Single.Parse (System.String s) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
UIFixes.ItemPanelPatches+FormatValuesPatch.Postfix (EFT.UI.CompactCharacteristicPanel __instance, TMPro.TextMeshProUGUI ___ValueText) (at <889614f9924e469c8e45029e65b7a70b>:0)
(wrapper dynamic-method) EFT.UI.CompactCharacteristicPanel.DMD<EFT.UI.CompactCharacteristicPanel::SetValues>(EFT.UI.CompactCharacteristicPanel)
EFT.UI.CompactCharacteristicPanel.CompareWith (ItemAttributeClass attribute) (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemSpecificationPanel.smethod_1[T] (GClass3078`2[T,U] viewList, System.Collections.Generic.IReadOnlyCollection`1[T] changedList) (at <448e567fc8c849f8a66327014c6f134c>:0)
(wrapper dynamic-method) EFT.UI.ItemSpecificationPanel.DMD<EFT.UI.ItemSpecificationPanel::method_6>(EFT.UI.ItemSpecificationPanel,EFT.InventoryLogic.Item)
EFT.UI.ItemSpecificationPanel.method_14 () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemSpecificationPanel.method_8 () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemSpecificationPanel.Close () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.InfoWindow.Close () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemUiContext.method_17 () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemUiContext.CloseAllWindows () (at <448e567fc8c849f8a66327014c6f134c>:0)
EFT.UI.ItemsPanel+Struct910.MoveNext () (at <448e567fc8c849f8a66327014c6f134c>:0)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.TaskAwaiter.GetResult () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
DrakiaXYZ.LootRadius.Patches.LootPanelOpenPatch+<PatchPostfix>d__9.MoveNext () (at <43b14b7ca52145578473983ddbd9f585>:0)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <ca21460feb9c47d0ac337b9893474cc6>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Class358:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()

Client Mods Loaded:

plugins
│   AmandsGraphics.dll
│   AmandsSense.dll
│   BossNotifier.dll
│   CactusPie.RamCleanerInterval.dll
│   ChooChoo-TraderModding.dll
│   DrakiaXYZ-BigBrain.dll
│   DrakiaXYZ-LootRadius.dll
│   DrakiaXYZ-QuickMoveToContainer.dll
│   DrakiaXYZ-SearchOpenContainers.dll
│   DrakiaXYZ-TaskListFixes.dll
│   dvize.PIRM.dll
│   Endurance.dll
│   Epi-Pause.dll
│   FOVFix.dll
│   FuckYouBeta.dll
│   HandsAreNotBusy.dll
│   IcyClawz.CustomInteractions.dll
│   IcyClawz.ItemAttributeFix.dll
│   IcyClawz.MagazineInspector.dll
│   IcyClawz.MunitionsExpert.dll
│   InspectionlessMalfs.dll
│   InventoryOrganizingFeatures.dll
│   Kaeno-TraderScrolling.dll
│   MaxDura.dll
│   notGreg.ScopeTweaks.dll
│   RaiRai.HiddenCaches.dll
│   RaiRai.UnrestrictedPlates.dll
│   ReachExtender.dll
│   SAIN.dll
│   skwizzy.LootingBots.dll
│   Solarint-HeadshotDamageRedirect.dll
│   SPTQuestingBots.dll
│   Terkoiz.FlareEventNotifier.dll
│   Terkoiz.Skipper.dll
│   ThatsLit-Release.dll
│   Tyfon.UIFixes.dll
│   Tyrian-Radar.dll
│   TYR_DeClutterer.dll
│   TYR_DeHazardifier.dll
│   VAI-NRTP.dll
│   VCQLQuestZones.dll
│   Wara-ModdingStatsHelper.dll
│   WTT-RogueJustice.dll
│   WTT-RogueJusticeVoiceAdder.dll
│   ZeroingQOL.dll   
│
│   DrakiaXYZ-QuestTracker           
│   DrakiaXYZ-Waypoints           
│   dvize.BackdoorBandit       
│   dvize.Donuts               
│   kmyuhkyuk-EFTApi           
│   kmyuhkyuk-GamePanelHUD               
│   LootValue       
│   MoreCheckmarks       
│   QuickWeaponRackAccess       
│   RaidOverhaul           
│   SAIN                  
│   SamSWAT.HeliCrash.ArysReloaded
│   SamSWAT.ReflexSightsRework
│   StashSearch    
│   TechHappy-MinimapSender

Full output log for reference, errors occured starting on line 3043 FullLogOutput.log

schkuromi commented 3 months ago

After some testing, it appears to be the same items every time.

FullLogOutput - Copy 1.log FullLogOutput - Copy 2.log

Extra output logs in case they are needed.

EDIT: Also occurs outside of raid, also the same items.

tyfon7 commented 3 months ago

Thanks for this detailed report! Foolishly using Parse and not TryParse in certain situations. Publishing fix now.