Open Zylann opened 10 months ago
I built and tested the example project attached above with 4.2, and the issue still persists:
Can I get an update on this bug? I don't see how this isn't seen as a serious problem for games with dedicated server infrastructures.
Godot version
4.1.3
System information
Windows 10 64 bits NVIDIA GeForce GTX 1060
Issue description
I have a plugin (HTerrain) that defines a custom resource by inheriting
ResourceFormatLoader
. It can load.hterrain
files. It works when tested in the editor, and it also works when exported as a game. But when exporting with resources in "Server" mode, the resource gets "loaded", but the custom loader's logic seems to never be executed. This causes users with server exports to be unable to use my plugin (https://github.com/Zylann/godot_heightmap_plugin/issues/410).Steps to reproduce
1) Have a custom resource:
2) Have a custom loader for the custom resource (based on the plugin's code, which worked for years):
3) Create an empty file
resource.custom
4) Create a main scene with the following script on the root:
5) Run the project in the editor: observe functions of the resource loader are called, and the
loaded
flag istrue
.6) Enable file logging in Project Settings (check advanced settings, then Debug category)
7) Create a non-server export preset, export the project with debug enabled, run it, and check the logs: observe functions of the resource loader are still called, and the
loaded
flag istrue
, just like when tested in the editor.8) Create a server export preset by choosing
Export as dedicated server
in the dropdown below theResources
tab in export settings. Export, run it, and check the logs: observe functions of the resource loader are NOT called, and theloaded
flag isfalse
. This is not expected.Minimal reproduction project
Project.zip