EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
16000 (15) abilities (15) addon (71) addons (17) admin (348) admins (23) advert (27) adverts (26) afk (17) alerts (12) ammo (25) anti (20) armor (11) auth (16) automatic (15) awp (29) ban (24) ba_jail (34) bhop (45) block (27) bomb (47) bonus (25) boost (21) bot (35) bot-management (20) bots (24) bullet (13) bunnyhop (18) Buy (27) buymenu (13) c4 (12) cash (76) Change (14) chat (75) cheat (15) clan (17) classes (24) color (30) colors (20) command (23) commands (20) config (28) configurable (11) connect (54) counter (11) Counter-Strike-Source (18) CS:S (20) css (3313) custom (13) Damage (48) database (14) dead (19) Deagle (11) death (19) deathmatch (79) deathrun (17) deutsch (13) dice (11) disconnect (24) Dissolve (12) dm (24) dod:s (11) dods (494) download (12) easy (26) effect (14) effects (125) English (16) entity (24) est (12) es_tools (14) Eventscript (12) exploit (11) flashbang (27) français (104) french (36) fun (312) funny (18) Gabeee (11) game (12) gamemode (11) gameplay (175) German (11) give (20) gravity (15) grenade (28) grenades (32) gun (15) GunGame (31) GunGame5 (11) guns (20) Hack (16) headshot (37) health (70) hegrenade (15) help (11) hit (13) hl2dm (432) HP (25) hudhint (11) hungarian (22) info (52) information (17) invisible (11) IP (13) jail (79) jailbreak (14) join (44) jump (19) kick (25) kill (50) kills (23) knife (65) leveling (38) LnD (14) lol (11) magyar (32) management (14) manager (11) mani (16) map (31) map-management (26) maps (17) match (21) Memphis-84 (13) menu (139) message (30) messaging (52) minecraft (12) mod (121) model (18) models (32) modye (16) money (50) motd (13) music (32) mute (20) nades (20) name (15) new (13) noblock (53) orangebox (23) player (46) player-management (31) player-tracking (28) popup (70) prop (13) propmenu (14) props (34) protect (11) protection (31) punish (11) punishment (51) python (79) quake (32) QuakeSounds (12) race (13) races (20) radio (29) random (47) rank (41) rates (15) rcon (12) realism (22) Regeln (22) respawn (67) restrict (40) round (26) rpg (32) rules (60) say (16) score (15) scout (29) Script (25) script-helper (25) scriptpack (33) sdk (171) server (60) server-tools (42) shop (12) showdamage (19) silly (31) simple (31) skin (17) skins (34) slay (13) soccer (14) sound (63) sounds (106) source (13) spanish (18) spawn (81) speed (25) statistics (13) stats (55) status (15) Steam (11) STEAMID (29) Superhero (15) surf (41) Team (29) team-balance (14) teleport (16) text (17) TF2 (142) time (22) timer (15) tools (15) tracers (19) triggers (11) uedi (17) uses_auth (18) vip (23) vote (39) voting (22) war (25) Warcraft (12) warcraft-source (20) wc3 (14) wcs (47) wcs:Python (32) weapon (87) weapons (116) web (16) welcome (12) wuerfeln (11) zm (26) zombie (99) zombiemod (55) zombies (12)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (20) .:modye:. (14) .eMko* (6) 101satoon101 (12) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (9) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) Ayuto (5) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (8) Bioko (10) blackshoxx (9) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (32) cagemonkey (8) capo azzlack (7) captain master (6) carbon-14 (10) CaskioUTF (5) cbirou (15) CbRRR (16) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (10) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) CrAzD (6) craziest (11) dani12356 (12) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (16) dhack (17) Di[M]aN (12) DJ Fire-Black prod (8) DoCky (31) Don (15) dordtcore (9) DragonFreddo (8) Drassil (5) dretax14 (11) Einlanzers (47) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (10) FMIS (5) Franc1sco (17) freddukes (18) Frequency (6) Fugi91 (6) Fulmine (5) G4ME (5) GAMEREN2 (8) german9114 (13) GODJonez (40) GoodfellaDeal (5) Hansi (6) Hisoka (6) HitThePipe (7) HOLLDIDAY (24) Icetouch (6) ichthys (25) Im the new guy (14) iNexus (13) infamous1 (9) isivisi (13) ispaine (7) Jackmaster (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (11) KDBFame (6) L'In20Cible (11) L.P.H (8) Largo Usagi (10) LnD (14) Lobe (11) loKkdoKk (8) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (7) magyar-oneill (9) Matth (7) Mattie (21) mave1993 (5) MBchrono (15) McFly (20) Medda (5) Memphis-84 (15) Messiah93 (19) Mickyy (5) micmacx (6) Mitchell (5) Mixer57 (5) modye (6) Monster_Bitch1 (9) Mordavolt (7) motomoto (10) MrScriptaz (6) mryoung (6) MyTechZone.de (8) Nicolous (23) ojii (31) oliVier (10) Omega68 (6) Omega_K2 (11) Owned|Myself (8) P3N (7) pand3mic (6) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) PixelGamer (7) randomknifer (9) Raptor150 (31) Ratzee (6) ReaCtioN2oo9 (6) RedCliff (5) Rennnyyy (17) revolutionfighters (8) RideGuy (12) Rio (9) Roeliekt (6) roof (16) runamagic (13) Ryezin (5) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (15) sgt.angel (6) Shad0w (11) ShoTaXx# (7) sicilia (7) sicman_adrian (22) skillz92 (7) sn4k3 (18) Snake12 (7) snake38 (10) sonicsight (7) SpeedFreak (9) spoonman184 (10) stabby (22) stas (27) Stirni (6) stonedegg (7) Strontium Dog (30) SumGuy14 (25) SuperDave (49) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (27) TheDonFather (5) theresthatguy (6) Tiny Tod (7) tooshkan4uk (8) Totyahun (9) uedi (38) ultimatebuster (6) Undead (25) usernamesaretaken (15) wanted241 (9) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) Wundermaxe (5) X-Mania (5) XE_ManUp (14) xfalcon61 (5) zSweetXz (5) ZZMatty (6) [Cs]Lord_Inferno2 (11) [DAP]Kickbutt (5) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Author Message
User avatar
Newbie
Profile

Posts: 47
Steam Friends Name: CRYﮎIﮎ
 
New postPosted: 2012-06-29, 5:56 am 
   Post subject: Emitsound is crashing

Sorry if this has already been covered but this is kinda new too, I noticed es emitsound for ESS and ESP is now crashing since the latest OB update, for HL2DM anyway.
Thanks.

_________________
ImageImage


User avatar
Power User
Profile

Posts: 544
Location:
The SUNSHINE state
 
New postPosted: 2012-06-29, 6:04 pm 
   Post subject: Re: Emitsound is crashing

Cryziz,

I think you nailed it brother or at least one of the things crashing my server when I use ES .....
Is your server windows ?

All my ES plugins are using that command for sound and I have tried it and when I remove all plugins ES will stay up the moment you use a plugin with emitsound SRCDS crashes


User avatar
Newbie
Profile

Posts: 47
Steam Friends Name: CRYﮎIﮎ
 
New postPosted: 2012-06-30, 2:04 am 
   Post subject: Re: Emitsound is crashing

Hey.
Yeah it's windows, and is one of the only things I find that crashes with ES, Just found it out the other day I'm big into entity scripting so I used it alot, that and the other thing that could be crashing peoples servers is SourceOP

Also good to see someone else from QLD 8)

