freezy / VisualPinball.Engine

:video_game: Visual Pinball Engine for Unity
https://docs.visualpinball.org
GNU General Public License v3.0
422 stars 62 forks source link

errors when importing certain vpx tables. #468

Open shntat123 opened 7 months ago

shntat123 commented 7 months ago

NullReferenceException: Object reference not set to an instance of an object VisualPinball.Engine.VPT.Texture.get_Content () (at ./Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.130/VisualPinball.Engine/VPT/Texture.cs:68) VisualPinball.Unity.Editor.VpxImageConverter.WriteAsAsset (VisualPinball.Engine.VPT.Texture texture, System.String folder, System.Boolean skipIfExists) (at ./Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.130/VisualPinball.Unity/VisualPinball.Unity.Editor/Import/VpxImageConverter.cs:47) VisualPinball.Unity.Editor.VpxSceneConverter.ExtractTextures () (at ./Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.130/VisualPinball.Unity/VisualPinball.Unity.Editor/Import/VpxSceneConverter.cs:432) VisualPinball.Unity.Editor.VpxSceneConverter.Convert (System.Boolean applyPatch, System.String tableName) (at ./Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.130/VisualPinball.Unity/VisualPinball.Unity.Editor/Import/VpxSceneConverter.cs:152) VisualPinball.Unity.Editor.VpxImportEngine.ImportIntoScene (VisualPinball.Engine.VPT.Table.FileTableContainer tableContainer, System.String filename, UnityEngine.GameObject parent, System.Boolean applyPatch, System.String tableName, System.Diagnostics.Stopwatch sw, VisualPinball.Unity.Editor.ConvertOptions options) (at ./Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.130/VisualPinball.Unity/VisualPinball.Unity.Editor/Import/VpxImportEngine.cs:47) VisualPinball.Unity.Editor.VpxImportEngine.ImportIntoScene (System.String path, UnityEngine.GameObject parent, System.Boolean applyPatch, System.String tableName, VisualPinball.Unity.Editor.ConvertOptions options) (at ./Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.130/VisualPinball.Unity/VisualPinball.Unity.Editor/Import/VpxImportEngine.cs:34) VisualPinball.Unity.Editor.VpxMenuImporter.ImportVpxIntoScene (UnityEditor.MenuCommand menuCommand) (at ./Library/PackageCache/org.visualpinball.engine.unity@0.0.1-preview.130/VisualPinball.Unity/VisualPinball.Unity.Editor/Import/VpxMenuImporter.cs:44)

shntat123 commented 7 months ago

it won't import when wav sound is present in vpx.