[L4D1 & L4D2] Hostname - Display Map Name [v1.0.2 | 16-March-2021]
11 Attachment(s)
About
I made this plugin because I usually access my favorite [L4D]/[L4D2] servers through the "openserverbrowser" console command and, despite knowing the dev name of the vanilla campaigns (c*m*), some customs maps don't follow this name pattern for its chapters, Also, the chapter name doesn't appear through the Steam Group servers list, or through the Friend List, only the map name is displayed, Making it difficult to identify which chapter the map is currently running. Description This plugin will add the map name to the hostname, based on a KeyValue file located at data folder. It was made mainly for [L4D]/[L4D2] game because the campaign (map-chapter) style, but should also work with other games. Example My hostname is "Mart Server" and I'm currently playing in the "c1m1" map. The name "Dead Center [1-5]" was added for the "c1m1" map at the KeyValue file. And the hostname format is set to {hostname} | {mapname}. When the plugin runs, it will turn my hostname into "Mart Server | Dead Center [1-5]" Cvars A configuration file named "hostname_mapdisplay.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder. PHP Code:
PHP Code:
Spoiler
Notes
To Do
Thank you!
Related Plugins Post Reply
Installation
|
Re: [ANY] Hostname - Display Map Name
if set to Simplified Chinese, it will not be displayed. can fix??
|
Re: [ANY] Hostname - Display Map Name [v1.0.1 | 20-November-2019]
Thanks for the report viaxiamu,
It seems that when a plugin try to read a Unicode character from the .cfg file, the cvar fails to read. I simulate that changing the "hostname" in the server .cfg and in my case it still didn't work. So I added a new config in the KeyValue (.txt) file where you can set the hostname. It shall work now. If you have any questions, PM me. |
Re: [ANY] Hostname - Display Map Name [v1.0.1 | 20-November-2019]
This plugin does not work for CSGO right out of the box, small changes are required. Just wondering if you could update the plugin to skip game mode if it does not exist or use a manual mapping for CSGO?
E.g. Aim_MAP = Aim MG_MAP = Multi Game Thank you. |
Re: [ANY] Hostname - Display Map Name [v1.0.1 | 20-November-2019]
1 Attachment(s)
Hi,
Here's a L4D1 mapdisplay.txt save you a few hours work ... has a lot of maps - most popular ones.... |
Re: [L4D1 & L4D2] Hostname - Display Map Name [v1.0.1 | 20-November-2019]
2 Attachment(s)
Based on Marttt's and TiTz's this one also includes the following...
Wan Li, Day Break, Fall in Death, The Bloody Moors, Time to Die, SaltHell Park, Heaven Can Wait II, Whispers of Winter, Carried Off, Red Tide, Dead Center: Rebirth, Dead High School, The Grave Outdoors, Salvation Falls, Blood Woods APOCALYPSE 2, Crunch Time, Free Passage, Hopeless, Farewell Chenming, Big Wat, Blackout Basement, No Mercy Apocalypse, Crash Course Apocalypse, Death Toll Apocalypse, Blood Woods Apocalypse, Fatal Freight: Remastered, Gridlock, Dead Center - Christmas Edition, Lockdown DLC, Beldurra, Zengcheng, Freezing Point. I should also mention that "The Grave Outdoors" conflicts with "Dead Military 2". So you decide which one your server has and delete the other one. Edit 1: Added more campaigns Edit 2: Fixed some maps displaying the wrong number. Edit 3: Updated the list to only include tab indents not spaces. |
Re: [L4D1 & L4D2] Hostname - Display Map Name [v1.0.1 | 20-November-2019]
Got his using sm_hostname_mapdisplay_print_cvars command
L 03/15/2022 - 22:59:24: SourceMod error session started L 03/15/2022 - 22:59:24: Info (map "c1m1_hotel") (file "C:\servers\kruffty\left4dead2\addons\sourcem od\logs\errors_20220315.log") L 03/15/2022 - 22:59:24: [SM] Exception reported: Client index 0 is invalid L 03/15/2022 - 22:59:24: [SM] Blaming: hostname_mapdisplay.smx L 03/15/2022 - 22:59:24: [SM] Call stack trace: L 03/15/2022 - 22:59:24: [SM] [0] PrintToChat L 03/15/2022 - 22:59:24: [SM] [1] Line 211, hostname_mapdisplay.sp::AdmCmdReload |
Re: [L4D1 & L4D2] Hostname - Display Map Name [v1.0.1 | 20-November-2019]
Thanks @Krufftys,
I did this plugin a long time ago (one of the first ones) I gonna rewrite it when I have time, for now I updated with a fix for this exception. Code:
1.0.2 (16-March-2021) |
Re: [L4D1 & L4D2] Hostname - Display Map Name [v1.0.2 | 16-March-2021]
1 Attachment(s)
@Marttt here is my hostname_mapdisplay text with 197 custom maps for the next update.
Thanks for the fix. |
Re: [L4D1 & L4D2] Hostname - Display Map Name [v1.0.2 | 16-March-2021]
Marttt the fix is not working not reading hostname_mapdisplay text anymore and it's not making .cfg file anymore
|
All times are GMT -4. The time now is 03:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.