_________________
ImageImage


User avatar
Power User
Profile

Posts: 544
Location:
The SUNSHINE state
 
New postPosted: 2012-06-30, 7:46 am 
   Post subject: Re: Emitsound is crashing

Cryziz,

I tried sourceOP once didnt like it and had issues with it and support was poor to say the least... also gave up Mani Mod over a year ago
I have spent months creating some awesome visual effect on my server and alot of my friends loved it and had a busy server until Valve killed it .
Im sick over this and so tired of them messing with older games ..
After you posted this "your name here" posted this showing what they have changed >

http://hg.alliedmods.net/hl2sdks/hl2sdk-ob-valve/rev/f0fdd1a6d0f3

Was also told Mattie is MIA so I hope some of the talented staff here can come up with a fix for all of us ..

PLEASE guys not having ES is heart breaking and im sure Valve will do the same to all OB games as they have already updated Gary's mod yesterday not sure if that messed up anything since we dont run a server for it.

So I pray :cry:


User avatar
Newbie
Profile

Posts: 47
Steam Friends Name: CRYﮎIﮎ
 
New postPosted: 2012-06-30, 8:04 am 
   Post subject: Re: Emitsound is crashing

TheLaser wrote:
Cryziz,

I tried sourceOP once didnt like it and had issues with it and support was poor to say the least... also gave up Mani Mod over a year ago
I have spent months creating some awesome visual effect on my server and alot of my friends loved it and had a busy server until Valve killed it .
Im sick over this and so tired of them messing with older games ..
After you posted this "your name here" posted this showing what they have changed >

