#Youtube Boombox

416 messages · Page 1 of 1 (latest)

gray yew
#

Lets you input a youtube url into the boombox and play it across all clients at the same time. All connected clients must be running this mod for it to work.

Thunderstore link: https://thunderstore.io/c/lethal-company/p/steven4547466/YoutubeBoombox/
Source: https://github.com/steven4547466/YoutubeBoombox

In the future, I would like to make the UI better, but it works.

GitHub

Contribute to steven4547466/YoutubeBoombox development by creating an account on GitHub.

gray yew
#

I would like to add playlist support eventually, I think that would be a cool addition

sudden roost
#

I've tried this mod out with a buddy it wad pretty damn fun although I've had some crashing issues now im not gonna blame that on this mod but I'm not sure because before I installed this the other mods i had where behaving good enough but now it will crash every now and then it might not be compatible with one of the mods I'm using

gray yew
#

Also, new version will have playlist support, just waiting for LCAPI to merge my PR, unless it doesn't get merged, along with a few new config options

wicked remnant
#

neat!

celest gull
#

running into an issue where everyone but the person who uses the boombox can hear the music

gray yew
#

Everyone has the mod?

celest gull
#

yea

gray yew
#

I'll look into it

#

The next version will have a config value for enabling debug logs, but atm there are none, so may need to wait for that

#

Is it a consistent problem?

celest gull
#

only tried once so far

#

ill try it again

abstract wave
#

could you add a feature for turning the volume down, either through config or in-game? Most songs are just extremely loud and almost deafening at close range

gray yew
#

hold the boombox and type /bbv volume

#

100 is default

#

I may make it so it just affects the closest boombox if you aren't holding one

abstract wave
#

probably should add some text or something either on thunderstore or in game that explains that

gray yew
#

Yeah it's on the github atm, updating thunderstore requires bumping the version

#

But it is in there next time I update the page

gray yew
harsh mauve
#

how can i install the mod

#

i copied the dlls to the bepinex plugins folder but it didnt work

gray yew
#

Recommended to download via r2modman

harsh mauve
#

i do have lc api

harsh mauve
#

and command handler

gray yew
#

are there any errors?

harsh mauve
harsh mauve
#

nothing happens

gray yew
#

anything to indicate it failed to load

harsh mauve
#

and that popup doesnt show

#

like where you paste the link

gray yew
#

And does the boombox play its normal audio, or is there just nothing?

harsh mauve
#

it doesnt play the noraml audio

#

heres a consol log

#

the mod loads

#

and also the dependencies

gray yew
#

Yeah that all looks fine

#

I'll have to look into this tomorrow. But all that looks good as long as there's no errors when you left click when holding the boombox

harsh mauve
#

alright

#

ill try some stuff and see

#

the mod created this file in the main dir

#

is this normal

gray yew
#

Yes for the version you're using

#

From 1.1.2 onwards it puts it in BepInEx\plugins\steven4547466-YoutubeBoombox\data

harsh mauve
#

i see

gray yew
#

What's actually in that folder, should be ffmpeg and ytdl

harsh mauve
#

yes it conatains these files

gray yew
#

Yeah it sounds like it's just completely fine, I'm not sure why the UI wouldn't show for you

harsh mauve
#

everything is setup right its wierd lol

gray yew
#

Did you have any other mods than the dependencies?

harsh mauve
#

i did

#

i removed them

#

to test

#

same issue

gray yew
#

It's weird, the boombox doesn't start, right? So that means the patch is working properly, it's just not showing you the ui.

harsh mauve
#

yes i think its just he ui not showing

gray yew
#

Yeah, it's 4 AM for me, so I'm gonna head to bed, you may want to try one of the updated versions, they're on the github

#

But if that doesn't work, I'll see about it in the morning.

harsh mauve
#

ok ill try the new update

#

gn

harsh mauve
#

update
i reinstalled the game and the mods (bepinex lc-apietc)

harsh mauve
#

it worked

gray yew
#

I've released 1.2.0, I'll update it again when LCAPI updates

#

See the changelog for more info

gray yew
#

It appears 1.2.0 may be broken on multiplayer will fix asap

