Tabletop Simulator

Tabletop Simulator

BCB Customised Dice Roller v3 - Dice Roller with optional Results to Chat Printing. (Updated 20-April-2020)
26 Comments
BaconCatBug™  [author] 3 Dec, 2020 @ 10:47am 
Yes, lines 157 though 179 deal with the placing of the dice. position.x and position.z are the horizontal coordinates (y is height)
Ctrl-Alt-Del 27 Nov, 2020 @ 2:02pm 
This is great. I'm just starting with LUA, is there somewhere in the script that positions the dice dice when they reappear? i would like to make a larger dice box and have them appear in a slightly different place without colliding with the box again, is this possible?
dunami5 18 Jan, 2020 @ 4:52pm 
awesome, whatever you did this time fixed the issue! Now i will resave the objects as they are much prettier than what i did haha. Thanks!
BaconCatBug™  [author] 18 Jan, 2020 @ 11:41am 
I actually removed my local cache to fix it, no idea why it's not working for you. I will try once again and manually upload the files to the cloud and manually change the URLs. I deleted and re-uploaded the box and state 5 image with new steam cloud URLs.
dunami5 17 Jan, 2020 @ 8:54pm 
hey thanks for quick response. Unfortunately the fix didn't work on this end. If you cache your mods it looks fixed to you because you have all the images and models locally, but anyone who downloaded since the breakage doesn't. I used this mod below to help me identify those files for mods i created and downloaded (and backup other mods so they will work for my friends, even if the owner discontinues):

https://www.nexusmods.com/tabletopsimulator/mods/263

Anyways, i ended up uploading my own images to the two busted models and it seems to work. Altho i noticed the scale is way off on the "tray". Thats fixable by changing to state 1-4. Just 5 doesnt work, which is the image below

https://imgur.com/sHJnJCn

Cheers!
BaconCatBug™  [author] 16 Jan, 2020 @ 11:27am 
Hey there, sorry about that I guess this slipped though the cracks when I was rehosting all my mods content. It should be fixed now. Unfortunately I can't fix the ones in your own mods but you should be able to just replace the mats or take the newly rehosted images and change the top image URLs.
dunami5 15 Jan, 2020 @ 8:37pm 
Here's what happens upon load (image in link). Without tray kind of hard to use :P

https://imgur.com/a/TA1etkV
dunami5 15 Jan, 2020 @ 8:30pm 
Hey man this looks awesome, but when i load it one tile and one of the images are no longer hosted online so it gives errors, do you happen to have a backup where you can upload the images via the workshop

same thing happened to one of my mods
Joe Kaze 11 Mar, 2019 @ 5:36pm 
This is awesome.
Dode 12 Jul, 2018 @ 11:44am 
Just got an update. Working now - thanks!
BaconCatBug™  [author] 12 Jul, 2018 @ 10:38am 
Yeah the last TTS update broke it. I'm looking into trying to fix it.
Dode 12 Jul, 2018 @ 10:24am 
Apologies, posted this in an inappropriate place earlier:

Hi

I'm having issues with the dice roller in all of your (excellent) maps. It comes up with 1s as every output on the face, but are distributed as if they are rolling other than ones. "setValueCallback is giving an unknown error"

