Content Patcher

Content Patcher

378k Downloads

[Content Patcher] beta: error loading building assets

Pathoschild opened this issue · 2 comments

commented

A content pack which edits building textures shows this error:

Mod crashed when loading asset 'Buildings\houses'. SMAPI will use the default asset instead. Error details:
StardewModdingAPI.Framework.Exceptions.SContentLoadException: The content manager failed loading content asset 'assets\houses.png'. ---> System.NotSupportedException: Can't load a PNG file while the game is drawing to the screen. Make sure you load content outside the draw loop.
   bei StardewModdingAPI.Framework.SContentManager.PremultiplyTransparency(Texture2D texture) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SContentManager.cs:Zeile 601.
   bei StardewModdingAPI.Framework.SContentManager.Load[T](String assetName, LanguageCode language) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SContentManager.cs:Zeile 162.
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei StardewModdingAPI.Framework.SContentManager.Load[T](String assetName, LanguageCode language) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SContentManager.cs:Zeile 175.
   bei StardewModdingAPI.Framework.SContentManager.Load[T](String assetName) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SContentManager.cs:Zeile 111.
   bei StardewModdingAPI.Framework.ModHelpers.ContentHelper.Load[T](String key, ContentSource source) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\ModHelpers\ContentHelper.cs:Zeile 132.
   bei StardewModdingAPI.Framework.ContentPack.LoadAsset[T](String key) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\ContentPack.cs:Zeile 67.
   bei ContentPatcher.Framework.ManagedContentPack.Load[T](String key)
   bei ContentPatcher.Framework.Patches.LoadPatch.Load[T](IAssetInfo asset)
   bei ContentPatcher.Framework.PatchManager.Load[T](IAssetInfo asset)
   bei StardewModdingAPI.Framework.SContentManager.ApplyLoader[T](IAssetInfo info) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SContentManager.cs:Zeile 505.

See:

Reported by GreenPeach on Discord.

commented

Based on testing with AmelieItsMe#3097 on Discord and beatriizcsantos on Nexus, this only happens when not playing in English.

commented

Fixed in develop for the upcoming Content Patcher 1.4-beta.4.