#Custom Boombox Tracks https://thunderstore.io/c/lethal-company/p/Steven/Custom_Boombox_Music/

611 messages · Page 1 of 1 (latest)

rugged pulsar
#

holy shit

rose monolith
#

Would you be willing to release this on the Unofficial Community as well?

I think users will also find the download more easily if you add it to your description btw! If you open a thread, the link in the title stops being a url.

stray oracle
#

Yeah I noticed that about the links lmao

#

and I'm not sure what you mean by Unofficial Community thonk

echo raft
#

good job holy shit!

fierce plover
#

do you need to be host and can other people hear the custom music ?

stray oracle
#

Don't need to be host. Unfortunately it's only client-side.
But if all players have the same collection of songs it should work?

rain latch
#

Cool mod! Just a simple QoL thing would be to put it in the following format so Modmanagers can read it


 - CustomBoomBoxTracks_1.0.0.rar
     - CustomBoomBoxTracks_1.0.0
         - BepInEx
             - Plugins
                 - CustomBoomboxTracks.dll
             - Custom Songs
                 - Boombox Music

#

Except try to remove that base folder or it gets wonky by default? idk

storm sinew
#
- CustomBoomBoxTracks_1.0.0.rar
         - BepInEx
             - Plugins
                 - CustomBoomboxTracks.dll
             - Custom Songs
                 - Boombox

something like this ig

rain latch
#

Ye

stray oracle
#

Does it need to be a rar archive?

storm sinew
#

if your using MO2 mod manager or vortex, then yeah it would need to be an archive

#

zip 7z rar are fine

#

though 7z oftenly gets flagged by windows defender for no reason

stray oracle
#

yeah that's what I meant
I'd rather avoid RAR if I can get away with it

storm sinew
#

are you interested in uploading you mod into nexus ?
you can opt into dp program which lets you get dp point for every mod downloads.

the dp point which then can be exchanged into paypal funds or game keys that nexus store has to offer.

young isle
#

I assume it's only me that will hear the songs

#

That I used?

plush creek
young isle
#

Alright thanks!

willow cloud
#

i am fairly certain i have installed everything correctly and ive put the tracks in the specified folder, but in-game i dont seem to hear anything, i don't think i missed anything unless it is just a problem with the mp3 files (tho i chceked them and they seemed fine as well)

plush creek
#

do i need to name the track anything in particular?

hoary temple
#

didnt work too

stray oracle
#

It's probably the audio file. Many online YouTube to mp3 converters will actually give you mp4a files instead of mp3, which will not work.
You should be able to use something like Audacity to convert them to a supported codec

hoary temple
#

even if the file is .mp3?

#

none of these worked, will try with audacity

stray oracle
#

yeah, if you have VLC you can open the song up in that and check the info for the codec
this is from a .mp3 file, but you can see it's actually mp4a

hoary temple
#

hmmmmm nice to know

#

thanks, ill try here

frigid mulch
#

I did everything, got all the file but the folder doesn't wants to create itself (BepInEx/Custom Songs/Boombox Music)

stray oracle
#

can you upload the log from the BepInEx folder?

frigid mulch
#

here you go

#

the log doesn't say that it's loaded, running the game as an admin doesn't solve the issue

stray oracle
#

oh right, debug logging isn't enabled by default

frigid mulch
#

doing that rn

#

It does say that's it's loaded, I have the config file but no 'Custom Songs' folder

stray oracle
#

hmm

#

oh wait I think I know

#

you need to load into a game
just an empty lobby by yourself should work

#

that's my bad, it shouldn't work like that but I made a few changes last night before releasing

frigid mulch
#

No worries, I'll try that out and get back to you in a min

mossy radish
#

does only the host need it?

frigid mulch
mossy radish
#

ok, so if i have it then my friends wont hear it then?

frigid mulch
#

Exactly, only you can hear your songs

mossy radish
#

ok thanks

frigid mulch
#

If your friends also have the mod with the same playlist I think you might hear the same song but I'm not sure

frigid mulch
#

Thanks again for the help ! Good work on the mod !

stray oracle
#

Great to hear! I'll try and push out an update some time where it actually creates the folders on startup
there's really no reason it should wait

willow cloud
#

found out why it wasnt working for me haha, i just had to start a new file, wasnt working on an existing one

stray oracle
#

thonk dunno why that would be the case
it shouldn't care about your save file at all

willow cloud
#

yeah i'm not sure, it wanst working at all but when i made a new file and bought a boombox that one worked

cinder wolf
#

is there a limit to the amount of sings?

cinder wolf
#

is this the correct file type for ogg? the beat box doesnt make a sound when i left click

hoary temple
#

same here

stray oracle
#

Ogg Vorbis should work
If you wanna toss me some of those songs I can take a look when I get home

hoary temple
#

maybe theres a size limit?

#

cuz these vanilla songs sounds pretty light

#

like less than a mb

stray oracle
#

There shouldn't be a limit afaik

hoary temple
#

yea

#

idk anything about this, just a suggestion

thorny pine
#

Is everyone requried to have this downloaded or just the person who wants it?

fathom rose
#

