Raised This Month: $1944 Target: $400
 486% 

amx_map force case sensitivity?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: UK, Kent
Old 07-19-2020 , 15:21   amx_map force case sensitivity?
Reply With Quote #1

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.
__________________
Thanks,
Terrum.



Last edited by terrum; 07-19-2020 at 15:22.
terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 07-20-2020 , 11:45   Re: amx_map force case sensitivity?
Reply With Quote #2

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.
__________________

Last edited by Gabe Iggy; 07-20-2020 at 11:45.
Gabe Iggy is offline
terrum
AlliedModders Donor
Join Date: Apr 2006
Location: UK, Kent
Old 07-20-2020 , 11:47   Re: amx_map force case sensitivity?
Reply With Quote #3

Quote:
Originally Posted by Gabe Iggy View Post
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!
__________________
Thanks,
Terrum.


terrum is offline
Send a message via AIM to terrum Send a message via MSN to terrum Send a message via Skype™ to terrum
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-20-2020 , 20:03   Re: amx_map force case sensitivity?
Reply With Quote #4

Quote:
Originally Posted by Gabe Iggy View Post
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.
__________________

Last edited by fysiks; 07-20-2020 at 20:06.
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:03.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode