1. Please be advised of a few specific rules and guidelines for this section.

RELEASED Multi-track Jukebox V1.000001

A jukebox that can play multiple song tracks.

  1. Holy-Freak

    Holy-Freak Aquatic Astronaut

    Hi, thanks for your work !

    I've a question :
    Can i extand the range of the jukebox's sound ? I want to listen it on the total of my ship.

    Thanks. ;)
     
  2. Storm_UK

    Storm_UK Existential Complex

    Welcome :)

    I think altering the "rangeMultiplier" : 1 keys in the .object file will adjust the distance the sound effect occurs.
     
    Holy-Freak likes this.
  3. Holy-Freak

    Holy-Freak Aquatic Astronaut

    Thanks a lot, it's works. :D
     
  4. celixon

    celixon Scruffy Nerf-Herder

    am i doing this correctly?

    //-=-=-=-=-=-=-=-=--=-=[ Track file path ] -=-=-=-=-=-=-=-=-=-=-=-=-=-
    "track1" : { "pool" : ["/music/title-theme-concept-old.ogg"], "rangeMultiplier" : 1 },
    "track2" : { "pool" : ["/Desktop/Starbound.v1.3.2/mods/stormsjukebox/sfx/Virtual Riot - Lunar.ogg"], "rangeMultiplier" : 1 },
    "track3" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    ...
    "track20" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 }
    }
    },
    //-=-=-=-=-=-=-=- Track Info -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    //-=-=-=-=-=-=-=-[ Track Time, "Artis", "Song Name" ]-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    "tracks" : [
    /* track 1 */ [ 124, "^orange;° Chucklefish","^cyan;Original Starbound Concept Theme" ],
    /* track 2 */ [ 263, "Virtual Riot", "Lunar" ]
    //* track 3 */ [ 120, "Artist", "Title" ],
    ...
    //* track 20 */ [ 120, "Artist", "Title" ]
    ]
    }




    i cant seem to get it working
     
  5. Storm_UK

    Storm_UK Existential Complex

    That looks correct, you've remembered to remove the comma from the end of track 2, so it should only play those two tracks. What does your starbound.log file say? any references to the mod object or the ogg file not being found?

    ["/sfx/Virtual Riot - Lunar.ogg"] actually should locate the ogg music file if you've dropped it in the mod under an sfx folder.
     
    Last edited: Jul 30, 2017
  6. celixon

    celixon Scruffy Nerf-Herder

    it plays (or tries to play) the song, but i cant hear anything. im not to sure what the log files says, so i'll be reading and trying to make sense of it in the meanwhile

    by any chance is mp3 files in-compatible?

    nvm i am an idiot :zzz: it requires the .ogg file format... *facepalm*
     
    Last edited: Jul 30, 2017
  7. .Ara.

    .Ara. Big Damn Hero

    This mod looks great, but I'm having problems with adding music. Whenever I click the tab in the wiring station where it would normally be crafted, my game crashes. Not sure if it matters or not, but my computer defaults any .ogg file to open as a firefox html page. Here's the edited part of the .obj file:

    //-=-=-=-=-=-=-=-=--=-=[ Track file path ] -=-=-=-=-=-=-=-=-=-=-=-=-=-
    "track1" : { "pool" : ["/music/title-theme-concept-old.ogg"], "rangeMultiplier" : 1 },
    "track2" : { "pool" : ["/sfx/words_words_words.ogg"], "rangeMultiplier" : 1 }
    "track3" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track4" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track5" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track6" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track7" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track8" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track9" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track10" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track11" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track12" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track13" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track14" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track15" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track16" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track17" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track18" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track19" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track20" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 }
    }
    },
    //-=-=-=-=-=-=-=- Track Info -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    //-=-=-=-=-=-=-=-[ Track Time, "Artist", "Song Name" ]-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    "tracks" : [
    /* track 1 */ [ 124, "^orange;° Chucklefish","^cyan;Original Starbound Concept Theme" ],
    /* track 2 */ [ 288, "Bo Burnham", "Words, Words, Words." ]
    //* track 3 */ [ 120, "Artist", "Title" ],
    //* track 4 */ [ 120, "Artist", "Title" ],
    //* track 5 */ [ 120, "Artist", "Title" ],
    //* track 6 */ [ 120, "Artist", "Title" ],
    //* track 7 */ [ 120, "Artist", "Title" ],
    //* track 8 */ [ 120, "Artist", "Title" ],
    //* track 9 */ [ 120, "Artist", "Title" ],
    //* track 10 */ [ 120, "Artist", "Title" ],
    //* track 11 */ [ 120, "Artist", "Title" ],
    //* track 12 */ [ 120, "Artist", "Title" ],
    //* track 13 */ [ 120, "Artist", "Title" ],
    //* track 14 */ [ 120, "Artist", "Title" ],
    //* track 15 */ [ 120, "Artist", "Title" ],
    //* track 16 */ [ 120, "Artist", "Title" ],
    //* track 17 */ [ 120, "Artist", "Title" ],
    //* track 18 */ [ 120, "Artist", "Title" ],
    //* track 19 */ [ 120, "Artist", "Title" ],
    //* track 20 */ [ 120, "Artist", "Title" ]
    ]
    }

    I've made an sfx folder
    C:\Program Files (x86)\Steam\steamapps\common\Starbound\mods\stormsjukebox\sfx
    and put "words_words_words.ogg" in there.
    I also found this error in starbound.log:
    [Error] Exception caught loading asset: /stormsjukebox/stormsjukebox/storms_jukebox.object, (AssetException) Could not read JSON asset /stormsjukebox/stormsjukebox/storms_jukebox.object
    [0]

    I'm pretty new to adding mods, so help would be greatly appreciated. ^-^
     
  8. Storm_UK

    Storm_UK Existential Complex

    You're missing a comma from the end of

    "track2" : { "pool" : ["/sfx/words_words_words.ogg"], "rangeMultiplier" : 1 },

    in the track file paths. You only need to remove the comma from the last available track in the track info list beneath, which you have done.
     
  9. .Ara.

    .Ara. Big Damn Hero

    Oh, Thank you! It's working fine now. Can't believe I missed that :nuruconfused:
     
  10. Storm_UK

    Storm_UK Existential Complex

    You should find it on the rightmost tab of the wiring station as "Fancy Jukebox." The yellow text modname isn't a problem, that's just me using ^yellow; to make it stand out. ;)

    try
    Code:
    /spawnitem storms_jukebox-recipe
    whilst in admin mode to spawn a blueprint for it, if you can't use that blueprint your character should already know the recipe (which should be the case as its set as a default one.)
     
  11. Storm_UK

    Storm_UK Existential Complex

    Starbound unfortunately needs the .ogg file format for sounds and music files but you should be able to find online converters to help there.

    I forgot to mention for additional jukeboxes its also needed to add said object to the player.config.patch file, so in the case of a storms_jukebox_2:
    Code:
    [
      { "op": "add", "path": "/defaultBlueprints/tier1/-", "value": { "item" : "storms_jukebox" }},
      { "op": "add", "path": "/defaultBlueprints/tier1/-", "value": { "item" : "storms_jukebox_2" }}
    ]
    
    You may also like to rename the objects shortdescription key from "Fancy Jukebox" to something else to differentiate them on the wiring station crafting list.
     
  12. Storm_UK

    Storm_UK Existential Complex

    A UI for it is something I'm considering making for the jukebox, when I've got the time / am in the mood. :)
     
  13. BananaBaiter

    BananaBaiter Intergalactic Tourist

    hey so I've been fiddling with your mod for a bit trying to add in some music and I just can't get it to work; I've made several advancements in getting it to work but I'm currently stuck on getting the song to play. it will display the name of the track I add when played but won't play any sound and when I changed the track length it now causes any contact with the jukebox item to crash the game.

    Heres what I've got:

    //-=-=-=-=-=-=-=-=--=-=[ Track file path ] -=-=-=-=-=-=-=-=-=-=-=-=-=-
    "track1" : { "pool" : ["/music/title-theme-concept-old.ogg"], "rangeMultiplier" : 1 },
    "track2" : { "pool" : ["/music/TheRamble.mp3"], "rangeMultiplier" : 1 }
    "track3" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track4" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track5" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track6" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track7" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track8" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track9" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track10" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track11" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track12" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track13" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track14" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track15" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track16" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track17" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track18" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track19" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 },
    "track20" : { "pool" : ["/sfx/Folder/Folder/TrackName.ogg"], "rangeMultiplier" : 1 }
    }
    },
    //-=-=-=-=-=-=-=- Track Info -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    //-=-=-=-=-=-=-=-[ Track Time, "Artis", "Song Name" ]-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    "tracks" : [
    /* track 1 */ [ 124, "^orange;° Chucklefish","^cyan;Original Starbound Concept Theme" ],
    /* track 2 */ [ 305, "Paul Howard's Quality Serenaders", "The Ramble" ]
    //* track 3 */ [ 120, "Artist", "Title" ],
    //* track 4 */ [ 120, "Artist", "Title" ],
    //* track 5 */ [ 120, "Artist", "Title" ],
    //* track 6 */ [ 120, "Artist", "Title" ],
    //* track 7 */ [ 120, "Artist", "Title" ],
    //* track 8 */ [ 120, "Artist", "Title" ],
    //* track 9 */ [ 120, "Artist", "Title" ],
    //* track 10 */ [ 120, "Artist", "Title" ],
    //* track 11 */ [ 120, "Artist", "Title" ],
    //* track 12 */ [ 120, "Artist", "Title" ],
    //* track 13 */ [ 120, "Artist", "Title" ],
    //* track 14 */ [ 120, "Artist", "Title" ],
    //* track 15 */ [ 120, "Artist", "Title" ],
    //* track 16 */ [ 120, "Artist", "Title" ],
    //* track 17 */ [ 120, "Artist", "Title" ],
    //* track 18 */ [ 120, "Artist", "Title" ],
    //* track 19 */ [ 120, "Artist", "Title" ],
    //* track 20 */ [ 120, "Artist", "Title" ]
    ]
    }

    I believe I have the comas in the correct places...
    Also screenshots of where I put the music folder:
    [​IMG]
    [​IMG]

    I also am not sure if this is correct but it put 2 different folders for the mod; should I delete one?
    seen here:
    [​IMG]

    If your not able to help I completely understand although advice is warmly welcomed!
    Thanks in advance!
     
  14. Storm_UK

    Storm_UK Existential Complex

    I don't think Starbound likes mp3 files but you should be able to convert to ogg format easily enough with an online tool. That's probably the issue you're having with no sound playing for that song.

    Also in track file paths, the line starting "track2" should end in a comma. The Track Info you've got right, the //* line comments are ignored so no comma after the 2nd track info there is correct.

    You should also move the files up one path level to be under mods/stormsjukebox rather than doubling that pathname up, otherwise the script won't find your music folder there either.
     
    Last edited: Oct 7, 2017
    BananaBaiter likes this.
  15. BananaBaiter

    BananaBaiter Intergalactic Tourist

    I don't think its ability to track the file down as it still won,t play it. Where does the program begin looking in the directory?

    *EDIT*
    from what I can see it automatically looks into starbounds music assets; as I pasted the .ogg file into the music assets and it will play. is there any way I can change where it looks?
     
    Last edited: Oct 7, 2017
  16. Storm_UK

    Storm_UK Existential Complex

    If under the path Starbound/mods/stormsjukebox/music/_____.ogg it should see that as being essentially the same as the games own music assets folder (which is usually packed.) The folders under a mod follow the same paths as the vanilla assets.
     
  17. BananaBaiter

    BananaBaiter Intergalactic Tourist

    perfect! thanks so much for the help; it works wonderfully.:catsparkle:
     
  18. PremanKampung

    PremanKampung Scruffy Nerf-Herder

    Problem solved. Many thanks to Tini_weni for the help.


    Cant find it in the wiring station, already tried using spawn command but it only spawn perfect generic item. Help please

    EDIT: Already tried looking in the wiring station while in admin but it crashed the game

    excerpt from the starbound.log
    [03:29:44.224] [Error] Exception caught loading asset: /stormsjukebox/storms_jukebox.object, (AssetException) Could not read JSON asset /stormsjukebox/storms_jukebox.object
    [03:29:49.523] [Error] Could not instantiate item '[storms_jukebox, 1, {}]'. (ItemException) No such item 'storms_jukebox'
    [03:29:50.779] [Error] Could not create blueprint item from recipe: (ItemException) No such item 'storms_jukebox'
     
    Last edited: Dec 13, 2017
  19. DemAvalon

    DemAvalon Void-Bound Voyager

    So the mod does not work, no recipe on the wiring table, trying to spawn the item only gets me a perfectly generic item and looking at the table in admin mode crashes the game, I assume the problem is the same as the one above... so how do I fix this problem?, will you update this?, it sounds like a really awesome mod and I would love to use it so please, if you could help me that would be much appreciated.
     
  20. Storm_UK

    Storm_UK Existential Complex

    Sorry but I'm currently on hiatus from Starbound. The mod should be working as intended, although you may have made a mistake editing the json .object file for the jukebox. Take special attention to comma placement and the likes as noted on previous pages here. Hope that helps.
     

Share This Page