Garry's Mod

Garry's Mod

[TTT/2] Custom Roundend Music [Tool]
35 条留言
Delta7x 2024 年 10 月 18 日 上午 11:05 
The description says "Doesn't force the player to hear it, it is just optional". Perhaps I'm being a big derp and missing something obvious, but how I'd go about that isn't exactly clear. I'd like to have it so only the people who want to hear end round music will hear it
Creator of Tweak Sauce Izzybee 2021 年 12 月 18 日 上午 7:30 
This mod has given me and my friends endless use. My private TTT wouldn't be the same without it.
4tla2  [作者] 2020 年 7 月 18 日 上午 11:53 
The ConVars or the logs?
To check the ConVars simply type them into the console without any number to get the active status from them.
For the logs you can simply copy the console output from your server and client or if you really want them from logfiles you can simply add -condebug to the start options from server and to the start options from the game. This will create a logfile inside the garrysmod folder of your installation with the name console.log.
And before the update everything worked fine? (of course without custom music for jester, etc.)
AZ99 Raven 2020 年 7 月 17 日 下午 10:32 
where can i find that?
4tla2  [作者] 2020 年 7 月 15 日 上午 4:52 
@AZ99 Raven
Did you check that the files are in the right place and the ConVar points to them?
If they are, could you please upload the logfiles from the round end (both server- and clientside) to a site like Pastebin or Ghostbin so I can look over them?
AZ99 Raven 2020 年 7 月 12 日 上午 4:01 
Now i cant get any sounds to play, lol. Any idea what i might be doing wrong?
4tla2  [作者] 2020 年 7 月 7 日 上午 5:13 
@AZ99 Raven It should work now, but it would be best, if you would try it too. ^^
4tla2  [作者] 2020 年 7 月 6 日 上午 6:11 
@AZ99 Raven If you send me the addon(s) I could add support for them. It could take me some time, but i'll do it.
AZ99 Raven 2020 年 7 月 6 日 上午 3:51 
Is there any way to make this compatible with the custom roles for normal TTT, especially the newer version? It works great for Traitors and Innocent wins, but i cant seem to figure out how to make ti work for Jester, Killer, and Monsters. :(
Vipes 2020 年 4 月 18 日 下午 12:32 
Sure, I'll do so as soon as I can.
4tla2  [作者] 2020 年 4 月 18 日 上午 6:03 
@Vipes Sorry, I tested it with and without your collections. Both times it worked, even with your sound files. I tested on my local client and on a server which both worked just fine and after I changed the ConVar to the data/ folder there was the expected error. Is there really nothing inside your server/client console (Starting with [End_Random_Music])? The only things that come to my mind are, that the addon is somehow not loaded, because it should at least print out some debug infos on serverstart, mapload and roundend or sth. like that. Would you mind to send me an copy of the server console log (just add -condebug to the start options) (without your IP or sth. of course) and your server.cfg (without the passwords and servername of course)? I am really out of other ideas...
Vipes 2020 年 4 月 18 日 上午 4:34 
4tla2  [作者] 2020 年 4 月 18 日 上午 3:12 
@Vipes I tested it, both with TTT2 and normal TTT, and the ConVar is set normally from the server.cfg on mapload/mapchange. I can test it again with the addons you used, if you sent me a link to your collection, but with minimal addons it works just fine for me. I really don't know what could cause the troubles you have, but I'll try, what I can. And, just to make it clear for me, is, that the addon doesn't find any files in the set location (if I get you right in the sound/ folder) but doesn't print any error in the server console?
4tla2  [作者] 2020 年 4 月 18 日 上午 2:20 
@Vipes I'll look at it, as soon as I can.
Vipes 2020 年 4 月 18 日 上午 2:12 
I did both. Even changed the map.
4tla2  [作者] 2020 年 4 月 18 日 上午 1:36 
@Vipes Did you add the ConVar to your Server.cfg or did you changed it via the console? And yeah, the data/ folder is blacklisted from uploading to the Workshop and that is why the addon creates the folders inside the data folder (for a feature I am still working on (see point 4 of the TODO list)). That is why I created the ConVar to change the search location until it is done, to give people the possibility to upload their files to an extern addon, because the sound/ folder isn't blacklisted. I hope I could make my train of thoughts clearer for you and if you have another ideas please let me know.
Vipes 2020 年 4 月 18 日 上午 1:09 
Also. The data folder is blacklisted for uploading addons.
Vipes 2020 年 4 月 18 日 上午 1:09 
No errors. And the reason why I said that is because the convar either doesn’t always work or doesn’t save.
4tla2  [作者] 2020 年 4 月 18 日 上午 1:06 
@Vipes Do you encountered any errors in the console, that could me help fixing the problem you have or does it simply don't start playing any tracks without an error message? And for your second comment: I thought about your idea, but I'll leave it how it is in the moment, because, as far as I know, the folder creation wouldn't work any longer, because file.CreateDir only works inside the data/ folder (https://wiki.facepunch.com/gmod/file.CreateDir) but If you have another Idea, how i could fix this, please let me know.
Vipes 2020 年 4 月 17 日 下午 11:01 
You might want to make it check sound via default.
Vipes 2020 年 4 月 17 日 下午 11:00 
It doesn't seem to work all the time.
Mundoener 2020 年 4 月 14 日 下午 1:48 
Ok ja du konntest mir weiterhelfen danke :)
4tla2  [作者] 2020 年 4 月 14 日 下午 12:43 
[Zweiter Teil der Antwort]
Hierzu muss die selbe Ordnerstruktur, wie im Normalfall vorliegen, allerdings wird hier von dem data/ Ordner zu dem sound/ Ordner, per ConVar ttt_end_random_music_source 1, gewechselt, da diese Dateien auch aus anderen Addons geladen werden können. Für genaueres würde ich dir wie gesagt die Antwort von Cuckoo empfehlen und deine Musik darüber verteilen. Der Download über GMod ist leider schleppend langsam und somit eher keine Option.
Ich hoffe ich konnte dir helfen und wenn du noch Fragen/Probleme hast, melde dich gerne.
4tla2  [作者] 2020 年 4 月 14 日 下午 12:43 
@Mundöner die ConVars stehen direkt im Addon drinnen. Du solltest sie wie jede andere auch über die Konsole ändern können, bzw. solltest du sie auch direkt in der server.cfg eintragen können. Ich arbeite momentan noch daran einen Download-Befehl hinzuzufügen, aber bis dahin kannst du die Musikdateien entweder per Hand (relativ umständlich) versenden z.B. als Zip-Archiv oder du machst es wie @Cuckoo (thank you btw. for your idea) als eigenes Addon, welches nur die Musik enthält. [Antwort zu lang - siehe oben]
Mundoener 2020 年 4 月 14 日 下午 12:05 
bzw um meine frage abzuändern: wird noch ein funktion kommen wo die musicfiles direkt über dein addon geteilt werden können? xd hab grad gelesen dass das teilen nur manuell momentan geht
Mundoener 2020 年 4 月 14 日 上午 11:52 
In welchem Serverordner sollten eigt die Convars stehen? Bin jeden im cfg ordner durchgegangen und da waren sie leider nicht zu finden. und noch eine frage: wie schaff ichs am besten dass die musicfiles mit meinen mitspielern geteilt werden? offenbar werden sie nicht automatisch vom server geladen. danke schon mal für das addon :)
Cuckoo 2020 年 4 月 4 日 上午 9:31 
Exquisite, immaculate, gorgeous- this works perfectly, thank you!
4tla2  [作者] 2020 年 4 月 2 日 下午 1:54 
@Cuckoo Thank you, I'll look at it tomorrow. It could be because of the data/ path that the addon uses. Probably I'll do it with a ConVar, but not today. I'll look what I can do.
Cuckoo 2020 年 4 月 2 日 下午 1:23 
That is to say;

