You are not logged in.

1

Monday, January 5th 2009, 9:36pm

verschiedene win sounds

hallo leute es gibt mal wieder (leider) neue probleme!

Ich verwende folgendes Eventsript: http://addons.eventscripts.com/addons/view/12524

Das teil läuft auch super ohne probleme usw.

Aber ich möchte jetzt gerne das dieses plugin zufällig einen von mehreren Win sounds abspielt !

Also ich habe mehrere für jedes Team und möchte dass das Plugin sich quasi eins aussucht!

Kann man das realisieren?
Oder muss ich diese Aktion mit einem anderem script kombinieren?
Ich würd ja sofort ein anderes Plugin nehmen aber dieses spielt nicht nur win sounds sondern auch noch bei anderen aktion!
bsp:Target Bombed,Hostages Not Rescued und noch mehr uin der richtugn!

könnt ihr mir bitte helfen??

Posts: 2,498

Location: Schwelm

Occupation: Immobilien-Verwalter / Serveradministrator

wcf.user.option.userOption53: Nein

  • Send private message

2

Tuesday, January 6th 2009, 1:17am

Re: verschiedene win sounds

Offiziell gibts dafür afaik kein Script. CSS verwendet ja nur die beiden Sounds "ct_win" und "t_win" - also müsste so ein Script (ähnlich wie bei Gungame) mehr als nur diese beiden Sounds verarbeiten können und eine RandomListe beim RoundEnd Event abfragen. Ob das allerdings rein von der ServerEngine her möglich ist kann ich nicht sagen.

Sollte es dafür wirklich kein offizielles Eventscript geben, wird die wahrscheinlich unser Chrisber hier weiterhelfen können, der scriptet manchmal die herrlichsten Sachen.

3

Wednesday, January 7th 2009, 9:21pm

Re: verschiedene win sounds

Tja ich bin noch offen für mehr Informationen :-D

Also ich hab noch mal geguckt und standartmässig funktioniert das so nicht mit dem script!

Kann mir eine ne Sonderanfertigung scripten?

4

Monday, January 12th 2009, 8:36pm

Re: verschiedene win sounds

Wo isser?? der Chrisber?? heul

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

5

Monday, January 12th 2009, 8:41pm

Re: verschiedene win sounds

Da ist es einfacher das Script neuzuschreiben.
Ich lass mir was einfallen lovu

~ Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

6

Monday, January 12th 2009, 8:59pm

Re: verschiedene win sounds

So, hier ist es nun - wie immer ungetestet!
Du erstellst in "addons/eventscripts/" einen Ordner den du "winsounds" nennst. In diesem packst du eine neue Datei mit Namen "winsounds.py". Nun noch folgendes in die "cfg/autoexec.cfg": "es_xload winsounds"

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import es, random



#
# Konfiguration
#
def config():
	# Moegliche Gruende:
	# 	round_draw
	# 	game_commencing
	# 	cts_win
	# 	terrorists_win
	# 	target_bombed
	# 	bomb_defused
	# 	target_saved
	# 	all_hostages_rescued
	# 	hostages_not_rescued
	# Gross- und Kleinschreibung ist egal
	# Soundpfad ohne sound/
	#
	# Format:
	# 	addSound("<grund>", "<soundpfad>")
	addSound("round_draw", "you/are_all_loosers.mp3")



#
# Code -- nichts veraendern
#
def load():
	global sounds, downloads
	sounds = {}
	downloads = []
	
	config()
	performDownload()

def es_map_start(event_var):
	performDownload()

def performDownload():
	for download in downloads:
		es.stringtable("downloadables", "sound/%s" % download)

