Plain text exporter

Intended for game file edits or edits to existing basic templates, as well as templates that aren't game or styles, such as locales.

Moderators: artfreakwiu, Pichoro, SweetRein

Plain text exporter

Postby Idle Muse on Wed Oct 15, 2008 9:34 am

This is a simple export template that writes a basic text file with each card name in the set on a new line.

I plan to extend it later to cover a wider range of possibilities for raw text export.

To install, simply download, and then double-click to run the installer, and click OK a few times on the MSE window that appears.

EDIT: New version includes an option that will export cards in a forum-style format, ideal for posting straight onto the MSE forums, complete with formatting tags!
Attachments
magic-text.mse-installer
v2008-10-22
(11.86 KB) Downloaded 591 times
User avatar
Idle Muse
 
Posts: 99
Joined: Thu Oct 26, 2006 8:30 am
Location: Hertfordshire, England

Re: Plain text exporter

Postby Idle Muse on Tue Oct 21, 2008 5:11 pm

New option added: forum export. Exports a text file containing soemthing like this:

Code: Select all
[b]Crop Farmer[/b] 3W
Creature — Human Serf  (r)
When Crop Farmer comes into play, sacrifice a land. Search your library for a land card and put that card into play. Then shuffle your library.
1/1

[b]Feudal Lord[/b] 1WW
Creature — Human Samurai  (c)
Bushido 2 (When this blocks or becomes blocked, it gets +2/+2 until end of turn.)
2/2

[b]Trained Villager[/b] W
Creature — Human Samurai  (c)
Bushido 2 (When this blocks or becomes blocked, it gets +2/+2 until end of turn.)
0/1

[b]Apprentice Thief[/b] U
Creature — Human Ninja  (c)
Ninjutsu 0 (0, Return an unblocked attacker you control to hand: Put this card into play from your hand tapped and attacking.)
1/1

[b]Dusklight Ninja[/b] 1UU
Creature — Human Ninja  (c)
Ninjutsu U (U, Return an unblocked attacker you control to hand: Put this card into play from your hand tapped and attacking.)
2/2

[b]Bell-ringer[/b] B
Creature — Human Monk  (c)
Focus 1 (When this creature comes into play, look at the top card of your library. You may reveal one. If you do, remove it from the game and shuffle your library. This creature is focussed on the removed card.)
T: Target creature gains haste until end of turn. Play this ability only if the focus card’s converted mana cost is greater than zero.
1/1

[b]Shrine-tender Monk[/b] 1BB
Creature — Human Monk  (c)
Focus 3 (When this creature comes into play, look at the top three cards of your library. You may reveal one. If you do, remove it from the game and shuffle your library. This creature is focussed on the removed card.)
Shrine-tender Monk gets +X/+X, where X is the focus card’s converted mana cost.
2/2

[b]Rising Dust[/b] 2R
Sorcery (u)
Creatures can’t block this turn.

[b]Sandstorm Rider[/b] 1RR
Creature — Human Mercenary  (c)
Flanking (Whenever a creature without flanking blocks this creature, the blocking creature gets -1/-1 until end of turn.)
4/2

[b]Allure of Relic Gold[/b] 1G
Sorcery (c)
Two target creatures must attack or block this turn if able.

[b]Temple Guardian[/b] 1GG
Creature — Human Knight  (c)
Rampage 4 (Whenever this creature becomes blocked, it gets +4/+4 until end of turn for each creature blocking it beyond the first.)
2/2

[b]Tiger Cub[/b] G
Creature — Cat  (c)
Rampage 3 (Whenever this creature becomes blocked, it gets +3/+3 until end of turn for each creature blocking it beyond the first.)
1/1


To do on this update: Add mana tags for MSE forums, fix additional linebreaks.
User avatar
Idle Muse
 
Posts: 99
Joined: Thu Oct 26, 2006 8:30 am
Location: Hertfordshire, England

Re: Plain text exporter

Postby Majin_Kid_Boo21 on Sat Dec 13, 2008 9:38 pm

I wanted help creating a custom style of exporting text, I attempted but it didn't export at all, so could you help
Code: Select all
Name   Set   Card_number   Color   Cost   Converted_Cost   Type   Power   Toughness   Rarity   Rule_Text
Last edited by Majin_Kid_Boo21 on Wed Dec 17, 2008 1:45 pm, edited 1 time in total.
Majin_Kid_Boo21
 
Posts: 11
Joined: Mon Jul 21, 2008 10:01 pm

Re: Plain text exporter

Postby Idle Muse on Sun Dec 14, 2008 7:16 am

Are those tabs delimiting the fields? Do you want all the line breaks stripped out of the rule text?
User avatar
Idle Muse
 
Posts: 99
Joined: Thu Oct 26, 2006 8:30 am
Location: Hertfordshire, England

Re: Plain text exporter

Postby Majin_Kid_Boo21 on Wed Dec 17, 2008 1:45 pm

not sure, and yes if that's possible so each card comes out on one line, making sure all the parameter are tabbed.
Majin_Kid_Boo21
 
Posts: 11
Joined: Mon Jul 21, 2008 10:01 pm

Re: Plain text exporter

Postby Idle Muse on Thu Dec 18, 2008 3:39 am

This should be fairly easy then. I'll probably get round to it sometime this week.
User avatar
Idle Muse
 
Posts: 99
Joined: Thu Oct 26, 2006 8:30 am
Location: Hertfordshire, England

Re: Plain text exporter

Postby Seeonee on Sun Feb 22, 2009 12:44 pm

Is there a way to specify custom export formats?

I'd like to use this to generate a text spoiler of a set to then be parsed by some PHP scripts. However, currently some fields are missing like collector number and artist. I was using the "Export for MWS" option, but they don't support mythic rarity.

What would be seriously awesome would be something akin to an XML format specification, where you can control what values are printed and how they're printed out. But that's just wishful thinking.

Incidentally, I'm trying to find where the package is installed do so I can play with tweaking it myself to include the extra fields, but I'm not having any luck finding it. Where does it get installed to?

Thanks for a great tool!
Seeonee
 
Posts: 1
Joined: Sun Feb 22, 2009 12:41 pm

Re: Plain text exporter

Postby Pichoro on Sun Feb 22, 2009 2:53 pm

I replied to your post in the main forum, Seeonee, with what should be the the location of the template.
I don't want to have a signature... :(
User avatar
Pichoro
 
Posts: 438
Joined: Wed Oct 18, 2006 6:28 pm
Location: Ohio


Return to MSE Custom Add Ons

Who is online

Users browsing this forum: No registered users and 1 guest