cabarius / ToyBox

Toy Box is a cute and playful mod with 500+ cheats, tweaks and quality of life improvements for Pathfinder: WoTR. It was created in the spirit of Bag of Tricks & Cheat Menu but with a little different focus . It of a powerful and convenient way to edit the party composition, stats, search and add Feats, Features, Items, etc. to party members.
MIT License
168 stars 110 forks source link

InvalidCastException when using Search 'n Pick breaks ToyBox #1123

Closed derickso closed 3 months ago

derickso commented 3 months ago

Description of the bug

When searching in Search 'n Pick I receive an error after typing a few characters

System.InvalidCastException: Specified cast is not valid. at ModKit.UI+Browser2[Definition,Item].Update (System.Collections.Generic.IEnumerable1[T] current, System.Func1[TResult] available, System.Boolean search, System.Func2[T,TResult] searchKey, System.Func2[T,TResult] sortKeys, System.Func2[T,TResult] definition, System.Func2[T,TResult] collator) [0x001fa] in <c56f66d5db9848958c95a8c6a885c052>:0 at ModKit.UI+Browser2[Definition,Item].OnGUI (System.Collections.Generic.IEnumerable1[T] current, System.Func1[TResult] available, System.Func2[T,TResult] definition, System.Func2[T,TResult] searchKey, System.Func2[T,TResult] sortKeys, System.Action onHeaderGUI, System.Action2[T1,T2] onRowGUI, System.Action2[T1,T2] onDetailGUI, System.Int32 indent, System.Boolean showDiv, System.Boolean search, System.Single titleMinWidth, System.Single titleMaxWidth, System.String searchTextPassedFromParent, System.Boolean showItemDiv, System.Func2[T,TResult] collator, System.Action2[T1,T2] customNotRowGUI) [0x0002f] in <c56f66d5db9848958c95a8c6a885c052>:0 at ToyBox.SearchAndPick.OnGUI () [0x00442] in <c56f66d5db9848958c95a8c6a885c052>:0 at ModKit.UI.TabBar (System.Int32& selected, System.Action header, System.Action2[T1,T2] onChangeTab, System.Func`2[T,TResult] titleFormatter, ModKit.NamedAction[] actions) [0x000b2] in :0 at ToyBox.Main.OnGUI (UnityModManagerNet.UnityModManager+ModEntry modEntry) [0x00158] in :0

Steps To Reproduce

  1. Open Toybox Settings
  2. Click Search 'n Pick
  3. Let blueprints load
  4. Try typing in search parameter on right

Expected Behavior

It works

Log Files

No response

Save File

No response

Screenshots

screen

Settings

No response

Toybox Version

1.5.42

Operating System

Windows 11

What game are you using Toybox on?

Pathfinder Wrath of the Righteous

Game Version

Latest

Anything else?

Resetting worked once, then I tried search again and it broke and continues to stay broken even after resetting.

xADDBx commented 3 months ago

Try version 1.6.0. If it still occurs I'd need a log

derickso commented 3 months ago

No errors anymore, thanks.