Tabletop Simulator

Tabletop Simulator

29 ratings
Card Naming Tool
4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
26.352 KB
17 Jul, 2017 @ 11:33am
11 Sep, 2021 @ 4:55am
11 Change Notes ( view )

Subscribe to download
Card Naming Tool

Description
This tool is intended to help mod developers organize card names and descriptions, and then apply the info to the cards with script. This tool is helpful for naming large decks that would otherwise be a pain to do manually. This mod requires NO real scripting knowledge, but you must at least be familiar with the scripting editor.

Features include -

- Apply names and descriptions to cards while keeping the card order within the deck. 500+ Card decks have been tested.
- Use BB Codes to make your card names and descriptions have bold, italic, underlined, strike-through, subscript, superscript and or colored text.
- If any script or xml exists on your starting deck, for example a button to draw a card. The tool will keep your custom script and xml and then apply it to the final deck.
- After using the tool, you can backup your card information so you can reapply it later by copying your edited information to a safe location, and then use it at later time if you need changes.

Instructions can be found on the tool itself. Detailed information on how to input data can be found in the scripting editor.

- Extra Tips -

1) When building your custom deck with the TTS deck editor, try organizing your cards so as to more easily name them in game; such as keeping cards in order and in their respective suits.

2) While inputting names, it is advised to save and run the script every so often to make sure there are no errors, and that your card order is correct. If you encounter an error, make sure your names and descriptions adhere to the suggestions at the top of the script; i.e Make sure escapes are being used where needed.

3) Though the in game editor will work just fine to fill in your names and descriptions, I highly advise using Atom editor with the additional Tabletop Simulator package. This will allow you to see LUA syntax which is helpful for catching typos or other errors. You can also easily save and backup your work to a text file. For more information on bb-codes or using the Atom editor and the TableTop Simulator package, you can visit the provided Berserk-Games pages below.

http://berserk-games.com/knowledgebase/atom-editor-plugin/
http://berserk-games.com/knowledgebase/bb-codes/

If you have any questions, recommendations on changes, or are experiencing any bugs; please feel free to leave a comment below, or a post in the discussions section.

This script was a requested game feature on the Berserk-Games Forums. Created by forum user dzikakulka, updated and published by Hiram Abiff.



Popular Discussions View All (3)
19
24 Jul, 2023 @ 3:06am
PINNED: - Bug Reporting
Hiram Abiff
5
30 Aug, 2022 @ 6:28am
PINNED: - Suggestions
Hiram Abiff
4
23 Nov, 2020 @ 11:30pm
PINNED: - General Discussion
Hiram Abiff
26 Comments
Stexe 21 Aug, 2022 @ 10:23am 
Seems like the last card flips over instead of being flush with the rest of the deck?

It would also be good if you added the ability to put tags on the cards too.

Maybe also adding a script to each individual card would be useful. Anything else that an individual card loses when it becomes put in a bag and/or things you would apply to a bag but want to each individual object within it.
HappyCigarettes 18 May, 2022 @ 8:44am 
on further investigation it seems that if you copypaste without the surrounding " ", and then manually type all of those in the editor, it works just fine.

so it isn't accepting copypasted " as a valid symbol for....... reasons?
HappyCigarettes 18 May, 2022 @ 8:31am 
when copypasting naming lists into the script editor like this

“BT5-034 Kotemon”,
“BT5-035 Starmons”,
“BT5-035 Starmons”,
“BT5-036 Renamon”,
“BT5-037 Gladimon”,


I get the error "chunk (83,4) unexpected symbol near "" "

but if I type that info directly into the editor the EXACT same way it works just fine. literally typing character-for-character on the next line and then deleting the offending "pasted" entry.

why can lists not be copy-pasted when the formatting is correct?
Coping Kobold 10 Jan, 2022 @ 7:51am 
I think he means that the deck he's renaming is already shuffled.

For reference, you can get a deck back into its original order by selecting customize>import.
Sfendili 15 Oct, 2021 @ 8:33am 
@Tilleen I don't understand, why do you not just write the script in the order that the cards appear? We have to fetch the list of names ourselves. If you have the individually named card files I can tell you my process.
Tilleen 6 Oct, 2021 @ 12:29am 
I was looking at writing something like this, but here it is!

The only issue I have is the work required to get the deck of cards into the same order as the script is.
Hiram Abiff  [author] 11 Sep, 2021 @ 5:10am 
Updated to version 2.1

A complete list of changes can be viewed in the Change Notes
WaferLake 23 Apr, 2021 @ 1:04pm 
Thank you! I've been struggling with a bash/python script. And this helped a ton. I don't even know why it was using python though. It should have been lua, like you're using. Thanks again! Time to name a bunch of custom cards with ease. I also didn't know the apostrophes could be escaped.
Btw, for anyone that wants to know, you can use notepad++ regex for renaming a list you typed out to do various things.
To get the '', on the beginning and end of every line, go to replace and then type in
Find what: ^
Replace with: '
Find what: $
Replace with: ',
If you have apostrophes you can escape them all at once with this.
Find what: ([A-Za-z0-9{1}])'([A-Za-z0-9{1}])
Replace with: \1\\'\2
If you have other special characters near the apostrophes it will get a little more complicated. Then you will have to do some regex learning.
Hiram Abiff  [author] 17 Oct, 2020 @ 4:19am 
@ lucklorena

Sorry I didn't respond to you back in July, but in case you happen to still be wondering about moving bottom cards from one deck to another...

I can't be sure if a script like this already exists, because I don't know everything that's out there, but I do know it could be easily scripted. You can use takeObject on the deck to remove a card from the bottom of the source deck, and then move it beneath the target deck with putObject. If you're interested in creating a script, and would like some further help, you can reply to me via the General Discussion section above where we can talk more about how to get it done.

Good luck.
Hiram Abiff  [author] 17 Oct, 2020 @ 3:55am 
@ eag1105, I haven't personally tested this, but I do believe you can move the tool to another table by saving the tool to your "Saved Objects", and then load it while on the other table. It should work.