Open benloh opened 2 years ago
In GitLab by @daveseah on Sep 7, 2022, 07:16
This might be relevant: the sprite loader uses the manifest file that's autogenerated by the AssetServer code. The autogenerator scans the directory for files with particular extensions; for sprites this is .json and .png.
There is a rudimentary filter to avoid sending duplicates entries. The filter code is pretty crude, based on my examination of a handful of .json files as I didn't have an official reference for their JSON format, and I think there is actually a check to not send a .png file that also has a .json file.
This is all on the server side in the ursys codebase.
If you see console errors like this:
and
The issue is usually caused by having a spritesheet with the same name. e.g. in the sprites directory there are both:
Not sure if this is an asset loader / asset manager issue or something else.
The workaround is to remove the *.json file if it's not being used, or to make sure you don't have two files with the same name.