http://hg.alliedmods.net/hl2sdks/hl2sdk-ob-valve/rev/f0fdd1a6d0f3

Was also told Mattie is MIA so I hope some of the talented staff here can come up with a fix for all of us ..

PLEASE guys not having ES is heart breaking and im sure Valve will do the same to all OB games as they have already updated Gary's mod yesterday not sure if that messed up anything since we dont run a server for it.

So I pray :cry:

I know that feel bro, I was part of the HL2:DM entity scripting community for 3 years until it pretty much all died out.
The scripting itself had been going for 3 or 4 years prior to me joining it, the OB update itself #***ed us over pretty bad, the change of the wait command, many entities not functioning without been already made into the map, and not one #*** was given from valve or the rest of the community, as the term "cheats" or "scripting" was just seen as hacks (aimbots etc) when it was so much more then that, been able to create almost anything you want just with ent_create/give, and ent_fire, even more with server sided plugins, or client ones such as testscripts, lua, client python and such.


Vavle seem to care for nothing other then TF2 now days been their main source of primary income, and don't really think of the adverse affects given to anything else on the source engine. Sh*t me off enough with that and when est went down, now this. Pft, not everyone has the time to stuff around in sourcemod..

_________________
ImageImage


User avatar
Newbie
Profile

Posts: 47
Steam Friends Name: CRYﮎIﮎ
 
New postPosted: 2012-06-30, 8:18 am 
   Post subject: Re: Emitsound is crashing

Also Laser I see you've been commenting alot about this on other posts, if you need it back so badly, use es cexec all with the client command "play" or "playgamesound" as a temp fix. or use the entities point_tesla or env_gunfire to create sounds (gunfire may need to use es_precachesound for the sounds to play with radius).

_________________
ImageImage


User avatar
Power User
Profile

Posts: 544
Location:
The SUNSHINE state
 
New postPosted: 2012-06-30, 8:18 am 
   Post subject: Re: Emitsound is crashing

Hey bro ,

EST is very much alive in SM effects only though but was using ESP to fire them all so my HL2DM server is still very much alive .....
and now my regulars are say what happen to Postal and the WCS effects .. I told them thank to valve breaking ES they are Dead at the moment ...
Not big on TF2 but was making a server for it and have a L4D2 server as well and a CSS fully modded for Star Wars but want me DM effects back .

Quote:
use es cexec all with the client command "play" or "playgamesound" as a temp fix. or use the entities point_tesla or env_gunfire to create sounds


Omg even if it did work its alot of recoding and would take days of work because the scripts I use for some of the effect I didnt write and are 1000's of pages long ... and are fired to the victim or victor only .. im not that good at this stuff and prolly better off waiting to see if they can fix ES


Last edited by TheLaser on 2012-06-30, 8:27 am, edited 1 time in total.

User avatar
Guru
Guru
Profile

Posts: 1291
Location:
Germany
 
New postPosted: 2012-07-03, 4:38 pm 
   Post subject: Re: Emitsound is crashing

If you are using Python, you can fix that sound problem in 20 seconds. Otherwise, you need either to disable both commands or replace them in all scripts.

