Garry's Mod

Garry's Mod

TTT - End Round Music
859 kommentarer
Kurochi  [ophavsmand] 20. nov. 2024 kl. 15:24 
Nah bro it's all good.
Lomnius 3. nov. 2024 kl. 5:58 
@Kurochi sadly I cannot wirte you via your Steam account...
I modified your code, as it did not work for TTT2 (at least for me), i published a new addon to workshop, if you want i'll take it down, or add you as co-author.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3359508405
Kurochi  [ophavsmand] 19. nov. 2023 kl. 3:45 
Have fun with your buddies man
MelonHead269 18. nov. 2023 kl. 8:31 
Yeah I've tried it out now and it works just fine, I guess I was just a little stupid back then. Looking forward to using this with my buddies.
MelonHead269 18. nov. 2023 kl. 7:55 
Well I have audacity now so this shouldn't be an issue anymore, but I should go test the add-on again just to make sure.
Kurochi  [ophavsmand] 18. nov. 2023 kl. 4:17 
I would happily make this re-encode your mp3 files in the proper format but I can't really ship DLLs with addons over here as they're dangerous. If I could I'd have sorted the thing out once and for all.
Al Toblerone 12. nov. 2023 kl. 11:54 
@MelonHead269 It's a bitrate limitation.
MelonHead269 21. feb. 2023 kl. 16:09 
Eehh I should've been nicer about the comment anyways. I was just upset from messing around with the files for 2 days.
Kurochi  [ophavsmand] 21. feb. 2023 kl. 13:38 
I'm sorry mate that's garry's mod, not my "thing".
MelonHead269 20. feb. 2023 kl. 12:16 
Only a select few songs work and others wont its so inconsistent!
MelonHead269 20. feb. 2023 kl. 12:15 
This dang thing is the only one that will do postround music but it has done nothing but cause trouble, it is so picky with the kind of file it HAS to be a mp3 and even if it IS a mp3 I can't get it to freaking work!
Matz 15. jan. 2023 kl. 7:23 
I'm sorry to ask for your help but I made folders based on your video and put wav file with suitable Hz for the source engine there, but the problem not solved.
While checking the comments in this addon, you said that the problem with the error code like me is that you don't have a file, but I made a folder for each team at this location and put the file inside, but it doesn't work.
GarrysMod\garrysmod\sound\endroundmusic
Matz 15. jan. 2023 kl. 6:52 
[TTT - End Round Music] lua/autorun/endroundmusic.lua:135: bad argument #2 to 'random' (number expected, got nil)
1. random - [C]:-1
2. fn - lua/autorun/endroundmusic.lua:135
3. Run - lua/ulib/shared/hook.lua:109
4. EndRound - gamemodes/terrortown/gamemode/server/sv_main.lua:1339
5. unknown - gamemodes/terrortown/gamemode/server/sv_main.lua:779

idk what should I do with this problem...
thesmokingirl 15. maj 2022 kl. 17:33 
hi! i just recently downloaded this addon for my dedicated 3rd party hosted server, and while it does work for me as i can hear the music, the other server players cant. How can i fix this?
Ada 17. juni 2021 kl. 13:37 
If anybody is interested in doing the work, it looks like sound.PlayFile would work instead of surface.PlaySound. It takes a volume parameter which you could expose as a client conVar. Just note that sound.playFile uses a path relative to the base garrysmod folder, not garrysmod/sound
Kurochi  [ophavsmand] 17. sep. 2020 kl. 11:49 
I don't wanna seem like a dick but if you're asking me that question you probably can't
Tim Tam 16. sep. 2020 kl. 19:33 
Hey man, thanks for the response. So how do i go about modifying it?
Kurochi  [ophavsmand] 16. sep. 2020 kl. 9:02 
You can't without modifying it
Tim Tam 16. sep. 2020 kl. 1:18 
Has anyone figured how to lower the volume of the music?
Kurochi  [ophavsmand] 10. aug. 2020 kl. 11:41 
Dunno if it's still like that
Kurochi  [ophavsmand] 10. aug. 2020 kl. 11:41 
Back in the day the GMod functions I used did not allow that
PapaShanks<(^oo^)> 10. aug. 2020 kl. 6:02 
Just curious if you know whether its possible to control the volume of the music played?
Kurochi  [ophavsmand] 8. juli 2020 kl. 15:32 
You have to cut it
Gwynbleidd ツ 7. juli 2020 kl. 17:44 
hello, where do you get that music ? do you have to actually cut drops ? or is there any way so you can just put it whole in there and it will play only selected part? ty :steamhappy:
Alisson kits tora 29. juni 2020 kl. 15:49 
ok,thanks
Kurochi  [ophavsmand] 29. juni 2020 kl. 15:19 
When the game ends from time out.
Alisson kits tora 29. juni 2020 kl. 13:55 
hey sorry for ask but what is timeout sound? ;p
Kurochi  [ophavsmand] 6. maj 2020 kl. 4:09 
Yeah, I'm sorry mate. I just, you know, moved on from gmod. I made this when I had my own TTT server
Duck. 6. maj 2020 kl. 3:29 
I'm weak in the coding sector lmao, thanks anyway tho
[NEKO] Myzumi 23. apr. 2020 kl. 13:40 
i always get the error in the console when the rounds end