If an add-on uses the directory "myAddon/music/end_random_music/innocent/music.wav", then it won't be uploaded to the Workshop, because the 'music.wav' in the "innocent" folder returns an error of [Not allowed by whitelist].

If the add-on instead has "myAddon/sound/end_random_music/innocent/music.wav", then the file is accepted, and the Workshop addon uploads just fine.

I found a bit more info about this requirement here:

https://wiki.facepunch.com/gmod/Workshop_Addon_Creation
Cuckoo 2020 年 4 月 2 日 下午 1:10 
Ah, damn. It doesn't look like an add-on for loading the music will currently work.

'Music' apparently isn't permitted as a folder name by the workshop whitelist. 'Sound' would be, though.
4tla2  [作者] 2020 年 4 月 2 日 上午 7:28 
@Cuckoo If I get you right, than it should work. It just needs the wav file in the right place to load it (on the client and on the server). If it causes any Errors or simply doesn't work just tell me and I will try my best to fix it.
Cuckoo 2020 年 4 月 2 日 上午 6:41 
Holy hell, that was fast- I barely blinked, and there it was. Thanks a lot, great work! I'll test it out later.

Just to confirm; should a custom add-on that places .wav files at ( music/end_random_music/[role] ) work for loading round end music that this add-on can find?
4tla2  [作者] 2020 年 4 月 1 日 上午 1:43 
@Cuckoo Thank you for your kind words. I'll add your idea to my TODO list. ^^
Cuckoo 2020 年 4 月 1 日 上午 12:40 
Oh man, I've been hoping someone would start work on something like this for ages. Great job.

If you end up managing to further differentiate 'Other' into separate directories for each possible additional TTT2 team wintype (Serial Killer, Necromancer, Jester, Jackal, etc), I will be giddy with joy.