Hi and welcome. Here is how you can change your playlists for Orchestral Demo by editing script.js inside the OXP's Config folder.
If you open the script file in a text editor, you will find this very close to the top:
Code: Select all
this.startUpComplete = function(){
delete this.startUpComplete;
// Add event music
var a = this.name;
worldScripts.Lib_Music._addEventMusic({
aegis:{
enter:[{snd:"lib_orch_aegis_enter03.ogg",dur:98}]
},
alert:{
red:[{snd:"lib_orch_alert_red06.ogg",dur:106}]
},
docked:{
any:[{snd:"lib_orch_aegis_enter04.ogg",dur:109}]
},
exitWS:{
inter:[{snd:"lib_orch_exitws_inter01.ogg",dur:99}],
standard:[{snd:"lib_orch_exitws_standard06.ogg",dur:107}]
},
killed:{
any:[{snd:"lib_orch_killed_any01.ogg",dur:51}]
},
launch:{
any:[{snd:"lib_orch_launch_any01.ogg",dur:92}]
},
planetIn:{
enterMain:[{snd:"lib_orch_planet_enter_main01.ogg",dur:65}],
enterSun:[{snd:"lib_orch_planet_enter_sun02.ogg",dur:92}]
},
rescued:{
any:[{snd:"lib_orch_killed_any01.ogg",dur:51}]
}
},a);
The possible events that the OXP responds to are titled aegis, alert, docked, exitWS, killed, launch, planetIn and rescued. Inside each event, you can find the arrays of music files to play for each event, surrounded by '[' and ']'. .To change the playlists, you simply add, remove or change the filenames inside those arrays. For more than one song to choose from for a particular event, you just add music files like in this example:
Code: Select all
rescued:{
any:[{snd:"lib_orch_killed_any01.ogg",dur:51}, {snd:"mySong01.ogg",dur:100}, {snd:"mySong02.ogg",dur:125}]
}
The number that follows dur: is the duration of the file to play in seconds. Make sure that your song files are inside the OXP's Music folder and you should be good to go.