[WIP] Contextual Jukebox OXP
Moderators: winston, another_commander
[WIP] Contextual Jukebox OXP
I don't know what I'm going to actually call it... maybe I'll keep it Contextual Jukebox? No idea.
Anyway, this is a placeholder for work I'm going to start tonight digging apart the orchestral music oxp and shoving new guts in. The plan is to add more variation to the music for each event or area, and make the in-space music more "ambient" or "environmental."
EDIT:
Here is the link to version 0.2:
OXP folder: https://app.box.com/s/453g1khs7a9uephfjglsq6zu4kd2grsu
It's about 115MB. I expect it will get smaller over time as I make more/better decisions about what tracks to include.
The OXZ file is not...right. It fails to load due to a bad manifest? I think it's because I zipped it on a Mac, which creates a special hidden folder. I try to zip it on Windows but I can't figure out how to remove the hidden .zip extension. So for now, OXP folder only.
Anyway, this is a placeholder for work I'm going to start tonight digging apart the orchestral music oxp and shoving new guts in. The plan is to add more variation to the music for each event or area, and make the in-space music more "ambient" or "environmental."
EDIT:
Here is the link to version 0.2:
OXP folder: https://app.box.com/s/453g1khs7a9uephfjglsq6zu4kd2grsu
It's about 115MB. I expect it will get smaller over time as I make more/better decisions about what tracks to include.
The OXZ file is not...right. It fails to load due to a bad manifest? I think it's because I zipped it on a Mac, which creates a special hidden folder. I try to zip it on Windows but I can't figure out how to remove the hidden .zip extension. So for now, OXP folder only.
Last edited by arquebus on Sun Dec 12, 2021 3:26 am, edited 7 times in total.
Here is my YouTube channel, where I play poorly: Arquebus X
Re: [WIP] Contextual Jukebox OXP
So here's a question: in the orchestral demo oxp there is the following line:
worldScripts.Lib_Music._addChannel({name:"Rock Hermit",sounds:[
And according to the wiki, this can be done for all station names. Is this essentially matching *any* station with "Rock Hermit" in the name? Or is this a specific station type that is called "Rock Hermit" regardless of what its actual name is?
worldScripts.Lib_Music._addChannel({name:"Rock Hermit",sounds:[
And according to the wiki, this can be done for all station names. Is this essentially matching *any* station with "Rock Hermit" in the name? Or is this a specific station type that is called "Rock Hermit" regardless of what its actual name is?
Here is my YouTube channel, where I play poorly: Arquebus X
Re: [WIP] Contextual Jukebox OXP
The "name" parameter basically means the string you get when calling
When I look there, I find the following names:
someShip.name
. To find the exact name for some station, you need to look at the according shipdata.plist
. For the core stations, you can find this shipdata.plist file somewhere in the Oolite/oolite.app/Resources/Config/shipdata.plist
. Maybe on Windows this is somewhere else, but probably somewhere similar.When I look there, I find the following names:
Coriolis Station
Dodecahedron Station
Icosahedron Station
Rock Hermit
Training Station
Re: [WIP] Contextual Jukebox OXP
Got it! So if an OXP adds stations, that will add to the list the game sees, beyond the ones you listed. I'll start with those 5 and then build out as needed.
Here is my YouTube channel, where I play poorly: Arquebus X
Re: [WIP] Contextual Jukebox OXP
Oh my god it works.
It actually works.
Making my next episode now, with all this lovely music.
It actually works.
Making my next episode now, with all this lovely music.
Here is my YouTube channel, where I play poorly: Arquebus X
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
Re: [WIP] Contextual Jukebox OXP
Hmm .. Jukebox?
i have had a similar idea.
==>> https://bb.oolite.space/viewtopic.php?p=279837#p279837
meanwhile i have ~100 different songs on docking.....
cheers
matthias
i have had a similar idea.
==>> https://bb.oolite.space/viewtopic.php?p=279837#p279837
meanwhile i have ~100 different songs on docking.....
cheers
matthias
Oolite 1.91 / Imp. Trader ( slighly modified ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
Re: [WIP] Contextual Jukebox OXP
Oh that's exciting!
Mine's not really a jukebox, it's just slightly more varied version of the orchestral demo oxp.
Mine's not really a jukebox, it's just slightly more varied version of the orchestral demo oxp.
Here is my YouTube channel, where I play poorly: Arquebus X
Re: [WIP] Contextual Jukebox OXP
The OXP is here: https://app.box.com/s/0pr4nlpjjzb51uwfd6cve5n1602msefr
There are definitely some issues at the moment, mostly involving tracks cutting short. That may be my error (both in track selection and in identifying the durations correctly). I'll have a look at it some time this weekend.
There are definitely some issues at the moment, mostly involving tracks cutting short. That may be my error (both in track selection and in identifying the durations correctly). I'll have a look at it some time this weekend.
Here is my YouTube channel, where I play poorly: Arquebus X
Re: [WIP] Contextual Jukebox OXP
This may happen intentionally when some music is playing and then an event happens. Then the current music gets suddenly stopped, and the new music sets in. Unfortunately, when Music gets stopped, it currently can't be made to fade out nicely. This would probably need some changes in the core Oolite code. Or perhaps it's indeed just wrong duration times .
In case you use any OXP that manipulates the time factor at which the Oolite simulation runs (i.e. speeds up time), then this can also be a cause for music cutting off early. However, as far as I know, you should need to have a trunk version of Oolite for this time factor to be modifiable, so if you don't, then this shouldn't be relevant for you.
In the script, you should put
exitMain
and exitSun
under planetOut
, and not under planetIn
. I think how it is now, both exit categories are just ignored.Re: [WIP] Contextual Jukebox OXP
I definitely ran into that, but I also ran into situations where there was no event shift - the music really just stopped. For those it's surely a combination of durations and music that was intended to be looping.tsoj wrote: ↑Sat Dec 11, 2021 1:25 pmThis may happen intentionally when some music is playing and then an event happens. Then the current music gets suddenly stopped, and the new music sets in. Unfortunately, when Music gets stopped, it currently can't be made to fade out nicely. This would probably need some changes in the core Oolite code. Or perhaps it's indeed just wrong duration times .
Ah ok! I'll update that. Orchestral demo oxp didn't have that so I didn't know where to put it.In the script, you should putexitMain
andexitSun
underplanetOut
, and not underplanetIn
. I think how it is now, both exit categories are just ignored.
Here is my YouTube channel, where I play poorly: Arquebus X
Re: [WIP] Contextual Jukebox OXP
I updated the script, posted it separately because the whole thing is huge and it's silly to re-download for just a single text file.
https://app.box.com/s/pokymm2b58mn2x1phnf04f38kuq5gnie
https://app.box.com/s/pokymm2b58mn2x1phnf04f38kuq5gnie
Here is my YouTube channel, where I play poorly: Arquebus X
- Cholmondely
- Archivist
- Posts: 5365
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: [WIP] Contextual Jukebox OXP
Would it make more sense to do two separate files: One with the mechanics (for which Library is also needed) and a second with the music (easier to update)?arquebus wrote: ↑Sat Dec 11, 2021 3:40 pmI updated the script, posted it separately because the whole thing is huge and it's silly to re-download for just a single text file.
https://app.box.com/s/pokymm2b58mn2x1phnf04f38kuq5gnie
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Re: [WIP] Contextual Jukebox OXP
Probably, but I didn't think of it.
What I will do now, though, is upload two versions: one that's the OXZ file (assuming I did it right), and one that's just the folder. That way people can update parts or whole, as desired.
Here's the (updated) OXZ file: https://app.box.com/s/bn5effwkuefrulzfml1e7zr8wgg072qm
Here's the (updated) OXP folder: https://app.box.com/s/453g1khs7a9uephfjglsq6zu4kd2grsu
For this version I recommend just grabbing the OXZ since I ended up renaming some of the files, so the Music folder in the OXP is completely different and the filenames don't necessarily match up. If there are further updates I won't rename files.
I've removed almost all of the looping music. What's left of the looping music I put in a fade in the last few seconds so it's not super jarring. The new OXZ is only about 115MB.
What I will do now, though, is upload two versions: one that's the OXZ file (assuming I did it right), and one that's just the folder. That way people can update parts or whole, as desired.
Here's the (updated) OXZ file: https://app.box.com/s/bn5effwkuefrulzfml1e7zr8wgg072qm
Here's the (updated) OXP folder: https://app.box.com/s/453g1khs7a9uephfjglsq6zu4kd2grsu
For this version I recommend just grabbing the OXZ since I ended up renaming some of the files, so the Music folder in the OXP is completely different and the filenames don't necessarily match up. If there are further updates I won't rename files.
I've removed almost all of the looping music. What's left of the looping music I put in a fade in the last few seconds so it's not super jarring. The new OXZ is only about 115MB.
Here is my YouTube channel, where I play poorly: Arquebus X
- Cholmondely
- Archivist
- Posts: 5365
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: [WIP] Contextual Jukebox OXP
Well done you! Downloading now.arquebus wrote: ↑Sat Dec 11, 2021 6:04 pmProbably, but I didn't think of it.
What I will do now, though, is upload two versions: one that's the OXZ file (assuming I did it right), and one that's just the folder. That way people can update parts or whole, as desired.
Here's the (updated) OXZ file: https://app.box.com/s/bn5effwkuefrulzfml1e7zr8wgg072qm
Here's the (updated) OXP folder: https://app.box.com/s/453g1khs7a9uephfjglsq6zu4kd2grsu
For this version I recommend just grabbing the OXZ since I ended up renaming some of the files, so the Music folder in the OXP is completely different and the filenames don't necessarily match up. If there are further updates I won't rename files.
I've removed almost all of the looping music. What's left of the looping music I put in a fade in the last few seconds so it's not super jarring. The new OXZ is only about 115MB.
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: [WIP] Contextual Jukebox OXP
Welcome to the darkside! Cookies are in the jar!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!