just whoever wants it

thorny pine
#

cool, thank you

cinder wolf
#

here a random 4

spiral onyx
#

ya

cinder wolf
#

interesting

cinder wolf
#

still trying to figure out whats wrong with my tracks

stray oracle
cinder wolf
#

weird, im gonna try a fresh save and see if its because i tried it on an old save

stray oracle
#

@cinder wolf @hoary temple try this out; it should work better
or at the very least, it should have better error handling so I can figure out what's wrong if you keep having issues.

cinder wolf
#

it seems that some of the songs work but not all, i tried it with just the ones i sent you and they were fine

#

i am using the new dll

spiral onyx
stray oracle
#

I don't have the power to do that ¯_(ツ)_/¯

spiral onyx
#

o, im unfamiliar with how thread perms work thought authors had somewhat of channel perms

stray oracle
stray oracle
cinder wolf
stray oracle
#

OH

#

are you loading into a game where you already have a boombox purchased?

cinder wolf
#

yes, i bought it and tested it with just one song and it worked so i shut down the game and added 4 more and no dice

#

does a fresh save need to be made every time the music selection is changed?

stray oracle
#

that would seem to be the case, but only because I didn't account for the fact that the boombox gets spawned faster than the game can load all the songs in lmao

#

I should be able to fix that though, I just need to rethink some things

cinder wolf
#

hype, ill keep that quirk in consideration for now

stray oracle
#

but this explains why someone yesterday had this same issue with an existing save file

storm sinew
#

had a question, is the music synchronized between host and client if we have the same music files ?

#

for instance, if the host music is playing terraria music song, then the clients should be playing the same music if both has the music files right

spiral onyx
#

no

#

they will share the same pool of music, but having the same song play for both people is coincidence

storm sinew
#

i see, that would be a qol thing if you can sync it

stray oracle
#

it basically works exactly the same as the base game
albeit with a larger/different pool of songs
if the base game syncs it, it'll be synced assuming all players have the exact same song list and config settings

storm sinew
#

will try it, i can just send the music and config files to my party

storm sinew
#

from my experience of modding gamemaker games, streaming an audio is only good for music, not really good for an audio that's played often.
you should always use ogg files to load the audio

stray oracle
#

I mean it technically is music
if you don't want to stream it from disk, you can turn that off in the config

#

depending on how many songs you have and how long they are, it might cause a significant delay when jumping into a game though

storm sinew
#

Oh i was just my knowledge, i saw the config files. It was off by default

storm sinew
#

a suggestion for the mod, track each music files name and briefly display the music's name anywhere at the corner of the screen when you play them. (only for the player that uses/carrying the boombox)

qol addition would be to store each music files in an index so you can manipulate them to sync between host and clients and also choose what music that you want to play.

stray oracle
#

Displaying the song name is probably possible and not terribly difficult to implement, I'll take note of that

gritty sentinel
#

@stray oracle if you're around I've installed the .dll folder into my plugins and ran the game however it doesn't seem to make a custom songs folder in my bepinex

stray oracle
#

you have to load into a game

#

solo is fine

gritty sentinel
#

oh load INTO an actual game not just menu?

#

gotcha

#

that makes more sense

#

perfect, showed up thank you

stray oracle
#

yeah that parts a mistake on my part

#

I'll fix it eventually

gritty sentinel
#

Just thought of this after playing tonight, but wouldn't something like this also be possible with the television you can buy?

#

