Tabletop Simulator

Tabletop Simulator

The Music Box Mod
56 Comments
Kyle Rittenhouse Jun 30 @ 6:53am 
Darktide music baby.
Lekgos Nov 6, 2024 @ 3:19am 
Thank you:emoticon101:
Campix Sep 3, 2024 @ 7:53pm 
I figured it out! When you're making the texture for the chip, you want to make sure that no transparency is exposed - you want a dark colour, like the 'plastic' of the chip, on the bottommost layer.
Campix Sep 3, 2024 @ 6:09pm 
Hey, when I make a new art cover for some of the chips, there's a white outline (or colored outline) along the outside of the top of it. How do I fix that? Am I texturing wrong? I know the image I'm using doesn't have any white sticking out past the edge of the chip.
MegaTHEshkaF Aug 24, 2024 @ 2:34pm 
@SleepyTheSlimeKing, sooo, I almost completely rewrote the music box script. Instead of counters, I used events.
No more lag, the music box can now be rotated and a bunch of other fixes.
Take a look, maybe you can apply something to your version.

https://steamcommunity.com/sharedfiles/filedetails/?id=3292567962
Gridness Aug 16, 2024 @ 11:07pm 
@Fonsa
Yeah, I have the exact same issue
Fonsa Aug 16, 2024 @ 3:20pm 
After adding the player into my game, it becomes very laggy, even moving around drops the fps, not sure if it is the player or my game, but removing the player resolves the problem
Gridness Aug 14, 2024 @ 11:36pm 
For some reason whenever I add the player to my game, game client begins to statter. Is there a solution for this problem?
SleepyTheSlimeKing  [author] Jul 6, 2024 @ 5:47pm 
@mega easiest way to find me on discord is to join the Legend of Sinnoh DISCORD. That's where most of the community discusses expansion projects. I am also in the official tts discord.
MegaTHEshkaF Jul 3, 2024 @ 2:26am 
@sleepytheslimeking, can you please DM me in Discord? Can't find your tag. Mine tag is @megatheshkaf
SleepyTheSlimeKing  [author] Jul 2, 2024 @ 7:02pm 
@megatheshkaF not everyone used my pre-made template when contributing chips, some made their own so yes there are a few that don't match the rest. I'm not sure why the templates are screwy, I use Pixlr for most of my assets and so it might have had an issue when I uploaded it into drive. As for stuttering I've responded before with advice but it's not a problem we can easily solve. Best way to avoid it is to make sure you remove tracks from the player and pausing the track before changing tables.
MegaTHEshkaF Jun 20, 2024 @ 8:49am 
Update: Several chips on the table also have a white frame due to translucent pixels. For example:
- SMT 4
- Soul Hackers 2
- Shin Megami Tensei 3

No Straight Roads Chip has white at bottom right corner.

It looks like everyone used different templates...
MegaTHEshkaF Jun 20, 2024 @ 8:33am 
Chip templates on the Google Drive have:
1) 1045x1044 resolution
2) 1 pixel transparent border

Chips on the table have:
1) 1045x1045 resolution
2) no transparent border

Why? I almost went crazy while looking for why the chips have a white outline when imported. It's because the templates are wrong.

I also have problems with stuttering as people wrote below.
SleepyTheSlimeKing  [author] May 7, 2024 @ 10:17pm 
@mc squeeze ill look into it thank you
:Mc squeeze: May 1, 2024 @ 2:22pm 
i have no idea why but it seems that editing the preset chips and just adding your songs over them seems to make them work more consistently than using the empty chip templates. i had an issue where some songs were stuck on the player no matter what custom chip i put on but a preset chip even one edit with your songs fixes this. i thought i should share this for anyone having the same problem.
Eevyern Apr 30, 2024 @ 7:42pm 
Spawning in a new music box (one my partner had saved at least) solved my problem, not really sure what went wrong with the old one, but it's working fine now with the new box spawned in
SleepyTheSlimeKing  [author] Apr 26, 2024 @ 1:52pm 
@Lux and @Slushy Being unable to rotate the player is just a side effect of the way we have the scripting set up, we have it as zone based since that was easier to convert to from the original, to change this we'd just have to change all the script activations to be on snap points, we just haven't done so yet since it'd take a bunch of time.

