Raised This Month: $32 Target: $400
 8% 

[NMRiH] Hostname Waves & Objectives 1.2.1 [2017/11/04]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Plugin ID:
4577
Plugin Version:
1.2.1
Plugin Category:
General Purpose
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Shows the number of wave or objective in the hostname and some game events in the game chat and the server console
    Old 03-31-2015 , 04:24   [NMRiH] Hostname Waves & Objectives 1.2.1 [2017/11/04]
    Reply With Quote #1

    Name: Hostname Waves & Objectives

    Description: Shows the number of wave (and max number of waves for map in the chat if this info was saved to database) or objective in the hostname. Plugin use the value of the CVar hostname.
    For correct work of the plugin, after adding it to the server, you need to reboot the server or change the map (for v.1.2.0 it is necessary only for correct count on Objective maps).
    Name:  2015-03-31_00004.jpg
Views: 4571
Size:  73.4 KB

    Installation: Place compiled plugin (nmrih_hostname_wave_obj.smx) into the plugins folder (../addons/sourcemod/plugins/).
    The plugin variables are stored in the nmrih_hostname_wave_obj.cfg (version < 1.2.0) or nmrih_hwo.cfg (version >= 1.2.0) (folder ../nmrih/cfg/sourcemod/).
    Database with max number of waves for maps waves.ini place into the configs folder (../nmrih/addons/sourcemod/configs/). Needed only for versions 1.0.4 - 1.2.0.

    Console Variables (version < 1.2.0):
    • nmrih_hostname_wave_obj_version - Version of plugin
    • sm_hostname_wave_enable - On/Off Show number of wave in the hostname, in the game chat and/or in the server console(in «Survival» mode)
    • sm_hostname_obj_enable - On/Off Show number of objective in the hostname, in the game chat and/or in the server console(in «Objectives» mode)
    • sm_prefix_waves - Prefix for waves in hostname.
    • sm_prefix_objectives - Prefix for objectives in hostname.
    • sm_hostname_log_enable - On/Off Show notices in the server console
    • sm_hostname_notice_enable - On/Off Show notices in the game chat
    • sm_hostname_max_enable - On/Off Show max number of waves
    Console Variables (version >= 1.2.0):
    • nmrih_hostname_wave_obj_version - Version of plugin
    • sm_hwo_wave - On/Off Show number of wave in the hostname, in the game chat and/or in the server console(in «Survival» mode)
    • sm_hwo_obj - On/Off Show number of objective in the hostname, in the game chat and/or in the server console(in «Objectives» mode)
    • sm_hwo_hostname - Default hostname.
    • sm_hwo_prefix_wav - Prefix for waves in hostname.
    • sm_hwo_prefix_obj - Prefix for objectives in hostname.
    • sm_hwo_log - On/Off Show notices in the server console
    • sm_hwo_notice - On/Off Show notices in the game chat
    • sm_hwo_max - On/Off Show max number of waves
    Changes in 1.0.2:
    • Was deleted as unnecessary CVar sm_default_hostname.
    • Now plugin in the server console reports the current value of CVars hostname, sm_prefix_waves and sm_prefix_objectives.
      If the total size of the CVars hostname and sm_prefix_* more then possible (61 characters + 2 for the number of wave or objective), plugin reports about this (including the sizes and number of exceeded characters).
      Name:  warning.jpg
Views: 3251
Size:  52.6 KB
    • After the last player leaves the server or when the plugin is unloaded, hostname changes to standard
    Changes in 1.0.3 [2016/01/07]:
    • Now server can announce the launch of the new wave/objective and other game events in the chat
      Name:  HWO notices.jpg
Views: 2914
Size:  65.6 KB
    • You can disable messages in the server console about new wave and objective
    Changes in 1.0.4 [2016/04/03]:
    • Now server can show max number of waves (are written in the file waves.ini)
      Name:  20160402231640_1.jpg
