godot-tbloader icon indicating copy to clipboard operation
godot-tbloader copied to clipboard

`build_meshes()` at runtime does not load materials

Open greenfox1505 opened this issue 2 years ago • 3 comments
trafficstars

Running build_meshes() in editor works fine. Building and loading a level with editor+debugger version normally works fine. But trying to load a level in an export build only loads textures, not materials.

greenfox1505 avatar Aug 09 '23 07:08 greenfox1505

I think it's something around these? Maybe the FileAccess thing doesn't work quite the same on exports? https://github.com/codecat/godot-tbloader/blob/84a891f6499439c079833b8cf1c8335e8fec0c29/src/builder.cpp#L606C15-L606C42 or https://github.com/codecat/godot-tbloader/blob/84a891f6499439c079833b8cf1c8335e8fec0c29/src/builder.cpp#L584C1-L596

greenfox1505 avatar Aug 09 '23 07:08 greenfox1505

Do you have the ability to see the log at runtime? Maybe it says something.

You might be right though - FileAcces might only look at files on disk instead of the resource bundle!

codecat avatar Aug 09 '23 07:08 codecat

There isn't any log-spam that isn't my own logging.

greenfox1505 avatar Aug 09 '23 08:08 greenfox1505