AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [L4D1 AND L4D2] Dynamic Info In Hostname (https://forums.alliedmods.net/showthread.php?t=320336)

Ernecio 12-16-2019 16:16

[L4D1 AND L4D2] Dynamic Info In Hostname
 
[L4D1 AND L4D2] Dynamic Info In Hostname


Sorry, This Plugin has been discontinued

This is a basic Plugin based on the original idea of ​​Players count in hostname by D1maxa and in Server namer by Sheo, but unlike these plugins this version can show: Difficulty, HostName and Player Counter in the main name of the server, withot extra configs file (Only Autoxec autocreated by default). this plugin not show game modes or other values ​​in the server name.

Description:
This plugin has three operating modes which can show basic information about the current difficulty on the server, server name and player counter, the plugin updates the information in real time (It also depends on the speed of the steam master server update ), for example: [Advanced] My Awesome Server [8/10]

(This plugin has only been designed for coop game mode and therefore only tested in coop mode)

Convars:

PHP Code:

// Enables/Disables The Plugin. 0 = Plugin OFF, 1 = Plugin ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_hostname_enable "1"

// Name of the server to be used
// -
// Default: "HostName"
l4d_hostname_data "HostName"

// Select HostName Format Modes.
// 1 = Show: Difficulty, HostName And Player Counter.
// 2 = Show: Difficulty And HostName.
// 3 = Show: HostName And Player Counter.
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "3.000000"
l4d_hostname_modes "1" 

Known Bugs:
If the name of the server is changed by external sources then the format established by the plugin will be lost, to return to its normality only wait for a change in the difficulty or connected players

Installation:

1 - Click "Get Plugin" and put the l4d_dynamic_info_in_hostname.smx file into your server \addons\sourcemod\plugins\ folder.
2 - The first time the plugin is executed, it will create a configuration file called: l4d_dynamic_info_in_hostname.cfg in the path: cfg\sourcemod \ forlder.
change the parameter (HostName) in this file: l4d_hostname_data "HostName" to your prefer, example: l4d_hostname_data "My Awesome Server"
3 - (Optional) In order for the plugin to work correctly at the server startup it is necessary to have: sv_pausable 0 in server.cfg
Otherwise the server will go into hibernation and the default name assigned in server.cfg will be displayed (the plugin will display information until a player connects or changes the difficulty if its set sv_pausable 1)

(Note the Web compiler is configured for SM 1.10)

Marttt 12-16-2019 21:06

Re: [L4D1 AND L4D2] Dynamic Info In Hostname
 
Nice, I made a similar plugin a while ago, never thought about the difficulty settings, good catch.

Mr. Man 06-15-2021 19:58

Re: [L4D1 AND L4D2] Dynamic Info In Hostname
 
Please disregard - error was fixed by update the command buffer overflow fix by Silver which addresses CVARS not being executed due to excess.

thewintersoldier97 11-29-2021 06:42

Re: [L4D1 AND L4D2] Dynamic Info In Hostname
 
Got this on error log recently, call stack trace to 3 different plugins tho...
PHP Code:

L 11/29/2021 17:50:05Info (map "uf1_boulevard") (file "d:\games\server\l4d2\left4dead2\addons\sourcemod\logs\errors_20211129.log")
L 11/29/2021 17:50:05: [SMException reportedClient 2 is not connected
L 11
/29/2021 17:50:05: [SMBlamingl4d_dynamic_info_in_hostname.smx
L 11
/29/2021 17:50:05: [SMCall stack trace:
L 11/29/2021 17:50:05: [SM]   [0IsFakeClient
L 11
/29/2021 17:50:05: [SM]   [1Line 138, /home/forums/content/files/2/9/4/4/4/9/178775.attach::OnClientDisconnect
L 11
/29/2021 17:50:05: [SMException reportedClient 2 is not connected
L 11
/29/2021 17:50:05: [SMBlamingl4d_reservetheserver.smx
L 11
/29/2021 17:50:05: [SMCall stack trace:
L 11/29/2021 17:50:05: [SM]   [0IsFakeClient
L 11
/29/2021 17:50:05: [SM]   [1Line 60, /home/forums/content/files/5/6/0/8/6/179531.attach::OnClientDisconnect
L 11
/29/2021 17:50:05: [SMException reportedClient 2 is not connected
L 11
/29/2021 17:50:05: [SMBlamingl4d_superversus_no_survivor_management.smx
L 11
/29/2021 17:50:05: [SMCall stack trace:
L 11/29/2021 17:50:05: [SM]   [0IsFakeClient
L 11
/29/2021 17:50:05: [SM]   [1Line 639D:\GAMES\SERVER\L4D2\left4dead2\addons\sourcemod\scripting\l4d_superversus_no_survivor_management.sp::OnClientDisconnect
L 11
/29/2021 17:50:05: [SMException reportedClient 2 is not connected
L 11
/29/2021 17:50:05: [SMBlaming_[L4D2]Survivor_Legs.smx
L 11
/29/2021 17:50:05: [SMCall stack trace:
L 11/29/2021 17:50:05: [SM]   [0IsFakeClient
L 11
/29/2021 17:50:05: [SM]   [1Line 381, /home/forums/content/files/2/5/7/8/4/1/183748.attach::OnClientDisconnect 


NoroHime 12-03-2021 21:10

Re: [L4D1 AND L4D2] Dynamic Info In Hostname
 
looks using AutoExecConfig only support english character,im disappoint


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

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