(Also got the absolute perfect clip in #game-clips using this mod, it's already perfection)

stray oracle
#

Imma be honest with you, I didn't know there was a television

#

That clip is super funny tho

gritty sentinel
stray oracle
#

hmmmmmmm

viscid terrace
#

im having issues with the boombox music

#

i have mp3 in the folder but nothing is being played

near trout
viscid terrace
near trout
storm sinew
#

can confirm that it's synchronized between host and client if they have the same files

floral void
#

do flacs not work?

stray oracle
#

No

tulip bay
#

Does this sync in multiplayer if every player has the same songs?

stray oracle
#

It should? I haven't done much testing but I believe that's how it works

charred dome
#

my friend and I tried it yesterday

#

you need the exact same song files in Boombox Music folder

#

if you want to be in sync 100% of the time

ebon wind
#

@stray oracle Quick question does this mod only work for a maximum of 4 songs or no?

stray oracle
#

There is no limit

ebon wind
hazy yoke
#

Got a problem where when i load a savefile all old boomboxes (not purchased during current play session) dont work entirely

lusty basin
#

Do all the players need to install this?

stray oracle
frail turtle
#

A couple of meme songs that you can drag and drop into your root folder, all the good ones so hope you have some fun

sudden girder
# stray oracle known bug

not sure you can fix it but there's some kind of a sync issue when playing with more than 2 players. usually two players will hear the same song when others will hear something different everytime. not sure what's causing it as we all have the exact same custom songs.

and it's not always the same guy hearing different song so it's not caused by different installs.

storm sinew
#

played with 5 people, didn't have sync issue so far, as long as you have the same music files

rapid tree
#

Hey yall im getting this error here for the plug in

"[Warning: BepInEx] Plugin [Custom Boombox Music 1.0.0] targets a wrong version of BepInEx (5.4.22.0) and might not work until you update"

does anyone have a link to the bepinEX folder that they are using ?
just worried if i just use latest, ill break my other mods

fathom rose
#

latest bepinex should work for every mod

rapid tree
#

ok pog

#

thank you !

hoary temple
#

does this mean I can't use 2 boom boxes?

hoary temple
#

also bug report

#

StartOfRound_Awake ticks after Boombox_Start

#

which means no songs loaded

hoary temple
#

actually thats not the issue

#

it's just that the songs dont load in time before the boombox start

#

becuase its running in parallel/coroutine

#

racing condition moment

hoary temple
#

silly fix Troll

#

applying clips before StartMusic is executed

vale pawn
stray oracle
hoary temple
#

I see

#

so it is what I was thinking

#

if that's enabled, 2 boom boxes cant play the same song

#

will it just error out? lol

stray oracle
#

it'll stop playing on the first one iirc

hoary temple
#

oh cool you fixed it

#

ill build from source

stray oracle
#

let me know if that fix even works I didn't test it lmao

#

but it probably does

#

I think

hoary temple
#

it should

#

from what ive read on the commit

#

it does work

stray oracle
#

nice, good to know

deep pagoda
#

when sync with ppl without the mod

azure elbow
rough parcel
#

does only the host this for everyone to hear it?

hoary temple
stray oracle
tulip bay
#

Any way of making the boombox play while not in hands of the player?

stray oracle
#

doesn't it do that already if you put it down?

tulip bay
#

yea but i mean having it in the inventory and running around

stray oracle
#

oh

#

that's actually probably possible

fathom rose
#

should be easy

stray oracle
#

literally just patch this

fathom rose
stray oracle
#

ez pz

static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
    var patchedInstructions = instructions.ToList();

    var skippedFirstCall = false;

    for (int i = 0; i < patchedInstructions.Count; i++)
    {
        if (skippedFirstCall)
        {
            if (patchedInstructions[i].opcode == OpCodes.Call)
                skippedFirstCall = true;

            continue;
        }

        if (patchedInstructions[i].opcode == OpCodes.Ret) break;

        patchedInstructions[i].opcode = OpCodes.Nop;
    }

    return patchedInstructions;
}```
golden yoke
#

Hey not sure why but I just tried this version and it gave me infinite credits when I started a game. It fixed when I removed the plugin from the game files.

stray oracle
#

oh god

#

oops

stray oracle
golden yoke
#

lmao

#

yeah just tried and back to normal now

stray oracle
#

thank god

#

sorry about that

burnt gazelle
#

Is it possible If I am the only person with this mod and songs my friends can still hear them or will they need everything?

thorn sluice
#

Could someone link the guide to this? I think i am a donkey and have set it up wrong

devout sable
thorn sluice
#

im trying to set up BepInEx, i load the game but it just doesnt create the extra files..? I have tried reinsalling and oing it differently but nothing works.
I have tried loading the game, loading into an existing file, loading into a new one. And it wont create the 'Boombox Music' Folder. Any help is appreciated 😄

tulip bay
#

just create the folder yourself

#

or maybe try launching the game as administrator, maybe it doesn't have the permissions to create a folder inside the game dir. without administrator privledges

gritty sentinel
thorn sluice
stray oracle
#

Post your LogOutput.log file from the BepInEx folder

thorn sluice
#

[Message: BepInEx] BepInEx 5.4.22.0 - Lethal Company (8/11/2023 3:06:32 PM)
[Info : BepInEx] Running under Unity v2022.3.9.15351836
[Info : BepInEx] CLR runtime version: 4.0.30319.42000
[Info : BepInEx] Supports SRE: True
[Info : BepInEx] System platform: Bits64, Windows
[Message: BepInEx] Preloader started
[Info : BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.22.0]
[Info : BepInEx] 1 patcher plugin loaded
[Info : BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Message: BepInEx] Preloader finished
[Message: BepInEx] Chainloader ready
[Message: BepInEx] Chainloader started
[Info : BepInEx] 0 plugins to load
[Message: BepInEx] Chainloader startup complete

#

Am i stupid? Im probably stupid ahha

stray oracle
#

Idk where you put the mod dll but it's in the wrong place
Should go in Lethal Company/BepInEx/plugins

lyric plover
#

is it because of melon loader?

plucky hazel
#

@stray oracle So is it a known issue that the boombox tends to break when you restart the server?

#

Or an issue that's been fixed recently at least*

#

Because I've noticed it'll still drain battery as if it was working but without playing any songs, if I restart the server.

stray oracle
#

oh uhh

stray oracle
plucky hazel
#

Nope, I can give it a go though.

plucky hazel
#

working all gud

thorn sluice
stray oracle
#

you have to get into a game

#

can be all by yourself

#

I thought I fixed that but maybe I didn't

thorn sluice
#

Just so i know im not screwing it up, this is the correct directory right?
C:\Program Files (x86)\Steam\steamapps\common\Lethal Company\BepInEx\plugins

stray oracle
#

yeah

#

the Custom Songs folder will be one level up

thorn sluice
stray oracle
#

no
BepInEx/Custom Songs/ Boombox Music

thorn sluice
#

IM SO STUPID ITS UNREAL

#

Ok thanks LMAO.

weary fiber
#

isnt it possible to hear the same song in sync, or am i doing smth wrong?

sullen spruce
#

Is there a specific size/length/file type for the songs to play. Some of my custom tracks are silent

bleak chasm
#

Mp3 ogg and wavs for format, no length restrictions (I had a 30 minute of home depot theme song playing and it was like 20mb) it might be a volume issue. Might need to raise the volume on some of the songs.

stray oracle
wispy dragon
#

Question regarding this mod; will it ever be possible to not be client side? I'd love to surprise my friends with songs.

#

I guess it would require some sort of custom file sharing loading phase when joining, which isn't in the actual game right now.

stray oracle
#

very unlikely
sharing random files over the network is something I'd like to avoid

peak onyx
#

@stray oracle do you think something like this would be posted on thunderstore of something like that for potatos like myself?

mild hearth
#

does the Boombox sync if all my friends use the same mp3 files?

willow bone
#

Guys, how i can fix that?
[Info : BepInEx] 3 plugins to load
[Warning: BepInEx] Plugin [Custom Boombox Music 1.2.0] targets a wrong version of BepInEx (5.4.22.0) and might not work until you update

robust valve
#

hey, the boombox only plays 1 song out of the 3 i put in. Also the console spews errors saying this mod is targetting the wrong version of BepinEx

#

😭

stray oracle
#

BepInEx version shouldn't matter that much, but which version do you have?
Also post log

robust valve
#

wait this is the wrong log

#

sec

#

oh wlel

#

targets the same version

stray oracle
#

I meant post the log file
I wanna see the whole thing
Version is close enough it should be fine

robust valve
#

want me to get in game and get a boombox for the log file?

#

or is startup fine

#

got the full log

#

went in game, got a boom box, started cycling music

#

just plays the same song over and over, using the DLL you posted in here earlier

stray oracle
#

two of your songs are invalid (probably not actually mp3, but mp4a)

[Error  : Unity Log] Error: Cannot create FMOD::Sound instance for clip "" (FMOD error: Unsupported file or audio format. )
[Error  :Custom Boombox Music] Failed to load clip at: L:\SteamLibrary\steamapps\common\Lethal Company\BepInEx\Custom Songs\Boombox Music\Build Me Up Buttercup.mp3
This might be due to an mismatch between the audio codec and the file extension!
[Error  : Unity Log] Error: Cannot create FMOD::Sound instance for clip "" (FMOD error: Unsupported file or audio format. )
[Error  : Unity Log] Error: Cannot create FMOD::Sound instance for clip "" (FMOD error: Unsupported file or audio format. )
[Error  :Custom Boombox Music] Failed to load clip at: L:\SteamLibrary\steamapps\common\Lethal Company\BepInEx\Custom Songs\Boombox Music\Lights.mp3
This might be due to an mismatch between the audio codec and the file extension!```
robust valve
#

