Poll:
You do not have permission to vote in this poll.
Total 0 vote(s) 0%
* You voted for this item. [Show Results]

How do I add custom music to my server?
#1
I've always wanted to know how.
[Image: m2m2gSSDCz-2.png]

Well I WAS the walrus.
Reply
#2
Create Sound object in game. Name it "BGM" and put it directly in the world.

Add an MP3, WAV, or MIDI sound link to the Sound property of the Sound.

Whenever you want it to play, call this line somewhere in a script:

game.World.BGMConfusedtop()
sleep(0.1)
game.World.BGM:play()


If you just want it to play in your server, type "game.World.BGMConfusedtop() game.World.BGM:play()" into the Lua console of the server.
[Image: iwn8gk.gif]
Reply
#3
(03-17-2013, 11:34 PM)Ghosty Wrote: Create Sound object in game. Name it "BGM" and put it directly in the world.

Add an MP3, WAV, or MIDI sound link to the Sound property of the Sound.

Whenever you want it to play, call this line somewhere in a script:

game.World.BGMConfusedtop()
sleep(0.1)
game.World.BGM:play()


If you just want it to play in your server, type "game.World.BGMConfusedtop() game.World.BGM:play()" into the Lua console of the server.

So lets say I make a music track or whatever, and wanna upload it into my game/server, how would I enter that link or source file into the Lua console of the server? Be more specific.


Also, can I use an already made song/track? Or would I risk copyright infringements?
[Image: m2m2gSSDCz-2.png]

Well I WAS the walrus.
Reply
#4
You can't just upload it to the server. It has to be hosted somewhere on the net.

Like, for example, one of these files:

http://keybored.x10.mx/musicdata/bdsmmidi/

Then, add the link to the Sound property of the Sound object.

If you need to create it through a script, here's an example:

s = create("Sound"); s.Name = "BGM"; s.Parent = game.World; s.Sound = "http://keybored.x10.mx/musicdata/bdsmmidi/Axel_F_Remix.mp3"

Then, use that script I posted above.
[Image: iwn8gk.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)