[ModSDK] gltf collision with space in name fails to load.

gruzzob shared this bug 2 months ago
Not a Bug

Attempting to add a collision object to a model asset where the collision object filename was exported with a space in it causes the collision to fail to load. It complains that it cannot find the .bin file, but all the space in the reported filename have been replaced by %20.

Renaming the file does not fix this, as the path to the bin file appears to be baked in to the .gltf file.


(image not mine, but does show the relevant validation error, as well as all the relevant files/assets)

image

Replies (1)

photo
1

Hello gruzzob,


Does this issue still occurs for you? Could you please provide a new image and if possible, example .gltf file?


Kind Regards,

Bartosz

Keen Software House

photo
1

Hi Bartosz.

Sorry about the missing image, I think its an issue pasting on to the support site from discord.

Here's a freshly generated one:

2364399df9928f2ffd7172ff67d9c4bc


Yes it still happens, and I have attached a zip file containing the .gltf file used above, as well as its accompanying .bin file, and the .blend used to generate the example model (Blender 4.4.1, VRAGE Tools 0.3.0)

(Attempting to attach the gltf file directly resulted in this error, hence the zip file:)ddf59ea9d6bbaeebab2dced9c793be6e


Thanks,

gruzzob

photo
1

Hello gruzzob,


This is expected behaviour. When exporting collision file to .gltf, Blender creates both .gltf and .bin files. Uploading this files to the Editor with a space in name causes them to be replaced by "%20" which is how it is reading the file name. However, that name differs from the actual file name thus an error appears.

Re-exporting the files without the space in name causes them to be correctly detected by the Editor.

It is generally considered a good practice to not use space in your files' names.

As such, I am closing this thread. If you experience any other issues with the Game or the Editor, don't hesitate to report it.


Kind Regards,

Bartosz

Keen Software House

photo
Leave a Comment
 
Attach a file
Access denied