Screenshot of the issue for you: https://i.imgur.com/oXIBYoK.png
XallZall 23 Jan, 2018 @ 1:43am 
Wow, I saw this in some maps, but had no idea what it was, this is super healpful, thank you so much for this, this is just freaken awesome!
lotusdreams 13 Jul, 2017 @ 3:38pm 
Rotation issue is entirely gone, thank you very much. For the scaling that will be still an issue. I understand how to fix it: The problem lies with the with the way the box works. In order to make it gigantic you need enourmous counting tables which even if you made one is a bad idea. However I have a better idea on how to help me with my problem: All I need is a funnel and to my understanding this exists in TTS already. Stacking dice still doesnt work unfortunally. It's kind of hard to reproduce but every now and then the dice stack on the counting table if you throw them in the box as a stack. Hopefully the funnel circumvents this
BaconCatBug™  [author] 13 Jul, 2017 @ 2:31pm 
I think I have fixed the rotation issue. If you want to scale the box, please move it upwards and increase the step value.
BaconCatBug™  [author] 13 Jul, 2017 @ 1:57pm 
Ah, I see. The rotation causes the bounding boxes to break. That's annoying. As for the scaling, you'll have to move the box off the board to align them it seems as well as increating the "step" amount.
lotusdreams 13 Jul, 2017 @ 11:14am 
Alright here's the summary: All 3 boxes do not count properly on my map. The only thing that counts consistently wrong is the kustom dice roller board. The die itself sorts them right, no issue, but it counts and displays the numbers from 90° away if there are any dice around as before. So problem is half solved there. Now the weird part is if I try to replicate the box bug on your workshop they work better and the off box issue is much smaller. I have no idea what changes when I move them to my map. They do this even if I remove the kustom dice roller so it's unlikely an interaction. Maybe there is a little bit bigger than it should and if I scale it up the error becomes larger and thus more noticeable. I'll go ahead and make screenhots, just in case my explanation is off.
BaconCatBug™  [author] 13 Jul, 2017 @ 11:09am 
I just press + or use the Gizmo tool to scale them up. Which mod exactly is counting dice outside of the box? If it's mine I'll fix it.
lotusdreams 13 Jul, 2017 @ 10:54am 
Nevermind sorry lol. I have the other mod also used in the same one and it counted the dice still the same way just in the other box. The dice ruler sorts them in 90 rotation just fine but theres nothing displayed aka counted on the board. The other workshop has the old issue again it starts counting dice outide of the box at the bottom side which confused me even more. I'll look into this a little more, something seems really off here because I'm sure it worked last session
lotusdreams 13 Jul, 2017 @ 10:36am 
I tried the rotation and it worked out. The other angels are no issue at all for my case and the gizmo tool makes sure they are exactly 90°. The "make it bigger" idea is a little weird: The idea is to speed up the rolling of dice. To do so you can prepare dice in groups and chain them to the table. You can still copy paste them but cannot remove them manually. Obviously it would be nice to copy paste them onto the dice ruler but that doesnt work since the die has not enough surface area. If I try to increase the scaling however the dice overlaps with the rows and sucks them in. I tried making dice towers but that used the cause problems with the sorting. Doesnt do that this version though so it might be fine either way. If the scaling works fine for you how exactly do you do it? I might be doing it wrong
BaconCatBug™  [author] 13 Jul, 2017 @ 9:25am 
I should have fixed it to work at different rotations. Due to how the original script was made though it only works at 90 degree angles.
BaconCatBug™  [author] 13 Jul, 2017 @ 8:48am 
Looks like it needs to have a Y rotation of 270 will make the dice go "above" the box while 0, 90 and 180 work fine, it also seems to need to be at one of those angles to work properly. :(
BaconCatBug™  [author] 13 Jul, 2017 @ 8:30am 
Oh I see what you mean by rotating, I'll try and fix it. As for making it bigger, don't forget to up the step value in the description to stop the first row of dice from clipping into the box
BaconCatBug™  [author] 13 Jul, 2017 @ 8:28am 
Rotating and Scaling both work perfectly fine for me. If by immediatly breaks I assume the box is sucking it in? If that's happening try moving the box somewhere first and then rotating it.

As for copy pasting dice, I am not sure what you mean, since it would just automatically roll them and cause them to stack up one at a time.
lotusdreams 12 Jul, 2017 @ 7:24am 
First of all: Thank you very much for creating this combo. I have used it a few games now and everything seems to be working properly. There is two things that I want to ask: I cannot turn the object myself if I try it immediatly breaks. However it would be really nice to turn it 90° so both players can see it properly. Second (same problem) I'd like to make it bigger which also seems to break it. FIrst is also vision but the idea is to make the box bigger so you can just copy paste dice in there. Currently that does work only with drag & drop. Is any of this already possible and I'm too stupid to use it correctly and if no is it possible to implement it?