jpw1991 / chebs-necromancy

Cheb's Necromancy adds Necromancy to Valheim via craftable wands and structures. Minions will follow you, guard your base, and perform menial tasks.
The Unlicense
10 stars 4 forks source link

Hover error for Skeleton Wand #251

Open Onins opened 6 months ago

Onins commented 6 months ago

There's an error when using this mod with Recipe Description Expansion by Azumatt when we hover the Skeleton Wand item. The error will spam if we hover only the skeleton wand both inventory and crafting. The orb of beckoning is not affected on this, only the wand

[Error : Unity Log] IndexOutOfRangeException: Index was outside the bounds of the array. Stack trace: RecipeDescriptionExpansion.Functions+<>c.b__2_0 (System.String i) (at :0) System.Linq.Enumerable+SelectArrayIterator2[TSource,TResult].MoveNext () (at <a790f10e63dd4341b206460141e07e75>:0) System.String.Join (System.String separator, System.Collections.Generic.IEnumerable1[T] values) (at <834b2ded5dad441e8c7a4287897d63c7>:0) RecipeDescriptionExpansion.Functions.FormatSetName (ItemDrop+ItemData item) (at :0) RecipeDescriptionExpansion.Functions.CustomSetTooltip (ItemDrop+ItemData itemData, ItemDrop+ItemData+SharedData sharedData) (at :0) RecipeDescriptionExpansion.ItemDropItemDataPatch.Postfix (ItemDrop+ItemData item, System.Int32 qualityLevel, System.Boolean crafting, System.String& __result) (at :0) (wrapper dynamic-method) ItemDrop+ItemData.DMD<ItemDrop+ItemData::GetTooltip>(ItemDrop/ItemData,int,bool,single) ItemDrop+ItemData.GetTooltip () (at :0) (wrapper dynamic-method) InventoryGrid.DMD(InventoryGrid,ItemDrop/ItemData,UITooltip) (wrapper dynamic-method) InventoryGrid.DMD(InventoryGrid,Player,ItemDrop/ItemData) (wrapper dynamic-method) InventoryGrid.DMD(InventoryGrid,Inventory,Player,ItemDrop/ItemData) (wrapper dynamic-method) InventoryGui.DMD(InventoryGui,Player) (wrapper dynamic-method) InventoryGui.DMD(InventoryGui)

jpw1991 commented 6 months ago

Hello,

It could be my error if the Skeleton Wand item is somehow problematic or unusually set up. Otherwise the issue likely lies in the RecipeDescriptionExpansion.Functions.FormatSetName function of the other mod.

I asked Azumatt so we'll hopefully know soon.

Onins commented 6 months ago

Thanks for the response, hopefully Azumatt will be able to fix this.

jpw1991 commented 1 month ago

@Onins is this still a problem?