hyperradio

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Hawkstrom
Mostly Harmless
Mostly Harmless
Posts: 3
Joined: Sun Nov 09, 2008 5:56 pm

Post by Hawkstrom »

Hi, just bought my first Hyperradio but I also get the problem of it not playing my ogg files. I converted them in Audacity and checked with a text editor for the Ogg tag and it looks ok. Tried renaming the files, had numbers in there at first but no change.
I get the 'Connection Established' message but no music is playing..

Hyperradio v1.13
Oolite v1.72

Mac OSX 10.5.5


[EDIT]

Ahem, it seems I had Music set to 'off' in ingame options... *facepalm*
It plays fine, nice work :-)
I'll just leave this post here if somebody happens to be as dumb as me ;-)
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

:-)

You are not alone. Yesterday I've tested some other stuff and was confused about the result until I found that I have had disabled one oxp! Shame on me!

Enjoy your music .-)
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Welcome to the forums Hawkstrom.
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

v1.14(NE) is online - EQ and non-EQ version.

Changes:
- Cleaned up a bit more
- Changed the EQ-handling
- Changed the songselection
- Changed available_to_all
User avatar
dima
Competent
Competent
Posts: 37
Joined: Thu Feb 12, 2009 12:08 am
Location: Karamoon

Post by dima »

Nice! I recently encountered this mod0 and it's a clear must have (in my opinion). By the way, is there any way to make the music loop or play a song automatically after one song has ended? Currently I have to retrigger the music by pressing F7 and then going back with F1 each time ;) Other than that - a near perfect mod.
Like an old publisher (Thorn EMI) once said when asked to publish a game called Elite:
"For us to publish it we would need a game with a score and three lives (...)"
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

dima wrote:
Nice! I recently encountered this mod0 and it's a clear must have (in my opinion). By the way, is there any way to make the music loop or play a song automatically after one song has ended? Currently I have to retrigger the music by pressing F7 and then going back with F1 each time ;) Other than that - a near perfect mod.
Hello dima, thanks for your feedback :-)

I'm using the playMusic() method, because it is on all systems (WIN,MAC,LINUX) streamed. Unfortunately this method doesn't return anything to the script, so there is no control if a song is playing or not. To circumvent this I already thought about using an array with song durations and a timer to check it, but this would blow up the (nicely small) script and is not failsafe. So I've choosen this way and I think it's ok that a player has to activate it (even if it's for every song). Maybe this will change some day, we'll see.

In the meantime - keep on rocking!
User avatar
dima
Competent
Competent
Posts: 37
Joined: Thu Feb 12, 2009 12:08 am
Location: Karamoon

Post by dima »

Ok, thanks for the explanatation ;) I still enjoy the oxp, looping or not!
Like an old publisher (Thorn EMI) once said when asked to publish a game called Elite:
"For us to publish it we would need a game with a score and three lives (...)"
User avatar
bacontube
Above Average
Above Average
Posts: 31
Joined: Tue Mar 31, 2009 3:53 am

Radio Woes

Post by bacontube »

Hi, I downloaded hyperradio, tried setting it up. Downloaded the 3 music packs, tried adding thier entries to the main script itself, put all the music files in the music section of the hyperradio addon.

However, even when buying the radio, launching, pressing F7, I never get any music. I am pretty sure I messed up the script section.

Is there a way someone can post what the script should look like, with the 3 music packs installed?

Am I doing something else wrong?
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

Hello bacontube,

after adding the songs from all 3 musicpacks the array (playlist) in hyperradio.js should look like this

Code: Select all

// ********** CHANGE ONLY THIS PART **********
// Add new or override the following entries to use it as playList
this.hyperradio_playListOriginal = new Array(
	"Erik_Ostrom-By_Your_Side.ogg",
	"Josh_Woodward-On_Brevity.ogg",
	"Josh_Woodward-Untitled.ogg",
	"Paul_Westerberg-Looking_up_In_Heaven.ogg",
	"William_Brooks-Seven_Promises.ogg",
	"Aching_Beauty-Steps.ogg",
	"Antarhes-Different_Way.ogg",
	"Aygan-Now_Its_Over.ogg",
	"Holy_Pain-Last_Sigh.ogg",
	"Red_Light_Rippers-Addicted.ogg",
	"Droopy_Contini-Dewey_Square.ogg",
	"La_Rabona-Vamos_a_Reconquistar.ogg",
	"Lasswell-Drunk_In_A_Smokey_Bar_Drinking_An_Imperial_Porter_Mix.ogg",
	"Luc_Bartoli-Hassans_Dream.ogg",
	"Matt_Pepper_Trio-Jai_demande_au_soleil.ogg"

);
// ****************************************
Hope this will solve your problem.
PS: I've not included the example files in this new list, because they are very short samples and only there to give users a starting point :-)
User avatar
bacontube
Above Average
Above Average
Posts: 31
Joined: Tue Mar 31, 2009 3:53 am

Post by bacontube »

Thank you so much. Yup, I see now what I did wrong. I gave each music pack it's own entry full of songs, instead of putting them all in one.

Thank you for the response, I enjoy the concept of your mod alot. Anything that adds immersion into the game, I think is excellent. And the radio station thing makes an excellent addon.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

bacontube wrote:
Thank you so much. Yup, I see now what I did wrong. I gave each music pack it's own entry full of songs, instead of putting them all in one.
Oh, does it mean you want different radio stations? Then install every musicpack like any other oxp. The scripts in the musicpacks are doing all that stuff for you automagically :-)
User avatar
bacontube
Above Average
Above Average
Posts: 31
Joined: Tue Mar 31, 2009 3:53 am

Post by bacontube »

Svengali wrote:
bacontube wrote:
Thank you so much. Yup, I see now what I did wrong. I gave each music pack it's own entry full of songs, instead of putting them all in one.
Oh, does it mean you want different radio stations? Then install every musicpack like any other oxp. The scripts in the musicpacks are doing all that stuff for you automagically :-)
Ah, so if I decide to go for seperate stations, I install the hyperradio oxp, then each music addon like any other oxp, and the hyperradio one picks it up by default?

Do I need to change anything in the script if I set it up this way?
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

bacontube wrote:
Ah, so if I decide to go for seperate stations, I install the hyperradio oxp, then each music addon like any other oxp, and the hyperradio one picks it up by default?
Exactly :-)
bacontube wrote:
Do I need to change anything in the script if I set it up this way?
No, you don't have to change anything - but you can if you like. The Hyperradio itself contains two example files that are used for the first station. By changing these entries (see above) the first station will be expanded. You can also add own files to any of these scripts (Hyperradio and musicpacks).

BTW: I'll add a automagic function that will do this for the next release.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

v1.15 is online - EQ-version.

Changes:
- Added 'Autocollect'
- Bugfix that could cause a Oolite crash
- Works in v1.72.x and v1.73 (at least until SVN2253 :-))

Edit: The NE (not equipment) version is now discontinued. Kaks has changed the GUI so it's not necessary anymore. But the last version will stay online as long as it is working.
User avatar
Rustybolts
---- E L I T E ----
---- E L I T E ----
Posts: 293
Joined: Sun Jun 07, 2009 6:22 pm
Location: UK

Post by Rustybolts »

http://files.filefront.com/hyperradioTN ... einfo.html
Cannot download above music pack which is a shame :cry:
STE.+ Firefly/Dragonfly + BlackJacksbullion v.1.23 link below.
http://www.mediafire.com/?sharekey=ca16 ... f6e8ebb871
Image
Post Reply