Dont forget guys there is a video tutorial on setup and tips to make the music box work properly for importing, If you are having trouble make sure you've gone over the steps again.
@Eevyern that is a new one, Ill let you know if I come across a solution, otherwise let me know if you find a fix.
Eevyern Apr 23, 2024 @ 10:17pm 
Every so often while I have a song on repeat, it'll stop playing at random, and then I have to reload the entire table in order to skip songs. I'm not sure why it keeps breaking in that way, does anyone know what's up?
Corrosive Apr 23, 2024 @ 3:37am 
Amazing mod! Already got to uploading some albums to listen to :D
Slushy Apr 21, 2024 @ 5:52pm 
Thanks to some help from the #scripting channel of the tabletop simulator discord and a fellow named Chr1Z we figured out how to fix it.

You change

local cartridgeSlot = self.getPosition() + Vector(0,0.2,1.6)

to

local cartridgeSlot = self.positionToWorld({ 0, 0.2, -0.533 })

in the Music Box Object's Scripting.

The scale for (x,y,>Z<) is 3 on the object.
1.6 / 3 = 0.533 roughly, the scale acts like a multiplier. 0.533 x 3 = 1.6
And since the Default Rotation the object works off of is 180..
We make it negative, since its already acting in a reverse manner.
Slushy Apr 21, 2024 @ 3:12pm 
Yep well, I set the 1.6 to -1.6, and now it only works turned a full 180, so yep, something dumb with that xD
Slushy Apr 21, 2024 @ 3:09pm 
If I had to guess..
local cartridgeSlot = self.getPosition() + Vector(0,0.2,1.6)
I'm not a coder, but does this care about the rotation of the object?
Like, does it adjust the Vector based on rotation, or purely its xyz position?
Slushy Apr 21, 2024 @ 2:41pm 
I'm having the same issue as Lux, doesn't work when the Music Box is rotated :p
ferb2002 Apr 18, 2024 @ 11:51am 
i dont get it, when im loaded in your table, it works, but in all other tables the music box cant read any chips right
Lux Apr 15, 2024 @ 12:06am 
Such an awesome tool! One issue I am having though is the music box wont work if its rotated? Im not sure whats up with it that causes it. Sometimes it will register a chip momentarily and then decide its not going to work until it goes back to the default orientation
BonAdventure The Duns Apr 12, 2024 @ 8:00pm 
I can't stop making chips. We need more meme songs for our pathfinder games! MORE!
leonx132 Apr 11, 2024 @ 10:48pm 
i made a custom cartridge with art from a LOTR lofi song if you would like to add it to the table
Dvoktsusai Apr 8, 2024 @ 8:25pm 
Whenever i try to make the music play, it simply dont work =/
muffin Mar 30, 2024 @ 6:08am 
the box seem to work on some map but not all map, how to fix it?
King Saxler Mar 29, 2024 @ 7:27am 
The big problem I have with TTS's default music player is that when the GM plays the track, it will start playing at different times for different players, based on how fast they download the music track, does this mod fix that?
SleepyTheSlimeKing  [author] Mar 28, 2024 @ 1:51pm 
@Falc_On not with the current build unfortunately. We'd have to rewrite the scripting location to be a snap point, and it would take alot of script tweaking so we just left it as is. We might fix that in a future update though.
Falc_On Mar 23, 2024 @ 10:46am 
Nice tool. Is it possible to make the bottom of the music player face the back of the room??
SleepyTheSlimeKing  [author] Mar 14, 2024 @ 4:46pm 
@comfort I'm not sure, we've looked into it a few times, but we haven't been able to find a fix yet, and the stuttering is ussually avoidable from our testing if you just make sure to clear the Playlist before changing tables. I will look into this more.
Yao Ming Mar 10, 2024 @ 2:01pm 
I have the same issue as comfort I'd love to use this mod it sucks that tts is holding it back as it is the best music mod I've seen for the game.
comfort Mar 3, 2024 @ 1:23pm 
It's also present whenever I load into the sample Music Box Mod savegame, even if I do a blank save and only spawn in the music box, I still experience stuttering. Hopefully someone finds a workaround for this because this is by and far my favorite implementation of a music player in this game, but I get sick from the visual stuttering.
comfort Mar 3, 2024 @ 1:19pm 
I can't seem to be able to get the stuttering to go away... I've verified my playlist is empty (after having a song put in at first so that the music box can work), or at least I think it is.
SleepyTheSlimeKing  [author] Mar 2, 2024 @ 2:33pm 
@mathew.kale the only way to adjust the songs volume is by changing the volume in the music tab at the top of the screen in tts. Each player must also adjust their volume themselves, just because that's how tts' music playlist function works.
SleepyTheSlimeKing  [author] Mar 2, 2024 @ 2:28pm 
@Ray Maikeru make sure you are manually loading an mp3 file into any new tables that do not already have any mp3s in the Playlist. The Playlist needs to have at least 1 song for the music box to clear in order for it to start working. It can ne any mp3 file it just needs to be uploaded into the tts player.
SleepyTheSlimeKing  [author] Mar 2, 2024 @ 2:27pm 
@Tgamer4 the stuttering issue is mostly due to a tts playlist player script issue. It's a common bug that can happen with uploaded mp3s in the tts player when switching tables. To avoid this, make sure to pause your tracks before leaving the table, or clear the Playlist.
We've looked into a possible solution, but as of now that's a tts bug, not necessarily the music box. I'll let you know if we find a fix
matthew.cale Feb 23, 2024 @ 6:26pm 
Is there a way to adjust the volume of the music it plays outside of adjusting the system volume?
Ray Maikeru Feb 23, 2024 @ 4:18pm 
I can't seem to get the Music Player to work. I'm trying to play the Antibirth OST chip in the music box in a game of Four Souls, yet it's not working.
Shiro7267 Feb 18, 2024 @ 10:02pm 
This tool is really cool! It's super useful and does everything as advertised! However... there seems to be a memory issue of sorts. The player seems to cause stuttering while it's loaded. I'm not quite certain what the problem is, but the one on the Legends of Sinnoh table doesn't seem to have this issue. Would it be possible to look into this?
EthanThePhrog Feb 14, 2024 @ 8:50pm 
Amazing tool!!!!! Thank you so much
Baryonyx Jan 14, 2024 @ 5:59pm 
Made my first custom chip, worked flawlessly. :steamthumbsup:
Stadtjaeger Jan 14, 2024 @ 12:30pm 
I was looking for something like this... Great Work !!
SleepyTheSlimeKing  [author] Jan 9, 2024 @ 2:57am 
@Adil3ter I will run it by Xenonia who does the script for it, but im not certain that would work. Since The player piggy backs off of tts's music player function, even if the player had a mp3 pre loaded onto it, It still wouldnt play unless something populates the playlist. So you would still need to upload an mp3 file on a new table anyway, so it wouldnt really solve anything, its a long shot but maybe Xenonia can think up a work around
Adil3tr Jan 9, 2024 @ 1:33am 
You should make it so the music player itself loads a song, basically an mp3 of 60 seconds of silence, and then when someone puts the chip in it'll load the playlist.
SleepyTheSlimeKing  [author] Dec 16, 2023 @ 10:40pm 
@Baryonyx unfortunately that is a known bug of tabletop simulators music player, since the music box just uses tts music player, its not really fixable unless tts fixes that bug
.
Baryonyx Dec 16, 2023 @ 1:48pm 
Hmm I noticed a bug though - if you don't stop a music that is playing then move to a new table it hangs and can't be stopped.
Baryonyx Dec 16, 2023 @ 1:36pm 
It's a pretty neat system. Honestly I am not sure why nobody thought of this earlier. Thanks.
It saves the hassle of losing the links all the time when reloading the room and allows easy swapping out.