hm

#

i'll throw them in audacity and re export them

stray oracle
#

that should fix
mostly I find the issue is with certain youtube -> mp3 websites. They say they're giving you an mp3 but it's not really
most audio player software can handle both types so they don't care, but Unity can't

robust valve
#

this is probably why my general unity + mp3 file experience has been fucking terrible

stray oracle
#

yeah

#

youtube -> ogg is generally more reliable in my experience
pretty much everything gives you ogg vorbis, which is what Unity expects

robust valve
#

yeah i prefer ogg aswell when i do anything unity audio stuff

#

That was the solution

#

silly little fake file types

stray oracle
#

yep

#

fyi the mod supports mp3, ogg, and wav

stray oracle
shy spire
#

hey how do i add custom tracks?

#

do i need to make the new folder couse it says to add songs into the folder named custom songs. but its not there

atomic kestrel
#

hey do the songs sync for other people if you have the same songs downloaded?

stray oracle
shy spire
#

im looking for the folder where i can put custom songs nd sounds into

stray oracle
#

yeah it'll generate the folders when you run the game

#

you can also create them yourself if you really want to

#

should be BepInEx/Custom Songs/Boombox Music I think

peak onyx
rugged plover
#

on the github it says just boombox

stray oracle
#

Uh

#

I think it's Boombox Music but I could be mistaken

#

I'll have to check

rugged plover
#

I followed all the steps but the music still isnt working

#

did i do something wrong

rugged plover
#

nvm i got it to work kinda

#

the music works but now the boombox is stuck to my hand

#

and any objects

stray oracle
#

uhhh, post log file?

#

LogOutput.log from the BepInEx folder

rugged plover
rugged plover
#

did i install something wrong

stray oracle
#

idk what's going on in your game lmao
but I'm not sure it's my mod causing it
does it work if you remove MoreCompany?

rugged plover
#

ill try

#

yeah even with the morecompany mod uninstalled its still broken @stray oracle

#

it even plays when not equipped

stray oracle
#

can you post the log again?

rugged plover
#

