Difference between revisions of "Hyperradio js OXP"

From Elite Wiki
m (Both versions available)
m (soundformats)
Line 1: Line 1:
'''HYPERRADIO.OXP 1.00 and 1.02 for Oolite'''
+
===HYPERRADIO.OXP 1.00 and 1.02 for Oolite===
  
 
----
 
----
Line 8: Line 8:
 
That was yesterday.
 
That was yesterday.
  
'''HANDLING:'''<br>
+
===HANDLING:===
 
Just place your soundfiles (.ogg or .wav) in the OXPs Sounds-folder.<br\>
 
Just place your soundfiles (.ogg or .wav) in the OXPs Sounds-folder.<br\>
 
Open descriptions.plist in the Config-folder (you can use a simple text-editor)
 
Open descriptions.plist in the Config-folder (you can use a simple text-editor)
Line 37: Line 37:
 
     Leon_Willett-Dreamfall.ogg
 
     Leon_Willett-Dreamfall.ogg
  
'''IMPORTANT:'''<br>
+
===IMPORTANT:===
 
There are 2 different version available:<br>
 
There are 2 different version available:<br>
 
Don't use them together, because they are using the same variables.
 
Don't use them together, because they are using the same variables.
Line 46: Line 46:
 
[[Media:Hyperradio_legacy_1_00.zip | Hyperradio_legacy_1_00.zip]] (405 KB)<br>
 
[[Media:Hyperradio_legacy_1_00.zip | Hyperradio_legacy_1_00.zip]] (405 KB)<br>
 
This version runs on Oolite v1.65 - v1.70.
 
This version runs on Oolite v1.65 - v1.70.
 +
 +
===Tested Formats===
 +
This is a list of all formats that have been tested for the Hyperradio.
 +
Please help to fill in the Mac- and Linux-Part.
 +
 +
{| width="100%" style="border: 1px solid  #cfcfbf; padding: .5em 1em 1em; color: #000000; background-color: #f0f0ff; vertical-align: top; text-align: left;"
 +
|+ '''22050Hz Mono, 22050Hz Stereo, 44100Hz Mono, 44100Hz Stereo, 48000Hz Mono, 48000Hz Stereo'''
 +
! Format !! Header !! WIN !! MAC !! LINUX
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| raw
 +
| headerless A-Law
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| raw
 +
| headerless U-Law
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| raw
 +
| headerless 16Bit DWVW
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| raw
 +
| headerless 24Bit DWVW
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| raw
 +
| Signed 16Bit PCM
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| raw
 +
| Signed 24Bit PCM
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| raw
 +
| Signed 32Bit PCM
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| raw
 +
| 32Bit Float
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| raw
 +
| 64Bit Float
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| wav
 +
| MS Signed 16Bit PCM
 +
| YES
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| wav
 +
| MS ADPCM
 +
| YES
 +
|
 +
|
 +
|--valign="top"
 +
| wav
 +
| MS IMA ADPCM
 +
| YES
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| wav
 +
| MS 32Bit Float
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| wav
 +
| MS 64Bit Float
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| wav
 +
| MS U-Law
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| wav
 +
| MS A-Law
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| wav
 +
| MS Signed 24Bit PCM
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| wav
 +
| MS Signed 32Bit PCM
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| wav
 +
| MS 32kbs G721 ADPCM
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| wav
 +
| MS GSM 6.10
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| wav
 +
| NIST A-Law
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| wav
 +
| NIST U-Law
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| wav
 +
| NIST Signed 16Bit PCM
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| wav
 +
| NIST Signed 24Bit PCM
 +
| no
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| wav
 +
| NIST Signed 32Bit PCM
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| ogg
 +
| Ogg-vorbis
 +
| YES
 +
|
 +
|
 +
|-valign="top" bgcolor="#e7e7ff"
 +
| flac
 +
| 16Bit L5
 +
| no
 +
|
 +
|
 +
|--valign="top"
 +
| flac
 +
| 24Bit L5
 +
| no
 +
|
 +
|
 +
|}

Revision as of 23:50, 23 January 2008

HYPERRADIO.OXP 1.00 and 1.02 for Oolite


I've often missed some background music while playing Oolite. Yes, it was possible to use other software
for this (like Winamp, iTunes,...), but that's not the way it should be. Oolite was a little bit 'incomplete'.

That was yesterday.

HANDLING:

Just place your soundfiles (.ogg or .wav) in the OXPs Sounds-folder.<br\> Open descriptions.plist in the Config-folder (you can use a simple text-editor) and add your filenames to the array.

Example:

 <key>hyperradio_songlist</key>
   <array>
     <string>example.ogg</string>
     <string>my_first_sound.ogg</string>
     <string>my_second_sound.ogg</string>
     <string>My_first_music.ogg</string>
     <string>my_second_music.ogg</string>
   </array>

Save your additions. That's it. Totaly easy.

Step to the game. Buy the Hyperradio, launch from the station and press F7 (SYSTEM_DATA_SCREEN)
and step back to the cockpit view (F1). When the song is over... F7, back to F1,...

!!!! Because of the handling of variables in Java-Script don't use filenames with a leading zero.

Example:

   01.ogg -> interpreted as 1 (without 0 and .ogg)	does not work
   a0.ogg -> interpreted as a0.ogg			works
   So the best would be to use a syntax like:
   artist-songname.ogg
   Tchaikovsky-Swan_Lake_Act_II_Scene_Moderato.ogg
   Leon_Willett-Dreamfall.ogg

IMPORTANT:

There are 2 different version available:
Don't use them together, because they are using the same variables.

Hyperradio_js_1_02.zip (406 KB)
This version runs ONLY under Oolite v1.70!
It uses Java-Script and has some functionallity that can't be done with the old legacy scripting method.

Hyperradio_legacy_1_00.zip (405 KB)
This version runs on Oolite v1.65 - v1.70.

Tested Formats

This is a list of all formats that have been tested for the Hyperradio. Please help to fill in the Mac- and Linux-Part.

22050Hz Mono, 22050Hz Stereo, 44100Hz Mono, 44100Hz Stereo, 48000Hz Mono, 48000Hz Stereo
Format Header WIN MAC LINUX
raw headerless A-Law no
raw headerless U-Law no
raw headerless 16Bit DWVW no
raw headerless 24Bit DWVW no
raw Signed 16Bit PCM no
raw Signed 24Bit PCM no
raw Signed 32Bit PCM no
raw 32Bit Float no
raw 64Bit Float no
wav MS Signed 16Bit PCM YES
wav MS ADPCM YES
wav MS IMA ADPCM YES
wav MS 32Bit Float no
wav MS 64Bit Float no
wav MS U-Law no
wav MS A-Law no
wav MS Signed 24Bit PCM no
wav MS Signed 32Bit PCM no
wav MS 32kbs G721 ADPCM no
wav MS GSM 6.10 no
wav NIST A-Law no
wav NIST U-Law no
wav NIST Signed 16Bit PCM no
wav NIST Signed 24Bit PCM no
wav NIST Signed 32Bit PCM no
ogg Ogg-vorbis YES
flac 16Bit L5 no
flac 24Bit L5 no