codecat / godot-tbloader

TrenchBroom Loader for Godot 4. (Alternative to Qodot)
MIT License
232 stars 29 forks source link

`build_meshes()` at runtime does not load materials #88

Open greenfox1505 opened 10 months ago

greenfox1505 commented 10 months ago

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 commented 10 months ago

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

codecat commented 10 months ago

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!

greenfox1505 commented 10 months ago

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