AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   amx_map force case sensitivity? (https://forums.alliedmods.net/showthread.php?t=326136)

terrum 07-19-2020 15:21

amx_map force case sensitivity?
 
My problem is that when, for example, I load a map named 2fort, admins can infact load the map as 2Fort, or 2FORT, which can be problematic for Linux environments (if it's a custom map, a Fast DL enabled server will not be able to download 2Fort.bsp or 2FORT.bsp because they don't exist, so the server must be on 2fort.bsp so that it can download the map).

So, is there a way to force the map to change to the case of which the .bsp file is named when using amx_map? As well as apply this sort of case sensitivity to any other potential commands and/or plugins which handle these sorts of requests.

gabuch2 07-20-2020 11:45

Re: amx_map force case sensitivity?
 
If you use Apache in your FastDL server you can use mod_spelling. I'm sure there's something similar for nginx.

https://httpd.apache.org/docs/curren...d_speling.html

Another alternative is to force your admins to use amx_mapmenu exclusively.

terrum 07-20-2020 11:47

Re: amx_map force case sensitivity?
 
Quote:

Originally Posted by Gabe Iggy (Post 2710910)
If you use Apache in your FastDL server you can use mod_spelling. I'm sure there's something similar for nginx.

https://httpd.apache.org/docs/curren...d_speling.html

Another alternative is to force your admins to use amx_mapmenu exclusively.

Really appreciate the choice of solutions. Thanks a ton! :)

fysiks 07-20-2020 20:03

Re: amx_map force case sensitivity?
 
Quote:

Originally Posted by Gabe Iggy (Post 2710910)
If you use Apache in your FastDL server you can use mod_spelling. I'm sure there's something similar for nginx.

https://httpd.apache.org/docs/curren...d_speling.html

I thought about suggesting that but it will make you download the map with the wrong capitalization meaning that the next time it's changed to with the proper capitalization, it might cause issues (if the client game treats it as case sensitive). I swear I have issues with one map that has a capital letter, basically had to stop using that map. It's been a while since I had that situation so I might be remembering not quite perfectly.

IMO, this is likely a bug in HLDS where it does not properly sanitize the map names before using it for everything.


All times are GMT -4. The time now is 20:59.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.