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

Sank Sounds (Luke Sankey) (v1.8.4)


Post New Thread Reply   
 
Thread Tools Display Modes
sub
Senior Member
Join Date: Nov 2004
Location: Morristown, New Jersey
Old 12-04-2004 , 23:51  
Reply With Quote #111

do i need a .res>?
sub is offline
Send a message via AIM to sub Send a message via MSN to sub
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 12-05-2004 , 10:03  
Reply With Quote #112

@jusltoco
do u have 600 words or 600 wavs ?
default is 80 words and each word can have 15 wav
=> 80*15 = 1200 wavs

but using 600 words should work

only u need to watch for is:
MAX_KEYWORDS not bigger than 2000
( MAX_RANDOM + 1) * TOK_LENGTH not bigger than 2000

@sub
no, u dont need any res file as this plugs will upload all files defined in your snd-list.cfg
__________________
alias White Panther
karlos is offline
jusltoco
Member
Join Date: Jul 2004
Old 12-05-2004 , 12:52  
Reply With Quote #113

i have 600 wav files and tried to use a word for each one.. this is what i have now and tried what you said but i still get error

Code:
#include <amxmodx>
#include <amxmisc>
#if defined MP3_SUPPORT
#include <engine>
#endif

#define DEBUG 0

#define ACCESS_ADMIN	ADMIN_LEVEL_A

new FILENAME[128]
#define MAX_KEYWORDS	600				// Maximum number of keywords
#define MAX_RANDOM	15				// Maximum number of wavs per keyword
#define TOK_LENGTH	60				// Maximum length of keyword and wav file strings
#define NUM_PER_LINE	6				// Number of words per line from amx_sound_help

#define Enable_Sound	"misc/woohoo.wav"		// Sound played when Sank Soounds enabled
#define Disable_Sound	"misc/awwcrap.wav"		// Sound played when Sank Soounds disabled

new SndCount[32] = {0,...}			// Holds the number telling how many sounds a player has played
new SND_WARN = 5				// The number at which a player will get warned for playing too many sounds
new SND_MAX = 10					// The number at which a player will get kicked for playing too many sounds
new Join_wavs[TOK_LENGTH*MAX_RANDOM]		// The Wavs to play when a person joins the game
new Exit_wavs[TOK_LENGTH*MAX_RANDOM]		// The Wavs to play when a person exits the game
new Join_snd_num, Exit_snd_num			// Number of join and exit Wavs
new SND_DELAY = 0				// Minimum delay between sounds
new SND_SPLIT = 0				// Determines if sounds play to all, or isolate dead and alive
new EXACT_MATCH = 1				// Determines if plugin triggers on exact match, or partial speech match
new ADMINS_ONLY = 0				// Determines if only admins are allowed to play sounds


new WordWavCombo[MAX_KEYWORDS][TOK_LENGTH*600(MAX_RANDOM+1)]
might you be kind enough to show me what i have to change im new to scripting and cant figure it out. thx for the help
jusltoco is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 12-05-2004 , 18:37  
Reply With Quote #114

"new WordWavCombo[MAX_KEYWORDS][TOK_LENGTH*600(MAX_RANDOM+1)]"
why the 600 here? and how could u even compile this?

if after removing the 600 there is still prob try to add
"#pragma dynamic 20000" at the top of plugin
__________________
alias White Panther
karlos is offline
CNZ
Member
Join Date: Jul 2004
Location: Tucson, AZ
Old 12-06-2004 , 22:37  
Reply With Quote #115

is there a way we can make it so it costs 1000$ to play a sound.. to kind of stop spamming? :/ And if they don't got the cash, it won't play.
__________________
War3 1.6 Server - cnz.bounceme.net:27015
Insanity Mod (SAVEXP) - localserver.bounceme.net:27015
Website: http://gk.fearjihad.com/
CNZ is offline
Send a message via ICQ to CNZ Send a message via AIM to CNZ
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 12-07-2004 , 05:41  
Reply With Quote #116

in your snd-list.cfg there is a define "SND_MAX"
which defines how many sounds people can play
if they reached this number no sound will be played anymore until next map or admin resets it for each player
__________________
alias White Panther
karlos is offline
CNZ
Member
Join Date: Jul 2004
Location: Tucson, AZ
Old 12-07-2004 , 11:26  
Reply With Quote #117

I see...

SND_KICK; 20
SND_WARN; 17
SND_JOIN; misc/hibabe.wav;misc/hi.wav;misc/himan.wav
SND_EXIT; misc/comeagain.wav;misc/goodbye.wav;misc/beback.wav;misc/bye_love.wav;misc/gtg.wav
SND_DELAY; 0
SND_SPLIT; 0
EXACT_MATCH; 1
ADMINS_ONLY; 0

I will add the SND_MAX then..
__________________
War3 1.6 Server - cnz.bounceme.net:27015
Insanity Mod (SAVEXP) - localserver.bounceme.net:27015
Website: http://gk.fearjihad.com/
CNZ is offline
Send a message via ICQ to CNZ Send a message via AIM to CNZ
jusltoco
Member
Join Date: Jul 2004
Old 12-07-2004 , 15:13  
Reply With Quote #118

Quote:
Originally Posted by karlos
"new WordWavCombo[MAX_KEYWORDS][TOK_LENGTH*600(MAX_RANDOM+1)]"
why the 600 here? and how could u even compile this?

if after removing the 600 there is still prob try to add
"#pragma dynamic 20000" at the top of plugin
removed the 600 and added the line #pragma dynamic 20000 to the top and now its compiled took kinda long to compile and now crashes the server what else is there i can do ??
jusltoco is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 12-07-2004 , 15:38  
Reply With Quote #119

Quote:
Originally Posted by CNZ
I see...

SND_KICK; 20
SND_WARN; 17
SND_JOIN; misc/hibabe.wav;misc/hi.wav;misc/himan.wav
SND_EXIT; misc/comeagain.wav;misc/goodbye.wav;misc/beback.wav;misc/bye_love.wav;misc/gtg.wav
SND_DELAY; 0
SND_SPLIT; 0
EXACT_MATCH; 1
ADMINS_ONLY; 0

I will add the SND_MAX then..
SND_KICK has been renamed to SND_MAX (in recent version v1.2.1 ) as no players are kicked but only muted (to solve some misunderstanding)


@jusltoco
hmm
when is it crashing? when u use a sound or when server starts?

another prob could be (BUT i am not sure)
this plug precaches the wavs so that clients will download them
and precaching 600 wavs is maybe a bit too much
__________________
alias White Panther
karlos is offline
jusltoco
Member
Join Date: Jul 2004
Old 12-07-2004 , 16:43  
Reply With Quote #120

when the server starts.. can you post a code that might work for me ? i love this plugin !! and would love to get it to work correctly and i have all the files in my sv_download route so it actullay grabs the sounds from my webspace, so im not to sure if its precaching. BTW thanks for the quick replies. also does the #define NUM_PER_LINE have to be able to divide a number with another function ?
jusltoco 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 23:06.


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