Scrap Mechanic

Scrap Mechanic

Not enough ratings
online boombox [betterAPI]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
12.737 MB
Mar 15, 2024 @ 12:50pm
Apr 10 @ 9:36am
9 Change Notes ( view )

Subscribe to download
online boombox [betterAPI]

In 2 collections by BananaPen
Advanced Mods
14 items
SComputers addons
15 items
Description
This radio runs on betterAPI and can play music via a direct link.
unfortunately, you cannot insert a link from youtube or something like that here,
but you can place your .mp3/.wav file on any hosting (for example, github) and insert a direct (raw) link to the file.
direct links to streaming Internet radio stations will also work (however, connecting to a streaming radio station can take a long time and not the first time).

SComputers api:
component name - onlineBoombox
onlineBoombox.play()
onlineBoombox.stop()
onlineBoombox.setVolume(value:number(0-1))
onlineBoombox.setMute(state:boolean)
onlineBoombox.setUrl(url:string)
24 Comments
BananaPen  [author] Sep 18 @ 10:16am 
JulekJulas: these links don't last forever, so I recommend uploading your files to github and then getting a raw link. you can also use SComputers for control
JulekJulas Sep 17 @ 5:23am 
I've been wanting something like that for YEARS! I would seriously appreciate if you added an option to not loop, I made a timer setup with the Modpack but it's fiddly and it slowly desyncs with the sound after a few plays and there is just simply not enough precision for it to not break.
I'm using it for sound effects mostly, also I discovered you can send the file to discord and just right click then copy link and it works, it's probably the easiest way to do it.
seprize Jul 4 @ 1:20pm 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
stephan.202113 Mar 4 @ 4:19am 
tx
BananaPen  [author] Mar 1 @ 12:07am 
stephan.202113: you must manually put the betterAPI files into the replacement game lua51.dll . It WON'T interfere with the multiplayer.
stephan.202113 Feb 18 @ 11:58pm 
is not work
BananaPen  [author] Jan 12 @ 3:11am 
#ezwinxdddd: ссылки с ютуба он пока не хавает, тут прямая ссылка нужна
снюсоедик Jan 10 @ 7:41am 
музыка не играет, я вставил ссылку с ютуба, так нельзя делать?:steamsad:
BananaPen  [author] Nov 18, 2024 @ 11:50pm 
Kindmanathome: What do you mean? What exactly do you want?