def addSound(reason, sound):
	if reason not in sound:
		sounds[reason] = []
	
	sound = sound.replace("\", "/").replace("//", "/")
	
	sounds[reason].append(sound)
	downloads.append(sound)

def round_end(event_var):
	reason = event_var["reason"].lower()
	
	if reason not in sounds:
		return
	
	es.cexec_all("play", random.choice(sounds[reason]))


~ Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

7

Tuesday, January 13th 2009, 2:35pm

Re: verschiedene win sounds

Hi,

Danke schonmal für dein Hilfe!
Leider bekomme ich gür jeden sound den ich habe folgende Fehlermeldung!


Could not add strings: sound/map_sounds/ctwin.mp3 to table downloadables

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

8

Tuesday, January 13th 2009, 3:27pm

Re: verschiedene win sounds

Dann ist der Pfad falsch / du hast die Sounds nicht hochgeladen!


~ Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

9

Tuesday, January 13th 2009, 3:59pm

Re: verschiedene win sounds

Die Sounds befinden sich hier : \counter-strike source\cstrike\sound\map_sounds

SO siehts im Script aus: addSound("round_draw", "map_sounds/mk4-awwbaby.wav")

Falls das wichtig sein sollte ich benutze WinXP
lokaler server

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

10

Tuesday, January 13th 2009, 4:22pm

Re: verschiedene win sounds

Versuch mal:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import es, random



#
# Konfiguration
#
def config():
   # Moegliche Gruende:
   #    round_draw
   #    game_commencing
   #    cts_win
   #    terrorists_win
   #    target_bombed
   #    bomb_defused
   #    target_saved
   #    all_hostages_rescued
   #    hostages_not_rescued
   # Gross- und Kleinschreibung ist egal
   # Soundpfad ohne sound/
   #
   # Format:
   #    addSound("<grund>", "<soundpfad>")
   addSound("round_draw", "you/are_all_loosers.mp3")



#
# Code -- nichts veraendern
#
def load():
   global sounds, downloads
   sounds = {}
   downloads = []
   
   config()
   performDownload()

def es_map_start(event_var):
   performDownload()

def performDownload():
   for download in downloads:
      es.stringtable("downloadables", "sound/%s" % download)

def addSound(reason, sound):
   if reason not in sound:
      sounds[reason] = []
   
   sound = sound.replace("\", "/").replace("//", "/").replace("/", "\")
   
   sounds[reason].append(sound)
   downloads.append(sound)

def round_end(event_var):
   reason = event_var["reason"].lower()
   
   if reason not in sounds:
      return
   
   es.cexec_all("play", random.choice(sounds[reason]))


~ Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

11

Tuesday, January 13th 2009, 4:33pm

Re: verschiedene win sounds

sorry gleicher fehler bei dem script!

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

12

Tuesday, January 13th 2009, 5:09pm

Re: verschiedene win sounds

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import es, random



#
# Konfiguration
#
def config():
   # Moegliche Gruende:
   #    round_draw
   #    game_commencing
   #    cts_win
   #    terrorists_win
   #    target_bombed
   #    bomb_defused
   #    target_saved
   #    all_hostages_rescued
   #    hostages_not_rescued
   # Gross- und Kleinschreibung ist egal
   # Soundpfad ohne sound/
   #
   # Format:
   #    addSound("<grund>", "<soundpfad>")
   addSound("round_draw", "you/are_all_loosers.mp3")



#
# Code -- nichts veraendern
#
def load():
   global sounds, downloads
   sounds = {}
   downloads = []
   
   config()
   performDownload()

def es_map_start(event_var):
   performDownload()

def performDownload():
   for download in downloads:
      es.stringtable("downloadables", "sound/%s" % download)

def addSound(reason, sound):
   if reason not in sound:
      sounds[reason] = []
   
   es.msg(sound)
   sound = sound.replace("\", "/").replace("//", "/").replace("/", "\")
   es.msg(sound)
   
   sounds[reason].append(sound)
   downloads.append(sound)

def round_end(event_var):
   reason = event_var["reason"].lower()
   
   if reason not in sounds:
      return
   
   es.cexec_all("play", random.choice(sounds[reason]))


Mach das mal und poste hier die Ausgabe, was im Chat / HLSW steht, wenn du das Script lädst!

~ Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

13

Tuesday, January 13th 2009, 6:16pm

Re: verschiedene win sounds

In der Console steht nun folgendes:


map_sounds/mk4-awwbaby.wav
map_sounds\mk4-awwbaby.wav
map_sounds/mk4-excellent.wav
map_sounds\mk4-excellent.wav
map_sounds/mk4-hahaha_you_suck.wav
map_sounds\mk4-hahaha_you_suck.wav
map_sounds/mk4-outstanding.wav
map_sounds\mk4-outstanding.wav
map_sounds/mk4-supurb.wav
map_sounds\mk4-supurb.wav
map_sounds/mk4-well_done.wav
map_sounds\mk4-well_done.wav
map_sounds/mk4-what_are_you_waiting_for.wav
map_sounds\mk4-what_are_you_waiting_for.wav
map_sounds/ctwin.mp3
map_sounds\ctwin.mp3
map_sounds/ctwin1.mp3
map_sounds\ctwin1.mp3
map_sounds/ctwin2.mp3
map_sounds\ctwin2.mp3
map_sounds/ctwin3.mp3
map_sounds\ctwin3.mp3
map_sounds/ctwin4.mp3
map_sounds\ctwin4.mp3
map_sounds/ctwin5.mp3
map_sounds\ctwin5.mp3
map_sounds/ctwin6.mp3
map_sounds\ctwin6.mp3
map_sounds/ctwin7.mp3
map_sounds\ctwin7.mp3
map_sounds/ctwin8.wav
map_sounds\ctwin8.wav
map_sounds/twin.mp3
map_sounds\twin.mp3
map_sounds/twin1.mp3
map_sounds\twin1.mp3
map_sounds/twin2.mp3
map_sounds\twin2.mp3
map_sounds/twin3.mp3
map_sounds\twin3.mp3
map_sounds/twin4.mp3
map_sounds\twin4.mp3
map_sounds/twin5.mp3
map_sounds\twin5.mp3
map_sounds/twin6.mp3
map_sounds\twin6.mp3
Could not add strings: sound/map_sounds\mk4-awwbaby.wav to table downloadables
Could not add strings: sound/map_sounds\mk4-excellent.wav to table downloadables
Could not add strings: sound/map_sounds\mk4-hahaha_you_suck.wav to table downloadables
Could not add strings: sound/map_sounds\mk4-outstanding.wav to table downloadables
Could not add strings: sound/map_sounds\mk4-supurb.wav to table downloadables
Could not add strings: sound/map_sounds\mk4-well_done.wav to table downloadables
Could not add strings: sound/map_sounds\mk4-what_are_you_waiting_for.wav to table downloadables
Could not add strings: sound/map_sounds\ctwin.mp3 to table downloadables
Could not add strings: sound/map_sounds\ctwin1.mp3 to table downloadables
Could not add strings: sound/map_sounds\ctwin2.mp3 to table downloadables
Could not add strings: sound/map_sounds\ctwin3.mp3 to table downloadables
Could not add strings: sound/map_sounds\ctwin4.mp3 to table downloadables
Could not add strings: sound/map_sounds\ctwin5.mp3 to table downloadables
Could not add strings: sound/map_sounds\ctwin6.mp3 to table downloadables
Could not add strings: sound/map_sounds\ctwin7.mp3 to table downloadables
Could not add strings: sound/map_sounds\ctwin8.wav to table downloadables
Could not add strings: sound/map_sounds\twin.mp3 to table downloadables
Could not add strings: sound/map_sounds\twin1.mp3 to table downloadables
Could not add strings: sound/map_sounds\twin2.mp3 to table downloadables
Could not add strings: sound/map_sounds\twin3.mp3 to table downloadables
Could not add strings: sound/map_sounds\twin4.mp3 to table downloadables
Could not add strings: sound/map_sounds\twin5.mp3 to table downloadables
Could not add strings: sound/map_sounds\twin6.mp3 to table downloadables
Loaded:winsounds

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

14

Tuesday, January 13th 2009, 8:40pm

Re: verschiedene win sounds

Ich hasse debuggen...
Nochmal das gleiche wie vorher, Ausgabe bitte posten!

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import es, random, os.path



#
# Konfiguration
#
def config():
   # Moegliche Gruende:
   #    round_draw
   #    game_commencing
   #    cts_win
   #    terrorists_win
   #    target_bombed
   #    bomb_defused
   #    target_saved
   #    all_hostages_rescued
   #    hostages_not_rescued
   # Gross- und Kleinschreibung ist egal
   # Soundpfad ohne sound/
   #
   # Format:
   #    addSound("<grund>", "<soundpfad>")
   addSound("round_draw", "you/are_all_loosers.mp3")



#
# Code -- nichts veraendern
#
def load():
   global sounds, downloads
   sounds = {}
   downloads = []
   
   config()
   performDownload()

def es_map_start(event_var):
   performDownload()

def performDownload():
   for download in downloads:
      es.stringtable("downloadables", "sound/%s" % download)

def addSound(reason, sound):
   if reason not in sound:
      sounds[reason] = []
   
   sound = sound.replace("\", "/").replace("//", "/")
   es.msg("%s: existiert%s" % ("%s/sound/%s" % (es.getString("eventscripts_gamedir"), sound), ("!" if os.path.isfile("%s/sound/%s" % (es.getString("eventscripts_gamedir"), sound)) else " nicht!")))
   
   sounds[reason].append(sound)
   downloads.append(sound)

def round_end(event_var):
   reason = event_var["reason"].lower()
   
   if reason not in sounds:
      return
   
   es.cexec_all("play", random.choice(sounds[reason]))


~ Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

15

Tuesday, January 13th 2009, 9:10pm

Re: verschiedene win sounds

c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/mk4-awwbaby.wav: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/mk4-excellent.wav: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/mk4-hahaha_you_suck.wav: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/mk4-outstanding.wav: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/mk4-supurb.wav: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/mk4-well_done.wav: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/mk4-what_are_you_waiting_for.wav: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/ctwin.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/ctwin1.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/ctwin2.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/ctwin3.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/ctwin4.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/ctwin5.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/ctwin6.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/ctwin7.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/ctwin8.wav: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/twin.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/twin1.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/twin2.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/twin3.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/twin4.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/twin5.mp3: existiert!
c:\programme\steam\steamapps\nickname\counter-strike source\cstrike/sound/map_sounds/twin6.mp3: existiert!
Could not add strings: sound/map_sounds/mk4-awwbaby.wav to table downloadables
Could not add strings: sound/map_sounds/mk4-excellent.wav to table downloadables
Could not add strings: sound/map_sounds/mk4-hahaha_you_suck.wav to table downloadables
Could not add strings: sound/map_sounds/mk4-outstanding.wav to table downloadables
Could not add strings: sound/map_sounds/mk4-supurb.wav to table downloadables
Could not add strings: sound/map_sounds/mk4-well_done.wav to table downloadables
Could not add strings: sound/map_sounds/mk4-what_are_you_waiting_for.wav to table downloadables
Could not add strings: sound/map_sounds/ctwin.mp3 to table downloadables
Could not add strings: sound/map_sounds/ctwin1.mp3 to table downloadables
Could not add strings: sound/map_sounds/ctwin2.mp3 to table downloadables
Could not add strings: sound/map_sounds/ctwin3.mp3 to table downloadables
Could not add strings: sound/map_sounds/ctwin4.mp3 to table downloadables
Could not add strings: sound/map_sounds/ctwin5.mp3 to table downloadables
Could not add strings: sound/map_sounds/ctwin6.mp3 to table downloadables
Could not add strings: sound/map_sounds/ctwin7.mp3 to table downloadables
Could not add strings: sound/map_sounds/ctwin8.wav to table downloadables
Could not add strings: sound/map_sounds/twin.mp3 to table downloadables
Could not add strings: sound/map_sounds/twin1.mp3 to table downloadables
Could not add strings: sound/map_sounds/twin2.mp3 to table downloadables
Could not add strings: sound/map_sounds/twin3.mp3 to table downloadables
Could not add strings: sound/map_sounds/twin4.mp3 to table downloadables
Could not add strings: sound/map_sounds/twin5.mp3 to table downloadables
Could not add strings: sound/map_sounds/twin6.mp3 to table downloadables

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

16

Wednesday, January 14th 2009, 5:41pm

Re: verschiedene win sounds

Mhh - da habe ich leider gar keine Ideen mehr - tut mir leid.
Weil du siehst ja, dass alle Sounds existieren.
Ich denke aber mal es liegt daran, dass du einen Listenserver aus CSS heraus startest. Hast es schon einmal mit einem Source Dedicated Server versucht (STEAM->Tools)?

~ Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

Posts: 2,498

Location: Schwelm

Occupation: Immobilien-Verwalter / Serveradministrator

wcf.user.option.userOption53: Nein

  • Send private message

17

Wednesday, January 14th 2009, 7:14pm

Re: verschiedene win sounds

Also ich seh nur andauernd wechselnde / und \ Zeichen.....und dies teilweise EINEM Pfad gleichzeitig.

Kann mir nicht vorstellen das dies immer so richtig ist.

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

18

Wednesday, January 14th 2009, 9:34pm

Re: verschiedene win sounds

Hi.
Ja, das habe ich ja auch getestet, aber auch wenn es in einer Richtung war änderte das nichts. Und wie man sieht werden die Pfade trotzdem erkannt, und daran liegt es auch nicht ;)

~ Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

19

Thursday, January 15th 2009, 7:31pm

Re: verschiedene win sounds

Das is dann wohl schlecht!!

Gibt es sonst keine möglichkeit??
Ich mein weil von coden hab ich keine Ahnung!!


Gibt es denn eventuell ein programm das diese funktion hat??
Ich habe es nämlich auf einem server "erlebt"!!
ansonsten muss ich da mal nen admin fragen!

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

20

Thursday, January 15th 2009, 10:47pm

Re: verschiedene win sounds

Quoted

Ich denke aber mal es liegt daran, dass du einen Listenserver aus CSS heraus startest. Hast es schon einmal mit einem Source Dedicated Server versucht (STEAM->Tools)?


~ Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.