"Failed to load sound "", file probably missing from disk/repository"
Kurochi  [ophavsmand] 15. apr. 2020 kl. 9:50 
Hello, and, when I rewrote this I had forgotten I had that option enabled in the first version. So I missed it.

I don't know if I will fix this up or when, but this has got its github repo if you want to give it a try yourself.
Duck. 14. apr. 2020 kl. 20:24 
Hey boss, I ain't too sure if you're still around on this thread or not but if you are, is there a way for clients to disable the music if they don't want it?
Kurochi  [ophavsmand] 27. mar. 2020 kl. 6:40 
Perhaps. I don't really update this anymore.
Slay_Frido 27. mar. 2020 kl. 6:20 
Is it possible to get this going with ttt2?
Kurochi  [ophavsmand] 20. mar. 2020 kl. 9:07 
Issues with file will always mention the sample rate or something about corruption, if it says "probably missing" then it's probably missing
silent 20. mar. 2020 kl. 8:40 
Thanks
Kurochi  [ophavsmand] 20. mar. 2020 kl. 8:32 
FastDL!
silent 20. mar. 2020 kl. 8:20 
I've got the addons in the server and the message box pops up saying it's playing, but it doesn't play

I get this error in console

endroundmusic\traitor\free bird.mp3 has 0 samples, refusing to load
Failed to load sound "endroundmusic\traitor\free bird.mp3", file probably missing from disk/repository

Is this an issue with the FastDL or the file?
Kurochi  [ophavsmand] 8. mar. 2020 kl. 15:34 
You have a point. The previous version required a config file which most people did not correctly setup, but it allowed for no duplicates. This method almost completely eliminated installation errors, but it came with this drawback. I apologize, I think it's best this way.

Also, I kind of retired from gmod coding so, I don't know if or when I'm going to change it at all.
Ich mag keine feger :( 7. mar. 2020 kl. 9:09 
Can you release a version with just one folder for all? Because I want to use the same music on every group and If I put it on every folder it downloads it 3 times and this takes long on loading screen whyever
Kurochi  [ophavsmand] 24. feb. 2020 kl. 11:07 
It's likely an issue with your server provider or fastdl configuration (latter is more likely). If you're locally hosting, many people have issues and this addon isn't meant for that.

Try resyncing fastdl.
ReLOoniX 22. feb. 2020 kl. 9:26 
I´ve done everything like in the video but still have a problem.
The folders and the music in it wont get downloaded to the players pcs.
Do you know how to fix it ?
Ive activated in gmod options " download every file form server" but still it doesnt load the music files
Kurochi  [ophavsmand] 4. feb. 2020 kl. 9:22 
Huh. I mean I've mostly retired from gmod coding so I don't know when it'll happen.
FloppyAssface 1. feb. 2020 kl. 15:00 
Yeah, it's an enhanced TTT with custom roles and stuff.
Kurochi  [ophavsmand] 1. feb. 2020 kl. 14:02 
TTT2? What? Is it a thing?
FloppyAssface 29. jan. 2020 kl. 13:49 
Hey, is it possible to make this work with TTT2?
Would be great, cuz we've been looking for a Round End Music Addon which works for TTT2.
Stormez_TZ ⛟ 28. jan. 2020 kl. 8:50 
Hay have a little Problem.
First a little Notice, the addont dont work with ttt2.

My Problem is this, i have change back to normal ttt. Have create the folder on my V-Server and create the different folders. Put in some Songs and .txt files. After Restart the Server and after the Round end it will show me the Title and the Artist of the Song but it dont play the Song.
I have uploaded in .mp3 format?

Do you have any Idea? Pls Help
Kurochi  [ophavsmand] 10. nov. 2019 kl. 12:55 
I think the configuration to do when you don't have a fast-dl server is much different and I have no experience with it.
Kurochi  [ophavsmand] 10. nov. 2019 kl. 12:55 
I don't think so, it depends. I have never tested it on peer-to-peer as this is aimed more at communities with dedicated hosting using fast-dl servers.