uQuake1 icon indicating copy to clipboard operation
uQuake1 copied to clipboard

Texture has out of range width / height

Open hellstorm102 opened this issue 4 years ago • 0 comments

Texture has out of range width / height UnityEngine.Texture2D:.ctor(Int32, Int32) BSP29map:ReadTextures() (at Assets/Scripts/uQuake1/BSP29map.cs:135) BSP29map:.ctor(String) (at Assets/Scripts/uQuake1/BSP29map.cs:32) GenerateMap:PopulateLevel() (at Assets/Scripts/uQuake1/GenerateMap.cs:26) GenerateMapInEditor:OnInspectorGUI() (at Assets/Scripts/uQuake1/GenerateMap.cs:48) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

UnityException: Failed to create texture because of invalid parameters. UnityEngine.Texture2D.Internal_Create (UnityEngine.Texture2D mono, System.Int32 w, System.Int32 h, System.Int32 mipCount, UnityEngine.Experimental.Rendering.GraphicsFormat format, UnityEngine.Experimental.Rendering.TextureCreationFlags flags, System.IntPtr nativeTex) (at :0) UnityEngine.Texture2D..ctor (System.Int32 width, System.Int32 height, UnityEngine.TextureFormat textureFormat, System.Int32 mipCount, System.Boolean linear, System.IntPtr nativeTex) (at :0) UnityEngine.Texture2D..ctor (System.Int32 width, System.Int32 height) (at :0) BSP29map.ReadTextures () (at Assets/Scripts/uQuake1/BSP29map.cs:135) BSP29map..ctor (System.String filename) (at Assets/Scripts/uQuake1/BSP29map.cs:32) GenerateMap.PopulateLevel () (at Assets/Scripts/uQuake1/GenerateMap.cs:26) GenerateMap+GenerateMapInEditor.OnInspectorGUI () (at Assets/Scripts/uQuake1/GenerateMap.cs:48) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

this happens on map e1m2

hellstorm102 avatar Nov 29 '20 23:11 hellstorm102