Tabletop Simulator

Tabletop Simulator

31 个评价
Card Naming Tool
4
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
26.352 KB
2017 年 7 月 17 日 上午 11:33
2021 年 9 月 11 日 上午 4:55
11 项改动说明 ( 查看 )

订阅以下载
Card Naming Tool

描述
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.



热门讨论 查看全部(3)
20
3 月 20 日 下午 1:41
置顶: - Bug Reporting
Hiram Abiff
5
2022 年 8 月 30 日 上午 6:28
置顶: - Suggestions
Hiram Abiff
4
2020 年 11 月 23 日 下午 11:30
置顶: - General Discussion
Hiram Abiff
26 条留言
Stexe 2022 年 8 月 21 日 上午 10:23 
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 2022 年 5 月 18 日 上午 8:44 
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 2022 年 5 月 18 日 上午 8:31 
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 2022 年 1 月 10 日 上午 7:51 
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 2021 年 10 月 15 日 上午 8:33 
@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 2021 年 10 月 6 日 上午 12:29 
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  [作者] 2021 年 9 月 11 日 上午 5:10 
Updated to version 2.1

A complete list of changes can be viewed in the Change Notes
WaferLake 2021 年 4 月 23 日 下午 1:04 
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  [作者] 2020 年 10 月 17 日 上午 4:19 
@ 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  [作者] 2020 年 10 月 17 日 上午 3:55 
@ 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.