Is randomising the docking music achievable?
Moderators: winston, another_commander
Is randomising the docking music achievable?
Sorry for all the questions I have been posing in other threads recently! In an effort to find this out myself I have been searching the boards and can't come up with anything that actually answers this specifically. There are a number of threads on bringing music into the game on certain events, but that doesn't seem randomised.
I've tried looking through the plists etc. in the resources folder and I can''t find anything that seems to reference the docking music.
Is it as easy (a very subjective term I know!) as creating an OXP with your music folder, with a script and some sort of plist with an array of the track list? Or is the command for docking music hard coded and not reachable.
Its easy enough to change the music to my own preferences, but it would be nice to have a random list. I have thought about doing it for the theme music too although I understand it maybe not the "done thing" to change that.
I've tried looking through the plists etc. in the resources folder and I can''t find anything that seems to reference the docking music.
Is it as easy (a very subjective term I know!) as creating an OXP with your music folder, with a script and some sort of plist with an array of the track list? Or is the command for docking music hard coded and not reachable.
Its easy enough to change the music to my own preferences, but it would be nice to have a random list. I have thought about doing it for the theme music too although I understand it maybe not the "done thing" to change that.
- JazHaz
- ---- E L I T E ----
- Posts: 2991
- Joined: Tue Sep 22, 2009 11:07 am
- Location: Enfield, Middlesex
- Contact:
Are you using a Mac or PC?
If you use a Mac, then you can use the iTunes integration to play music. I have a PC so I don't know much about it, but I believe you have to set up an Oolite playlist in iTunes and then the game will play from that playlist automatically.
However, for all versions, I think it may be possible to edit the game to add other music tracks in addition to the standard tracks. Then the game would select music randomly from the available tracks. I've not investigated this myself, but maybe someone else has?
If you use a Mac, then you can use the iTunes integration to play music. I have a PC so I don't know much about it, but I believe you have to set up an Oolite playlist in iTunes and then the game will play from that playlist automatically.
However, for all versions, I think it may be possible to edit the game to add other music tracks in addition to the standard tracks. Then the game would select music randomly from the available tracks. I've not investigated this myself, but maybe someone else has?
Last edited by JazHaz on Thu Mar 18, 2010 1:21 pm, edited 1 time in total.
JazHaz
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!Gimi wrote:Maybe you could start a Kickstarter Campaign to found your £4500 pledge.drew wrote:£4,500 though! <Faints>
Cheers,
Drew.
I'm using a PC, although I do have iTunes. I understand from the other threads thats Oolite cant control iTunes in windows as yet.
I did wonder if it was just a case of adding more music into the folder, but as there are two bits that are there and you only ever hear one when docking I assume it doesnt randomly pick from that folder.
I did wonder if it was just a case of adding more music into the folder, but as there are two bits that are there and you only ever hear one when docking I assume it doesnt randomly pick from that folder.
- JazHaz
- ---- E L I T E ----
- Posts: 2991
- Joined: Tue Sep 22, 2009 11:07 am
- Location: Enfield, Middlesex
- Contact:
There is always the Hyperradio OXP. Not used it myself so I can't advise.
JazHaz
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!Gimi wrote:Maybe you could start a Kickstarter Campaign to found your £4500 pledge.drew wrote:£4,500 though! <Faints>
Cheers,
Drew.
Re: Is randomising the docking music achievable?
As to your Question in the header
Cheers Frame...
No not with the current way these things work... you can substitute the docking music with another piece of music, but not so that it will be different each time you activate the docking computer..dalek501 wrote:Is randomising the docking music achievable?
Cheers Frame...
Bounty Scanner
Number 935
Number 935
Err... I think I'll have to contradict Frame here:
https://bb.oolite.space/viewtopic.php?t=5914
does mention how to assign more than one sound to a specific event. When that's done, a - hopefully different - random sound should be played every time. Should work OK in 1.73+...
https://bb.oolite.space/viewtopic.php?t=5914
does mention how to assign more than one sound to a specific event. When that's done, a - hopefully different - random sound should be played every time. Should work OK in 1.73+...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
That is only the docking sound, heard when docking. Not the music played while being docked as we have on the Mac with i-Tunes integration.Kaks wrote:Edoes mention how to assign more than one sound to a specific event. When that's done, a - hopefully different - random sound should be played every time. Should work OK in 1.73+...
The docking sound is only the break pattern. As code below shows there are 3 events that play the same breakpattern sound.
Code: Select all
// Tunnel effects
"[@breakpattern]" = "breakpattern.ogg"; // Not used directly by game, only by references below.
"[player-launch-from-station]" = "[@breakpattern]";
"[player-dock-with-station]" = "[@breakpattern]";
"[player-exit-witchspace]" = "[@breakpattern]";
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Yeah I suppose what I'd like is to have is a range of different music for docking, which is randomised.
Although I'm very proficient at manual docking, I got in the habit of using instant dock to speed the game up. However that removes the immersive aspect. And so I'd like something to keep that aspect. I like using DC's and range of music would make it that much more interesting maybe?
Perhaps it could be piped into your ship from the station?
"Lave Station control: Please relax and listen to the smoothing sounds of Richard Clayderman as you dock"
That sort of thing...
Although I suppose you wouldnt be able to reference actual artists as if it was for a personal OXP everyone would use their own music.
Although I'm very proficient at manual docking, I got in the habit of using instant dock to speed the game up. However that removes the immersive aspect. And so I'd like something to keep that aspect. I like using DC's and range of music would make it that much more interesting maybe?
Perhaps it could be piped into your ship from the station?
"Lave Station control: Please relax and listen to the smoothing sounds of Richard Clayderman as you dock"
That sort of thing...
Although I suppose you wouldnt be able to reference actual artists as if it was for a personal OXP everyone would use their own music.
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Well what I wrote still stands, however, I forgot to think out side the box, it requires some work around but it would work (in theory)Kaks wrote:Err... I think I'll have to contradict Frame here:
https://bb.oolite.space/viewtopic.php?t=5914
does mention how to assign more than one sound to a specific event. When that's done, a - hopefully different - random sound should be played every time. Should work OK in 1.73+...
The process to do it would be:
1. you make a BlueDanube.ogg file that plays nothing, make it about 10 sec long
2. script a timer that detects the activation of the docking computer, and let it start with 1 second delay so that it, stops the file that plays nothing
The scriptevent is named
Code: Select all
this.playerStartedAutoPilot
{
//code to start a timer in 1 second(let oolite start up its own blueDanube)
//code to select a random piece of docking music..
}
4. make sure it stops upon docking (it should automaticly though(
5. make sure you have these pieces of music on your OXPs music folder
Cheers Frame..
Bounty Scanner
Number 935
Number 935
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Praise Be - 2001: A Space OdysseyCommander McLane wrote:One problem with this is of course that the Blue Danube is quite canon in Elite.
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
You make that sound very easy! I take it that it isn't? Certainly beyond my 'never scripted before' capabilitiesWell what I wrote still stands, however, I forgot to think out side the box, it requires some work around but it would work (in theory)
The process to do it would be:
1. you make a BlueDanube.ogg file that plays nothing, make it about 10 sec long
2. script a timer that detects the activation of the docking computer, and let it start with 1 second delay so that it, stops the file that plays nothing
The scriptevent is named3. write a script that randomly selects one of your preferred music pieces for playing..Code: Select all
this.playerStartedAutoPilot { //code to start a timer in 1 second(let oolite start up its own blueDanube) //code to select a random piece of docking music.. }
4. make sure it stops upon docking (it should automaticly though(
5. make sure you have these pieces of music on your OXPs music folder
Cheers Frame..
Is there any similar oxp that does you are suggesting for something else that I could examine? With a view to having a go myself? Not that I'm very confident!