#

Gonna revert back and figure it out later

sage walrus
#

ive downloaded everything listed in the convo above and the boombox still plays the default music any help would be appreciated. all files were unzipped into my main game file.

gray yew
#

If the boombox plays default music that means the mod didn't load

#

ensure you're playing with mods

sage walrus
#

we got it now

gray yew
#

Should be all fixed on 1.2.2

#

Playlists should work!

#

Ensure everyone has the updated version before reporting bugs.

half haven
#

also how do you use this do you just post link in chat or is there a special command to play a video

gray yew
#

Just get a boombox and left click

#

paste your link in and press play

half haven
#

ty

gray yew
#

Version 1.3.0 is released.

Version 1.3.0

  • [Rewrite] Completely rewrote the networking using unity NGO rpcs. Thanks to UnityNetcodeWeaver
    • It should now be much more stable
  • [Fix] Fixed an issue where the ui would pop up for everyone when the boombox died and would fail to stop the audio
gray yew
#

I confirmed 1.3.0 worked with 2 people, but can anyone confirm that it works with more? I tried with 5 on bigger lobbies, but it didn't seem to work

#

will see about a normal 4 person lobby soon

muted crag
#

uh i tried it with 6 people

#

didnt work as intended

#

only popped up for me (i was host)

gray yew
#

Only popped up for you?

#

The UI should only pop up on whoever left clicked

#

also, everyone else had the mod, right?

fervent lava
#

Tried with 4 people but it didn't work, I do have MoreCompany installed.

gray yew
#

If you get time, can you enable debug logs in the config?

fervent lava
#

Not sure if I was doing it correctly or not though.

#

Would I just need to enable it or would everyone? Also won't be able to do it until tomorrow night since everyone else got off.

gray yew
#

Well if everyone enables it you could see what was going on exactly, but I could probably deduce from just one person

#

What happened? Just put in a link and it didn't play?

fervent lava
#

Yeah, it tried two different videos and different link formats and they didn't play.

#
https://www.youtube.com/watch?v=l-TaaIQ2_1A
youtube.com/watch?v=l-TaaIQ2_1A
youtu.be/l-TaaIQ2_1A

gray yew
#

If you're still on, could you try it in solo?

fervent lava
#

Tried all of those

#

Ok, let me load it up really quickly

gray yew
fervent lava
#

I tried top and bottom link and both worked.

gray yew
#

Hm, you were all on 1.3.0?

fervent lava
#

Yeah, I just shared the profile today/last night and none of the mods on it has had any updates come out.

gray yew
#

Interesting, I'll have to check tomorrow what's going on since it worked with 2 I assumed it would with any, but there may be a problem with the networking

fervent lava
#

Alright, if anything I should be able to give you a log in 22 hours more or less.

half haven
#

i dont think the newest version is working at all for me

short summit
#

same

tough galleon
#

I have the most recent version of LC_API, as well as the YTBB mod with the required dependencies and it's not working for me either.

tough galleon
#

Some links work, others don't. When they don't work, it still begins draining the battery to the radio as if it's playing something

#

From what I've noticed so far, YouTube Music links tend to work much better

vale jay
#

you can't hear the video you put but other can (?)

gray yew
#

Ok, I can work on this today

#

I may actually ask for some people here to join a lobby so we can fix these bugs if possible

gray yew
#

alright if anyone is available to help me test, that would be amazing, I will need to send you a custom version of the plugin and you will need to know how to replace the old one with the custom version

half haven
#

how many do you need ?

#

i can set it up manually

gray yew
#

Well I tested with 2 and it worked, so more than 2

half haven
#

i only need bepinex, lc-api, commandhandler and youtubeboombox correct ?

#

not sure if it relies on lc api

#

i need to manually replace the youtube boombox dll

gray yew
#

You don't need to install it manually, you can replace the one r2modman installs

half haven
gray yew
#

If you go to settings -> browse profile folder

half haven
#

i was going to uninstall youtube boombox and set it up manually

#

in my profile

gray yew
#

Yeah, you shouldn't uninstall it from there

#

just go to settings and browse the profile folder