one sec

stray oracle
#

when you say stuck to your hand
you can't drop it?

rugged plover
#

i can drop it

#

its like

#

if its in my inv its stuck to my hand

#

when i have any item out

#

or no item out at all

#

i can even see it in my shadow

stray oracle
#

super weird...

rugged plover
#

ill try reinstalling it but idk if it will do much

stray oracle
#

maybe I did break something

#

one sec

#

oh is it like this?

rugged plover
#

yes

stray oracle
#

ok yeah that probably is my fault lmao
...lemme fix this

stray oracle
#

oh I know why it's broken lmao

rugged plover
#

what happened

stray oracle
#

I screwed up the patch that lets the boombox keep playing after you pocket it

stray oracle
rugged plover
#

it works now

#

thank u legend

floral void
#

how do you add songs with thunderstore

torpid hatch
#

Pretty sure you need to still add them manually

old sphinx
#

@stray oracle the songs aren't the same between my friends now with the current patch. rip lol

lean socket
#

thank you goat

sudden girder
wicked hollow
#

anyone encountered a problem where the boombox only works when you're playing by yourself?

wide wave
rugged plover
#

will there ever be a multiplayer fix or is this mod supposed to be used for singleplayer only

stray oracle
#

It was designed to be client-side only
Any online functionality is purely coincidence

compact rivet
#

am i the only one that can hear the custom song?

#

or everyone else

tidal sluice
#

as long as your friends put the same files in their boombox songs folders youll hear the same thing

compact rivet
#

ok

#

how do i install this

#

Thundstorm manger?

#

bruuuh

#

i dont understand hw tf this works

#

how i do this with thunderstorm

#

??

compact rivet
tidal sluice
#

yes

compact rivet
#

is there a simple way to send the songs to my friends

stray oracle
#

Discord
Make a zip if you have a lot

jagged ibex
#

unfortunately the songs dont sync

#

for all people

#

even with downloaded not everyone will hear everything at the same time

tidal sluice
#

They do for me

#

And 3 friends

frail turtle
#

Best way to do it I've found is just zip your BepInEx folder and then send to everyone, just tell them to delete the old folder

nimble parcel
#

So, my friends and I have the same songs downloaded but they don't seem to sync

#

Is there like a work around?

#

disregard I totally didn't read above lmao

wide wave
#

anyone reckon there's some mods out there that could somehow make the songs sync? I'm not so streetwise yet with all the stuff that's out there

sudden girder
#

maybe it's working when you don't have many songs I have 20+

wide wave
#

One definitive way of having same song play for everyone would be to just have one song lmao. But that's a bit sleeper

proud cipher
#

My boombox doesn’t work when I left click now. Is there a fix for that

stray oracle
#

LogOutput.log file from the BepInEx folder please

proud cipher
#

What do I do with it?

stray oracle
#

post it here

proud cipher
stray oracle
#

Your audio files are most likely not true mp3 files
You can try re-encoding them with something like Audacity

proud cipher
#

Gotchu thank you🤝🏼

gritty sentinel
#

So pre-existing boomboxes just have issues unfortunately

wide wave
#

oooh. I didn't test that tbh, we tested on an already existing boombox yeah. Didn't think to even buy a new one and then test that.

gritty sentinel
#

Yeah I had it happen last night and remembered there were some issues with preexisting ones and bought a new one, and also tried a new save and both fixes worked

unreal rock
#

Hey guys, ive added the boombox mod, but having trouble getting my own tracks to play. i have installed it and added followed instructions correctlty. when loading up the modded version, it says i the control pannel that "this mod may not work due to the BenpInEx version not being the same" or something like that.

tawny trail
#

it's only a warning

unreal rock
#

This is what it says

tawny trail
#

it will work

#

don't worry

#

a lot of mods use a VERY SLIGHLTY different version bepinex

#

which shouldn't cause issues

unreal rock
#

Ok.. how can i get it to work?

tawny trail
#

did you test the boombox?

gritty sentinel
#

Have you tried a fresh save? Or a new boombox

unreal rock
#

yes

tawny trail
#

play a track and then look at the console

#

what does it give

unreal rock
#

it just plays the default songs

gritty sentinel
#

Also post your bepinex folder screenshot

tawny trail
#

that probably means it's not detecting your songs

#

check the directory/naming

unreal rock
tawny trail
#

Oh

#

I see what's going on here

#

you're using thunderstore right

unreal rock
#

yes

tawny trail
#

it might be checking in the game folder

unreal rock
#

meaning? what do i need to fix?

tawny trail
#

1 sec

unreal rock
#

ok

tawny trail
#

oh i tested it

#

it should be working, but that path looks weird

#

AppData\Roaming\r2modmanPlus-local(or thunderstore)\LethalCompany\profiles\Default\BepInEx\Custom Songs\Boombox Music

#

that's where it should be

#

i was testing if it looked in the game folder or the bepinex folder

unreal rock
#

what needs to be changed?

#

ive gone in multiple times with the current path and it has not worked

timid patio
#

Hello, I have read through the thread and it seems to be a repeating problem but I am having the sync issue as well. If there's anything that can be looked at done, myself and my group would be appreciative!

