Hello
montana05 has thankfully reactivated the link to that oxp.
but -- i little bit playing around with that
-- i saw some problems making it osz ( !! i am not able to do that anyway )
--OXP is a simple subdirectory
-- OXZ -- a packed ZIP ( not so simple - especially for automatic configuration )
AND editing the .js script and copying files to an zipped folder -- i thing - for "normal " players -- too much
-- editing the .js script -- o.k. that could be managed via script
--but adding new music.. ?
...my question ( i don't know java/php/... or something like that // only LInux/Bash )
-a) isn't it possible to move the /music out of the "zip"?
-b) isn't it possible to load an (external/simple) file with the list of music files into the .js script?
--------------- making changes on a executable script -- i think ...not very userfriendly
idea:
-- add some music files to a subdirectory
-- and -- atfer next oolite-start -- you can listen
-- and ...maybe ( examples)
--------------- docking on "Saloon" --> "one Bourbon, one Scotch and one Beer..; Milk & Alcohol"
--------------- docking on "SIRF" --> " welcome to the machine"
--------------- docking an "Anarchie-Stations" => Hmm ..(i'm old") maybe ...Sex-Pistols
--------------- docking on Communist-Station => "Völker hört die Signale ...."
------------------------------ O.K german text ----- but Marx & Lenin were germans
-------------------------------------- i don't know in english
btw.
for the future -- ...not only .ogg -- this makes direct surround sound with an modern digital-amplifier impossible
-> add simple .wav / .pcm ( we now have enough place on SSD-Disks )
Cheers
matthias
P.S.
please look at this post not as negative criticism
but as a little ( beer caused) brainstorming
random docking music / oxp vs. oxz
Moderators: winston, another_commander
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
random docking music / oxp vs. oxz
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
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: random docking music / oxp vs. oxz
No. All resources used by an OXP/OXZ should be in the OXP folder structure (textures in the "Textures" folder, music in the "Music" folder, etc). It doesn't matter if that folder is in a ZIP (ie the OXZ format) or as a plain folder (ie the OXP format).Slartibartfast wrote: ↑Tue Oct 05, 2021 11:59 pm-a) isn't it possible to move the /music out of the "zip"?
Not exactly. You could put the list of music filenames in an entry in the "descriptions.plist" file.Slartibartfast wrote: ↑Tue Oct 05, 2021 11:59 pm-b) isn't it possible to load an (external/simple) file with the list of music files into the .js script?
For example:
Code: Select all
{
my_music_files = ("song1.ogg", "song2.ogg", "song3.ogg");
}
Code: Select all
var filename = expandDescription("[my_music_files]");
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
Re: random docking music / oxp vs. oxz
Hi
so i have to do it the other way ( only works with OXP ) // make a link from outside "Folder i like" to inside OXP (/music)
-- works!! // listening to "john lee hooker" on docking .. and other
but ...only OXP -- not OXZ ( in the future )
It is not possible in an .js script to import (for example.) .txt files and work with them?
-- can't believe it -- even the (very) old bash can do that.
matthias
o.k.No. All resources used by an OXP/OXZ should be in the OXP folder structure (textures in the "Textures" folder, music in the "Music" folder, etc). It doesn't matter if that folder is in a ZIP (ie the OXZ format) or as a plain folder (ie the OXP format).
so i have to do it the other way ( only works with OXP ) // make a link from outside "Folder i like" to inside OXP (/music)
-- works!! // listening to "john lee hooker" on docking .. and other
but ...only OXP -- not OXZ ( in the future )
Hmmm?Not exactly. You could put the list of music filenames in an entry in the "descriptions.plist" file.
It is not possible in an .js script to import (for example.) .txt files and work with them?
-- can't believe it -- even the (very) old bash can do that.
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
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: random docking music / oxp vs. oxz
For security reasons, the game will only import and use predefined plist files (descriptions.plist, missiontext.plist, etc).Slartibartfast wrote: ↑Wed Oct 06, 2021 1:50 amIt is not possible in an .js script to import (for example.) .txt files and work with them?
If you want to keep moving music in/out of the OXP, then yes, OXP only. OXZ is designed to make distribution and installation easier. The OXP format is designed to encourage tweaking and changing. There is no right/wrong answer here.
But even given that distinction, there are tools that allow you to add/change/remove files from a ZIP directly, working with it as you would any file explorer. So you could theoretically have an OXZ file with the flexibility of an OXP.