[ModUpdater] Mod crashed on entry and might not work correctly. Technical details: TypeInitializationException: The type initializer for 'ModUpdater.ModUpdaterMod' threw an exception. ---> Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: A. Path 'Name', line 3, position 4. at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments) at Newtonsoft.Json.JsonTextReader.Read() 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 ModUpdater.ModUpdaterMod.ModUpdate() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 68 at ModUpdater.ModUpdaterMod..cctor() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 22 --- End of inner exception stack trace --- at ModUpdater.ModUpdaterMod.Entry(IModHelper helper) in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 303 at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1810
i got this when i started the game and i'm stupid so if anyone knows what's wrong id appreciate it if you told me 😭
[ModUpdater] Mod crashed on entry and might not work correctly. Technical details: TypeInitializationException: The type initializer for 'ModUpdater.ModUpdaterMod' threw an exception. ---> DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\ModUpdater\config.json'. at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path) at System.IO.File.WriteAllText(String path, String contents) at ModUpdater.ModUpdaterMod.ModUpdate() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 35 at ModUpdater.ModUpdaterMod..cctor() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 22 --- End of inner exception stack trace --- at ModUpdater.ModUpdaterMod.Entry(IModHelper helper) in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 303 at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1810
[ModUpdater] Mod crashed on entry and might not work correctly. Technical details:TypeInitializationException: The type initializer for 'ModUpdater.ModUpdaterMod' threw an exception. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: {. Path 'Version', line 5, position 2. at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType) at Newtonsoft.Json.JsonTextReader.ReadAsString() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) 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 ModUpdater.ModUpdaterMod.ModUpdate() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 68 at ModUpdater.ModUpdaterMod..cctor() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 22 --- End of inner exception stack trace --- at ModUpdater.ModUpdaterMod.Entry(IModHelper helper) in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 303 at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1810
I see that this works for some mods, but would anyone be able to get an unofficial version working fully again? It's such a pain to update these mods especially if you have a ton and are on Steam Deck. It'd make my and my friends' lives much easier!
48 comments
[ModUpdater] Mod crashed on entry and might not work correctly. Technical details:
TypeInitializationException: The type initializer for 'ModUpdater.ModUpdaterMod' threw an exception.
---> Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: A. Path 'Name', line 3, position 4.
at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments)
at Newtonsoft.Json.JsonTextReader.Read()
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 ModUpdater.ModUpdaterMod.ModUpdate() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 68
at ModUpdater.ModUpdaterMod..cctor() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 22
--- End of inner exception stack trace ---
at ModUpdater.ModUpdaterMod.Entry(IModHelper helper) in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 303
at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1810
[ModUpdater] Mod crashed on entry and might not work correctly. Technical details:
TypeInitializationException: The type initializer for 'ModUpdater.ModUpdaterMod' threw an exception.
---> DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\ModUpdater\config.json'.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path)
at System.IO.File.WriteAllText(String path, String contents)
at ModUpdater.ModUpdaterMod.ModUpdate() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 35
at ModUpdater.ModUpdaterMod..cctor() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 22
--- End of inner exception stack trace ---
at ModUpdater.ModUpdaterMod.Entry(IModHelper helper) in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 303
at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1810
[ModUpdater] Mod crashed on entry and might not work correctly. Technical details:TypeInitializationException: The type initializer for 'ModUpdater.ModUpdaterMod' threw an exception. ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: {. Path 'Version', line 5, position 2. at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType) at Newtonsoft.Json.JsonTextReader.ReadAsString() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) 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 ModUpdater.ModUpdaterMod.ModUpdate() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 68 at ModUpdater.ModUpdaterMod..cctor() in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 22 --- End of inner exception stack trace --- at ModUpdater.ModUpdaterMod.Entry(IModHelper helper) in D:\Programming\Games\Mods\GitHub\Stardew-Valley-Mods\ModUpdater\ModUpdaterMod.cs:line 303 at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in SMAPI\Framework\SCore.cs:line 1810