timid patio
#

So good news, did some testing with some people, and it seems there is a fix to get all your songs sync'd up: Just buy a new boombox

#

If you have an existing boombox on a save, it will be unsync'd. across multiple saves, new and existing, with boomboxes already existing or not, if you buy a new boombox, the new boombox will be sync'd.

stray oracle
#

hmmm not sure why existing boomboxes aren't working properly but I'll look into it

timid patio
#

It MAY also be a pre-mod vs post-mod thing, where existing boomboxes before mod installation wont be in sync, but boomboxes between sessions, both after mod installation, are still sync'd?

#

I can do that testing later for you as well, eating some turkey right now nom

gritty sentinel
#

I don't actually think this is a mod issue, I think it's an issue with the game itself with how it syncs clients up. (For example, as a host if I move my furniture around the ship before some people join, they will not see the furniture moved.)

#

Luckily the fix is just buying a new boombox rn

wide wave
#

Is there any way to have songs play longer than 2mins 20sec? Seems like songs seem to cut out at that point and start over, or is this somehow hard coded/modder hasn't looked into this yet?

quick gazelle
#

yall are big brains im so fucking lost and am bouta attempt this by myself

#

it works

#

love u steven

unreal rock
#

the mod is installed, everything is setup correctly, i buy a boombox (it doesnt work), i buy a second one and it still doesnt work.

#

idk what the issue is

quick gazelle
#

here @unreal rock vol down also audio will be spatial it on the right earphone cuz thats my right screen idk why it does that

drowsy spoke
#

hi guys i have follwed the install process and got the music in the correct format but cant seem to get it to play anything

shy spire
#

hey does everyone has to put the songs by hand into the boombox folder. or when i give them the come nd they import the mods it imports the tracks IN THE FOLDER with it

violet lotus
#

thats what i do for me and my group

#

i zip the whole folder for BepInEx and send it over to them, tho i change some configs back to default since some of them have 60% keyboards

shy spire
violet lotus
#

no thats why

shy spire
#

i see

violet lotus
#

they would just have to drag and drop / delete their bepinex and drop the one you zipped

shy spire
#

i see

violet lotus
#

i believe the mp3s should stay RosThink would have to test it out with one of them and see

shy spire
#

allright i put all the mp3 into a zip so hopefully it wont be too complicated for em lol

violet lotus
#

so long as you show them where to drop it, y'all should be fine

#

i do everything manually but i also have it organized

astral mason
violet lotus
#

i dont use modmanagers

#

i do everything manually

#

that way i dont have weird issues with the mod managers

winter patio
#

do you use dnspy

violet lotus
#

what's that

winter patio
#

lets you view the whole code and all

astral mason
violet lotus
#

i mean all they have to do this way is just one thing

astral mason
#

so there is no way to make a zip, place it once, and keep it in there even after updating the profil with new code ?

violet lotus
#

idk about that

astral mason
violet lotus
#

since idk how the managers yall use work

winter patio
#

i trying to go to thru the file but when i look in bepinex and i try to find custom song its not there

#

ive looked thru the code and it say that the file has been generated but i legit dont see it in the files

stray oracle
winter patio
stray oracle
#

You did what now?

winter patio
#

the dll file you sent i opened it in a debug software that lets me look thru all the code going thru the code

#

and going thru my file on my computer i type in the name of the file searching for it and it said no items match your search

stray oracle
#

I meant for you to run the game with it installed
it should print out the exact path you're looking for in the console/log

winter patio
#

so i have to run the game find the folder them and then im able to import the mp.3 files

#

ok i see

stray oracle
#

in theory
it should be there though idk why it wouldn't

winter patio
#

its saying that boombox is targeting a different version of depinex

#

5.4.22.0

#

i think imma go down a verison in boombox and see if that works

winter patio
#

yeah nothing

winter patio
#

FOUND ITTTTTT

#

lord that took tooo long

stray oracle
#

What was the issue?

wide musk
#

is it possible to make another mod that adds custom songs using this

oblique sparrow
#

is this possible with thunderstore mod manager?

sweet palm
#

Bit of a longshot ask. Trying to set up all the mods I want manually but this mod is the only one not working.
Whenever I click the song just doesn't play on a boombox, new save and all.

Checking the log, the mod and song loads completely fine without any errors.
The error I get whenever I try to play the boombox is as below:

"
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
(wrapper dynamic-method) BoomboxItem.DMDBoomboxItem::StartMusic(BoomboxItem,bool,bool)
BoomboxItem.ItemActivate (System.Boolean used, System.Boolean buttonDown) (at <39ddadb2aa5843e586a6c642ee60b0b5>:0)
GrabbableObject.UseItemOnClient (System.Boolean buttonDown) (at <39ddadb2aa5843e586a6c642ee60b0b5>:0)
GameNetcodeStuff.PlayerControllerB.ActivateItem_performed (UnityEngine.InputSystem.InputAction+CallbackContext context) (at <39ddadb2aa5843e586a6c642ee60b0b5>:0)
UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.CallbackArray1[System.Action1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) (at <69a3ba35f0be43dc9f2827cb84fef646>:0)
UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr)

