Description
Describe the bug
When using the Godot server executable to run with a HTerrain node and the Classic4 shader it will fail trying to load the packed_tex files.
Recreating hterrain_server_terrain-server_1 ... done
Attaching to hterrain_server_terrain-server_1
terrain-server_1 | ERROR: Failed loading resource: res://texture_data/HterrainServer_slot0_albedo_bump.packed_tex. Make sure resources have been imported by opening the project in the editor at least once.
terrain-server_1 | at: _load (core/io/resource_loader.cpp:270)
terrain-server_1 | ERROR: res://HterrainServer.tscn:6 - Parse Error: [ext_resource] referenced nonexistent resource at: res://texture_data/HterrainServer_slot0_albedo_bump.packed_tex
terrain-server_1 | at: poll (scene/resources/resource_format_text.cpp:412)
terrain-server_1 | ERROR: Failed to load resource 'res://HterrainServer.tscn'.
terrain-server_1 | at: load (core/io/resource_loader.cpp:206)
terrain-server_1 | ERROR: Failed loading resource: res://HterrainServer.tscn. Make sure resources have been imported by opening the project in the editor at least once.
terrain-server_1 | at: _load (core/io/resource_loader.cpp:270)
terrain-server_1 | ERROR: Failed loading scene: res://HterrainServer.tscn
terrain-server_1 | at: start (main/main.cpp:2011)
terrain-server_1 | WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
terrain-server_1 | at: cleanup (core/object.cpp:2064)
terrain-server_1 | ERROR: Resources still in use at exit (run with --verbose for details).
terrain-server_1 | at: clear (core/resource.cpp:417)
terrain-server_1 | ERROR: There are still MemoryPool allocs in use at exit!
terrain-server_1 | at: cleanup (core/pool_vector.cpp:63)
terrain-server_1 | Godot Engine v3.4.2.stable.mono.official.45eaa2daf - https://godotengine.org
terrain-server_1 |
terrain-server_1 | Mono: Log file is: '/root/.local/share/godot/app_userdata/hterrain_server/mono/mono_logs/2022-01-18_22.42.46_1.log'
hterrain_server_terrain-server_1 exited with code 0
resource_format_text.cpp line 412: https://github.com/godotengine/godot/blob/3.4.2-stable/scene/resources/resource_format_text.cpp#L412
resource_loader.cpp line 206: https://github.com/godotengine/godot/blob/3.4.2-stable/core/io/resource_loader.cpp#L206
resource_loader.cpp line 270: https://github.com/godotengine/godot/blob/3.4.2-stable/core/io/resource_loader.cpp#L270
To Reproduce
Steps to reproduce the behavior:
A minimum project to reproduce is here: https://github.com/kruffin/hterrain_server
Basically, add textures to the terrain node and the packed_tex files will not be loaded by the server binary.
Expected behavior
Would be nice to know if this is the expected outcome or how to identify why it's failing to load. I did take a look a the packed texture importer (https://github.com/Zylann/godot_heightmap_plugin/blob/1.5.2/addons/zylann.hterrain/tools/packed_textures/packed_texture_importer.gd) but am wondering if custom importers are broken in Godot Server. Line 270 of resource_loader.cpp makes me think it doesn't have the custom importer, but am not sure.
Screenshots
N/A
Environment
- OS: Linux
- Graphics card: AMD Radeon RX 6700 XT
- Godot version: 3.4.2
- Plugin version: 1.5.2
- Renderer used: GLES3