1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Changing the Intro Music

Discussion in 'Discussion' started by xXlogatorXx, Mar 15, 2013.

  1. xXlogatorXx

    xXlogatorXx Guest

    Hello, I was wondering if there was a way to change the intro music?
     
  2. Micafire

    Micafire Exotec Gaming Director, Developer Wannabe Clockwork Customer

    Navigate to garrysmod/gamemodes/<schema>/
    Note: Where <Schema> Would be the schema name, examples are cwHL2RP.

    Open sh_schema.lua and locate "Clockwork.option:SetKey("menu_music"

    Clockwork.option:SetKey("menu_music", "path/to/mp3.mp3");
    Set it to your path.

    Mine was sound/exo/menutheme/halflife.mp3
    So that would be "Clockwork.option:SetKey("menu_music", "exo/menutheme/halflife.mp3");" for me.
     
  3. xXlogatorXx

    xXlogatorXx Guest

    Thanks for the help :)
     
  4. Matt

    Matt No name burritos

    I figured i would post here rather then make an entirely new thread for the same purpose. Now i did exactly as told here but when i started the server there was no music at all. I have checked for the following things

    The file is in MP3 format.
    The Schema File was edited as instructed
    The MP3 file is in the sounds folder

    Am i missing something?
     
  5. You didn't make the client download the file.
     
  6. Micafire

    Micafire Exotec Gaming Director, Developer Wannabe Clockwork Customer

    I forgot to tell you how to add it to Fast Download or somewhat.

    To achieve this, go to your server's root folder(garrysmod)
    Navigate to lua -> autorun -> server

    Then create a new file and name it "resources.lua" ensure there isn't a .txt at the end to mistake.
    Then open it with your favorite editor, and add this
    Code:
    resource.AddFile( "sound/music/bla.mp3" )
    
    Save it, and also add it to your FastDL(I recommend also compressing it with bzip2) if you have one.

    Also, does the console say any errors, e.g unable to locate the file.
    To see if you have downloaded it, on the clientside issue the command in Rcon
    Code:
    play path/to/mp3.mp3
    
    It is already in the sound folder, so the actual path is sound/path/to/mp3.mp3

    Hope this helps.
     
  7. xXlogatorXx

    xXlogatorXx Guest

    Alrighty, I tried to follow the instructions, but I keep getting this error spammed in my gmod console

    Code:
    Failed to load sound "exo\menutheme\hl2rpcombinethemetest.mp3", file probably missing from disk/repository
    
     
  8. Most likely using the wrong path.

    Try placing the file in sound/common. No real need for more folders. Then just do

    sound/common/filename.mp3
     
  9. Would it be possible to get a song from YouTube, download it as an MP3 and then add it to the server and Fast DL?
     
  10. xXlogatorXx

    xXlogatorXx Guest

    http://www.youtube-mp3.org/

    ^^^^For downloading the mp3 from YouTube :)
     

Previous Readers (Total: 0)