This script is a really cheap fix for Python and Shell. It overrides the Python commands and replaces all occurences of the Shell commands. Also, this doesn't restores the complete functionality of the broken commands:
PYTHON:
    from __future__ import with_statement
    from path import path

    import es
    import cmdlib

    fix = (
        ('es_playsound', 'es_fixed_playsound'),
        ('es_xplaysound', 'es_xfixed_playsound'),
        ('es_emitsound', 'es_fixed_emitsound'),
        ('es_xemitsound', 'es_xfixed_emitsound'),
    )

    unfix = tuple(tuple(reversed(x)) for x in fix)

    orgplaysound = es.playsound
    orgemitsound = es.emitsound

    def load():
        # Python fix
        es.playsound = playsound
        es.emitsound = emitsound

        # Shell fix
        cmdlib.registerServerCommand('es_fixed_playsound', es_playsound,
            'Plays a sound to a player')

        cmdlib.registerServerCommand('es_xfixed_playsound',
            lambda args: es_playsound(args, 'x'), 'Plays a sound to a player')

        cmdlib.registerServerCommand('es_fixed_emitsound', es_emitsound,
            'Plays a sound from an entity')

        cmdlib.registerServerCommand('es_xfixed_emitsound',
            lambda args: es_emitsound(args, 'x'), 'Plays a sound from an entity')

        replacer(fix)

    def unload():
        # Python fix
        es.playsound = orgplaysound
        es.emitsound = orgemitsound

        # Shell fix
        cmdlib.unregisterServerCommand('es_fixed_playsound')
        cmdlib.unregisterServerCommand('es_xfixed_playsound')
        cmdlib.unregisterServerCommand('es_fixed_emitsound')
        cmdlib.unregisterServerCommand('es_xfixed_emitsound')
        replacer(unfix)

    def replacer(whats):
        for addon in path(__file__).parent.parent.walkfiles():
            if not addon.fnmatch('*.txt') and not addon.fnmatch('*.py'):
                continue

            if addon.namebase == __name__.rsplit('.')[0] or '_engines' in addon:
                continue

            with addon.open() as file:
                content = file.read()

            for what in whats:
                content = content.replace(*what)

            with addon.open('w') as file:
                file.write(content)

    def es_playsound(args, x=''):
        if len(args) != 3:
            return es.server.insertcmd('es_%splaysound'% x)

        es.cexec(args[0], 'play ' + args[1])

    def es_emitsound(args, x=''):
        if len(args) < 5 or len(args) > 7:
            return es.server.insertcmd('es_%semitsound'% x)

        if not es.exists('userid', args[1]):
            return

        es.cexec(args[1], 'play ' + args[2])

    def playsound(userid, soundfile, volume):
        es.cexec(userid, 'play ' + soundfile)

    def emitsound(emitter, id, soundfile, volume, attenuation):
        if not es.exists('userid', id):
            return

        if attenuation:
            es.cexec(userid, 'play ' + soundfile)

        else:
            es.cexec_all('play ' + soundfile)

Make sure you unload this script, if you want to remove it to restore the old commands.

Edit: I forgot to mention that this script should be named soundfix.py. Otherwise you can't restore the old commands. However, I changed it so you can name it like you want. You can also download the attached file, extract it to ../addons/eventscripts and load it via
ES:
    es_load soundfix


Attachments:
soundfix.zip [1.03 KiB]
Downloaded 59 times


Last edited by Ayuto on 2012-07-04, 11:08 am, edited 2 times in total.
User avatar
Newbie
Profile

Posts: 52
Location:
Denmark
 
New postPosted: 2012-07-03, 11:01 pm 
   Post subject: Re: Emitsound is crashing

Ayuto wrote:
If you are using Python, you can fix that sound problem in 20 seconds. Otherwise, you need either to disable both commands or replace them in all scripts.

