Nand Blog

Games, software and BGG...
Recommend
24 
 Thumb up
6.50
 tip
 Hide

From nanDECK to Tabletop Simulator

Andrea Nand
Italy
Modena
flag msg tools
Best. Game. Ever.
badge
I wrote nanDECK and BGG1tool
Avatar
Microbadge: nanDECK userMicrobadge: TARDISMicrobadge: The Lord of the Rings fanMicrobadge: xkcd fanMicrobadge: ILSA Magazine fan
I've played a bit with Tabletop Simulator, a physics sandbox software from Berserk Games (http://berserk-games.com/tabletop-simulator/), used for testing and playing many board and card games, in this post you can find some simple instructions for loading in TTS a deck of cards created with nanDECK.

In TTS, a deck can contain max 69 cards, plus one that is shown when a card is hidden, organized in a single image file (seven rows of ten cards each). Note: after having created them, you can combine several decks into a single one, if you need more than 69 cards.

For an example, I've prepared a special deck with five suites (13 x 5 = 65 cards), and drawn a black placeholder in position 70. This is the script:

[rank]=1|2|3|4|5|6|7|8|9|10|J|Q|K
[number]=1|2|3|4|5|6|7|8|9|10|0|0|0
[suite]=concat(\169\|,13,\168\|,13,\167\|,13,\170\|,13,\183\|,13)

[all]=1-65

[color]=concat(#FF0000|,26,#000000|,26,#00FF00|,13)

font=arial,24,,[color]
text=[all],[rank],0,0,1,1

font=symbol,32,,[color]
text=[all],[suite],0,1,1,1

copy=[all],0,0,1,2,5,0,1,2,0
copy=[all],0,0,6,2,0,7,6,2,180

text=[all],{[suite]X[number]},1,1.5,4,6,center,charwrap

font=arial,128,B,[color]
text="11,24,37,50,63",J,1,1.5,4,6
text="12,25,38,51,64",Q,1,1.5,4,6
text="13,26,39,52,65",K,1,1.5,4,6

rectangle=70,0,0,100%,100%,#000000
display=deck.png


Note: the DISPLAY directive in the last line creates the single image and save it to the disk (with deck.png name).

This is the image:

From gallery of n_and


With another script I've created an image for the back of the cards (with back.png name):

rectangle=1,0,0,100%,100%,#0000FF#FFFFFF#FFFFFF#0000FF@167

font=arial,48,BT,#FFFFFF#FFFFFF#FFFFFF#0000FF#FFFFFF#FFFFFF#FFFFFF@167
text=1,nanDECK,0,0,100%,100%,center,center,57

save=1,back.png


From gallery of n_and


TTS need that all the image files are loaded on the Internet, so I've used imgur.com (there are other methods, you can use the one you find suitable).

If you want to use them, these are the URLs:
deck.png: http://i.imgur.com/xK8q1I8.png
back.png: http://i.imgur.com/U9elCT7.png

From TTS, I choose an empty table, then Host -> Chest -> Cards -> Custom, and fill in the form, with the URL from imgur.com:

From gallery of n_and


Note that I've set the slider to 65 cards. After a click on Import, I have my deck and can draw some cards:

From gallery of n_and


You can save the deck (right-click and "Save to Chest") and re-use it when you need it (Host -> Chest -> Saved Objects).

If you have some questions, feel free to ask.
Twitter Facebook
21 Comments
Subscribe sub options Tue Jun 9, 2015 9:38 pm
Post Rolls
  • [+] Dice rolls
Loading... | Locked Hide Show Unlock Lock Comment     View Previous {{limitCount(numprevitems_calculated,commentParams.showcount)}} 1 « Pg. {{commentParams.pageid}} » {{data.config.endpage}}
{{error.message}}
{{comment.error.message}}
    View More Comments {{limitCount(numnextitems_calculated,commentParams.showcount)}} / {{numnextitems_calculated}} 1 « Pg. {{commentParams.pageid}} » {{data.config.endpage}}

Subscribe

Contributors