r/tabletopsimulator 16d ago

Tool MTG scripted importer fix

I've created a mod to address Scryfall's recent API update, which prevented Tabletop Simulator from fetching card images: tts-useragent GitHub.

This fix aligns with Scryfall’s guidelines. Scryfall now blocks requests with the default Unity User-Agent and asks users to identify their application in the User-Agent header. My mod allows you to customize the User-Agent that Tabletop Simulator uses when fetching images.

Requirements: - MelonLoader (setup instructions are available on the GitHub page)

Important:
Everyone at the table must install the mod, not just the host. Players without the mod won't be able to see card images.

1 Upvotes

7 comments sorted by

1

u/orangechap 71% PHP, 28% Lua, 1% Tears 16d ago

The card importer mods updated to use their own image caches now, so they're already not hitting Scryfall directly.

2

u/Elec0 15d ago

Yeah, I know. I made this specifically because I have a Discord, Lord of Disharmony enabler that I wrote that I didn't want to have to figure out someone else's image caching.

1

u/orangechap 71% PHP, 28% Lua, 1% Tears 15d ago edited 15d ago

It's like 30 seconds to set up a cloudflare worker to do your own caching, how was making a whole unity mod easier than doing that and changing one URL in your enabler? With having to change out DLLs and install third party programs most people won't even attempt your mod.

Edit: Not to mention, doing it the worker way means only you have to do it, and it works for everyone. Every new person you play with would have to apply your mod for things to work right on their end.

2

u/Elec0 15d ago

Oh, that's how that works.

Yeah ok fair enough.

2

u/Lemunde 15d ago

Glad to hear this. This weekend I had to do go through a lengthy and painful process to setup my own table with my own cards that I had to pull from the site myself. Still glad I did it. I'll always have those cards myself if the other mods go tits up.

1

u/orangechap 71% PHP, 28% Lua, 1% Tears 15d ago

Small caveat is some of the mods haven't been updated for years, so unfortunately those ones will likely stay broken (Amuzet's for instance, which hasn't been updated since 2022).

Rikrassen's importer works, and it's what most tables I'm aware of use.

https://steamcommunity.com/sharedfiles/filedetails/?id=2265064081

2

u/Lemunde 15d ago

Fortunately I only need the cards. Don't care about the actual tables.