This script is a really cheap fix for Python and Shell. It overrides the Python commands and replaces all occurences of the Shell commands. Also, this doesn't restores the complete functionality of the broken commands:
PYTHON:
    from __future__ import with_statement
    from path import path

    import es
    import cmdlib

    fix = (
        ('es_playsound', 'es_fixed_playsound'),
        ('es_xplaysound', 'es_xfixed_playsound'),
        ('es_emitsound', 'es_fixed_emitsound'),
        ('es_xemitsound', 'es_xfixed_emitsound'),
    )

    unfix = tuple(tuple(reversed(x)) for x in fix)

    orgplaysound = es.playsound
    orgemitsound = es.emitsound

    def load():
        # Python fix
        es.playsound = playsound
        es.emitsound = emitsound

        # Shell fix
        cmdlib.registerServerCommand('es_fixed_playsound', es_playsound,
            'Plays a sound to a player')

        cmdlib.registerServerCommand('es_xfixed_playsound',
            lambda args: es_playsound(args, 'x'), 'Plays a sound to a player')

        cmdlib.registerServerCommand('es_fixed_emitsound', es_emitsound,
            'Plays a sound from an entity')

        cmdlib.registerServerCommand('es_xfixed_emitsound',
            lambda args: es_emitsound(args, 'x'), 'Plays a sound from an entity')

        replacer(fix)

    def unload():
        # Python fix
        es.playsound = orgplaysound
        es.emitsound = orgemitsound

        # Shell fix
        cmdlib.unregisterServerCommand('es_fixed_playsound')
        cmdlib.unregisterServerCommand('es_xfixed_playsound')
        cmdlib.unregisterServerCommand('es_fixed_emitsound')
        cmdlib.unregisterServerCommand('es_xfixed_emitsound')
        replacer(unfix)

    def replacer(whats):
        for addon in path(__file__).parent.parent.walkfiles():
            if not addon.fnmatch('*.txt') and not addon.fnmatch('*.py'):
                continue

            if addon.namebase == 'soundfix' or '_engines' in addon:
                continue

            with addon.open() as file:
                content = file.read()

            for what in whats:
                content = content.replace(*what)

            with addon.open('w') as file:
                file.write(content)

    def es_playsound(args, x=''):
        if len(args) != 3:
            return es.server.insertcmd('es_%splaysound'% x)

        es.cexec(args[0], 'play ' + args[1])

    def es_emitsound(args, x=''):
        if len(args) < 5 or len(args) > 7:
            return es.server.insertcmd('es_%semitsound'% x)

        if not es.exists('userid', args[1]):
            return

        es.cexec(args[1], 'play ' + args[2])

    def playsound(userid, soundfile, volume):
        es.cexec(userid, 'play ' + soundfile)

    def emitsound(emitter, id, soundfile, volume, attenuation):
        if not es.exists('userid', id):
            return

        if attenuation:
            es.cexec(userid, 'play ' + soundfile)

        else:
            es.cexec_all('play ' + soundfile)

Make sure you unload this script, if you want to remove it to restore the old commands.



thanks bro! it worked!

maybe you should let more people know about this, since i guess, not many does.


User avatar
New User
Profile

Posts: 3
 
New postPosted: 2012-07-04, 12:27 am 
   Post subject: Re: Emitsound is crashing

Ima sound like a huge noob, but how do you add that python script to the server?


User avatar
New User
Profile

Posts: 15
 
New postPosted: 2012-07-04, 3:09 am 

viewtopic.php?f=27&t=45808

I made it easier for people


User avatar
Power User
Profile

Posts: 544
Location:
The SUNSHINE state
 
New postPosted: 2012-07-04, 7:51 am 
   Post subject: Re: Emitsound is crashing

Ayuto,

Want to thank you for helpin out my good man .. though it doesnt completely fix the plugins I use it did restore 90% and the important plugin is now working in HL2DM so far ...
Also thank you KratosMafia for making it a simple install for everyone :mrgreen:

Now if we can get Mr Mattie to get his tail in here to restore the broken ESP soon it will be a good thing and we will all be happy campers and killers :lol:

The sad thing and i hate to say it but if it didnt effect CSS we prolly would have not had any fix at all :shock:


Last edited by TheLaser on 2012-07-04, 7:53 am, edited 1 time in total.

User avatar
Guru
Guru
Profile

Posts: 1291
Location:
Germany
 
New postPosted: 2012-07-04, 9:47 am 
   Post subject: Re: Emitsound is crashing

I'm glad to hear that it works for you. If you are using Windows you might better use ynh's fix. Also, I updated the code above and attached a file for that script.


User avatar
Power User
Profile

Posts: 544
Location:
The SUNSHINE state
 
New postPosted: 2012-07-04, 10:00 am 
   Post subject: Re: Emitsound is crashing

Ayuto,

Well right now im testing an unofficial binary of eventscripts.dll that "you name here" did and he recompiled it for windows and so far all the scripts are working like it never happen for the past almost 2 hours no crashes and all the sounds are working .. so im gonna stick with that for now , since he didnt have time or has a system running Linux ... Im sure the people using Linux will have to use yours until Mattie returns returns ... But again thanks for your help and i will pass out that fix of your to all my friends using Linux Servers .
^5 my brother :D

< Running HL2DM / win server 2008 rc2


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group