• Loading Screen Music - EASY
    15 replies, posted
Hi, I wanted to find out an easy way to make a Gmod loading screen play music in the background. I didn't care for anything special at all. Just the regular loading screen but with some waiting music. If using a YouTube video is the easiest, then how would I be able to load a YT video without it being seen. Any help would be much appreciated! :)
just download the song you want from the video via online converters or something and rename the .mp3 file and replace it in the right folder.
[QUOTE=Plaster;41711858]just download the song you want from the video via online converters or something and rename the .mp3 file and replace it in the right folder.[/QUOTE] Excuse me for being a scrub, but where and how exactly would I do that? :/ I got the mp3, I just don't know how to make that play in the loading screen on my server.
Oh you're talking about servers? Well then I can't help, I can only work on clientside stuff.
Try this. [code] <iframe src="SomeListenOnReportURL" width="0" height="0"></iframe> [/code]
Just a friendly bit of advice: If you play music on the loading screen, make sure it's low and something universally liked. If it's too loud or some shit song, it will drive people away.
[QUOTE=MrGregsWorld;41712805]Just a friendly bit of advice: If you play music on the loading screen, make sure it's low and something universally liked. If it's too loud or some shit song, it will drive people away.[/QUOTE] This. Everytime I hear blaring dubstep or shit like that, I click cancel and find another server.
When I can't turn the music off I also feel inclined to leave.
[QUOTE=crazyscouter;41712588]Try this. [code] <iframe src="SomeListenOnReportURL" width="0" height="0"></iframe> [/code][/QUOTE] So I just add this code into autoexec.cfg ? And about the song, I know. I would never put something loud and obnoxious (dubstep, rap, metal).
[QUOTE=AJisAwesome15;41712966]This. Everytime I hear blaring dubstep or shit like that, I click cancel and find another server.[/QUOTE] Also going to agree with this! If your server has a lot of custom stuff and takes a while to get in, sound can be pretty obnoxious.
You add that to your actual loading screen HTML. I agree too, A lot of people play their own music while gaming ( I'm not one of them ), but if I hear music, I leave...
I have already said that I wouldn't do that. You all must be so use to dealing with fucking morons. I wouldn't put stupid ass music. I was just asking to find out how, and if it makes you feel any better, the song I plan on putting has been on a previous server that I use to go on which is no more, and the song was a favorite. It wasn't loud, annoying, didn't have vocals. It was simple and a nice tune. Anyway, thanks for the help. I'll check this out later tonight.
Sounds good, advice is advice, but it's your server you can do as you please! If it's subtle then sure, why not. Every server that I've connected to which has music playing on the loading screen has been ridiculously loud and annoying. It's not about dealing with "expletive morons", it's about connecting to servers run by people who think they need every flashy animated gif, flashing text, glowing text, marquees and other stuff running in the screen or their website. Don't be offended by criticism, just take it into consideration. What you could do, which would make your server stand-out from the rest, is have a way to save via MySQL the users preferences for the loading screen. So, in an F1 menu, let them have the option to play music in the loading menu, or disable it. Save it under SteamID, and when they connect to your server do a quick query to see if they actually want it to play.
Use music that is quiet (30% volume or less) and appropriate. try this. [media]http://www.youtube.com/watch?v=8CN49Feexb8[/media]
[QUOTE=Acecool;41716041]Sounds good, advice is advice, but it's your server you can do as you please! If it's subtle then sure, why not. Every server that I've connected to which has music playing on the loading screen has been ridiculously loud and annoying. It's not about dealing with "expletive morons", it's about connecting to servers run by people who think they need every flashy animated gif, flashing text, glowing text, marquees and other stuff running in the screen or their website. Don't be offended by criticism, just take it into consideration. What you could do, which would make your server stand-out from the rest, is have a way to save via MySQL the users preferences for the loading screen. So, in an F1 menu, let them have the option to play music in the loading menu, or disable it. Save it under SteamID, and when they connect to your server do a quick query to see if they actually want it to play.[/QUOTE] Nah I got what you'r saying. But all I wanted to know was how to place music in the background. I said in the op that I did not care to add any images at all. I wanted the plain loading screen with a nice, easy to listen tune in the background. By the way, where can I find the loading screen window html or whatever x_x
You create it... Here's an article on it: [url]http://wiki.garrysmod.com/page/Loading_URL[/url] Here's my convar, for my local dev server: [lua]sv_loadingurl "http://localhost/loadingpage.php?steamid=%s&mapname=%m"[/lua] And here's an old version, it'll show at least calculating steam id, etc.. [lua]<body bgcolor="#FFFFFF"> <?php //Get the steamid (really the community id) $communityid = $_GET["steamid"]; //Get the map name $mapname = $_GET["mapname"]; //See if the second number in the steamid (the auth server) is 0 or 1. Odd is 1, even is 0 $authserver = bcsub($communityid, '76561197960265728') & 1; //Get the third number of the steamid $authid = (bcsub($communityid, '76561197960265728')-$authserver)/2; //Concatenate the STEAM_ prefix and the first number, which is always 0, as well as colons with the other two numbers $steamid = "STEAM_0:$authserver:$authid"; //Output welcome line echo "Welcome to my development server, where all the goodies are researched, developed and coded!<br>"; //Output Steam Community ID echo "Your Community ID is $communityid<br>"; //Output calculated SteamID echo "Your SteamID is $steamid<br>"; //Output current map echo "The current map is $mapname<br>"; //Output friendly greeting echo "Enjoy your stay!"; ?> </body>[/lua]
Sorry, you need to Log In to post a reply to this thread.