Open MegaPiggy opened 3 weeks ago
Subtitle with the dimensions of 296x89, not getting created.
Here's an example
The logs say it errors here.
Should create the sprite for the subtitle
ArgumentException: Could not create sprite (0, 0, 296, 97) from a 296x89 texture. Stacktrace: UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit, System.UInt32 extrude, UnityEngine.SpriteMeshType meshType, UnityEngine.Vector4 border, System.Boolean generateFallbackPhysicsShape) UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit, System.UInt32 extrude, UnityEngine.SpriteMeshType meshType, UnityEngine.Vector4 border) UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit, System.UInt32 extrude, UnityEngine.SpriteMeshType meshType) UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit, System.UInt32 extrude) UnityEngine.Sprite.Create (UnityEngine.Texture2D texture, UnityEngine.Rect rect, UnityEngine.Vector2 pivot, System.Single pixelsPerUnit) NewHorizons.Handlers.SubtitlesHandler.AddSubtitle (OWML.Common.IModBehaviour mod, System.String filepath) (at NewHorizons/Handlers/SubtitlesHandler.cs:107) NewHorizons.Handlers.SubtitlesHandler.AddSubtitles () (at NewHorizons/Handlers/SubtitlesHandler.cs:86) NewHorizons.Handlers.SubtitlesHandler.Start () (at NewHorizons/Handlers/SubtitlesHandler.cs:77)
What Happened?
Subtitle with the dimensions of 296x89, not getting created.
Here's an example![brokenSubtitle](https://github.com/Outer-Wilds-New-Horizons/new-horizons/assets/34462599/a1500699-be9d-4617-90f7-25ce52dc032d)
The logs say it errors here.![image](https://github.com/Outer-Wilds-New-Horizons/new-horizons/assets/34462599/cd26df5c-66db-4a01-b7c7-ea29e2829061)
What was supposed to happen?
Should create the sprite for the subtitle
Logs