• WolfDJ 4.0 - In-Game MP3 Streaming
    436 replies, posted
Wolf, can you please help me
Cam, post your issue... That does not help
does you gamemode override any panels?
can you help me add a few adjustments? Make doubleclicking nominate it to people, And try to find a way to make it override in game music like in deathrun where the in game music combines with it [URL="http://www.garrysmod.org/downloads/?a=view&id=62671"]http://www.garrysmod.org/downloads/?a=view&id=62671[/URL] overrides the music if you need an example I want the stopsounds command to go when the music starts here is a fp post [URL="http://www.facepunch.com/threads/1123106"]http://www.facepunch.com/threads/1123106 [/URL] [editline]5th September 2011[/editline] [QUOTE=camcole1;32134452]can you help me add a few adjustments? Make doubleclicking nominate it to people, And try to find a way to make it override in game music like in deathrun where the in game music combines with it [URL="http://www.garrysmod.org/downloads/?a=view&id=62671"]http://www.garrysmod.org/downloads/?a=view&id=62671[/URL] overrides the music if you need an example I want the stopsounds command to go when the music starts here is a fp post [URL="http://www.facepunch.com/threads/1123106"]http://www.facepunch.com/threads/1123106 [/URL][/QUOTE] how is this funny jimbodude?
OK Tell Wolf if you agree on this feature i am about to say. Lets say you are running fretta server, you are playing a gamemode that has in-game music of its own. But at the same you are playing wolfdj, well that is gonna sound like crap because you are playing two songs at once. But what if i told you.... there is a way to stop the in game music and only play wolfdj? Well please tell wolf this request because he was... well.... yeah you know wolf
Jesus you're persistent.... Just do something like this. Took me 30 seconds, and I could have done it by taking 5 minutes to look at the code, even if I had never seen it before. [lua]-- Override Play WolfDJ.LegacyPlay = WolfDJ.PlaySong function WolfDJ:PlaySong( songdata, startMin, startSec ) hook.Add( 'Think', 'WolfDJStopSounds', WolfDJ.StopSounds ) WolfDJ:LegacyPlay( songdata, startMin, startSec ) end -- Override Stop WolfDJ.LegacyStop = WolfDJ.Stop function WolfDJ:Stop() hook.Remove( 'Think', 'WolfDJStopSounds' ) WolfDJ:LegacyStop() end -- Stop sounds while we are playing function WolfDJ.StopSounds() RunConsoleCommand( 'stopsounds' ) end[/lua] No, i'm not going to officially implement it. If you want to add it, go ahead, I'm not stopping you.
Thank you wolf, may i ask where you put it exactly TY
Anywhere the client can execute it. Probably at the end of cl_init.lua if you were feeling lazy.
Thank you so much [editline]6th September 2011[/editline] Why does it say [QUOTE]Loaded WolfDJ 2.0 Loading WolfDJ 4.0[/QUOTE] in the console?
[QUOTE=camcole1;32142595]Thank you so much [editline]6th September 2011[/editline] Why does it say in the console?[/QUOTE] Because it says 2.0 in the cl_init and the real version in the shared file. [editline]6th September 2011[/editline] Updated the cl_init file in case anyone REALLY wants it removed, but is too silly to do it themselves...
i am trying to make the stopsounds command , client. when you stop it through manually typing stopsounds it stops music but not sound effects but wolfdj mutes every sound even itself
[QUOTE=camcole1;32121290]i got the error [@lua\includes\extension\string.lua:57] bad argument #1 to 'concat' (table expected, got nil when they tried the red nominate button[/QUOTE] Having the same error when users try to nominate a song, and yes they are clicking the song name first. Playing music locally works fine.
[QUOTE=Qu1k;32146935]Having the same error when users try to nominate a song, and yes they are clicking the song name first. Playing music locally works fine.[/QUOTE] update your lua side [editline]6th September 2011[/editline] [QUOTE=Qu1k;32146935]Having the same error when users try to nominate a song, and yes they are clicking the song name first. Playing music locally works fine.[/QUOTE] update your lua side
:smile: thanks!
[QUOTE=Qu1k;32147582]:smile: thanks![/QUOTE] NP :quagmire: [editline]6th September 2011[/editline] Wolf, I need to make it, send a command as the client, not server. If you type stopsounds in the console if you are in the game, it will only stop music for yourself, if you are in death run, but if you type stopsounds as a server then, it will stop every single sound for everyone. Try checking the script, and have others with you :D
:suicide:
Thank you for this, so far it has worked perfectly.
someone please help me [editline]6th September 2011[/editline] [QUOTE=camcole1;32157687]someone please help me[/QUOTE] there IS NOT ANYTHING FUCKING THING FUNNY ABOUT THIS :v: Funny x 2 jimbodude mr.wolf [editline]6th September 2011[/editline] Please just help me
Why dont you test the code before you put it live... it wont work [editline]7th September 2011[/editline] It does not work here go try it [CODE]-- Override Play WolfDJ.LegacyPlay = WolfDJ.PlaySong function WolfDJ:PlaySong( songdata, startMin, startSec ) hook.Add( 'Think', 'WolfDJStopSounds', WolfDJ.StopSounds ) WolfDJ:LegacyPlay( songdata, startMin, startSec ) end -- Override Stop WolfDJ.LegacyStop = WolfDJ.Stop function WolfDJ:Stop() hook.Remove( 'Think', 'WolfDJStopSounds' ) WolfDJ:LegacyStop() end -- Stop sounds while we are playing function WolfDJ.StopSounds() RunConsoleCommand( 'stopsounds' ) end[/CODE] put at bottom of your cl_init and fucking tell me if it works dont fucking say i am dumb without trying it yourself
it does not work for me [editline]7th September 2011[/editline] Why does it take so long to load the mp3s? can you make it stream not download
long stream times is because of your webserver and/or your internet connection
the older one loaded faster
[QUOTE=camcole1;32169127]Why dont you test the code before you put it live... it wont work [/QUOTE] When did I ever say that code would work? I said, and I quote... [QUOTE=mr.wolf;32142425]Jesus you're persistent.... Just do something like this.[/QUOTE] Now stop acting all entitled and go and hire a damn scripter. Obviously no one here wants to help your sorry, greater-than-thou ass, so stop asking. If you have a legitimate concern with the current functionality of the gamemode, such as code that I have committed to the repository not working, then please tell me so I can fix it. If you want to ask about another feature, ask away, and I'll tell you if I want to implement it or not. However, if I've told you that I'm not going to implement it, then I'm not going to do it. It's annoying that you're getting mad at me for not writing something that I am under no obligation to write. So again, either hire yourself a scripter if you're not competent to do it yourself, or deal with the fact that it's not being done. Stop asking here. [editline]8th September 2011[/editline] [QUOTE=camcole1;32172927]the older one loaded faster[/QUOTE] Also, if you believe the older version loaded faster, then you're a dipshit. I'm sorry, but it's true. Learn how the internet works, then make complaints. The slowness of any connection is entirely based on your own home connection, and the connection of your server. My code cannot make a music file load faster or slower. [editline]8th September 2011[/editline] [QUOTE=camcole1;32172586]Can you make it stream not download[/QUOTE] It is buffered streaming, the same as how youtube works. No, I cannot make it any better than it is.
I can't check it now, but are the settings and/or HasDJRights function shared now, so I don't have to update them in 2 different files?
[QUOTE=Banana Lord.;32178738]I can't check it now, but are the settings and/or HasDJRights function shared now, so I don't have to update them in 2 different files?[/QUOTE] Yes, there is one shared config file.
Sometimes WolfDJ doesn't pickup me being a admin. It only lets me nominate
[QUOTE=Colonel_Black;32183078]Sometimes WolfDJ doesn't pickup me being a admin. It only lets me nominate[/QUOTE] that's your admin mod's fault, all it does is run IsAdmin
I have myself in settings/users.txt or whatever it is, so it isn't due to a admin mod.
Again, all it does is run IsAdmin unless you've edited it yourself, the code works perfectly fine
Well it could be due to a conflicted issue on GMStranded. As I posted previously about the errors. But it aint anything due to my editing.
Sorry, you need to Log In to post a reply to this thread.