[Content Patcher] Unhandled exception applying patch: Stardew Valley Expanded > Include code/npcs/Scarlett.json > EditImage Portraits/Scarlett. System.InvalidCastException: Can't replace loaded asset of type PyTKLite.ScaledTexture2D with value of type Texture2D. The new type must be compatible to prevent game errors. at StardewModdingAPI.Framework.Content.AssetData`1.ReplaceWith(TValue value) in E:\source\_Stardew\SMAPI\src\SMAPI\Framework\Content\AssetData.cs:line 46 at StardewModdingAPI.Framework.Content.AssetDataForImage.ExtendImage(Int32 minWidth, Int32 minHeight) in E:\source\_Stardew\SMAPI\src\SMAPI\Framework\Content\AssetDataForImage.cs:line 110 at ContentPatcher.Framework.Patches.EditImagePatch.Edit[T](IAssetData asset) in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\Patches\EditImagePatch.cs:line 143 at ContentPatcher.Framework.PatchManager.ApplyEdits[T](ICollection`1 patches, IAssetData asset) in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\PatchManager.cs:line 617
Hi! The Wizard portrait doesn't change for me, i tried fixing it myself (im not in any way knowlegeable about this stuff, i just wanted to try and see what was wrong myself) and i kinda did it but i still wanted to give a heads up. It might also just be me.
In the "content" thingy didn't appear the wizard with any name so i just added him following Marlon's code thing and that seemed to work. Although i didn't test it enough to see if i did fully fix it or just managed to give him one pretty portrait expression lol.
does this need pytk? or cp only works fine, pytk is buggy, Portraiture doesnt work for me either, i have all the required mods installed but it comes out zoomed in.
26 comments
When I try talking to Gunther he shows up as his old portraits instead of the modded ones. Anyway to fix this :(?
[Content Patcher] Unhandled exception applying patch: Stardew Valley Expanded > Include code/npcs/Scarlett.json > EditImage Portraits/Scarlett.
System.InvalidCastException: Can't replace loaded asset of type PyTKLite.ScaledTexture2D with value of type Texture2D. The new type must be compatible to prevent game errors.
at StardewModdingAPI.Framework.Content.AssetData`1.ReplaceWith(TValue value) in E:\source\_Stardew\SMAPI\src\SMAPI\Framework\Content\AssetData.cs:line 46
at StardewModdingAPI.Framework.Content.AssetDataForImage.ExtendImage(Int32 minWidth, Int32 minHeight) in E:\source\_Stardew\SMAPI\src\SMAPI\Framework\Content\AssetDataForImage.cs:line 110
at ContentPatcher.Framework.Patches.EditImagePatch.Edit[T](IAssetData asset) in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\Patches\EditImagePatch.cs:line 143
at ContentPatcher.Framework.PatchManager.ApplyEdits[T](ICollection`1 patches, IAssetData asset) in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\PatchManager.cs:line 617
In the "content" thingy didn't appear the wizard with any name so i just added him following Marlon's code thing and that seemed to work. Although i didn't test it enough to see if i did fully fix it or just managed to give him one pretty portrait expression lol.
I need help!!!!!!!
can you send a screenshot of your mods folder?