half haven
gray yew
#

yep

half haven
#

yeah ik how to use the profile folder i used to do it manually before r2modman

gray yew
#

then replace the dll inside steven4547466 -> YoutubeBoombox

half haven
#

ok

#

but i need the other dll

gray yew
half haven
#

ok i dled it

#

should i remove any other mods i have

#

im not sure if it depends on lc-api or not

gray yew
#

it depends on the api and command handler, yeah

half haven
#

okay then i have everything

#

how do i join you

gray yew
#

One sec, having trouble with r2modman not properly installing bepinex

#

There we go

#

We'll probably have to add each other on steam so no one can join

half haven
#

sure

gray yew
#

158052617 my friend code

half haven
#

i was going to dm you my friend code

#

actually my steam is linked on discord anyways gg

worldly steeple
#

why the folder Youtube-Boombox won t appear?

gray yew
worldly steeple
#

when i put the dll and lc api in the plugins

#

no?

gray yew
worldly steeple
#

do i need?

worldly steeple
#

this*

half haven
#

i recommend using r2modman its 10 x easier

gray yew
#

This is what I'm testing, you should use r2modman

#

if not the latest version is on github

worldly steeple
#

if im not having it on steam will it work?

half haven
#

im ready btw Steven

gray yew
#

Also turn on debug logs this time if you can @half haven

worldly steeple
#

ah ok

half haven
#

how do i do that

#

launch option ?

gray yew
#

in r2modman go to config editor

#

find youtube boombox

#

then it should be the first option

half haven
#

ah i see

gray yew
#

make sure to save in the top right

half haven
#

i thought it was a unitty thing but its a config you brought up

#

yeah ik

worldly steeple
#

where do i put all the files from the github zip?

#

directly in the plugins folder

#

ah nvm i drag him directly in the game

#

folder

#

and i need the boombox dll too no>?

gray yew
#

unzip the zip

#

the only thing that's in it is the dll

#

wait

#

you shouldn't have actually downloaded a zip

#

one sec

worldly steeple
#

ok so i put the dll and the lc api

#

and the youtube boombox folder

#

and it won t work

worldly steeple
gray yew
worldly steeple
#

aah ok

#

only those two to put in bepinex no?

#

and the lc api

#

and do i need to delete the youtube-boombox folder?

gray yew
#

I've never manually installed so I'm not suer what the structure should look like

worldly steeple
#

if i put only those will the youtube-boombox folder create itself?

#

ok i ll try with and without it

#

thanks now it works

gray yew
#

Ok I believe these issues to be fixed

gray yew
#

