webspace to store models & textures, but how about music

Forum Archive - from http://theuniversal.net
Locked
User avatar
paintballkev812
Posts: 210
Joined: Tue Oct 04, 2005 12:25 am

webspace to store models & textures, but how about music

Post by paintballkev812 »

mit wrote:HTTPSERVER,0=gameislands.net/downloads
would it goto http://www.gameislands.net/downloads/Data/Radio to look for the island music?
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

From the work in progress world owner's manual (ie it might be wrong, but I think it's right cos mit probably wrote it):

------------------------------------------------------------------------------------------------

The world's 'Radio' allows you to create a selection of mp3 or .ogg tracks for your visitors to listen to. There are 3 methods for using the radio on your world..

Link to a shoutcast station
Link to http (webserver) downloads
Download direct to players from your server *

* Of the 3 methods, the latter is least recommended - using the server's bandwidth & download system to transfer large files will cause lag for anyone visiting your world and will result in more connection errors - players getting kicked off your server etc. Use shoutcast or webserver downloads whenever possible.

Note : to make your server recognise any changes you have made to the 'RadioList.txt' file (or any mp3s you've added to your Radio folder) use the command *radiorefresh.


Link Radio to a shoutcast station
To link your worlds radio to a shoutcast radio station, create the following file in the server folder..

Data\Radio\RadioList.txt

Edit this file in notepad and edit it using the following format..

shoutcast=Station Name
shoutfile1=http://64.236.34.196:80/stream/1076

.. where the 'Station Name' is the name displayed on the client, and 'shoutfile1' is the path to the active shoutcast station (not the .pls file -The ability to reference .pls files will be added in a future revision. For now, you can find the path from a pls by opening it up in notepad or similar)

Link Radio to http downloads
To link your worlds radio to a selection of http downloads, create the following file in the server folder..

Data\Radio\RadioList.txt

Edit this file in notepad and edit it using the following format..


station=StationName1
track=http://webaddress.com/music.mp3
track=http://webaddress2.com/moremusic.ogg
station=ADifferentStation
track=http://webaddress3.com/test.mp3

etc


Note that the presence of a 'RadioList.txt' automatically disables the alternative option of....


Use local server folders for radio
To have music files stored on and downloaded from the world server, you first need to create a subfolder inside the Data\Radio folder. The name of the subfolder is the name that the radio station will have.. so, for instance, create a folder..

Data\Radio\JazzFM\

then the radio will have a station on it called "JazzFM". Put .mp3 or .ogg files in that folder and your players will be able to listen and download the music.

You may also need to make sure that the number of downloads is set appropriately in the server options menu. (It defaults to having a 0 downloads limit - as enabling the server-based radio feature can significantly increase the amount of bandwidth your server uses, and generally cause more lag for players)

Automatically launch your Radio
Use the *settings -> Landscape -> Auto Radio set to 1 to have your world's radio station activated automatically whenever a new player joins.

------------------------------------------------------------------------------------------------

So the answer to your question is yes, you can use webspace if you use the format explained above.
f
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

currently world radios don't have stations anymore. so don't know if that link to http downloads would work fully. if anything, i'm sure the world would just use the first station as the only station. like it does with local radio files.
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

Yeh, looks like it. I can get the first station working, kinda.. it won't stream it properly but once it's got the file locally it works fine. Just needs that sorting out, and the ability to change stations adding, and the interface, basically. I can't see anything like this in the bug forum so i'll add something.

Same thing seems to apply to shoutcast stations too... can't change stations at the moment.

But web music does work. In theory.
f
User avatar
djaj88
Posts: 366
Joined: Wed Jun 15, 2005 10:37 pm
Location: Zaroba

Post by djaj88 »

for shoutcast I follow your steps on tryiny to get The Rock Radio on my world but it failed! WHat should I type in and what should I save it as?
Here what I'm trying to get: http://www.shoutcast.com/sbin/shoutcast ... lename.pls
http://www.therockradio.com/

I realy want this on my world
Here what I did:
shoutcast=The Rock Radio
shoutfile1=http://www.shoutcast.com/sbin/shoutcast ... lename.pls
and I saved it as RadioList.txt
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

Stop replying to every post on the board and take some time out to read the instructions properly ;)

When you do you'll see that you can't just use .pls files. You have to open the .pls file in notepad and copy the stream details instead. So, looking at the .pls file you linked to, it says:

[playlist]
numberofentries=2
File1=http://213.251.129.47:80
Title1=(#1 - 153/300) The Rock Radio
Length1=-1
File2=http://213.251.129.15:8060
Title2=(#2 - 20/20) The Rock Radio
Length2=-1
Version=2

so your RadioList.txt should look something like:

shoutcast=The Rock Radio
shoutfile1=http://213.251.129.47:80
shoutfile2=http://213.251.129.15:8060

f
User avatar
djaj88
Posts: 366
Joined: Wed Jun 15, 2005 10:37 pm
Location: Zaroba

Post by djaj88 »

sry! :cry: See you made me cry!
J/K about crying
The instructions were too vague for me to understand! Let just move on and forget this ever happen!
User avatar
Hammerhands
Posts: 25
Joined: Mon Jun 26, 2006 4:14 pm
Location: aprox 4.3 lyrs from Alpha Centauri

Post by Hammerhands »

getting radio to work is easy
how do I shut i off while in game?
without having to relog into world?
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post by Fooli »

type .radiooff (I think)
f
Locked