Beta version 1.4.3 Gives Model Load Error (SOLVED)

I’ve tried building my game in 1.4.3

However I’m seeing the error:

/assets/gfx/models/hideout/research_terminal.dae
The file ‘/assets/gfx/models/hideout/research_terminal.dae’ contains invalid data, likely produced by a buggy exporter.

Screenshot of error:

The last version I tried which built the game was beta 1.3.3, which builds with no errors.

Welcome back to the forum! I’ll let @JCash provide a recommendation, but I think maybe you could try and import the file to for instance blender and then re-export the file.

2 Likes

I’m not sure what makes it say that.
Could you check the editor logs for an exception, or share the file with me?

2 Likes

Here’s the error:

java.io.IOException: Failed to load Collada scene: null
at com.dynamo.bob.pipeline.ColladaUtil.loadModels(ColladaUtil.java:1455)
at editor.model_loader$load_collada_scene.invokeStatic(model_loader.clj:38)
at editor.model_loader$load_scene_internal.invokeStatic(model_loader.clj:69)
at editor.model_loader$load_scene.invokeStatic(model_loader.clj:73)
at editor.model_scene$fn__67187.invokeStatic(model_scene.clj:316)
at editor.model_scene$fn__67187.invoke(model_scene.clj:316)
...

Not sure if others will be rejected later in the build process if something similar happens with them. It does pass many models before this one, so hopefully not.

Here’s the specific model with the issue: research_terminal.zip (2.8 KB)

2 Likes

During the update I missed handling .dae files with no normals.
A PR is coming.

5 Likes

Your dae file produces the same error in version 1.4.2.
Screenshot 2023-02-20 at 15.52.41

@britzl’s suggestion worked: I imported the file into Blender and re-exported it - problem gone.

Thanks for the responses. Luckily bouncing it through blender as described fixed it and there were no other models with the issue. However, I’m now seeing a strange white rectangle which resizes with the window in the bottom left of the screen:

Also wasn’t an issue in 1.3.3 I’ll have to poke around and see if I can find out what’s causing it…

Could it be a gui node? They have roughly that size and color when you create a new node afaik

1 Like

Thanks, this led me to fix it. I was using a “root” node under which all the GUI elements were grouped under which showed the white square. For some reason it was toggled to being visible (not sure how I hid it before beta 1.4.3 but it became visible now.) but unchecking Visible fixed it :slight_smile:

Well 1.33 is quite old so I’m not surprised something has changed, but glad it was easy

1 Like