[Error : Unity Log] NullReferenceException while executing 'performed' callbacks of 'Movement/ActivateItem[/Mouse/leftButton]'
[Warning: Unity Log] Audio source failed to initialize audio spatializer. An audio spatializer is specified in the audio project settings, but the associated plugin was not found or initialized properly. Please make sure that the selected spatializer is compatible with the target.
[Warning: Unity Log] Audio source failed to initialize audio spatializer. An audio spatializer is specified in the audio project settings, but the associated plugin was not found or initialized properly. Please make sure that the selected spatializer is compatible with the target.
[Warning: Unity Log] Audio source failed to initialize audio spatializer. An audio spatializer is specified in the audio project settings, but the associated plugin was not found or initialized properly. Please make sure that the selected spatializer is compatible with the target.
"

The audio spatializer stuff goes on for a little bit longer, same error.

stray oracle
#

Idk why you're getting that error but it shouldn't be caused by the boombox mod.
If you remove the mod and try playing a boombox, does it work then?

sweet palm
#

Yeah it does, sorry for the late reply.
After some testing it's a conflict with one of my other mods it seems since it works completely fine with just the boombox mod.

#

I'll look into it and figure out what mod it conflicts with and give a precautionary warning at some point Saturday I'd imagine.

wide musk
#

@stray oracle can you change the custom songs folder to be inside your plugin folder

#

that way we can make add on mods for songs that can work through thunderstore

#

I think that your mod should do the same thing for boombox music that More Suits does for suits

#

and thunderstore/r2modman don't allow mod files to be automatically be put outside the plugins folder

unborn vigil
winter patio
# unborn vigil Did you find out where the path was when using the modmanager?

No i didn’t use a mod manager i did everything manually installed all the files that way but initially I had some mods that were conflicting with other and not allowing the file to generate so I went through the tedious process of installing each mod and booting the game until I found which mods didn’t work for me

unborn vigil
#

Ahhhhh gotcha then

winter patio
#

But after doing all that I got the file to generate and easy drop and drop .mp3 files into the folder

stray oracle
# wide musk <@244209958424543233> can you change the custom songs folder to be inside your p...

I see you already made your own mod to address this, but I'm not planning on changing the songs folder in this way, for a couple of reasons

  • I feel like uploading song files for the boombox is a (mostly) low-effort "mod" and I'd rather encourage people to come up with their own stuff
  • in like 99% of cases uploading songs to Thunderstore is violating copyright
  • I don't want to clog up Thunderstore with songs/song packs. This is already happening with stuff like mod packs and I don't want to add on to it
wide musk
#

I just wish someone told me beforehand because I would have made a cryptic personal mod instead

wide musk
#

I woke up this morning and @stray oracle you were 100% correct 😭

#

took down the guide and changed the readme to be more vague so hopefully that stops the flood of low effort mods

gritty sentinel
#

I do wish Thunderstore had a way to simply set mods to private for people only in your team, unless there is a way

wide musk
#

not that I know of

autumn finch
#

Hello guys why my Custom Songs\Boombox Music folder doesnt exist ?

gritty sentinel
#

Once you load up an actual lobby (not just opening game to main menu) it should create itself

autumn finch
#

I download the mod with r2modman

#

than i lunch a game

gritty sentinel
#

ah

autumn finch
#

but nothing appear

#

et oui..

gritty sentinel
#

I believe I just added my own Custom Songs folder to the BepInEx folder and it worked using r2modman

autumn finch
#

and inside your customs songs ?

#

an other folder or directly songs ,mp3

gritty sentinel
#

just directly the mp3s

autumn finch
#

ok i will try it

#

and where did you put your dll ?

#

CustomBoomboxTracks.dll

#

,

#

?

gritty sentinel
#

if you installed it with r2modman you shouldn't have to worry about where to put your .dll

violet lotus
#

^

#

i only dropped the songs into custom songs and that was it

rugged mortar
#

I have made the songs work for myself. Just need to figure out how to make my friends hear what im hearing

violet lotus
#

give them the songs too

#

thats all you need to do

#

and tell them to add them on the custom songs folder, and that's it

rugged mortar
#

Will they hear the same songs as im hearing or a random order?

violet lotus
#

idk about that yet

#

prolly will be hearing it at the same time as you

charred stump
#

I've seen some people report that the boombox may play different songs for different players, I personally haven't tested it so I'm not sure

tidal spindle
#

can someone help me install this mod im dumb

thick socketBOT
#

Please head to for any help with modding your game. Please be patient as the employees are only human.

autumn finch
#

nothing works lol absolutly nothing

#

can someone give me a short tutorial for installing and setuping Custom_boombox

violet lotus
#

theres already a tutorial on the thunderstore

wicked scarab
#

are there any known conflicts with this mod? I can't seem to get it to work at all

#

i'll try reinstalling

violet lotus
#

im running hella mods rn, if you have a mod that messes with the music as well it might conflict

dreamy jasper
#

tragic tbh

stray oracle
#

