Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: sourceserver.info. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Montag, 5. Januar 2009, 21:36

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??

Beiträge: 2 498

Wohnort: Schwelm

Beruf: Immobilien-Verwalter / Serveradministrator

Rootserver vorhanden: Nein

  • Nachricht senden

2

Dienstag, 6. Januar 2009, 01:17

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

Mittwoch, 7. Januar 2009, 21:21

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

Montag, 12. Januar 2009, 20:36

Re: verschiedene win sounds

Wo isser?? der Chrisber?? heul

Chrisber

Administrator

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

5

Montag, 12. Januar 2009, 20:41

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

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

6

Montag, 12. Januar 2009, 20:59

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"

Quellcode

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

Dienstag, 13. Januar 2009, 14:35

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

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

8

Dienstag, 13. Januar 2009, 15:27

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

Dienstag, 13. Januar 2009, 15:59

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

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

10

Dienstag, 13. Januar 2009, 16:22

Re: verschiedene win sounds

Versuch mal:

Quellcode

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

Dienstag, 13. Januar 2009, 16:33

Re: verschiedene win sounds

sorry gleicher fehler bei dem script!

Chrisber

Administrator

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

12

Dienstag, 13. Januar 2009, 17:09

Re: verschiedene win sounds

Quellcode

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

Dienstag, 13. Januar 2009, 18:16

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

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

14

Dienstag, 13. Januar 2009, 20:40

Re: verschiedene win sounds

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

Quellcode

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

Dienstag, 13. Januar 2009, 21:10

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

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

16

Mittwoch, 14. Januar 2009, 17:41

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.

Beiträge: 2 498

Wohnort: Schwelm

Beruf: Immobilien-Verwalter / Serveradministrator

Rootserver vorhanden: Nein

  • Nachricht senden

17

Mittwoch, 14. Januar 2009, 19:14

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

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

18

Mittwoch, 14. Januar 2009, 21:34

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

Donnerstag, 15. Januar 2009, 19:31

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

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

20

Donnerstag, 15. Januar 2009, 22:47

Re: verschiedene win sounds

Zitat

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.