Views: 2752
Size:  25.8 KB
    Changes in 1.1.0 [2016/07/11]:
    • Small fixes
    • Now, when you change the values ​​of variables sm_hostname_wave_enable, sm_hostname_obj_enable, sm_prefix_waves or sm_prefix_objectives the server name will be changed at the same time
    • Rewritten using the new syntax (1.7+)
    Changes in 1.1.1 [2016/07/14]:
    • Fixed error "Invalid convar handle 0 (error 4)".
    • Added check the values ​​of variables sm_prefix_waves , sm_prefix_objectives and hostname.
      If the value of these variables will be equal "" (empty string), then the value of these variables will be automatically changed to the following: "|W:", "|O:" and "NMRiH", respectively
    • Probably fixed a bug with incorrect counting of players on the server
    Changes in 1.1.2 [2016/09/14]:
    • Now in chat it is additionally informed, that the last wave has started
    Changes in 1.2.0 [2017/05/26]:
    • Some fixes
    • Now at the start of plugin (if it was started after the start of the waves) it will be correctly determined number of wave
    • Changed CVars names and name of the cfg-file
    • Small optimization of plugin
    Changes in 1.2.1 [2017/11/04]:
    • Now file waves.ini not needed for plugin work
    • Some fixes and optimization
    nmrih_hostname_wave_obj 1.0.2.sp - 182 views - 4.9 KB
    Attached Files
    File Type: sp Get Plugin or Get Source (nmrih_hostname_wave_obj 1.0.3.sp - 1086 views - 8.0 KB)
    File Type: sp Get Plugin or Get Source (nmrih_hostname_wave_obj 1.0.4.sp - 299 views - 9.6 KB)
    File Type: sp Get Plugin or Get Source (nmrih_hostname_wave_obj 1.1.1.sp - 1322 views - 9.0 KB)
    File Type: sp Get Plugin or Get Source (nmrih_hostname_wave_obj 1.2.0.sp - 1158 views - 10.6 KB)
    File Type: ini waves.ini (2.4 KB, 491 views)
    File Type: sp Get Plugin or Get Source (nmrih_hostname_wave_obj 1.2.1.sp - 1401 views - 10.2 KB)
    __________________

    Last edited by Grey83; 11-17-2017 at 09:33. Reason: Now file waves.ini not needed for plugin work. Some fixes.
    Grey83 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 01-06-2016 , 17:33   Re: [NMRiH] Hostname Waves & Objectives 1.0.3
    Reply With Quote #2

    Added new features (You can them switch on/off using variables sm_hostname_notice_enable and sm_hostname_log_enable).
    __________________
    Grey83 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 04-02-2016 , 18:43   Re: [NMRiH] Hostname Waves & Objectives 1.0.4 [2016/04/03]
    Reply With Quote #3

    If file waves.ini didn't exist or this file does not contains the max number of waves to current map, then the plugin will show only the number of wave.

    Attached file waves.ini contains info for 70 maps.
    __________________

    Last edited by Grey83; 04-02-2016 at 18:46.
    Grey83 is offline
    benanhur
    New Member
    Join Date: Jun 2016
    Old 07-10-2016 , 20:47   Re: [NMRiH] Hostname Waves & Objectives 1.0.4 [2016/04/03]
    Reply With Quote #4

    Im unable to install correctly :'(
    benanhur is offline
    alansdit12
    AlliedModders Donor
    Join Date: Nov 2015
    Location: Indonesia
    Old 07-11-2016 , 02:01   Re: [NMRiH] Hostname Waves & Objectives 1.0.4 [2016/04/03]
    Reply With Quote #5

    Yeah, version 1.0.4 failed to compile
    alansdit12 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 07-11-2016 , 07:55   Re: [NMRiH] Hostname Waves & Objectives 1.0.4 [2016/04/03]
    Reply With Quote #6

    benanhur, alansdit12, what version of SM are you use?
    This plugin was compiled with SM1.6.3.4586.
    It works correctly with version 1.8.0.5845 which I'm using on my own servers.
    __________________

    Last edited by Grey83; 07-11-2016 at 08:27.
    Grey83 is offline
    alansdit12
    AlliedModders Donor
    Join Date: Nov 2015
    Location: Indonesia
    Old 07-11-2016 , 10:33   Re: [NMRiH] Hostname Waves & Objectives 1.0.4 [2016/04/03]
    Reply With Quote #7

    Quote:
    Originally Posted by Grey83 View Post
    benanhur, alansdit12, what version of SM are you use?
    This plugin was compiled with SM1.6.3.4586.
    It works correctly with version 1.8.0.5845 which I'm using on my own servers.
    Yeah, I'm using SourceMod 1.7.3 with last update of nmrih gamedata

    I'll try update to SourceMod 1.8 in my server
    alansdit12 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 07-11-2016 , 11:42   Re: [NMRiH] Hostname Waves & Objectives 1.1.0 [2016/07/11]
    Reply With Quote #8

    alansdit12, I just upgraded the plugin, you can use the new version: it rewritten using the new syntax.
    You can compile plugin with SM1.8.0.5919
    __________________

    Last edited by Grey83; 07-11-2016 at 11:54.
    Grey83 is offline
    alansdit12
    AlliedModders Donor
    Join Date: Nov 2015
    Location: Indonesia
    Old 07-12-2016 , 04:08   Re: [NMRiH] Hostname Waves & Objectives 1.1.0 [2016/07/11]
    Reply With Quote #9

    Quote:
    Originally Posted by Grey83 View Post
    alansdit12, I just upgraded the plugin, you can use the new version: it rewritten using the new syntax.
    You can compile plugin with SM1.8.0.5919
    Yeah, nothing error when I'm compiling it.
    But, sorry to say, there is some error

    Code:
    L 07/12/2016 - 15:07:11: [SM] Exception reported: Invalid convar handle 0 (error 4)
    L 07/12/2016 - 15:07:11: [SM] Blaming: hwo.smx()
    L 07/12/2016 - 15:07:11: [SM] Call stack trace:
    L 07/12/2016 - 15:07:11: [SM]   [0] SetConVarString
    L 07/12/2016 - 15:07:11: [SM]   [1] Line 255, nmrih_hostname_wave_obj1.1.0.sp::SetHostname()
    L 07/12/2016 - 15:07:11: [SM]   [2] Line 126, nmrih_hostname_wave_obj1.1.0.sp::OnConVarChanged()
    *Edit : It happen when "sm_hostname_obj_enable" set to 0 in cfg, but when I set it to 1, no error
    *Edit2 : I want this plugin to logs all obj & wave in the chat, but only change hostname for wave

    Last edited by alansdit12; 07-12-2016 at 04:38.
    alansdit12 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 07-12-2016 , 08:24   Re: [NMRiH] Hostname Waves & Objectives 1.1.0 [2016/07/11]
    Reply With Quote #10

    Quote:
    Originally Posted by alansdit12 View Post
    *Edit2 : I want this plugin to logs all obj & wave in the chat, but only change hostname for wave
    If You need only chat messages, then set sm_hostname_notice_enable to '1', sm_hostname_wave_enable and sm_hostname_obj_enable to '0'.
    Quote:
    Originally Posted by alansdit12 View Post
    But, sorry to say, there is some error
    This error shows only once after first server start.
    __________________
    Grey83 is offline
    Reply



    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 19:17.


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