Tabletop Simulator

Tabletop Simulator

65 ratings
(TOOL) Mass Token Import
2
3
   
Award
Favorite
Favorited
Unfavorite
Tags: Misc
File Size
Posted
Updated
54.554 KB
1 Nov, 2017 @ 11:06pm
22 Feb, 2023 @ 1:22pm
12 Change Notes ( view )

Subscribe to download
(TOOL) Mass Token Import

Description
Recently I had to import over 390 custom tokens... and after 2 days I still had another few 100 more to do!! It was so slow and painful having to copy and paste the token, right click it, select custom, alt tab, get the url, tab back, paste the url, hit import... and repeat!!

So I made this quick and dirty solution for importing 100s of token images into TTS. All you do is make a template object, drop it on the tool, and then copy all your urls into the text tool and hit the button. So much faster.

At this time, as that was all I needed, this script only works on the default TTS "CUSTOM TOKEN" object.. but the method can be easily adapted to all custom objects. If there is interest I could expand the mod.. but it is what it is at this time!

UPDATED 14/01/2018

  • It now works on all objects in TTS (apart form custom decks and asset bundles)
  • It now can read off two url lists.
  • List 1 = image slot 1 or diffuse map for custom OBJs
  • List 2 = image slot 2 or normal map for custom OBJs
  • Imported objects are placed inside a Bag to be neat. You can save this to your chest and then import it into any mod you are working on.
  • GoogleDrive and Dropbox RAW links, will be rephrased automatically. So you can paste raw links form those sites into the mod and it will work.

To use only 1 image list, simply select the 2nd list and select all and delete. The default "empty" for a text field says "Type Here". This means empty as far as the mod is concerned.

If you want to use two urls lists then they MUST be the exact same length of lines, as in have the same number of URLs in each list.

Instructions : https://www.youtube.com/watch?v=BxLUW6z_Ztc

How to use
• Create 1 Token as a "template" for all your other tokens.
• Make a text file of all your URLs, 1 URL per line. If you use DropBox or GoogleDrive you can simply select all the images and get the urls in one click.
• Paste your URL list into TTS, but selecting the TEXT TOOL and editing the TEXT FIELD in the mod. Just simple ctrl+v to paste it in. (remember to delete anything I had in the tool)
• Drop your template token onto the tool
• Press the button

• After it has finished, press the button next to the bag and it will spit everything out of the bag into the table to fix GUID issues and load all the images into your TTS cache.
• When all the loading is done you will notice a button at the base of the table to pack everything backup into the bag

• Save the compleated bag to import into your mod.
• Enjoy your hours of extra time by going for a surf with your kids.

Mass Copy from GoogleDrive it out of order!!

Yes, yes yes it is : (... Luckily we have a fix for this! Basically, you need to use a 3rd party tool to order the links. There are a number of these around.. but I mainly use Direct Link Generator or File Cabinet.

I have made a YouTube video instructions for these tools..
https://www.youtube.com/watch?v=OJzcePZUwes

Direct Link Generator - Google Drive, Dropbox, Onedrive[syncwithtech.blogspot.com]
Files Cabinet[gsuite.google.com]

Thanks

big thank you to dzikakulka for helping me with some of my typical noob-like scripting questions. This mod wouldn't be here with out him.
105 Comments
Habanero 8 Apr @ 3:29am 
This also works for figurines, nice.
Track Charlie 24 Mar @ 6:42pm 
Can we get a third column to import a name of the unit? I have names for each, but now I have to handjam them.
Wargo567 31 Jan @ 5:51pm 
Does not work with google links.
Radio With Legs 2 Sep, 2024 @ 2:55am 
Can you make it work with asset bundles (It would be very useful)
Pony Flare 31 Aug, 2024 @ 12:19pm 
The problem with Dropbox links is an internal change in their structure. The parser built into this mod changes a 0 into a 1, but starts at the wrong point... Since the links now include a "key" as the first thing after the ?, the script doesn't make the required change.

Under the convertURLs(urls) function for the Cog's script
link = link:gsub('?dl=0', '?dl=1') should be link = link:gsub('dl=0', 'dl=1')
Grzegorz Brzęczyszczykiewicz 21 Jun, 2024 @ 10:28am 
It still works, you just need to put "file:///" in front of your link, at least if you're going off of your hard drive
Captain Maybe 8 Jun, 2024 @ 12:06pm 
This no longer works. The built-in demo doesn't even work. Any chance of an update to the mod and the instruction video?
Jjshebesta 21 Mar, 2024 @ 5:16pm 
I found a decent workflow for gathering the steam cloud URLs. You can upload files in bulk to the Steam Cloud Manager (under the Mods dropdown in TTS). Once you have those files in your Cloud Manager you can click on the file and it automatically saves that file's url to your Clipboard! On Mac and PC your clipboard history is limited to only the last copied data, but a third party clipboard history tool like CLIPBOOK can maintain a history. With a few clicks you now have a list that can be pasted into Mass Token.
Erfeo 22 Jan, 2024 @ 4:22pm 
dpmusiol: I figured out what causes that, you have to have physics set to full, not (semi)locked.
dpmusiol 24 Dec, 2023 @ 7:51pm 
I had the same "Custom Tile: PLACED" followed immediately by "Custom Tile: REMOVED" problem. I hit the button as soon as I dropped it and it worked. You may have to try a couple of times. It's still faster than importing one by one. Thanks, Tragic