Tabletop Simulator

Tabletop Simulator

Universal Blackjack Table
27 Comments
Fatal Reaper 19 May, 2020 @ 5:25pm 
How do you go about making your own table?
MrStump  [author] 1 May, 2017 @ 8:17pm 
Probably a model or two. I'm working on a new table currently though that won't use those models.

As it is, you can just replace those missing models. They were only meant as placeholders anyway.
dc 1 May, 2017 @ 1:56am 
Seems to be some missing files
MrStump  [author] 27 Feb, 2017 @ 3:48pm 
The missing file I will fixed, I picked some random models for my powerups and one is a dead link. As for the stretched button, It is part of the changes from 2/17. An improved solution will be coming, check back some time after the next update.
MrNobodyX3 27 Feb, 2017 @ 12:05am 
There seems to be a missing file and the buttons are now stretched.
Trigger 13 Feb, 2017 @ 11:58am 
During the time I've played my table. I have never seen the power up block global power up
Ludoliciouss 2 Feb, 2017 @ 5:59pm 
Just prices people can buy with their chips, or other things just something else to spend your chips on :)
MrStump  [author] 2 Feb, 2017 @ 4:20pm 
Increase the chance of certain powerups what? Being given to people? Depends how you give them. If it is a random give from a sack, just add more of X to the sack to raise the odds?

DFG: Add prices for what?
Trigger 2 Feb, 2017 @ 2:39pm 
Is it possible to increase the chances of the global power ups for like block powerups and others that I rarely see?
Ludoliciouss 2 Feb, 2017 @ 9:38am 
Maybe adding prices? Great table love playing and hosting, if you can add prices that will be awesome, I tried to do it myself but i'm to noob xD
MrStump  [author] 29 Nov, 2016 @ 6:25pm 
I don't expect people to read them, honestly haha I know I'd probably skip them myself. But its nice to mention them in case somebody didn't think to check the notebook.
im Thad (canadian) 29 Nov, 2016 @ 2:33pm 
Ok thank you i must have missed that question when looking at FAQ my bad. Thanks for the response
MrStump  [author] 28 Nov, 2016 @ 4:53pm 
I am hoping the UI update coming up will fix the issue.
MrStump  [author] 28 Nov, 2016 @ 4:53pm 
I mention it in the FAQ in the notepad, but it is worth repeating here. The engine TTS is built on has a bug with displaying long series of text in some circumstances. So in the current UI, if code goes over a certain length, it will stop being rendered visibly. It is still there. But it is invisible.

The best solution? Set up and use Atom for code editing (see the Knowledge Base on Beserk's website). If you don't want to do that, then just put your cursor where the code should be, hit Control+A to select all, Control+C to copy, and paste it into a text/code editor. Notepad ++ is a good option. Once you are done making any edits, Control+A, Control+C then paste it back into Tabletop Simulator.
im Thad (canadian) 28 Nov, 2016 @ 4:36pm 
So when i load up the table and go to host -> scripting -> i click on global all the text is invisible i delete a couple lines and it all appears any idea how to fix it ?
MrStump  [author] 23 Nov, 2016 @ 7:12am 
The issue is on line 99 of your code, or at least that is where the script crashed when it tried to run. Without the full script, and the rest of the powerup functions, I can't say what exactly the issue is. I looked at your pastebin links and didn't see an immediate problem, but it could be one of a half dozen things.

If you want to add me and show me the full pastebin of the code, then I can be more helpful.
KveruLars 23 Nov, 2016 @ 6:20am 
I have one tiny bit of issue, though. I wanted to add a powerup which would force dealer to bust (as an alternative to the draw 1 powerup), but if someone drops it into the dealer window when there's no cards there (which they shouldnt, but still), I get a lua error?

Here's the error:
----------------
Error in Global Script onObjectDropped function: chunk_1:(99,4-52): attempt to index a nil value
----------------

Powerup table:
http://pastebin.com/raw/EdGXhNyU

Function for powerup:
http://pastebin.com/raw/5L3fmpPW

(As you can see I basically just copy-pasted existing code for Clear powerup (banana) and added it as a Dealer Only powerup with an effect named Bust)

Any ideas what might cause it? I understand the error itself, but I'm not too familiar with Lua so I don't know how to read the chunk part of the error (probably at what line the error occurs or whatever?)

Thanks in advance, and thanks for an awesome contribution!
MrStump  [author] 12 Nov, 2016 @ 3:10pm 
The script removes cards already when you neal the next hand. But if you wanted to make a button on each hand zone (besides the dealer) to remove their cards, you can. The logic is already all written, you just need to call on it.

Instructions can be found here to help: http://pastebin.com/W4cx0eYL
DerpEagle 12 Nov, 2016 @ 12:35pm 
Im not good at coding, and i would really like to add a push button, that only remove the cards, and not chips. Could you help me out? Thank you :)
cubsrocknroll 2 Nov, 2016 @ 12:42pm 
Thank you very much, that worked
MrStump  [author] 2 Nov, 2016 @ 8:12am 
Host > Options > Put a check mark in the Scripting box to enable scripting.
cubsrocknroll 2 Nov, 2016 @ 12:44am 
I'm having issues with your table. Everytime I load it, the counters for the dealers cards, new deck, deal cards, and the players where it says clear, pay, and the players card value are missing. Not sure what the problem is. Thanks man
Ledor 15 Oct, 2016 @ 10:18am 
Thank you so much for your extra help :) you're a very friendly and easy person to work with.
MrStump  [author] 15 Oct, 2016 @ 10:12am 
In the current code line 599, in the click function section, in the dealButtonPressed function, there is a line that says:

if object.tag == "Chip" then

If you model is a "Chip" you can set the custom model to be a chip and it will now work. Otherwise, you can change the line to read:

if object.tag == "Chip" or object.tag == "YourTypeOfItem" then

Not sure what type of item it is? On the line before this one, just put print(object.tag) and it will tell you when you try to run the code the "tag" of every object in that zone. "Board" is the table, as is "Surface", so ignore those.
Ledor 15 Oct, 2016 @ 10:04am 
Hello Mr.Stump, thank you for thise setup, I'm slowling changing things as I go. I'm just having one problem. I'm trying to add a all in chip, it's a chest coin that you can put any amount of chips in it and have it basically duplicate the chip for when I hit pay or delete it when I hit clear. But I'm having trouble getting the tabletop recognizing the chip. It wont auto deal, pay or clear it. Can you provide any help?
baba booey 14 Oct, 2016 @ 4:32pm 
Cool.
lelelelelelelelelelelelelelele 13 Oct, 2016 @ 8:33am 
Beautiful stuff!