Tabletop Simulator

Tabletop Simulator

MTG Deck/Draft/Cube Importer
124 Comments
saximaphone 1 hour ago 
It does use the HD scryfall pngs.
EdgarEat 5 hours ago 
Can you make the images HD, scryfall png
Lenc Jul 3 @ 11:42pm 
Just passing by to thank you for this mod and say how we appreciate your continuous improvement on it, you are one of the reason it's easier for us to have Magic in TTS, it's the best card importer me and my friends have seen so far around here! Thanks!
rikrassen  [author] Jun 11 @ 12:12pm 
@jason, that may be possible. I can add it to my list of feature requests
jason whorees Jun 9 @ 4:06pm 
I'm making a cube with a lot of custom cards on Cube Cobra, and the way I do it is to override a card with the same mana cost and color as my custom card with an image of my card in the Image URL section of the card I have added.

I understand that when I import the cube, it is still fetching the cards from scryfall and not the images of the custom cards I have used to overwrite it. Is there a way for me to import the cube with the images of my custom cards instead of the scryfall ones?
rikrassen  [author] Jun 2 @ 5:44am 
The code is mostly the same code that Wizards/Scryfall use to refer to the set, i.e. https://scryfall.com/sets/fin . You can see this at the bottom left of any card as well. There are some special cases like mentioned in the description above like for jumpstart packs.
Ivy Lebelle ٩(××)۶ Jun 2 @ 4:14am 
Guys, I can't figure out how to use the draft tab. Where can I get the code?
rikrassen  [author] Apr 9 @ 6:08pm 
@Az I looked into this and it seems to only be happening sometimes (it may have been an issue on CubeCobra's side), but I've added some more logging to try to debug if it happens again.

On another topic, in case anyone had issues with Archidekt today, they completely changed there site. I have updated the code, everything should be working again.
Az Apr 8 @ 1:06pm 
I'm struggling to import cubes from CubeCobra, if I try importing https://cubecobra.com/cube/overview/wtwlf123 it says there's an issue and asks if I'm sure it's public
rikrassen  [author] Mar 31 @ 6:33am 
Thanks for the bug report L3vi, I think I know what's going on there, I should be able to fix that for you soon
L3vi Mar 30 @ 8:57pm 
Has anybody else noticed a bug with the importer GUI? I discovered that if I import a scryfall deck link it will fail to import if any of the cards have been printed in the new set. Not even if the cards are new, even just reprints. Once I manually set the print version of each card to a non-new set (not Tarkir) it imported great!
I don't know if this is an issue with the Scryfall API or perhaps the importer.

Love the GUI though, thanks for all you do!
saximaphone Mar 14 @ 7:25pm 
Oh you can just link as single scryfall card page? That's very useful thank you!
rikrassen  [author] Mar 14 @ 6:14am 
In Scryfall the tokens are part of a separate set which is T + the set of the card that makes the token, i.e. for Basri, Tomorrow's Champion the cat token is in TDFT. Probably an easier way though is to import single cards from Scryfall, i.e. https://scryfall.com/card/tdft/2/cat , to get that exact printing.
saximaphone Mar 14 @ 12:09am 
How are you able to choose specific tokens? Setting the set doesn't work.
saximaphone Mar 2 @ 3:22pm 
Thanks!
rikrassen  [author] Mar 1 @ 7:26am 
@saximaphone thanks for the report. MTGGoldfish is supposed to work, this is a bug I can fix. To specify a specific printing of this card manually you would use the format "Dusk // Dawn (LTC)" or "[LTC] Dusk // Dawn"
saximaphone Feb 24 @ 8:45pm 
Am I able to import cards of a specific set?
Trying to import from MTGGoldfish, but it doesn't like doubles like Dusk/Dawn.
I can put it in manually as "Dusk" and it shows up, but not as "Dusk [LTC]" as the preferred set.
rikrassen  [author] Feb 18 @ 8:49am 
Moxfield blocks API requests, I believe they were allowing requests from TTS, but maybe they've gotten more strict.
Wurstfaktor Feb 17 @ 8:26am 
Hi! Thanks for you great work! For a few weeks, I cant import my moxfield decks anymore.. I always get a 403 forbidden error, but playing on other servers, the exact same url works.. can anybody help me fixing this on my created tables?
rikrassen  [author] Feb 16 @ 1:48pm 
For @Pickle, sorry for the long silence. I couldn't implement your custom pack feature without a client update, but I finally put one together. The cube tab now allows for a custom number of packs. Unfortunately it seems that seeding strategies vary a lot, and is too complicated for an in game UI like this one. However, since shuffling is more consistent than paper magic, seeding likely isn't required if the goal is just to even distribute the colours.
Pickle Oct 25, 2024 @ 12:13pm 
I just found this mod and am very excited to try it out. However, in the cube portion you mentioned, I noticed that it automatically generates 3 packs. I was curious to know if you plan on adding support for custom pack sizes that are sometimes used in Cube (like 5 packs of 9 cards).

Additionally, some Cubes require seeding for color or rarity. How difficult would that be to implement?
rikrassen  [author] Aug 27, 2024 @ 6:14pm 
@Valentine if somebody gave me the assets for a foil effect I could probably add it, but shaders are outside my current skill set right now
Valentine Aug 24, 2024 @ 1:11pm 
Any possibility to add an option for a foil effect to cards imported as foil?
rikrassen  [author] Aug 2, 2024 @ 12:00pm 
I get my data for new sets from https://github.com/taw/magic-sealed-data That's usually live within a couple days of the set releasing, so shouldn't be too long before I get everyone able to draft with the new set :)
clope Aug 2, 2024 @ 11:21am 
How quickly do you update this importer to feature new set releases? I'd love to do a Bloomburrow draft on TTS but I don't know the roadmap for that set with this card importer. I love what you're doing though, please keep it up!!
rikrassen  [author] Jun 12, 2024 @ 8:23pm 
It looks like the draft data was added two days ago, so my weekly import should pick it up tonight. I'll make sure it doesn't have any other problems after that
Grace Jun 12, 2024 @ 8:16pm 
The importer currently has problems when trying to draft with MH3, are there plans to fix this?
rikrassen  [author] May 20, 2024 @ 7:41am 
Ok, thanks to Oops' helpful tip the Moxfield issue was an easy to deal with. Should be working now.
rikrassen  [author] May 20, 2024 @ 7:08am 
Thanks for the reports everyone, sorry that I've been busy. I'll try to get to fixing this soon
Oops I Baked a Pie May 18, 2024 @ 2:30pm 
heyo - moxfield appears to no longer work with your importer - all decks show up as "private"

perhaps this might help:
moxfield closed access to their api some months ago - I went to the discord and they were awesome and put in an exception for queries originating through TTS - as far as i understand your deck queries and import pre-processing is actually done on your own server? could be the reason why
Galaeran May 12, 2024 @ 3:35pm 
It appears the "failed to read deck" error comes from cards with '/' in the name (e.g. split cards or adventure cards). I was getting this error, but then I tried copying the deck list into a text file and removing the '/'s, then the import was successful. Hope this helps!
Dear next of kin... May 12, 2024 @ 6:03am 
Big thanks on making this, it's been so good to make things easier for our pod.

I however am having the same issue as Moose, using the same table. I'm also having the issue when using the importer by itself. "There appears to be an issue with your deck: failed to read deck from:" *url* "are you sure it's public." And I've also experimented with making decks public, but that also doesn't fix it.

The Decklist entry is working correctly however and we've been using that. Thanks for the Importer again, and keep up the great work.
Moose May 12, 2024 @ 5:02am 
While using this table (https://steamcommunity.com/sharedfiles/filedetails/?id=2265064081) which seems to use your importer, I'm getting an error with Moxfield with decks that used to be able to import fine saying "There appears to be an issue with your deck: failed to read deck from:" and then it shows the link i'm using as well as asks if it's public. I've tested this with some friends and it happens when any of us go to import decks. Not sure if it's an issue with this mod or the other one I'm using, but wanted to mention it in case!
frosty999 Mar 19, 2024 @ 7:51am 
Honestly one of the best importers I've seen on the workshop, It's the only one that I've found so far that works with the links I use, supports custom card backs without having to delve into the scripting, and actually uses the correct artwork for the cards I picked. Great work! :steamthumbsup:
rikrassen  [author] Feb 11, 2024 @ 3:00pm 
Sorry about that, the set data changed apparently with the new play boosters. I fixed it, should be working now.
Shane Feb 10, 2024 @ 12:49pm 
I know it just came out, would you know when MKM will get support in draft?
Quásar Nov 22, 2023 @ 10:28pm 
It works perfectly, thank you very much rikrassen for reading and fixing it :steamthumbsup:
rikrassen  [author] Nov 20, 2023 @ 2:40pm 
Hey Quásar, sorry you weren't able to load in Spanish cards. I updated the Scryfall code so that loading sets with a specific language is now possible. I also changed how the user language override works so that it will take priority over loading English cards.
Quásar Nov 17, 2023 @ 11:17pm 
Thanks for the mod.
I can succesfully import a full set like "https://scryfall.com/sets/woc"
But when I try to import "https://scryfall.com/sets/woc/es" it doesn't work.

It says: "There appears to be an issue with your deck: Downloading from scrgfall.com is supported, but /sets/woc/es is not recognized as a deck URL."

Of course I tried the Language option selecting "Español" and importing the URL without the "/es" at the end and it just import the full set in English.
Any idea? Thank you.
lekkolek Sep 23, 2023 @ 12:00am 
First of thank you for your extra effort. The speed is indeed awesome and it's not only the speed when importing decks. For some reason the decks imported through your importer is way faster when trying to search through the deck and I really appreciate that. Also thank you for the tip with the MTGO export format I didn't know that. Yes if I find anything I'll report back :D
rikrassen  [author] Sep 22, 2023 @ 6:40pm 
Hey lekkolek, glad you're liking the speed of the importer. There is a downside to that speed though, and that's that I have to have a copy of Scryfall that stays up to date. My database updates on Thursdays, and it looks like Aragorn, Hornburg Hero didn't quite make the cut this week. I ran the update again and it looks like it's there now. There is still a problem with the deck you sent me, it's using a printing of Torens that Scryfall doesn't have in its database. When I switch that printing the decks loads.

If you're running into trouble with any more decks from a site you can try using the site's export + MTGO format, or post here/DM me and I'll happily take a look :)
lekkolek Sep 20, 2023 @ 1:08am 
I really love this importer due to its speed however I encountered multiple issues when trying certain decks. One of the decks causing issues is this one https://www.moxfield.com/decks/s_vlZEP8okWfzA-v0J4dqg
where it constantly says "Deck not found" even though it is publicly viewable and importable through other importers that are however more laggy and prone to crashing our games when they dont work which this one never did. I am not sure if I was doing something wrong but other decks did work fine so I'm not sure.
stræf Aug 15, 2023 @ 6:12pm 
awesome! thank you so much! i do not draft much, but am really happy that this tool exists.
rikrassen  [author] Aug 14, 2023 @ 7:02pm 
@stræf sorry about that, there was an issue with my database updater. I've added CMM now, and I'll work on making that more robust so the next set hopefully won't have any issues
stræf Aug 9, 2023 @ 8:42am 
i would like to draft commander masters. i am entering "CMM" into the field on the draft booster generator tab and getting an error that the set code cannot be found.

am i doing something wrong or is the set not in the database yet?
rikrassen  [author] Jul 31, 2023 @ 5:13pm 
I don't do this project for money, partially because I don't need to, but mostly because of the copyright issues it might cause. If anyone is interested in learning about how the server/code works I'd be willing to chat more in DMs.
rikrassen  [author] Jul 31, 2023 @ 5:12pm 
@Dogma thanks for saying you like this importer. I initially thought about trying to support other CCGs, but there are a fair number of issues

1. There needs to be a high quality data source, like Scryfall is for Magic. It also needs to have a way of getting a dump of all the cards so I could update my database.
2. I need some basic understanding of the game, to build the appropriate decks, handle double-faced cards, etc.
3. Part of the reason this importer is so fast is because I put a fair amount of work into optimizing the database queries. I'm sure they would translate reasonably easily but for another card game I would need to understand how deck sites/ad-hoc queries work to be able to optimize them

and to a lesser degree

4. I started this project several years ago and I don't find as much time with my current job title/life to work on it.
Dogma Jul 24, 2023 @ 7:35pm 
I am very very impressed by this importer. I was wondering just out of curiosity, what kind of work would go into building a similar tool for other card game. And if it would be possible to commission such thing?
Greeempire Jun 9, 2023 @ 1:50pm 
looks like it's working now, thanks!
rikrassen  [author] Jun 8, 2023 @ 5:08am 
Sorry about that, I'm supposed to be updating the database every week but it seems has been a bug with that for a while. All cards should be up to date now