2019 Holiday Exchange!
 
A New and Exciting Beginning
 
The End of an Era
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Very nice!

    Good to see people still coming back to this thread.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Sweet. I spent some time putting together an RNN a couple days ago, I really should build an actual Ubuntu machine instead of a VM to train with - CPU training is just slow.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Hey, is anyone still around on this thread?
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Hey just as a fun announcement, someone found this and repeated it with Hearthstone cards from the Blizzard Pseudo-CCG. Results here.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Quote from Talcos »
    As for "guardian *****", yes, my networks curse too. I swear that they have come up with hideously offensive names like "*****-fire elemental" (just picture that in your mind), and I've avoided mentioning them thus far because I didn't want to detract from the successes


    So far, my girlfriend's favorite card name that my RNN has generated is "Morti****er."
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Quote from Talcos »
    EDIT(2): Aaaaaannd the Supreme Court just legalized same-sex marriage nationwide. I am overwhelmed with tears of joy. Sorry, not Magic related, but that's very good news for me and my better half. I'll get back to you about the rules question later, unless someone else wants to take that one up.


    Congrats!
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Hey all! Back from my business trip and interested to catch up on what's going on.

    In the meanwhile, I've taken Onzerzeeboot's input file, modified it, tweaked it, played around with it, and changed it into a .CSV

    This should allow for slightly easier manipulation of the input text (since it's in CSV form). I've also done the $TYPE counter swap (Except for Poison counters and +-x/+-x counters) and fixed the rules text for some cards to use $THIS instead of their actual name. Hopefully that will allow the RNN to catch on to some concepts a little faster.

    .CSV is available here.

    If anyone has any suggestions or modifications to that, please feel free to hit me up.

    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Quote from Wildfire393 »
    Quote from LASture »
    I've been watching this thread for quite awhile and I'm thrilled at the progress and samples that are being generated. I'm interested in generating a bunch of samples myself (I have a pretty powerful rig that could pull it off) but must admit I only have basic c++ knowledge. Eventually, could this project set a goal to have some kind of downloadable compilation of files/guide to running the generator? I'm over-simplifying it but basically something like "download this, open it, set system resource allocation, then hit GO".

    If this isn't something too distracting, I think it would be worth editing into the first post as I'm sure there are other people interested that could use a guide with the setting up process.



    Someone posted this a few pages back, I believe.

    Basically:
    1) http://www.psychocats.net/ubuntu/virtualbox - Follow these directions to set up VirtualBox with 64-bit Ubuntu. Allocate at least 2GB RAM and as much Hard Drive Space as you can spare. (Skip this step if you're already in Ubuntu or OSX)
    2) http://torch.ch/docs/getting-started.html#_ - Follow these directions in your terminal to download and install torch
    3) In a terminal, type "luarocks install nngraph" and "luarocks install optim" to install the lua modules rnn needs
    4) https://github.com/karpathy/char-rnn - Download RNN from here
    5) https://drive.google.com/file/d/0B2S21COYh9P8M1hEeFYwUDZOMWM/view?usp=sharing - Download the dataset and put it into the data folder in the RNN package you downloaded
    6) In a terminal, "cd /<path to where you downloaded RNN>"
    7) In the same terminal, "th train.lua -data_dir data/<the folder you put the data in> -gpuid -1 -rnn_size <size> -num_layers <layers> -dropout <dropout>" to start training. This will start creating checkpoint files in the cv folder
    8) In a new terminal, at any point, "th sample.lua cv/<checkpoint file name> -gpuid -1 -length <length> -temperature <temp>" to generate cards. You'll have to reformat the output to be more usable, but that's it in a nutshell.

    As for what parameters to use
    rnn_size - The default is 200 I believe. Talcos ran at 600. I'm kicking off a run at 1000 soon. This will depend on your hardware and how long you're willing to wait
    num_layers - Defaults to 2, Talcos ran at 3, I'm going for 6. Like rnn_size will depend on your hardware and patience
    dropout - I've tried .25, Talcos ran at .5. .5 is probably fine. Too much lower and you'll "overfit"
    length - Default is 2000 characters, which is a good 10 cards. Increase this for more
    temperature - how "risky" the created cards will be. Play around with this, anyhwere from .2 to .8 to see different results.


    If I get super ambitious, I might write up a more detailed guide. I suppose it might also be possible to look into creating a packaged installer/script for a bunch of it that takes a lot of the manual steps out, but that's a bigger project that I'm prepared to take on this moment.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    And the old standby: "and then shuffle your library" when you haven't searched your library. Drink twice if you shuffle your library after putting something on the top or bottom of it.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Quote from 256k »

    This card should probably have some more unrelated lines of rules text added to it. Also, once again with the paying X to no effect. I think it's really strange that so far none of the iterations seems to have learned that every card with one X on it needs to have at least one more X on it.


    Undefined X is another drink in the RNN drinking game.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Quote from Mata_Hxri »
    Quote from Xallanthor »
    Sumbal Faorilix
    4
    Artifact Creature - Hound Cleric
    tap symbol : Return target permanent card from your graveyard to your hand.
    5/2


    Is this too good for its cost? I feel like it is on paper, but it still wouldn't really be played. I like it anyway, I like that it's a robot dog.


    A Robot Dog Priest.

    And yes. It's infinite card advantage. It's fragile, doesn't have haste, and will draw a lot of hate, but it's also not legendary or color specific. Any deck can potentially run it. It's not as OP as some of the cards the RNNs have made, but it is, at the very least, undercosted.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Quote from Xallanthor »
    Cloudcraw Spirst
    3G
    Creature - Giant
    Flying
    When $THIS enters the battlefield, target player loses life equal to the number of cards in your hand, then shuffle your library.
    5/5


    That reminds me! When you play the M:tG RNN Drinking game, extraneous shuffling of the library means you take a drink.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Quote from 256k »
    Ojelium Rids
    5
    Artifact Creature - Golem
    Creatures can't block.
    13/3

    Goblin Servite
    1R
    Sorcery
    Each player sacrifices all permanents that player controls.

    Slarecaster
    1R
    Sorcery
    $THIS deals 3 damage to each creature without flying for each graveyard.




    All three of these are totally legal designs. They are all ridiculously overpowered, but they're in exactly that range of crazy that 9-year old might think was reasonable for a mythic rare. I actually kind of like the design on Slarecaster. An interesting way of making multiplayer relevant.

    At least Ojelium Rids doesn't have haste.


    Also, given some of the cards the RNNs are generating, it wouldn't surprise me if eventually there was a way for a player to have more than one graveyard.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Quote from Talcos »
    It also doesn't handle the problem of generating nonsense cards (like those that have nonsense reminder text.


    I've noticed that in my latest run, I have a high number of cards generated which are perfectly valid cards, but with the wrong reminder text on an ability.
    Posted in: Custom Card Creation
  • posted a message on Generating Magic cards using deep, recurrent neural networks
    Ok. I finally finished looking through the results of my second run. Highlights below. The RNN is not good at balance.
    Outtan Recruit 3
    Artifact
    1, T, Exile $THIS: Exile target creature. Return that card to the battlefield under your control.

    Krosan School 4U
    Creature - Drake
    Flying $THIS enters the battlefield with three +1/+1 counters on it. 1: Regenerate $THIS.
    3/4

    Diamond Faerie 1U
    Instant
    Draw two cards, then $THIS deals 4 damage to you.

    Paragon of Gethes B
    Instant
    As an additional cost to cast $THIS, sacrifice a creature. Draw cards equal to the sacrificed creature's converted mana cost.

    Lairoos, the Dragon Snake 1G
    Creature Bird Soldier Archer
    Kobolly 1 (4R, T: Put target card from a graveyard onto the battlefield under your control. That creature can't attack or block and its activated abilities can't be activated.)
    1/1

    Myschith Worm 2U
    Instant
    You may put a creature card from your hand onto the battlefield.

    Ergade Wire R
    Instant
    Draw a card for each tapped artifact, creature, or land you control.

    Elder of Annihod 2G
    Enchantment Aura
    Flash
    Enchant creature
    Whenever enchanted creature attacks, put a 2/2 green Angel artifact creature token onto the battlefield.
    Sacrifice a Saproling: Draw a card.

    Dictate of Kami 3GGG
    Creature - Elf Scout
    $THIS attacks each turn if able.
    1/1

    Colossus of Stone 1W
    Creature - Human Wizard
    1W, T: Prevent all combat damage that would be dealt to you this turn.
    1/1

    Stormcloud 3GGG
    Creature - Elephant
    At the beginning of your upkeep, flip a coin. If you lose the flip, you lose the game.
    5/3

    Guardian of the Ghita Powerstone 1W
    Enchantment
    1W: Prevent all combat damage that would be dealt by target creature this turn. Any player may activate this ability.

    Angelic Blast 2
    Artifact Equipment
    Equipped creature gets +2/+1. Equip 1 (1: Attach to target creature you control. Equip only as a sorcery.)

    Golghth Whale 2G
    Legendary Creature - Centaur Shaman
    2G: Target Beast creature gets +1/+1 until end of turn for each artifact and each creature you control with a +1/+1 counter on it. When it dies, you may put its +1/+1 counters on target artifact or enchantment with converted mana cost 4 or greater.
    $THIS has flying as long as you control a black or green permanent.
    2/1

    Unalley Idol 4G
    Creature - Spike
    $THIS enters the battlefield with a +1/+1 counter on it for each creature put into your graveyard.
    0/0

    Kingueris Ascept 5G
    Creature - Wurm
    Nonbasic land
    3/6

    Wall of Plague
    Land - Island Mountain
    T: Add U or G to your mana pool.
    As $THIS enters the battlefield, name a nonland card and put all other cards from your hand on top of your library.

    Thelodon Colossus WW
    Creature - Human
    Sacrifice $THIS: Put a -1/-1 counter on each creature an opponent controls.
    1/1

    Blast of Dart 2
    Artifact
    3, T: Put a -1/-1 counter on target creature.

    Avatar of Fury 2W
    Creature - Human Soldier
    Whenever $THIS becomes tapped, you may put a +1/+1 counter on $THIS.
    2/2

    Disciple of Pility G
    Creature - Insect
    Whenever $THIS becomes blocked, defending player loses 2 life for each card in his or her graveyard.
    0/1

    I'm going to start a third run with an expanded network while I'm on a business trip for the next several days. I'll have more results when I get back (and should still be able to check in on this thread while I'm out of town.)
    Posted in: Custom Card Creation
  • To post a comment, please or register a new account.