I have no idea what I'm doing. Usually, I'm a lurker, so I apologize if any formatting is wrong. Whenever I look up a crop or inventory item, an error pops up. This is the error that SMAPI spits out: [09:40:12 ERROR LookupAnything] Something went wrong looking that up: System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt32(String value) at StardewValley.BluePrint..ctor(String name) at Pathoschild.Stardew.LookupAnything.DataParser.<>c.<GetRecipes>b__7_7(BuildingRecipeData entry) in \source\_Stardew\Mods.Pathoschild\LookupAnything\DataParser.cs:line 313 at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x) at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext() at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) at Pathoschild.Stardew.LookupAnything.DataParser.GetRecipes(Metadata metadata, IReflectionHelper reflectionHelper, ITranslationHelper translations) in \source\_Stardew\Mods.Pathoschild\LookupAnything\DataParser.cs:line 311 at Pathoschild.Stardew.LookupAnything.GameHelper.<>c__DisplayClass3_0.<ResetCache>b__1() in \source\_Stardew\Mods.Pathoschild\LookupAnything\GameHelper.cs:line 50 at System.Lazy`1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy`1.get_Value() at Pathoschild.Stardew.LookupAnything.GameHelper.GetRecipesForIngredient(Item item) in \source\_Stardew\Mods.Pathoschild\LookupAnything\GameHelper.cs:line 0 at Pathoschild.Stardew.LookupAnything.Framework.Subjects.ItemSubject.<GetData>d__7.MoveNext() in \source\_Stardew\Mods.Pathoschild\LookupAnything\Framework\Subjects\ItemSubject.cs:line 311 at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) at Pathoschild.Stardew.LookupAnything.Components.LookupMenu..ctor(ISubject subject, Metadata metadata, IMonitor monitor, IReflectionHelper reflectionHelper, Int32 scroll, Boolean showDebugFields, Action`1 showNewPage) in \source\_Stardew\Mods.Pathoschild\LookupAnything\Components\LookupMenu.cs:line 93 at Pathoschild.Stardew.LookupAnything.LookupAnythingMod.<>c__DisplayClass15_0.<ShowLookupFor>b__0() in \source\_Stardew\Mods.Pathoschild\LookupAnything\LookupAnythingMod.cs:line 279 at Pathoschild.Stardew.Common.CommonHelper.InterceptErrors(IMonitor monitor, String verb, String detailedVerb, Action action, Action`1 onError) in \source\_Stardew\Mods.Pathoschild\Common\CommonHelper.cs:line 214 The other things, like NPCs, animals, and trees work fine, but it's just inventory items, as far as I can tell. Help?
@SummerChu It looks like an issue with your content files, possibly due to a bad XNB mod. Can you try resetting your content files?
Lookup Anything 1.17 is now available! Changes in this release: Updated to SMAPI 2.0. Switched to SMAPI unified controller/keyboard/mouse bindings in config.json. Switched to SMAPI update checks. Fixed corrupted object data causing all lookups to fail. Fixed basic bat kills not counted towards Adventure Quest goal. Fixed HideOnKeyUp mode not returning to previous menu on close. Improved translations thanks to Dorian/d0x7 (German) and TaelFayre (Portuguese). Feedback, bug reports, and suggestions are welcome here!
Hi, Lookup Anything mod works really well and helped me to save time. But when I try to use Lookup Anything mod with Categorize Chest mod, it shows me an error message. When I delete Categorize Chest mod, the mod works well. Is there any way I can use both mods? p.s. Thank you for making this mod! This mod is popular among Korean stardew valley farmers! [SMAPI] ChestsAnywhere failed on entry and might not work correctly. Technical details: Newtonsoft.Json.JsonSerializationException: Error converting value "B" to type 'StardewModdingAPI.SButton[]'. Path 'Controls.Toggle', line 5, position 17. ---> System.ArgumentException: Could not cast or convert from System.String to StardewModdingAPI.SButton[]. at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable(Object value, Type initialType, Type targetType) at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast(Object initialValue, CultureInfo culture, Type targetType) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) --- End of inner exception stack trace --- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at StardewModdingAPI.Framework.Serialisation.JsonHelper.ReadJsonFile[TModel](String fullPath) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\Serialisation\JsonHelper.cs:line 58 at StardewModdingAPI.Framework.ModHelpers.ModHelper.ReadJsonFile[TModel](String path) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\ModHelpers\ModHelper.cs:line 105 at StardewModdingAPI.Framework.ModHelpers.ModHelper.ReadConfig[TConfig]() in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\ModHelpers\ModHelper.cs:line 80 at Pathoschild.Stardew.ChestsAnywhere.ChestsAnywhereMod.Entry(IModHelper helper) in C:\source\_Stardew\Mods.Pathoschild\ChestsAnywhere\ChestsAnywhereMod.cs:line 50 at StardewModdingAPI.Program.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, SContentManager contentManager) in C:\source\_Stardew\SMAPI\src\SMAPI\Program.cs:line 808 [SMAPI] LookupAnything failed on entry and might not work correctly. Technical details: Newtonsoft.Json.JsonSerializationException: Error converting value "F1" to type 'StardewModdingAPI.SButton[]'. Path 'Controls.ToggleLookup', line 7, position 24. ---> System.ArgumentException: Could not cast or convert from System.String to StardewModdingAPI.SButton[]. at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable(Object value, Type initialType, Type targetType) at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast(Object initialValue, CultureInfo culture, Type targetType) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) --- End of inner exception stack trace --- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at StardewModdingAPI.Framework.Serialisation.JsonHelper.ReadJsonFile[TModel](String fullPath) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\Serialisation\JsonHelper.cs:line 58 at StardewModdingAPI.Framework.ModHelpers.ModHelper.ReadJsonFile[TModel](String path) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\ModHelpers\ModHelper.cs:line 105 at StardewModdingAPI.Framework.ModHelpers.ModHelper.ReadConfig[TConfig]() in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\ModHelpers\ModHelper.cs:line 80 at Pathoschild.Stardew.LookupAnything.LookupAnythingMod.Entry(IModHelper helper) in C:\source\_Stardew\Mods.Pathoschild\LookupAnything\LookupAnythingMod.cs:line 68 at StardewModdingAPI.Program.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, SContentManager contentManager) in C:\source\_Stardew\SMAPI\src\SMAPI\Program.cs:line 808
@geenie_c Glad you like it! The mods should work fine together. Can you try it again, then post your full SMAPI log and attach a zip of your entire Mods folder?
N/m, had an issue like the guy above but starting with fresh mod folders for everything seems to have solved the issue for now at least.
Thanks for all your help. Afraid you might overwork yourself or burn yourself out, considering how you seem to be on the ball, everywhere.
Hi, I'm having trouble getting the mod to run, possibly in conjunction with other mods. Here is a link to the full SMAPI log: https://log.smapi.io/DXv0rJBs Awesome looking mod btw, Thanks
@EmeraldRaccoon Your config.json file for Lookup Anything is broken. You can either delete it and it'll recreate the default one, or post it here and I'll tell you which part is broken.
Thanks for replying so quick. So i've deleted the mod and re-extracted it. Everything seems to be working now, I think where the problem might have sprung from is trying to edit the config.json file. I'm using an xbox controller so I wanted F1 to be replaced with clicking the right analogue stick in. I checked the instructions on these pages but obviously did something wrong (maybe formatting?) https://github.com/Pathoschild/StardewMods/tree/stable/LookupAnything#configure https://stardewvalleywiki.com/Modding:Key_bindings Would you be able to tell me how my config.json file text look for my xbox configuartion above? Cheers!
Thank you, that's worked first time! I think I tried adding to the F1 rather than replacing it, probably used the incorrect format. Thanks again
Hello. I received error messages while trying to use Look Up Anything with the machines from Custom Farming Redux by Platonymous (https://www.nexusmods.com/stardewvalley/mods/991) Is there anyway for this to work in conjunction with those machines? Log located at : https://log.smapi.io/FUcTcRes
I have downloaded the new version several times and reinstalled it, but each time I get the following error message: https://log.smapi.io/Re0deUrG I hope you can help, because this is one of my favourite mods...
@Almonda One of the mod files is missing. If you're using a mod manager, try installing the mod directly. If you're using an unzip tool you installed, try using the built-in Windows unzipper instead (a few third-party unzip tools do weird things).
Lookup Anything 1.18 is now available! Release notes: Updated to SMAPI 2.4. Added support for furniture. Added support for custom machines and objects from Custom Farming Redux 2.3.6+. Fixed debug key working when a menu is open. Fixed typo in debug interface. Improved Chinese and German translations. (Thanks to yuwenlan and Husky110!)