in theory it should be working if

  • you're using the latest version of the mod on Thunderstore
  • everyone has the exact same song list
  • everyone has the same config options set (i.e. everyone has default songs enabled/disabled)
wicked scarab
#

yeah idk why it wasn't working at first

#

reinstalled it and i twork

#

the desync is sad though

#

but i assume it's hard to fix

wide musk
#

i can verify that the sync works 100% with my group of 8

#

I used a profile code to ensure that everything is the same

dreamy jasper
# wide musk I used a profile code to ensure that everything is the same

are you using r2modman or thunderstore? i was troubleshooting with both and no matter what i tried, different issues would pop up almost every time i shared the profile. the farthest i got was that I got everything to work 100% on my end utilizing your fix, but my friends wouldn't have the skins pop up, or they'd only have 2 songs out of the 6 we have added, etc. i've added too many variables to my troubleshooting and it's driven me up a wall lol

violet lotus
#

if they only had 2 out of 6 songs its because they didnt place all the songs

hoary temple
gritty sentinel
# wicked scarab but i assume it's hard to fix

the desync is easy to fix, simply buy a new boombox. ANY pre-existing boombox on a save will desync for everyone. Even if you start a fresh save, buy a new boombox when everyone has the same songs, and then happen to restart the lobby that boombox will then unsync itself again. (So just throw it out and buy a new one)

wicked scarab
#

i'll try it

charred stump
stray oracle
#

hmmm I might have a theory

charred stump
# stray oracle <:hmmm:777948449680785468> I might have a theory

I'll throw my hat in the ring, as I've been looking into this as well:

I think it has something to do with the sync of the musicRandomizer variable between clients. So -- if you spawn in a fresh boombox, every client creates a musicRandomizer variable which is seeded (this.playersManager.randomMapSeed - 10), so the "random" numbers are predetermined and same for everyone. And it's synced, because every client has gone through the Start() Method at the exact same time.

However -- if the boombox already exists, the host is the first one to go through the Start() method, and already starts generating "random" numbers from the seed. Once another person joins, they ALSO start generating random numbers, in the exact same sequence as the host. But here's where the desync comes in -- because they have joined later, the client has just started to go through the "random" numbers, while the host could be already at "random" number 100, meaning that the client has "fallen behind" the host, and ultimately causes desync.

#

Maybe you'll figure out how to fix this, I've tried syncing the variable through Networking but I'm really bad at it, so I don't really have an implementation yet. You could also somehow just force everyone to start generating the Random numbers over again if someone joins the server or something. That's the two solutions that I came up with that could maybe work, maybe there's something better 😅

wide musk
#

this is a fantastic resource thanks

#

maybe the host just sends the number through an RPC call

stray oracle
#

I think I might know why actually

#

actually no never mind
I was assuming that the randomMapSeed was somehow desynced

#

oh wait maybe I do have it

#

since a Boombox is a NetworkBehaviour, I believe it spawns as soon as a player joins the session

#

so it spawns before the server syncs the randomMapSeed

#

which occurs in OnClientConnect() -> OnPlayerConnectedClientRPC()

#

now I see why someone made a PR that hard-coded the seed

charred stump
#

Ah I see what you mean

#

Yeah I just tested hard-coding the seed and it just works now, so you're on point

raw garnet
#

Small question. When I place my own custom music into the profile folder for r2modman it deletes the mp3 files I put into the boombox music folder when I click start modded. How would I make a mod on r2modman that would allow me to install it through there

wide musk
#

uninstall the fix mod

raw garnet
#

Alright that fixes it for me but I'd like to be able to have all music I'm putting into my modpack available for my friends

#

Is there a tutorial on properly setting that up for r2modman?

wide musk
#

use the plugins/Custom Songs folder as directed in README of the fix mod

karmic socket
#

I am having issues getting this mod to work can anyone help?

wanton galleon
#

@stray oracle how hard would it be to add a track selection

wide musk
#

that would require a UI so a good bit of work

rancid patrol
#

Hello, in desperate need of some information on what mastering settings are applied to songs through the mod. My boys and I added my music to the mod and the mastering was exquisite would love to replicate on my own. Ty if anyone has any information

wanton galleon
#

mastering?

wide musk
#

but Im pretty sure it's the actual game applying those settings

stray oracle
#

Correct, whatever mastering there is, if any, is done by the game

#

I'm just swapping out audioclips

main geyser
#

add a volume slider config option :)

wanton galleon
#

flipmods object volume controller works well for that

frail turtle
#

pretty sure this mod is broke right?

#

from the v45 update?

wanton galleon
frail turtle
# wanton galleon nope

oh shit you right, probably the content fix patch mod was the broken one, thanks for that

main geyser
#

@stray oracle You need to update the mod to add a checksum to the ffbinaries download.

stray oracle
#

I need to what

main geyser
#

get a sha256 of the ffmpeg file manually then compare it to the ffmpeg you download with your mod to make sure they're the same

stray oracle
#

I'm not downloading ffmpeg

main geyser
#

man

#

why are there 2 boombox stevens

stray oracle
#

¯_(ツ)_/¯

wanton galleon
#

ikr

royal tangle
#

ikr