Mods / RasterizeSvgCrashFix

Tags: #Tweak
Author: SiiMeR
Side: Both
Created: Sep 28th at 5:00 PM
Last modified: Sep 28th at 5:01 PM
Downloads: 578
Follow Unfollow 0

Latest release (for Vintage Story 1.20.12, outdated):
rasterizesvgfix_4.0.0.zip  1-click install


Sometimes, the client can get into a broken state where some SVGs are unable to be loaded. Clearing the cache nor reinstalling seems to be 100% consistent in fixing this. I have made a patch to ignore the exception and just return the contents of gear.svg

 

System.ArgumentNullException: Value cannot be null. (Parameter 'Asset Data is null. Is the asset loaded?')
at Vintagestory.Client.NoObf.SvgLoader.rasterizeSvg(IAsset svgAsset, Int32 textureWidth, Int32 textureHeight, Int32 width, Int32 height, Nullable`1 color) in VintagestoryLib\Client\ClientPlatform\SvgLoader.cs:line 154
at Vintagestory.Client.NoObf.SvgLoader.DrawSvg(IAsset svgAsset, ImageSurface intoSurface, Matrix matrix, Int32 posx, Int32 posy, Int32 width, Int32 height, Nullable`1 color) in VintagestoryLib\Client\ClientPlatform\SvgLoader.cs:line 74
at Vintagestory.Client.NoObf.GuiAPI.DrawSvg(IAsset svgAsset, ImageSurface intoSurface, Matrix matrix, Int32 posx, Int32 posy, Int32 width, Int32 height, Nullable`1 color) in VintagestoryLib\Client\API\GuiAPI.cs:line 58
at Vintagestory.GameContent.WaypointMapLayer.<>c__DisplayClass18_1.<.ctor>b__2(Context ctx, Int32 x, Int32 y, Single w, Single h, Double[] rgba) in VSEssentials\Systems\WorldMap\WaypointLayer\WaypointMapLayer.cs:line 118
at Vintagestory.API.Client.IconUtil.DrawIconInt(Context cr, String type, Int32 x, Int32 y, Single width, Single height, Double[] rgba) in VintagestoryApi\Client\UI\IconUtil.cs:line 121
at Vintagestory.API.Client.IconUtil.DrawIcon(Context cr, String type, Double x, Double y, Double width, Double height, Double[] rgba) in VintagestoryApi\Client\UI\IconUtil.cs:line 104

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
4.0.0 rasterizesvgfix 578 Sep 28th at 5:01 PM rasterizesvgfix_4.0.0.zip 1-click install

* First release


0 Comments (oldest first | newest first)

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом