Raised This Month: $51 Target: $400
 12% 

Alternative End Round Sounds v2.3b - [ Updated : 22 dec 2007 ]


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-07-2007 , 17:02   Re: Alternative End Round Sounds v2.3 - [ Updated : 2007/10/29 ]
Reply With Quote #111

Set 'erc_random_precache' cvar to 0. ( will disable this feature )

It's a mistake. I've set by default 1 instead 0 in the .sma file.

For more information concerning this cvar, check the first post.

Also, please stop to send mp each time. No need to do that. ;)
__________________

Last edited by Arkshine; 12-07-2007 at 17:06.
Arkshine is offline
valeriy
New Member
Join Date: Oct 2007
Old 12-07-2007 , 17:13   Re: Alternative End Round Sounds v2.3 - [ Updated : 2007/10/29 ]
Reply With Quote #112

where do i type that in my console in the game?
i press ~? then type amx_erc_random_precache 0?
valeriy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-07-2007 , 17:40   Re: Alternative End Round Sounds v2.3 - [ Updated : 2007/10/29 ]
Reply With Quote #113

erc_random_precache is a cvar.

Put in your amxx.cfg file : erc_random_precache 0 ; restart your server.
__________________
Arkshine is offline
Michael_Jim
Member
Join Date: Apr 2005
Location: Germany
Old 12-18-2007 , 06:42   Re: Alternative End Round Sounds v2.3 - [ Updated : 2007/10/29 ]
Reply With Quote #114

Hi,

i've set in my amxx.cfg
Code:
// End Round Sound
ers_enabled 1
ers_player_toggle 1
erc_time_ads 120
erc_random_precache 0
But in my logs i can find:
Code:
L 12/18/2007 - 06:30:01: [alt_end_round_sound.amxx] ---
L 12/18/2007 - 06:30:01: [alt_end_round_sound.amxx] Loading File: "addons/amxmodx/configs/roundsound.ini"
L 12/18/2007 - 06:30:01: [alt_end_round_sound.amxx] ---
L 12/18/2007 - 06:30:01: [alt_end_round_sound.amxx] [ Loading 1 CTs Sounds ]
L 12/18/2007 - 06:30:01: [alt_end_round_sound.amxx]    - sound/misc/ctwinnar3.wav
L 12/18/2007 - 06:30:01: [alt_end_round_sound.amxx] ---
L 12/18/2007 - 06:30:01: [alt_end_round_sound.amxx] [ Loading 1 Ts Sounds ]
L 12/18/2007 - 06:30:01: [alt_end_round_sound.amxx]    - sound/misc/twinnar3.wav
L 12/18/2007 - 06:30:01: [alt_end_round_sound.amxx] ---
but sometimes it's working:
Code:
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx] ---
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx] Loading File: "addons/amxmodx/configs/roundsound.ini"
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx] ---
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx] [ Loading 3 CTs Sounds ]
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx]    - sound/misc/ctwinnar2.wav
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx]    - sound/misc/ctwinnar3.wav
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx]    - sound/misc/ctwinnar4.wav
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx] ---
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx] [ Loading 3 Ts Sounds ]
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx]    - sound/misc/twinnar.wav
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx]    - sound/misc/twinnar2.wav
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx]    - sound/misc/twinnar3.wav
L 12/17/2007 - 23:57:56: [alt_end_round_sound.amxx] ---
I want always all sounds. Is it a configuration mistake or a bug from the plugin?

Michael_Jim
Michael_Jim is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-18-2007 , 09:30   Re: Alternative End Round Sounds v2.3 - [ Updated : 2007/10/29 ]
Reply With Quote #115

Not really a bug. By default, erc_random_precache is set to 1 in the plugin but it's a mistake. ( I will set to 0 in the next release ). It loads 1 sound per team at the first start of server because this cvar is registered (and set to 1 ) before precaching the sounds and amxx.cfg file is executed after. That's why the value '0' is not taken at the first start of server ( of after a crash ).

Well, it's a known issue and I will fixed it. Thanks.
__________________
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-19-2007 , 02:18   Re: Alternative End Round Sounds v2.3a - [ Updated : 19-11-2007 ]
Reply With Quote #116

Updated.
v2.3a - [ 19-11-2007 ]
(+) Added compatibility for Amxx 1.7x.
(!) Now 'erc_random_precache' cvar is set to 0 by default.
(!) Fixed. At the first start of server, value from 'erc_random_precache' cvar from a config file was not read.
(!) Some others minors changes.

When online compiler will be up-to-date ( for Amxx 1.8.x ) and if you are running under Amxx 1.7x, you will have to compile plugin locally under an Amxx 1.7x compiler.
Anyway, compiled plugins for both versions are included in the package. ( Amxx 1.7x -> alt_end_round_sounds[old].amxx )

@tabularasa : Sorry for the wait.
__________________

Last edited by Arkshine; 12-19-2007 at 02:21.
Arkshine is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 12-19-2007 , 13:15   Re: Alternative End Round Sounds v2.3a - [ Updated : 19-11-2007 ]
Reply With Quote #117

Kompleted german translation for the new version:
Code:
[de]
ERS_CMD_DISABLED            =  Dieser Befehl wurde durch einen Admin !tabgeschaltet!n!
ERS_SOUND_DISABLED          =  Sounds !tabgeschaltet!n! Du solltest nun keine Endroundsounds mehr hoeren.
ERS_SOUND_ENABLED           =  Sounds !taktiviert!n! Du solltest nun Endroundsounds hoeren.
ERS_DISPLAY_ADS             =  Schreibe !t%s!n um die Endroundsounds fuer dich an/ab zu schalten.

ERS_LOG_LOADING             =  Lade Datei: "%s"
ERS_LOG_UNKNOW_EXTENSION    =  Fehler - Unbekannter Dateityp: "%s"
ERS_LOG_INEXISTENT_FILE     =  Fehler - Datei fehlt: "%s"
ERS_LOG_NO_TEAM_SOUND       =  Fehler - Du musst ein Team angeben ("T" oder "CT") fuer diesen Sound: "%s"
ERS_LOG_NO_FILES_FOUND      =  Keine Dateien gefunden.
__________________

Mordekay is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-19-2007 , 13:38   Re: Alternative End Round Sounds v2.3a - [ Updated : 19-11-2007 ]
Reply With Quote #118

You're right. Thanks. Package has been updated again with proper credits.
__________________
Arkshine is offline
nWkclub
Zero Posts
Join Date: Dec 2007
Old 12-20-2007 , 01:42   Re: Alternative End Round Sounds v2.3a - [ Updated : 19-11-2007 ]
Reply With Quote #119

