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 Void-Bound Voyager

    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 Void-Bound Voyager

    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. Orbital Explorer

    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. Orbital Explorer

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

    carlucci Scruffy Nerf-Herder


    SAME PROBLEM
     
  11. 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.)
     
  12. carlucci

    carlucci Scruffy Nerf-Herder

    Thank you brother all set. Good stuff
     
  13. carlucci

    carlucci Scruffy Nerf-Herder

    I think I finally got one track to work....but no sound is coming from it......its an mp3

    https://pastebin.com/wWsFqnEe

    Ok got it to work but will not accept Mp3 format. That Fking sucks....
     
    Last edited: Aug 23, 2017
  14. carlucci

    carlucci Scruffy Nerf-Herder

    ok im trying do this and failing....so i copied storms_jukebox.reciepe to storms_jukebox_2.reciepe, went into file and pasted same file name...did the same for storms_jukebox and made storms_jukebox_2 copy, went into file and copied same name...went to crafthoping there would be two of them just one......am i missing something.

    i also tried to make copies of each file storms_jukebox2, then went into each file just adding a 2 after storms_jukebox and saved. went to craft and there was only one box there. isnt there spose 2 be two of them. hence two different Cds....unless you have a menu that chooses which cd to play ? Sorry brother, Im new as you can tell.....
     
    Last edited: Aug 23, 2017
  15. 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.
     
  16. carlucci

    carlucci Scruffy Nerf-Herder

    ok so for some reason i might be missing something small......im either crashing or the 2nd one is not showing up......can you recreate and then tell me step by step how you did it...

    I have an idea, hope you run with it, if your not already doing it.

    Click on the jukebox > Menu pops up :
    Toggle >
    ON/OFF,
    Playlist 1, playlist 2, playlist 3 or play all lists.
    Repeat song
    Repeat Folder 1, or 2 or 3
    Repeat ALL
    Shuffle
    Change range modifer,
     
  17. 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. :)
     
  18. carlucci

    carlucci Scruffy Nerf-Herder

    Well it would compliment all your hard work up to this point.
     
  19. 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!
     
  20. 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.

Share This Page