Parse Oracle Text
by Incantus
Moderator: CCGHQ Admins
Parse Oracle Text
by mtgrares » 29 Oct 2009, 16:51
Hi, I heard a crazy rumor that you guys actually parse the oracle text to generate the python card code? Is that correct or partly correct?
And just for my own curiousity, how many cards does Incantus have now? I'm guessing 8,000?
And just for my own curiousity, how many cards does Incantus have now? I'm guessing 8,000?
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
Re: Parse Oracle Text
by Marek14 » 29 Oct 2009, 22:13
Well, it's some time since I made cards for Incantus (still waiting for new version), but there is a simple generator, which at least places (mostly correctly) blocks for activated, triggered, and static abilities. Maybe it can handle simple keywords, not sure about that.mtgrares wrote:Hi, I heard a crazy rumor that you guys actually parse the oracle text to generate the python card code? Is that correct or partly correct?
And just for my own curiousity, how many cards does Incantus have now? I'm guessing 8,000?
Also, it automatically compiles the header including fields of name, types, etc.
Re: Parse Oracle Text
by mtgrares » 30 Oct 2009, 17:09
Thanks for answering. I try to keep track of what other projects are doing.
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
Re: Parse Oracle Text
by MageKing17 » 20 Dec 2009, 19:50
It was actually that I was planning on having Incantus parse oracle text (or something like Oracle text but perhaps with extra information (like expansion symbols, for those particularly wierd cards that care about that)) automagically generating Python code, since Magic templating is rigid enough that a computer ought to be able to parse it. However, this idea never got beyond a "wouldn't it be nice" stage (although I still think a more global ability definition system would beat the hell out of our current "each card redefines every non-keyword ability over and over again" system).mtgrares wrote:Hi, I heard a crazy rumor that you guys actually parse the oracle text to generate the python card code? Is that correct or partly correct?
-
MageKing17 - Programmer
- Posts: 473
- Joined: 12 Jun 2008, 20:40
- Has thanked: 5 times
- Been thanked: 9 times
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests