Tabletop Simulator

Tabletop Simulator

Magic: The Gathering - Booster Generator
30 Comments
minibearden 4 Aug @ 8:49pm 
I've been using this mod to create booster boxes for sealed games for a few days now. It works great. For anyone who wants to do this, just import the card list from the desired set and separate the cards as follows.

Commons sorted by color and placed in the corresponding spot. Other is for colorless and common non-basic lands. All uncommons, rares, and mythics in separate stacks on the appropriate spot (not separated by color for these rarities).

Then just put in how many boosters you want and hit the button. I tend to do around 280. Allows for four players to do ten sealed decks with six packs each and a separate pack to pull the mythic or rare from as a "promo" card.

It's important to note that you should NOT include basic lands in any of the stacks as the mod makes a booster pack of fourteen cards, which is what you'd get IRL since each pack comes with one basic land, but that's not needed for this.
NeM 18 Nov, 2023 @ 6:11pm 
The tools is not working well : this is not a booster generator, this is a simple sorter, it takes the cards, and sort them in boxes...
You will never be able to find 2 identicals cards for example.

Plus, there is an other bug : when you try to put only 1 cards in each section, because of the first issue, some booster have 5 cards, some other have 6 cards...

And, last issue : none of these boosters are randomized, its a box of predefined cards (If you open them, you will always find the same cards... since they are generated only once...).

So sad, I was looking for a fully randomized booster generator.
Malixx 5 Dec, 2021 @ 9:59am 
Hey guys I made a MTG mod and inside you can find Draft Boosters Generators for all "Un-sets" and Myster Booster: Convention Edition 2021. I will add more sets later on!

(It is already sorted and have accurate drop rates, you just have to pull out a Booster Pack from its Booster Box and it will generate a random Booster Pack)

Check it out here: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2655440009
TwoLesbiansInATrenchcoat 20 Sep, 2020 @ 8:43pm 
Thanks for making this, it really helps stave off carpal tunnel. I'll be using it to make boosters for my custom set Avatar the Gathering.
Fatigued 17 Jul, 2020 @ 9:23pm 
Seems to work for me fine. Was looking for something exactly like this too so I hope you keep it.
The Captain Coder  [author] 5 Apr, 2020 @ 12:10pm 
@wilster, I should probably just delete this. It was made with a very old version of the game which probably is out dated and causing it to not work. Thanks for the feedback, though!
Wilowisp 5 Apr, 2020 @ 10:22am 
It looks like when boosters are created, the script is counting up. The first pack is 14 cards, the second pack is 22 and the next pack is 2 cards.
pfych 29 Apr, 2017 @ 11:49pm 
The create booster button is massive and it covers a majority of the table
KogaKiimori 29 Mar, 2017 @ 9:17am 
I just knocked off a zero from each of these values toward the end of the script (or you can adjust to the size you'd like) and my create button is fixed and looking great with these new values :)
create_booster.width = 260
create_booster.height = 120
create_booster.font_size = 36
Thanks for this great mod jocolloman!
The Captain Coder  [author] 14 Mar, 2017 @ 5:29pm 
Probably related to a patch. I may have time to look at this over the weekend.
Snare 12 Mar, 2017 @ 12:55am 
The "Create a booster" button is HUGE. It covers up half the table. Any fix?
RNGesus 3 Mar, 2017 @ 8:43pm 
Ok, I think berserk fixed it on their end. All seems well now.
Msoulwing 3 Mar, 2017 @ 4:22pm 
I am getting the exact same error as JustChillin
RNGesus 3 Mar, 2017 @ 1:46pm 
I may be slightly early, but recent(today) patch broke it and now I get

"Error calling lua function:createBooster: object reference not set to an instance of an object".
Is this easily fixable? Otherwise this was was a amazing genrator and the only feature i lack is "random card pack cover"
The Captain Coder  [author] 29 Jan, 2017 @ 4:16pm 
I'd recommend creating an additional pile and setting it to those odds. You should get 1 in 108 packs.
Slizix 28 Jan, 2017 @ 6:56pm 
Any suggestion on how to adjust things for the new sets that have the random hyper rare cards? (Kaladesh Inventions and Zendikar expiditions)? Sadly I do not know what they odds are for getting the hyper rare cards.
The Captain Coder  [author] 22 Jan, 2017 @ 3:06pm 
There should be a number in the script that determines how many cards you get from each pile. You should be able to modify that to get it to spit out 15 cards.
Snoozer 21 Jan, 2017 @ 8:52pm 
Add to my last comment:

Is there a simple way I can modify the script to make 15-card packs? I'm trying to simulate real drafts from the latest set to practice. I haven't played since Mirrodin so I want to brush up and go play some real drafts with my brother.
Snoozer 21 Jan, 2017 @ 8:51pm 
Very awesome and useful. May I ask why there is only 14 cards in each pack though?
I'm guessing it's to account for basic lands which aren't needed in a virtual game but only some sets have those.
TG 2 Dec, 2016 @ 8:31am 
Thank you very much for making this! `-`)7
The Captain Coder  [author] 8 Nov, 2016 @ 11:09am 
The answer is a bit involved for a comment. However, the people over on reddit are very nice and I'd be surprised if they didn't help you: https://www.reddit.com/r/tabletopsimulator/
A88mph 7 Nov, 2016 @ 11:02pm 
And how would I go about doing that?
The Captain Coder  [author] 7 Nov, 2016 @ 2:01pm 
It should work with any cards as long as you use the piles. You might need to update the code a bit to match pack sizes / rarity.
A88mph 4 Nov, 2016 @ 11:29am 
I don't suppose this could work with yugioh cards as well?
The Captain Coder  [author] 24 Oct, 2016 @ 8:14am 
You can also put a stack of every common in the colorless spot and a stack of all rares in the mythic spot.
Manin 20 Oct, 2016 @ 8:21am 
Great tool, but it won't work if any of the pools is empty. So, it can't make boosters for old editions with no colorless common cards, or with no mythic rare cards like 9th Core, for example.
You can sort of fix this issue for the moment by putting one basic land on each of these pools, and create an "extra" booster if you detect a booster that contains a basic land in the place of the rare card. If the basic card replaces the "other common" card, well... I guess that's ok, losing a common is no big deal after all... xD
EsoteraByte 14 Sep, 2016 @ 2:49pm 
When the script reaches a card that hasnt loaded fully (ie: when a stack of cards is created from the chest, pasted from the clipboard, or when a save is loaded with cards other than the ones provided on your board) the script stops and will not work until i reload the board sort through all cards again.
I've already separated the cards from one set and put them into the chest for quick pack making, but having to flip through all of them everytime kinda negates this.
Is there a method of sorting through all of the cards in a stack physically so that all of them load properly, or would you have to code something in to fix this?
Hunyol 10 Sep, 2016 @ 10:32am 
Should point out, boosters have 11 commons, not 10, although in some cases, that 1 extra common is a basic land
The Captain Coder  [author] 2 Sep, 2016 @ 6:04am 
I am glad it helped!
Pepperized 1 Sep, 2016 @ 8:44am 
This helped me so much when I wanted to make a booster box of my custom set. Thanks!