Tabletop Simulator

Tabletop Simulator

评价数不足
CSVDeck
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
14.497 KB
3 月 21 日 下午 12:45
3 月 21 日 下午 12:46
2 项改动说明 ( 查看 )

订阅以下载
CSVDeck

描述
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 条留言
redpepper 7 月 28 日 下午 7:54 
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 7 月 28 日 下午 6:26 
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 7 月 10 日 上午 11:13 
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 3 月 28 日 上午 9:32 
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 3 月 26 日 下午 5:54 
genius
Catt0s 3 月 26 日 下午 1:04 
Once TTS adds svg support, this will become so much more useful than it already is...
Malixx 3 月 24 日 下午 12:32 
Like all your tools, wish we had this before :) good job