Version 1.3.1

  • [Fix] Fixed an issue where only the host was able to start downloading songs
  • [Fix] Fixed an issue where songs that "have drm" set to "maybe" in youtube API would cause song info downloading to break
  • [Fix] Fixed an issue where songs with odd characters could not be downloaded (#9)
  • [Fix] Fixed a potential issue with links that have additional information attached in query parameters
half haven
gray yew
#

I've been doing some testing I'm not sure if it's possible to easily disable crouching and movement

#

playerActions.Disable() does disable looking around, but you can still move and crouch

#

I've also tried disabling m_Movement and m_Movement_Crouch, but neither made a difference

#

I wonder if those are controller, let me try something else

#

Yeah, not even disabling m_Movement_Move works. Very odd

half haven
#

wait why do you need that ?

gray yew
#

So that you can't move with the ui open, some people have told me that they'd rather not move or crouch with it open

half haven
#

ah

gray yew
#

I've also added a configurable keybind to open the menu and reinstated the default boombox left click

#

so it should be compatible with those other mods that add new songs directly

#

Default keybind is B

#

There's a little UI in the bottom right that will tell you how to open it, though

#

I've also made it so that not everyone needs the mod for it to work, for anyone without the mod it'll just be silent. Though the host will need it at the very least

half haven
#

lets goo

#

does playlists also work

gray yew
#

They should already work on 1.3.1

#

I'll release this once I get some time to test that the new handling of total players needed to be ready works

gray yew
#

If anyone would be up to test the new version I have about 10-20 mins

half haven
#

lc-api isnt updated though so how would ur youtube boombox mod work ?

#

or does lc-api work still

gray yew
#

it doesn't need to be updated

half haven
#

ah okay

#

i cant test rn though

vast pendant
# gray yew If anyone would be up to test the new version I have about 10-20 mins

do you still need help cause its not working for me and my friends were pasting links and its saying in console
[Error : Unity Log] Unable to determine the audio type from the URL (file:///C:/Users/JohnI/AppData/Roaming/Thunderstore Mod Manager/DataFolder/LethalCompany/profiles/Default/BepInEx/plugins/steven4547466-YoutubeBoombox/data/Downloads/d3h1I3QDEHU). Please specify the type.

gray yew
#

If you see an error like that it usually meant that it failed to download, which isn't something I can fix

vast pendant
#

huh is there a firewall issue?

#

or something i have good internet i thought it might be with the new update

gray yew
#

No, to me it just looks like it didn't get the mp3 file format

vast pendant
#

i can try a solo rq

#

its working in solo might be one of my friends

#

i can now griddy to epic fortnite songs yay

#

its working for me but my friend cant hear it at all and his links arnt working

#

i dont know if this helps

gray yew
#

Tell him to remove the ?si=...

#

I'll add handling for it in the next update.

vast pendant
#

we got it to work

#

turns out my friends internet is so slow we thought it broke

#

also a loop would be cool as hell 😉

#

oh it does loop i could kiss you

gray yew
#

That's actually just built into the boombox

vast pendant
worldly geode
#

people need the boonbox?

tough galleon
#

"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."

#

constantly getting this message when attempting to copy various links

safe shuttle
#

^

gray yew
tough galleon
#

How do you configure the keybind for entering the menu to paste the links? I'm not seeing it in the config unless there's an update beyond 1.3.1

gray yew
#

That version is not yet released

#

It's untested on multiplayer

#

It will be in 1.4.0 when that releases

safe shuttle
#

gotchu

tough galleon
#

The mod was working earlier, no changes or anything it just refuses to work now

gray yew
#

Then it probably isn't the mod that broke if you didn't apply any updates or change anything

gray yew
#

Version 1.4.0

  • [Addition] Added a configurable keybind to open the menu instead of left click. Defaults to "B"
    • While holding a boombox, you will see a GUI in the bottom right that says which button to press
  • [Change] Default boombox functionality is restored. Left click will use it like normal instead
    • This is for compatibility with mods that add soundtracks directly
  • [Change] As long as the host has the mod, no one requires the mod for it to play
    • Anyone that doesn't have it won't hear anything, though. But you will be able to play custom songs without everyone having the mod
  • [Change] While the GUI is open, you won't be able to look around
    • Still looking for a way to disable movement and crouching
  • [Fix] Fixed an issue in youtu.be links that have share information attached. The previous fix was only for youtube.com/watch links
#

Sorry this took so long to get out, been super busy.

#

As always let me know of any issues!

warped crow
#

hey since this update this is happening

#

@gray yew

fervent lava
hard vapor
warped crow
#

all my mods

#

quite a bit

#

but it was all good until the update

gray yew
# warped crow

Interesting. None of these issues come from youtube boombox directly so it's hard to say what was going on here

#

I use the mod without issue, but I also don't have many mods

#

It's a weird incompatibility

#

From what I can tell they need to add null checks to StartOfRound.Instance

light berry
#

hey my keybind don't work

little ruin
light berry
#

yeah i go test wait i said to you if is good

half haven
#

its not related to this mod

#

it might not even be because of mods at all ive had it in vanilla as well

light berry
#

i work for me and not work for my friend

#

and dont hear music

gray yew
#

huh, I use an update method to check if the key was pressed every frame, so I'm not sure how that would happen

#

I wonder if the behaviour is being destroyed

#

did you happen to leave games and join new ones @light berry

quiet sandal
#

how do you lower the volume in game

#

im not seeing it when i open up the boombox

gray yew
#

/bbv 0-100

#

it will alter the nearest boombox's volume

#

or if you're holding one, that one

#

it's a chat command, though I have considered putting it in the UI, just not sure how to do that yet

astral quiver
#

slight issue. The menu for the boombox URL appears even when I'm not holding it. Because B is also to move things it causes a bit of an annoyance whenever you try to move something with the boombox around

astral quiver
gray yew
#

Next time I do a larger update I'll make either that config option, or it auto select all text on click

astral quiver
#

kk tysm

gray yew
#

Version 1.4.1

  • [Fix] Fixed an issue where pressing your keybind will always open the boombox gui, even if not holding a boombox
#

It'll appear on thunderstore soon

gray yew
#

I released 1.5.0, the changes in it are technical and don't really need to be stated here. However, the dependency to CommandHandler has been removed now that I released it directly into LC API.

gentle falcon
#

do we need to remove CommandHandler now?

gray yew
#

You should

gentle falcon
#

aite 👍

steep walrus
#

Links don't work unless I delete the "YoutubeURL" In the text box which is a bit of a hassle to do every time, and the "B" keybind wasn't working until I went into the config and changed it for some reason

gray yew
cinder current
#

its just not working anymore

#

i press B and nothing happens

#

in multiplayer with Morecompany mod with 7 players

#

i also dont see any config file to change your configured hotkey to open the boombox menu

gray yew
#

If you hold a boombox is there a UI in the bottom right?

cinder current
#

no

gray yew
#

Can you send me your log file?

cinder current
#

i think i know what the issue is tho, there is still an old version of the config in the config folder without the hotkey setting, deleted it and gonna try it again. where is the log file?

gray yew
#

If you're using r2modman, you can go to settings -> debugging -> copy log contents to clipboard

#

otherwise it's in the BepinEx folder

#

LogOutput.log

steep walrus
# cinder current i press B and nothing happens

this is what I meant, the thing in the bottom right to open the gui was just missing and didn't work until i went into the config and changed the hotkey, did nothing else but that fixed it

cinder current
gray yew
# cinder current

Your LC_API is outdated, which causes Youtube Boombox to fail to load

#

The latest version is 2.2.0, but in console it'll appear as 2.1.4 due to an upload mistake

#

Yours is currently [Info : BepInEx] Loading [LC_API 2.1.1]

neon fern
#

cant really pause/stop the playlist once its started can you?

desert aspen
#

press b and nothing happen with api 2.2.0

gray yew
#
[Error  : Unity Log] ArgumentException: Illegal byte sequence encounted in the input.
Parameter name: string

I've never seen this error before. It looks like yours isn't downloading ytdl or ffmpeg

#

I'm not really sure of how to fix it because I've never seen the issue before

quiet wagon
#

if possible, you might want to add a check to the length of whatever video you're uploading

gray yew
#

It already exists

#

Default is 10 minutes

#

you can set it in the config

quiet wagon
#

it let me attempt to upload a 4 hour video on default config and about 2-3~ minutes later everyone in the lobby crashed to desktop

#

so idk if it's working then

gray yew
#

can you send me the logs?

quiet wagon
#

i'll see if I can find it, happened last night and just now got around to reporting it

gray yew
#

If you haven't opened the game since then, you can still get them

#

but I did test it myself and it did work, I'll try again here in a sec

#

Yeah I just tested it, seemed to work

neon fern
#

have a bug where i cant toggle music after a few minutes of afk in game using a youtube playlist,

gray yew
#

is the boombox dead?

neon fern
#

was confusing cuz the music would still play

amber sail
#

youtube boombox working ?

frozen seal
#

hello i need help i can hear music but my friends cant even thoe day downlaoded mods

#

??

late horizon
#

Boom box seems to be working but in a weird way I have to press B then delete the text then right click to play the song. If done in any other order it will not play 🫠

#

left clicking the play button will just play the boomboxes defult songs or it won't click the play button

amber sail
#

custom song work perfectly

heady grotto
gray yew
#

Interesting

#

I'm working on completely remaking the UI atm anyways

#

just a bit caught up in other projects

cursive wind
#

Hi everyone, installed this mod with friends and ran into a few problems.

  1. from the whole lobby only I can press the B button and the menu appears.
  2. Neither the right button nor the left mouse button music is not included, maximum only original songs from the game.

In the console seems to be no errors.

next flume
#

any plans on making volume control for it? the other mods that do that don't seem to work with yoursyay

gray yew
#

it already has a volume command

half haven
#

this mod is just broken in so many ways in multiplayer for me

#
  1. if you swap item it stops the song and have to restart it,

2nd a lot of times it just dont work

3rd ive had instances where the ui cant be opened

next flume
gray yew
#

as for it not working sometimes, it's usually because someone fails to download the song causing it to wait forever for them to load

#

and the ui thing I've never heard before, and you'd probably need to enable debug logs to get a better idea of what's going on

half haven
#

the ui thing actually seems to happen most of the time i play a new session with many friends

#

everyone in my lobby always uses the same code as me to play with so they have same config and mods

gray yew
#

enable debug logs in the console, it should say whenever it's attempting to open the ui

half haven
#

my friends are not online

proper skiff
#

my youtube boombox doesnt work for whatever reason

gray yew
#

For some reason it's failing to download ytdl, but there's not much I can do to fix that

#

This is all it says [Error : Unity Log] IOException: Remote prematurely closed connection.

proper skiff
#

I noticed that assumed that was the case

#

Is there a way I can force download it?

gray yew
#

Yeah, unfortunately the error message doesn't give any real reason why

#

I'm guessing it's a firewall/anti virus issue, but you can try manually downloading ytdlp and ffmpeg

#

I can get you the links

proper skiff
#

Alright

#

I’m using r2 mod man so where would it go? Just in the YouTube boombox file?

gray yew
#

It should go in the data folder in the YouTube Boombox folder

#

Your folder should look like this when done

proper skiff
#

Alright thanks

#

I’ll try momentarily

#

See if it changes

proper skiff
gray yew
#

You pressed B?

#

I'm also working on redesigning the entire UI so that it isn't trash, I've just been super busy recently

gray yew
#

Yeah I've seen that issues a few times, can you enable debug logs and try again then send me the logs?

#

Debug logs can be enabled by going to r2modman config editor

#

finding Youtube Boombox config

#

and I think it's the first option

#

it's false by default, you should set it to true then try again

proper skiff
#

did it im gonna try it again

#

its giving me this

#

[Error : Unity Log] MissingFieldException: Field not found: UnityEngine.InputSystem.InputActionAsset LethalCompanyInputUtils.Api.LcInputActions.Asset Due to: Could not find field in class
Stack trace:
LethalThings.InputCompat.Init () (at O:/github/LethalThings/LethalThings/InputCompat.cs:21)
LethalThings.Plugin.Awake () (at O:/github/LethalThings/LethalThings/Plugin.cs:56)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Rendering.HighDefinition.HDRenderPipelineAsset:OnEnable()

#

wait nvm

#

different mod

proper skiff
#

its near the end

#

i tried it twice and nothing happened

kind viper
#

doesn't work, no menu, no changed boombox behaviour

#

if I manually download ytdl it doesn't let me play the music box, and I get less errors in the console

#

also lc api is 3.1 now

spark kraken
#

A nice mod, for me works stably, compared to the most popular boombox mod, and the fact that it allows the boombox to work in its 'normal mode' separately is also good

But! Feedback:
there should be a default volume counter in config. And default volume must be around 20, maybe lower
AND/OR BETTER: there should be hotkeys to quickly manage volume loudness (of the nearest boombox or maybe all of them)

In our with friends situation:

  1. at default 100 volume it extremely annoys everybody around (to a point of me getting killed with shovels and boombox being thrown in a pit). It seems like no matter the track: it will be very loud and disrupt talking
  2. typing and remembering about "/bbv 20" is hard for people around, especially as we restart games quite a lot
  3. losing and getting a new boombox seems to give those troubles too

Opening the already loaded tracks without having to enter youtube links again would also be appreciated, but priority of this is much lower than the volume issue

Again, thanks for the mod)

wild dust
#

sweatblob what happen to this mod?

thick stag
#

yeah on the website it says "deprecated"

#

does that mean it has a virus

gusty raven
chrome reef
#

This is terrible