HLDS and resources with spaces in the filepath Created 1 week ago2024-10-22 20:13:06 UTC by arc arc

Created 1 week ago2024-10-22 20:13:06 UTC by arc arc

Posted 1 week ago2024-10-22 20:13:06 UTC Post #349272
Is there any way to deal with this as a server operator?

If a map contains a resource with a space in the filepath, the server cannot serve the file.

example:
server wants to send "models\foomap\foo model.mdl"

expected behavior: server sends "models\foomap\foo model.mdl" to client, then the client receives "foo model.mdl" and connects

actual behavior: server tries to send "models\foomap\foo " then the client times out after failing to receive nonexistent file "foo "

obviously as a mapper the answer is "don't do that" lol, but what do I do as a server op aside from removing maps that use "broken" resources?
Posted 1 week ago2024-10-22 21:07:32 UTC Post #349273
You could use a hex editor and replace the spaces with something else, and then rename the resources accordingly. If you do, make sure you rename the bsp so people don't get errors about mismatching versions of the bsp
Oskar Potatis Oskar Potatis🦔
You must be logged in to post a response.