Back to Index Page generated: Dec 20, 2024, 7:22:09 AM

Expansion Contextual Jukebox

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description The Contextual Jukebox enhances Oolite gameplay by bringing up background music matching the current situation. Contextual Jukebox uses music by Eric Matyas. The Contextual Jukebox enhances Oolite gameplay by bringing up background music matching the current situation. Contextual Jukebox uses music by Eric Matyas.
Identifier oolite.oxp.Arquebus.ContextualJukebox oolite.oxp.Arquebus.ContextualJukebox
Title Contextual Jukebox Contextual Jukebox
Category Ambience Ambience
Author Arquebus Arquebus
Version 0.1 0.1
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
  • oolite.oxp.Svengali.Library:1.0
  • oolite.oxp.Svengali.Library:1.0
  • Optional Expansions
    Conflict Expansions
    Information URL https://wiki.alioth.net/index.php/Contextual_Jukebox_OXP n/a
    Download URL https://wiki.alioth.net/img_auth.php/9/96/ContextualJukebox.oxz n/a
    License CC-by-nc-sa 4.0 CC-by-nc-sa 4.0
    File Size n/a
    Upload date 1723884260

    Documentation

    Also read http://wiki.alioth.net/index.php/Contextual%20Jukebox

    Equipment

    This expansion declares no equipment.

    Ships

    This expansion declares no ships.

    Models

    This expansion declares no models.

    Scripts

    Path
    Config/script.js
    (function(){
    "use strict";
    this.name = "Contextual_Jukebox";
    this.author = "Arquebus";
    this.copyright = "(C)2021, License:CC-by-nc-sa-4.0";
    this.description = "Contextual Jukebox with music by Eric Matyas";
    this.version = "0.2";
    
    this.startUpComplete = function(){
    	delete this.startUpComplete;
    	// Add event music
    	var a = this.name;
    	worldScripts.Lib_Music._addEventMusic({
    		aegis:{
    			enter:[
    				{snd:"aegis_enter_01.ogg",dur:95},
    				{snd:"aegis_enter_02.ogg",dur:95},
    				{snd:"aegis_enter_03.ogg",dur:91},
    				{snd:"aegis_enter_04.ogg",dur:92},
    				{snd:"aegis_enter_05.ogg",dur:100},
    				{snd:"aegis_enter_06.ogg",dur:106}
    			],
    			exit:[
    				{snd:"aegis_exit_01.ogg",dur:109},
    				{snd:"aegis_exit_02.ogg",dur:108},
    				{snd:"aegis_exit_03.ogg",dur:83},
    				{snd:"aegis_exit_04.ogg",dur:79},
    				{snd:"aegis_exit_05.ogg",dur:109}
    			]
    		},
    		exitWS:{
    			inter:[
    				{snd:"witch_inter_01.ogg",dur:110},
    				{snd:"witch_inter_02.ogg",dur:106},
    				{snd:"witch_inter_03.ogg",dur:35},
    				{snd:"witch_inter_04.ogg",dur:86},
    				{snd:"witch_inter_06.ogg",dur:59},
    				{snd:"witch_inter_07.ogg",dur:84},
    				{snd:"witch_inter_08.ogg",dur:65},
    				{snd:"witch_inter_10.ogg",dur:220},
    				{snd:"witch_inter_11.ogg",dur:151}
    			],
    			standard:[
    				{snd:"witch_std_01.ogg",dur:87},
    				{snd:"witch_std_02.ogg",dur:33},
    				{snd:"witch_std_03.ogg",dur:69},
    				{snd:"witch_std_05.ogg",dur:59},
    				{snd:"witch_std_08.ogg",dur:103},
    				{snd:"witch_std_09.ogg",dur:111},
    				{snd:"witch_std_10.ogg",dur:79},
    				{snd:"witch_std_11.ogg",dur:68},
    				{snd:"witch_std_12.ogg",dur:122},
    				{snd:"witch_std_13.ogg",dur:68}
    
    			]
    		},
    		planetIn:{
    			enterMain:[
    				{snd:"planet_in_main_01.ogg",dur:39},
    				{snd:"planet_in_main_02.ogg",dur:145},
    				{snd:"planet_in_main_03.ogg",dur:67},
    				{snd:"planet_in_main_04.ogg",dur:93},
    				{snd:"planet_in_main_05.ogg",dur:45}
    			],
    			enterSun:[
    				{snd:"planet_in_sun_01.ogg",dur:106}
    			]
    		},
    		planetOut:{
    			exitMain:[
    				{snd:"planet_out_main_01.ogg",dur:69},
    				{snd:"planet_out_main_02.ogg",dur:156}
    			],
    			exitSun:[
    				{snd:"planet_out_sun_01.ogg",dur:102},
    				{snd:"planet_out_sun_02.ogg",dur:173}
    			]
    		}
    	},a);
    	worldScripts.Lib_Music._toggleGroup(a); // Turn them on
    
    	// Playlist music
    	worldScripts.Lib_Music._addChannel({name:"docking",sounds:[
    		{snd:"docking_01.ogg",dur:126},
    		{snd:"docking_02.ogg",dur:162},
    	]});
    	worldScripts.Lib_Music._addChannel({name:"fight",sounds:[
    		{snd:"fight_01.ogg",dur:114},
    		{snd:"fight_02.ogg",dur:131},
    		{snd:"fight_03.ogg",dur:100},
    	]});
    	worldScripts.Lib_Music._addChannel({name:"generic",sounds:[
    		{snd:"ambient_01.ogg",dur:24},
    		{snd:"ambient_04.ogg",dur:42},
    		{snd:"ambient_05.ogg",dur:92},
    		{snd:"ambient_07.ogg",dur:44},
    		{snd:"ambient_08.ogg",dur:127},
    		{snd:"ambient_11.ogg",dur:33},
    		{snd:"ambient_12.ogg",dur:22},
    		{snd:"ambient_16.ogg",dur:21},
    		{snd:"ambient_17.ogg",dur:57},
    		{snd:"ambient_18.ogg",dur:91},
    		{snd:"ambient_19.ogg",dur:43},
    		{snd:"ambient_20.ogg",dur:92},
    		{snd:"ambient_22.ogg",dur:18},
    		{snd:"ambient_23.ogg",dur:72},
    		{snd:"ambient_24.ogg",dur:120},
    		{snd:"ambient_25.ogg",dur:32},
    		{snd:"ambient_26.ogg",dur:70},
    		{snd:"ambient_27.ogg",dur:39},
    		{snd:"ambient_30.ogg",dur:75},
    		{snd:"ambient_38.ogg",dur:60},
    		{snd:"ambient_39.ogg",dur:29},
    		{snd:"ambient_41.ogg",dur:123},
    		{snd:"ambient_43.ogg",dur:87},
    		{snd:"ambient_44.ogg",dur:119},
    		{snd:"ambient_45.ogg",dur:64},
    		{snd:"ambient_47.ogg",dur:59},
    		{snd:"ambient_48.ogg",dur:148},
    		{snd:"ambient_50.ogg",dur:100},
    		{snd:"ambient_51.ogg",dur:119},
    		{snd:"ambient_53.ogg",dur:125}
    	]});
    	// Specific station music
    	worldScripts.Lib_Music._addChannel({name:"Rock Hermit",sounds:[
    		{snd:"station_03.ogg",dur:147}
    	]});
    	worldScripts.Lib_Music._addChannel({name:"Coriolis Station",sounds:[
    		{snd:"station_01.ogg",dur:77}
    	]});
    	worldScripts.Lib_Music._addChannel({name:"Dodecahedron Station",sounds:[
    		{snd:"station_02.ogg",dur:74}
    	]});
    	worldScripts.Lib_Music._addChannel({name:"Icosahedron Station",sounds:[
    		{snd:"station_04.ogg",dur:65}
    	]});
    	worldScripts.Lib_Music._addChannel({name:"Training Station",sounds:[
    		{snd:"station_05.ogg",dur:98}
    	]});
    };
    }).call(this);