yustar
Greenhorn
I'm using Monogame framework and Visual Studio for Mac to compile Arial spritefont to XNB format by following this tutorial: https://docs.monogame.net/articles/content/adding_ttf_fonts.html.
Everything seem to be OK, but when I use Content Patcher to patch, the game couldn't load new font and throw following error.
Hope someone could help me with this problem.
Everything seem to be OK, but when I use Content Patcher to patch, the game couldn't load new font and throw following error.
Hope someone could help me with this problem.
Code:
[14:23:03 ERROR Content Patcher] Mod crashed when loading asset 'Fonts/SmallFont'. SMAPI will use the default asset instead. Error details:
StardewModdingAPI.Framework.Exceptions.SContentLoadException: The content manager failed loading content asset 'assets/Fonts/SmallFont' from SMAPI/avx.cp_vietnamesetranslation. ---> Microsoft.Xna.Framework.Content.ContentLoadException: Could not find ContentTypeReader Type. Please ensure the name of the Assembly that contains the Type matches the assembly in the full type name: Microsoft.Xna.Framework.Content.ListReader`1[[System.Char, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] (Microsoft.Xna.Framework.Content.ListReader`1[[System.Char, System.Private.CoreLib]])
at Microsoft.Xna.Framework.Content.ContentTypeReaderManager.LoadAssetReaders (Microsoft.Xna.Framework.Content.ContentReader reader) <0x15f0f49f0 + 0x017a6> in <filename unknown>:0
at Microsoft.Xna.Framework.Content.ContentReader.InitializeTypeReaders () <0x15f0f4630 + 0x000b5> in <filename unknown>:0
at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T] () <0x15f0f45a0 + 0x0001c> in <filename unknown>:0
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T] (System.String assetName, System.Action`1 recordDisposableObject) <0x15f0ed680 + 0x0026d> in <filename unknown>:0
at StardewModdingAPI.Framework.ContentManagers.BaseContentManager.RawLoad[T] (System.String assetName, Boolean useCache) <0x15f0ebfd0 + 0x00114> in <filename unknown>:0
at StardewModdingAPI.Framework.ContentManagers.ModContentManager.Load[T] (System.String assetName, LanguageCode language, Boolean useCache) <0x176258f00 + 0x004ed> in <filename unknown>:0
--- End of inner exception stack trace ---
at StardewModdingAPI.Framework.ContentPack.LoadAsset[T] (System.String key) <0x176258800 + 0x00086> in <filename unknown>:0
at ContentPatcher.Framework.Patches.LoadPatch.Load[T] (IAssetInfo asset) <0x1763ef2b0 + 0x00070> in <filename unknown>:0
at ContentPatcher.Framework.PatchManager.Load[T] (IAssetInfo asset) <0x1763ee5d0 + 0x00789> in <filename unknown>:0
at StardewModdingAPI.Framework.ContentManagers.GameContentManager.ApplyLoader[T] (IAssetInfo info) <0x15edbf5c0 + 0x0054d> in <filename unknown>:0