Difference between revisions of "Hyperradio js OXP"

From Elite Wiki
(New page: '''HYPERRADIO.OXP 1.02 for Oolite 1.70 Java-Script version''' by Svengali ---- I've often missed some background music while playing Oolite. Yes, it was possible to use other software fo...)
 
(Syntax cleared)
Line 7: Line 7:
 
That was yesterday.
 
That was yesterday.
   
 
  +
'''HANDLING:'''<br>
HANDLING:<br>
 
  +
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)
 
and add your filenames to the array.
 
and add your filenames to the array.
   
 
Example:<br>
 
Example:<br>
<key>hyperradio_songlist</key><br>
+
<key>hyperradio_songlist</key>
<array><br>
+
<array>
<string>example.ogg</string><br>
+
<string>example.ogg</string>
<string>my_first_sound.ogg</string><br>
+
<string>my_first_sound.ogg</string>
<string>my_second_sound.ogg</string><br>
+
<string>my_second_sound.ogg</string>
<string>My_first_music.ogg</string><br>
+
<string>My_first_music.ogg</string>
<string>my_second_music.ogg</string><br>
+
<string>my_second_music.ogg</string>
</array><br>
+
</array>
 
Save your additions. That's it. Totaly easy.
 
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)<br>
+
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,...
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.<br>
 
!!!! Because of the handling of variables in Java-Script don't use filenames with a leading zero.<br>
   
 
Example:<br>
 
Example:<br>
01.ogg -> interpreted as 1 (without 0 and .ogg) does not work<br>
+
01.ogg -> interpreted as 1 (without 0 and .ogg) does not work
a0.ogg -> interpreted as a0.ogg works<br>
+
a0.ogg -> interpreted as a0.ogg works
So the best would be to use a syntax like:<br>
+
So the best would be to use a syntax like:
artist-songname.ogg<br>
+
artist-songname.ogg
Tchaikovsky-Swan_Lake_Act_II_Scene_Moderato.ogg<br>
+
Tchaikovsky-Swan_Lake_Act_II_Scene_Moderato.ogg
Leon_Willett-Dreamfall.ogg<br>
+
Leon_Willett-Dreamfall.ogg
   
 
'''IMPORTANT:'''
 
'''IMPORTANT:'''
 
This is an addon for '''Oolite v1.70 only'''!
 
This is an addon for '''Oolite v1.70 only'''!
   
You can download it [[Media:hyperradio_js.zip]]<br>
+
You can download it here:[[Media:hyperradio_js.zip]]<br>
 
File size: 406 KB
 
File size: 406 KB

Revision as of 17:43, 20 December 2007

HYPERRADIO.OXP 1.02 for Oolite 1.70 Java-Script version by Svengali


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: This is an addon for Oolite v1.70 only!

You can download it here:Media:hyperradio_js.zip
File size: 406 KB