Barotrauma

Barotrauma

26 次評價
Jukebox (Music Player)
   
獎勵
加入最愛
已加入最愛
移除最愛
檔案大小
發佈於
更新時間
35.008 MB
2020 年 7 月 10 日 下午 3:10
2020 年 7 月 18 日 下午 11:14
7 項更新註記 (檢視)

訂閱以下載
Jukebox (Music Player)

在 Dahitman 的 1 個收藏中
Snakes and Onions Campaign Loadout
9 個項目
描述
Plays 8 songs from one box to change to a different songs, use a coin with the Jukebox. Works by recycling the current music player through a custom fabricator called a Jukebox with a coin item combined with the music player to generate a new song player.

This is a proof of concept to the current musical instruments, the mod has 7 soundtracks carefully selected to demonstrate the ability to contain multiple instances of music within technically a single item. (The Boombox)

It is then recycled by using a Jukebox fabricator and a single coin made out of iron to change the music player to play other tracks. The music player itself is an big old radio that uses normal batteries and the fulgurium batterycell makes it lasts twice as long. Please read disclaimers before installing.

Items
  • Jukebox - Recycling Station, Radio + Coin = New Radio
  • Boombox Radio (Song) - Plays a (Song) when powered by battery and equipped (held)
  • Jukebox Coin - Used along with a Boombox Radio to change songs with Jukebox

Disclaimer (READ BEFORE INSTALLING)
  • Lag expected from loading in music at the mod menu in game. (Possibly making your game load longer).
  • Multiplayer Desync Tested (see iterations below)
  • Don't try to use more than one boombox to save yourselves from possible network problems.

    A Total of 8 soundtracks, 6 are 3 minutes long, and 2 are 5 minutes long. In total is 29 minutes of .ogg music files that the game has to load in which takes me on a SSD about 16 seconds when turning on the mod and each track individually may be loaded when they are crafted from the Jukebox, this may also lag when initiated.

    The good news is, the music box although plays on dead/alive players as long as they have a battery contained, should stop working once the battery runs out (in about 3 minutes for normal battery and 6 for fulgurium). This music player can be deconstructed and crafted, bought from cities at a price of 500, jukebox likewise at a cheaper price.

Versions and Iterations
This concept went through several different trials.
  1. [Current Iteration] Radio Plays Music on Equip (Multiplayer Tested)
  2. Jukebox Fabricator Plays Music on De/Construct (Failed in Multiplayer, removed)
  3. Radio Plays Music on Use (Success in Multiplayer, saved, removed)

Compatibility
Everything should be compatible, unless mod authors named similar items.

Music Credits
I didn't make these myself, the following youtube videos were used without consent. I apologize to their artists and especially the dead ones.

Thank yous
Hubismal for warning me shid may not work good so I didn't spend 3 days trying hard at a brick wall.
Salad for doing initial music test result in failure
Polygloom for doing second music test result in success
Jdownloader and Sony Vegas for converting youtube to ogg.
9 則留言
Lexington 6 月 3 日 下午 12:55 
finally the game officially have jukebox, very few music it can plays but it work.
RedLetterDay 2022 年 1 月 22 日 下午 7:29 
It would be cool if you updated this so that we could put our own music files into it
阿扁巴巴大俠 2021 年 11 月 30 日 上午 2:44 
Nice mod! Is it possible to add custom music? Where should I place music files?
Cogs 2021 年 8 月 20 日 上午 10:02 
One question about the # of sound files. Are the sound files duplicated eight times? Or is there just one soundfile for each track?
Cogs 2021 年 8 月 9 日 下午 4:06 
You are a man of taste.
Anfas 2020 年 8 月 14 日 上午 6:14 
Queston. How does it read what tracks are programed? Is it possable to add more music just by putting mp3 files is some folder?
+1
CanadianCogs 2020 年 7 月 11 日 下午 11:55 
Ok thanks.
Dahitman  [作者] 2020 年 7 月 11 日 上午 10:13 
It reads it from the jukebox.xml and the sound files play under a certain state, in this case the player holding it has it equipped. It is possible to add more music following the format expanding the items in the xml file but not with mp3s they have to be converted into .ogg, but more songs will make this mod load even longer.
CanadianCogs 2020 年 7 月 11 日 上午 12:36 
Queston. How does it read what tracks are programed? Is it possable to add more music just by putting mp3 files is some folder?