Tabletop Simulator

Tabletop Simulator

Not enough ratings
CSVDeck
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
14.497 KB
21 Mar @ 12:45pm
21 Mar @ 12:46pm
2 Change Notes ( view )

Subscribe to download
CSVDeck

Description
CSVDeck is a tool that imports cards from spreadsheet CSV (Comma Separated Values) data.

CSVDeck expects your CSV to be formatted as follows:

front_image, back_image, name, description, gmnote, luascript

Fill unused cells with "null" (without quotation marks, just null).
Do not leave any cells empty. The script skips all null entries automatically.

Example spreadsheet: https://docs.google.com/spreadsheets/d/1x09b8FvEAWkdZQmlMAfzH19I1z9RpYe0aJTA6jy52hM/edit?usp=sharing

Discord: https://discord.gg/fSHFDVX
7 Comments
redpepper 28 Jul @ 7:54pm 
Update: there aren't escape sequences, but you can add them yourself in the script. For example, add this line after the "else" in the "importCards" function to replace all instances of "[;]" with ",".

value, _ = value:gsub("%[;%]", ',')
redpepper 28 Jul @ 6:26pm 
This is super helpful! Is there any escape sequence for putting a comma in a card's description? (I've seen [;] used before but it doesn't seem to work here)
Stexe 10 Jul @ 11:13am 
Awesome tool and almost exactly what we were looking for!

Have you considered adding an option to import a deck based on a single front image sheet / single back image? It could calculate the number of cards to pull on the sheet based on the number of CSV entries. Would work similar to how TTS already does custom decks and allow for name, description, etc, but in a faster loading format.

Having the option to provide a static URL that contains the CSV file to load could be really useful too. That way people could just update the website data and not have to copy/paste it to generate new cards.

And options for generating multiple different decks at the same time instead of copying CSV files one after another.

Lots of ways to expand on this, but either way incredible work!
lexavian 28 Mar @ 9:32am 
For those who do not know how to copy and paste the CSV file, once you've made the file in a spreadsheet software and saved as a CSV, save it to your computer and then open that file in a program like Notepad. Then copy everything from there and paste into here.
Chucklemaster 26 Mar @ 5:54pm 
genius
Catt0s 26 Mar @ 1:04pm 
Once TTS adds svg support, this will become so much more useful than it already is...
Malixx 24 Mar @ 12:32pm 
Like all your tools, wish we had this before :) good job