Hello.. Sorry for my bad eanglish...
i want ask yuo, maby you can help me ;)
why don`t wotk, what i do bad? maby yuo can repair ir?

my sma.
in directory sound/misc i have all sound.. but work only 4 first sound :/

if u can help me in forum o just whrite me to skype: Walniukstis


Code:
 
#include <amxmodx>
public plugin_init() 
{ 
register_plugin("RoundSound","1.0","PaintLancer")
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin") 
}
public t_win()
{
new rand = random_num(0,2)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk misc/twinnar")
case 1: client_cmd(0,"spk misc/twinnar2")
case 2: client_cmd(0,"spk misc/twinnar3")
case 3: client_cmd(0,"spk misc/twinnar4")
case 4: client_cmd(0,"spk misc/twinnar5")
case 5: client_cmd(0,"spk misc/twinnar21")
case 6: client_cmd(0,"spk misc/twinnar22")
case 7: client_cmd(0,"spk misc/twinnar23")
case 8: client_cmd(0,"spk misc/twinnar24")
case 9: client_cmd(0,"spk misc/twinnar25")
case 10: client_cmd(0,"spk misc/twinnar26")
case 12: client_cmd(0,"spk misc/twinnar28")
case 13: client_cmd(0,"spk misc/twinnar29")
case 14: client_cmd(0,"spk misc/twinnar30")
case 15: client_cmd(0,"spk misc/twinnar31")
case 16: client_cmd(0,"spk misc/twinnar32")
case 17: client_cmd(0,"spk misc/twinnar33")
case 18: client_cmd(0,"spk misc/twinnar34")
case 19: client_cmd(0,"spk misc/twinnar35")
case 20: client_cmd(0,"spk misc/twinnar36")
case 21: client_cmd(0,"spk misc/twinnar37")
case 22: client_cmd(0,"spk misc/twinnar38")
case 23: client_cmd(0,"spk misc/twinnar39")
 
}
return PLUGIN_CONTINUE
}
public ct_win()
{
new rand = random_num(0,2)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk misc/ctwinnar2")
case 1: client_cmd(0,"spk misc/ctwinnar3")
case 2: client_cmd(0,"spk misc/ctwinnar4")
case 3: client_cmd(0,"spk misc/ctwinnar5")
case 4: client_cmd(0,"spk misc/ctwinnar6")
case 5: client_cmd(0,"spk misc/ctwinnar21")
case 6: client_cmd(0,"spk misc/ctwinnar22")
case 7: client_cmd(0,"spk misc/ctwinnar23")
case 8: client_cmd(0,"spk misc/ctwinnar24")
case 9: client_cmd(0,"spk misc/ctwinnar25")
case 10: client_cmd(0,"spk misc/ctwinnar26")
case 11: client_cmd(0,"spk misc/ctwinnar27")
case 12: client_cmd(0,"spk misc/ctwinnar28")
case 13: client_cmd(0,"spk misc/ctwinnar29")
case 14: client_cmd(0,"spk misc/ctwinnar30")
case 15: client_cmd(0,"spk misc/ctwinnar31")
case 16: client_cmd(0,"spk misc/ctwinnar32")
case 17: client_cmd(0,"spk misc/ctwinnar33")
case 18: client_cmd(0,"spk misc/ctwinnar34")
case 19: client_cmd(0,"spk misc/ctwinnar35")
case 20: client_cmd(0,"spk misc/ctwinnar36")
case 21: client_cmd(0,"spk misc/ctwinnar37")
case 22: client_cmd(0,"spk misc/ctwinnar38")
case 23: client_cmd(0,"spk misc/ctwinnar39")
case 24: client_cmd(0,"spk misc/ctwinnar40")
case 26: client_cmd(0,"spk misc/ctwinnar41")
 
}
return PLUGIN_CONTINUE
}
public plugin_precache() 
{
precache_sound("misc/ctwinnar2.wav")
precache_sound("misc/ctwinnar3.wav")
precache_sound("misc/ctwinnar4.wav")
precache_sound("misc/ctwinnar5.wav")
precache_sound("misc/ctwinnar6.wav")
precache_sound("misc/ctwinnar21.wav")
precache_sound("misc/ctwinnar22.wav")
precache_sound("misc/ctwinnar23.wav")
precache_sound("misc/ctwinnar24.wav")
precache_sound("misc/ctwinnar25.wav")
precache_sound("misc/ctwinnar26.wav")
precache_sound("misc/ctwinnar27.wav")
precache_sound("misc/ctwinnar28.wav")
precache_sound("misc/ctwinnar29.wav")
precache_sound("misc/ctwinnar30.wav")
precache_sound("misc/ctwinnar31.wav")
precache_sound("misc/ctwinnar32.wav")
precache_sound("misc/ctwinnar33.wav")
precache_sound("misc/ctwinnar34.wav")
precache_sound("misc/ctwinnar35.wav")
precache_sound("misc/ctwinnar36.wav")
precache_sound("misc/ctwinnar37.wav")
precache_sound("misc/ctwinnar38.wav")
precache_sound("misc/ctwinnar39.wav")
precache_sound("misc/ctwinnar40.wav")
precache_sound("misc/ctwinnar41.wav")
precache_sound("misc/twinnar.wav")
precache_sound("misc/twinnar2.wav")
precache_sound("misc/twinnar3.wav")
precache_sound("misc/twinnar4.wav")
precache_sound("misc/twinnar5.wav")
precache_sound("misc/twinnar21.wav")
precache_sound("misc/twinnar22.wav")
precache_sound("misc/twinnar23.wav")
precache_sound("misc/twinnar24.wav")
precache_sound("misc/twinnar25.wav")
precache_sound("misc/twinnar26.wav")
precache_sound("misc/twinnar27.wav")
precache_sound("misc/twinnar28.wav")
precache_sound("misc/twinnar29.wav")
precache_sound("misc/twinnar30.wav")
precache_sound("misc/twinnar31.wav")
precache_sound("misc/twinnar32.wav")
precache_sound("misc/twinnar33.wav")
precache_sound("misc/twinnar34.wav")
precache_sound("misc/twinnar35.wav")
precache_sound("misc/twinnar36.wav")
precache_sound("misc/twinnar37.wav")
precache_sound("misc/twinnar38.wav")
precache_sound("misc/twinnar39.wav")
 
return PLUGIN_CONTINUE
}

Last edited by nWkclub; 12-20-2007 at 01:48.
nWkclub is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-20-2007 , 02:06   Re: Alternative End Round Sounds v2.3a - [ Updated : 19-11-2007 ]
Reply With Quote #120

Begins with use my plugin... Check the first post...

Anyway, you forgot to change : random_num(0,2) -> random_num(0,23)
__________________

Last edited by Arkshine; 12-20-2007 at 02:27.
Arkshine 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 08:58.


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