It is currently 16 Apr 2024, 18:13
   
Text Size

Sonic’s Custom Card Frames

Continuing Development of MicroProse's Magic: The Gathering!

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

Sonic’s Custom Card Frames

Postby Sonic » 25 Sep 2014, 02:37

These were a development of a rough set of frames I knocked up so I could check the cards title, type, and rules text in the deck builder during patch data entry. Partially to resolve the problem of having to endlessly switch the ‘Expand Text Box’ setting on and off due to the cards type and expansion symbol being obscured when needing to read the full rules text and flavor text.

Image

As you can see, all the cards information text has been moved below the rules text box. Plus the frames are set up to have no black border and so are visibly larger than the standard frames, allowing for a larger text box.

If, like me, you find the expanding rules text box something of a pain, and fancy trying these frames without trashing your current card frames setup. Rename the current ‘Duel.dat’ file in your ‘DuelArt’ folder to ‘Duel.datx’ before you copy the folders in the download archive into your games ‘program’ folder.
You can then switch back to your original card frame setup by simply switching the extension name on the new and original Duel.dat files.

As always, have fun… Sonic

http://www.mediafire.com/download/ibmvi ... Frames.zip
Working On: Life, the Universe, and Everything.
User avatar
Sonic
Apprentice
 
Posts: 827
Joined: 27 Feb 2010, 00:37
Has thanked: 3 times
Been thanked: 161 times

Re: Sonic’s Custom Card Frames

Postby vst » 05 Jan 2016, 13:39

Hi Sonic, nice work on these frames, helps a lot.

One thing I noticed is I get an initial .csv error when opening deck builder.

"Unknown watermark "green" in line #2 of watermark.csv [91;green]"

Any clue how to fix or what's going on?

Thanks again
vst
 
Posts: 10
Joined: 16 Nov 2015, 21:18
Has thanked: 1 time
Been thanked: 0 time

Re: Sonic’s Custom Card Frames

Postby lujo » 05 Jan 2016, 15:48

This could be a TON of help when browsing cards to buy in te shandalar amulets-for-cards interface (it's impossible to see the rarities at a glance there otherwise). Looking forward to trying it out!
---

My Shandalar deck pack folder is avaliable here:Dropbox
Leave feedback on particular decks here: Google doc
Ask for instructions, give feedback and complaints here: Thread
User avatar
lujo
 
Posts: 557
Joined: 20 Nov 2013, 13:17
Has thanked: 224 times
Been thanked: 70 times

Re: Sonic’s Custom Card Frames

Postby Sonic » 06 Jan 2016, 01:13

vst wrote:Hi Sonic, nice work on these frames, helps a lot.

One thing I noticed is I get an initial .csv error when opening deck builder.

"Unknown watermark "green" in line #2 of watermark.csv [91;green]"

Any clue how to fix or what's going on?

Thanks again
I've got the same problem here.

However, I've just discovered there have been some changes made to the watermark.pic image in the latest patch which required some additional parameters to be added to the duel.dat file - the file which sets up the main element positioning for the card frames.
I'll need some time to check through the new duel.dat file to see if anything else has been changed before I can post an updated file for the custom frames. I'll try and sort something by the weekend.

All the best... Sonic
Working On: Life, the Universe, and Everything.
User avatar
Sonic
Apprentice
 
Posts: 827
Joined: 27 Feb 2010, 00:37
Has thanked: 3 times
Been thanked: 161 times

Re: Sonic’s Custom Card Frames

Postby Korath » 06 Jan 2016, 02:10

Copying the [Watermarks] section from the current Duel.dat should be enough to get it working. The only other changes have been to documentation, to add the Magic2015 frames, and some positioning changes so none of the background leaked through at Shandalar's default 1024x768 resolution.

Full diff from CSP version (2015/9/25) to current:
Code: Select all
diff --git a/DuelArt/Duel.dat b/DuelArt/Duel.dat
index 39f6036..36ffb28 100644
--- a/DuelArt/Duel.dat
+++ b/DuelArt/Duel.dat
@@ -120,10 +120,12 @@ boldIDTag = 0
 ;used is the same as in the column headings in the first line of Manalink.csv.
 ;Defaults LatestPrinting=0.
 LatestPrinting = 0
+;Expansion priorities, used to determine which expansion/rarity to use for
+;cards with multiple printings.  The expansion/rarity with the highest priority
+;number is used.  Expansions are categorized in Menus.txt:@EXPANSIONCATEGORIES.
+;
 ;Priority given to core sets (Alpha, Beta, Unlimited, Revised, Fourth through
-;Tenth Edition, Magic 2010 through 2015) when choosing which expansion/rarity
-;to use for cards with multiple printings.  The expansion/rarity with the
-;highest priority number is used.
+;Tenth Edition, Magic 2010 through 2015).
 ;Defaults PriorityCore=10.
 PriorityCore = 10
 ;Priority given to expert-level sets (Arabian Nights, Antiquities, Legends, The
@@ -173,32 +175,45 @@ ForceFrame=
 ;[SmallCard] section, and the RereadConfigOnRedraw setting in the [FullCard]
 ;section.
 ;
-;Modern frames - normal cards from 8th edition and later.
-;Defaults Modern=Modern.dat
-Modern=Modern.dat
-;Classic frames - normal cards from earlier than 8th edition, as well as
-;Master's Edition I-IV.
+;Classic frames - normal cards from earlier than 8th Edition, as well as
+;Master's Edition I-IV, and cards with rarity Special in Time Spiral.
 ;Defaults Classic=Classic.dat
 Classic=Classic.dat
+;Modern frames - normal cards from 8th Edition, earlier than Magic 2015.
+;Defaults Modern=Modern.dat
+Modern=Modern.dat
+;Planeswalker frames from sets earlier than Magic 2015.  Either New Types 1 or
+;New Types 2 in Manalink.csv must be 1006h (SUBTYPE_PLANESWALKER).
+;Defaults Planeswalker=Planeswalker.dat
+Planeswalker=Planeswalker.dat
+;Magic2015 frames - non-rare, non-mythic, non-planeswalker cards from Magic
+;2015 onward.
+;Defaults Magic2015=Modern.dat
+Magic2015=Modern.dat
+;Magic2015 frames with holofoil stamp - rare and mythic rare, non-planeswalker
+;cards from Magic 2015 onward.
+;Defaults MAGIC2015holo=Modern.dat
+Magic2015holo=Modern.dat
+;Magic2015 planeswalker frames - planeswalker cards from sets Magic 2015
+;onward.  Either New Types 1 or New Types 2 in Manalink.csv must be 1006h
+;(SUBTYPE_PLANESWALKER).  It's assumed that all such cards are either rare or
+;mythic rare; the frameset should have the holofoil stamp.
+;Defaults MAGIC2015planeswalker=Planeswalker.dat
+Magic2015planeswalker=Planeswalker.dat
 ;Timeshifted frames from the Planar Chaos set.  Which cards are drawn as
 ;timeshifted is determined by .\watermarks.csv, using "Timeshifted" as the
-;watermark name (see the documentation for [FullCard]WatermarkLeft below for
-;that file's format) and only if they're drawn with the Planar Chaos expansion
-;symbol (or, if expansion symbols are disabled, would have been drawn with it).
+;watermark name (see the documentation for [Watermarks] below for that file's
+;format) and only if they're drawn with the Planar Chaos expansion symbol (or,
+;if expansion symbols are disabled, would have been drawn with it).
 ;Defaults Timeshift=Timeshift.dat
 Timeshift=Timeshift.dat
 ;Futureshifted frames from the Future Sight set.  Which cards are drawn as
 ;futureshifted is determined by .\watermarks.csv, using "Timeshifted" (sic) as
-;the watermark name (see the documentation for [FullCard]WatermarkLeft below
-;for that file's format) and only if they're drawn with the Future Sight
-;expansion symbol (or, if expansion symbols are disabled, would have been drawn
-;with it).
+;the watermark name (see the documentation for [Watermarks] below for that
+;file's format) and only if they're drawn with the Future Sight expansion
+;symbol (or, if expansion symbols are disabled, would have been drawn with it).
 ;Defaults Futureshift=Futureshift.dat
 Futureshift=Futureshift.dat
-;Planeswalker frames.  Either New Types 1 or New Types 2 in Manalink.csv must
-;be 1006h (SUBTYPE_PLANESWALKER).
-;Defaults Planeswalker=Planeswalker.dat
-Planeswalker=Planeswalker.dat
 ;Token cards' frames.  All non-effect "cards" that would be represented by a
 ;token instead of a physical card in a a physical game of MtG.
 ;Defaults Token=Token.dat
@@ -583,9 +598,9 @@ ExpandHeight = 3025
 ;
 ;Bounding box for the frame.
 ;Defaults FrameLeft=24, FrameTop=24, FrameWidth=752, FrameHeight=1152.
-FrameLeft = 24
+FrameLeft = 23
 FrameTop = 24
-FrameWidth = 752
+FrameWidth = 753
 FrameHeight = 1152
 ;Bounding box for the card name.  Unless CurveManaDiameter is set below, then
 ;TitleWidth is ignored for cards with non-empty mana costs, instead being
@@ -677,50 +692,16 @@ RulesboxTop = 736
 RulesboxWidth = 710
 RulesboxHeight = 356
 ;Bounding box for watermarks and the large mana symbols on basic lands.  (This
-;is moved upward if the rules box is expanded.)
-;
-;The images should be in CardArt\watermarks.pic and consist of four
-;equally-tall rows of five equally-wide images each.  The first row, left to
-;right, is Black, Blue, Green, Red, and White.  The second row is Azorius,
-;Dimir, Rakdos, Gruul, and Selesnya.  The third row is Orzhov, Golgari, Simic,
-;Izzet, and Boros.  The fourth row is Phyrexian, Mirran, and three unused.
-;
-;The ten guild watermarks on lines two and three all got changed somewhat for
-;the Return to Ravnica block.  I suppose these variants should be supported.
-;I couldn't find usable art when putting these together, though and I'm frankly
-;tired of trying to get these to look reasonably good without including two
-;dozen different variants of each watermark (one for each background they can
-;appear on).  So if someone wants to make the images, let me know and I'll send
-;you the psd.
-;
-;Which cards get which watermarks is determined by .\watermarks.csv.  Each line
-;should consist of a card id number (from manalink.csv), a semicolon, and a
-;watermark name; optionally followed by a semicolon and comment.  If a negative
-;number is seen for the id, no further lines are read - useful for documenting
-;e.g. split cards with different watermarks on each half that can't be fully
-;displayed right now.  (Of course, those could have been done by picking one
-;half to display and documenting the other half in the comment, but I chose to
-;leave them entirely unwatermarked.)
-;
-;Watermarks can be disabled by emptying out watermarks.csv, or emptying it
-;except for the five basic lands at the top if you want to keep those.
-;
+;is moved upward if the rules box is expanded.)  See the [Watermarks] section
+;below for how to specify which cards get which watermarks.
 ;Defaults WatermarkLeft=230, WatermarkTop=736,
 ;         WatermarkWidth=340, WatermarkHeight=340.
 WatermarkLeft = 230
 WatermarkTop = 736
 WatermarkWidth = 340
 WatermarkHeight = 340
-;If non-zero, always display Phyrexian, Mirran, and Ravnica guild watermarks on
-;matching cards, no matter the expansion.  Normally, these are only shown for
-;Duel Decks: Izzet vs. Golgari, Modern Masters, and the nine expansions in the
-;Ravnica, Scars of Mirrodin, and Return to Ravnica blocks (should there be
-;others?), as determined by the displayed expansion symbol (or the expansion
-;symbol that would be displayed if they're turned off).  Relevant for cards
-;reprinted in or from these blocks (e.g. Disperse gets the Mirran watermark
-;when shown with the Scars of Mirrodin expansion symbol, but not if shown with
-;the Morningtide symbol from its original printing or the Magic 2014 symbol
-;from its later reprint).
+;If non-zero, ignore [Watermarks]WatermarkExpansion, and always draw a card's
+;watermark no matter what expansion symbol it's displayed with.
 ;Defaults WatermarkOutsideSet=0.
 WatermarkOutsideSet = 0
 ;Bounding box for the power/toughness in the lower right.
@@ -983,6 +964,213 @@ RulesOnWhiteBlackLandColorG = -1
 RulesOnWhiteBlackLandColorB = -1
 ;
 ;
+[Watermarks]
+;Watermark metaconfiguration.  (The way watermarks are actually displayed on
+;cards is controlled by the [FullCard]Watermark* settings above.)  Can't be
+;overridden for individual framesets.
+;
+;Watermark images should be in CardArt\watermarks.pic and consist of
+;equally-tall rows of five equally-wide images each.  The name of each
+;watermark, and its placement within watermarks.pic, are specified in this
+;section.
+;
+;Which cards get which watermarks is determined by .\watermarks.csv.  Each line
+;should consist of a card id number (from manalink.csv), a semicolon, and a
+;watermark name; optionally followed by a semicolon and comment.  If a negative
+;number is seen for the id, no further lines are read - useful for documenting
+;e.g. split cards with different watermarks on each half that can't be fully
+;displayed right now.  (Of course, those could have been done by picking one
+;half to display and documenting the other half in the comment, but I chose to
+;leave them entirely unwatermarked for now.)
+;
+;A card can only have one watermark specified for it.  If there are multiple
+;lines for a single card, the earlier ones are overwritten by the last.
+;
+;There are always two special entries defined for watermarks.csv: "Timeshift"
+;and "Nyx".  "Timeshift" means that a given card should be drawn with the
+;Timeshift frame if it's being displayed with a Planar Chaos expansion symbol,
+;or the Futureshift frame if it's being displayed with a Future Sight expansion
+;symbol.  "Nyx" means that it should be drawn with a Nyx overlay (from the
+;Theros block) when the card is displayed in the deckbuilder, library,
+;graveyard, etc. - everything but in-hand and in-play, which can be deduced
+;from the card's types.  Unlike real watermarks, a card can have either or both
+;of "Timeshift" and "Nyx" specified in addition to another watermark; to do so,
+;have multiple lines for the same card in watermarks.csv, one with Timeshift in
+;the second column, one with Nyx, one with a watermark, as appropriate.
+;
+;
+;Number of rows in CardArt\watermarks.pic.
+;Defaults NumRows=4.
+NumRows=6
+;Number of columns in CardArt\watermarks.pic.
+;Defaults NumColumns=5.
+NumColumns=5
+;Individual watermark definitions.
+;
+;Each defined watermark needs a name (to be looked for in the second column of
+;watermarks.csv), a row number in watermarks.csv ranging from 1 to NumRows
+;(from top to bottom), and a column number in watermarks.csv ranging from 1 to
+;NumColumns (from left to right).  Their keys are Name#, Row#, and Col#
+;respectively, where # is an integer from 1 to 255.  If any of the three is
+;left unset, then the whole watermark is ignored.
+;
+;Names must be a single word consisting only of letters and perhaps numbers,
+;and must start with a letter.  They're not case sensitive.
+;
+;Each watermark can also have a list of expansions that it may appear in.  If
+;Expansions# is unspecified for a given watermark, it's always drawn for each
+;card set to it.  If it's a whitespace-separated list of expansion numbers (as
+;defined in src/Expansions.h), then it's only drawn if that expansion symbol
+;is.  If it's the name of a previously-defined watermark, it uses that
+;watermark's Expansions value.  The point is so that, for example, Disperse can
+;be drawn with the Mirran watermark on its Scars of Mirrodins printing, but not
+;on its original Morningtide printing or later Magic 2014 reprint.
+;([FullCard]WatermarkOutsideSet above can override.)
+;
+;In this config, the first row has large mana symbols for basic lands.
+Name1=Black
+Row1=1
+Col1=1
+;
+Name2=Blue
+Row2=1
+Col2=2
+;
+Name3=Green
+Row3=1
+Col3=3
+;
+Name4=Red
+Row4=1
+Col4=4
+;
+Name5=White
+Row5=1
+Col5=5
+;The second and third rows are Ravnica block guild watermarks.  They all got
+;changed somewhat for the Return to Ravnica block.  I suppose these variants
+;should be supported.  I couldn't find usable art when putting these together,
+;though and I'm frankly tired of trying to get these to look reasonably good
+;without including two dozen different variants of each watermark (one for each
+;background they can appear on).  They'd need better support anyway, since
+;multiple watermarks can't be specified for a given card currently.
+Name6=Azorius
+Row6=2
+Col6=1
+;Ravnica:City of Guilds, Guildpact, Dissension, Duel Decks:Izzet vs. Golgari,
+;Return to Ravnica, Gatecrash, Dragon's Maze, Modern Masters.
+Expansions6=56 57 58 109 110 112 114 115
+;
+Name7=Dimir
+Row7=2
+Col7=2
+Expansions7=Azorius
+;
+Name8=Rakdos
+Row8=2
+Col8=3
+Expansions8=Azorius
+;
+Name9=Gruul
+Row9=2
+Col9=4
+Expansions9=Azorius
+;
+Name10=Selesnya
+Row10=2
+Col10=5
+Expansions10=Azorius
+;Row 3.
+Name11=Orzhov
+Row11=3
+Col11=1
+Expansions11=Azorius
+;
+Name12=Golgari
+Row12=3
+Col12=2
+Expansions12=Azorius
+;
+Name13=Simic
+Row13=3
+Col13=3
+Expansions13=Azorius
+;
+Name14=Izzet
+Row14=3
+Col14=4
+Expansions14=Azorius
+;
+Name15=Boros
+Row15=3
+Col15=5
+Expansions15=Azorius
+;The fourth row has the Phyrexian and Mirran watermarks for the Scars of
+;Mirrodin block.
+Name16=Phyrexian
+Row16=4
+Col16=1
+;Scars of Mirrodin, Mirrodin Besieged, New Phyrexia
+Expansions16=91 94 96
+;
+Name17=Mirran
+Row17=4
+Col17=2
+Expansions17=Phyrexian
+;Row 5 is Khans of Tarkir clan watermarks.
+Name18=Abzan
+Row18=5
+Col18=1
+;Duel Decks: Speed vs. Cunning, Khans of Tarkir, Fate Reforged.
+Expansions18=129 130 132
+;
+Name19=Jeskai
+Row19=5
+Col19=2
+Expansions19=Abzan
+;
+Name20=Sultai
+Row20=5
+Col20=3
+Expansions20=Abzan
+;
+Name21=Mardu
+Row21=5
+Col21=4
+Expansions21=Abzan
+;
+Name22=Temur
+Row22=5
+Col22=5
+Expansions22=Abzan
+;Row 6 is Dragons of Tarkir clan watermarks.
+Name23=Dromoka
+Row23=6
+Col23=1
+;Fate Reforged, Dragons of Tarkir.
+Expansions23=132 134
+;
+Name24=Ojutai
+Row24=6
+Col24=2
+Expansions24=Dromoka
+;
+Name25=Silumgar
+Row25=6
+Col25=3
+Expansions25=Dromoka
+;
+Name26=Kolaghan
+Row26=6
+Col26=4
+Expansions26=Dromoka
+;
+Name27=Atarka
+Row27=6
+Col27=5
+Expansions27=Dromoka
+;
+;
 [Frames]
 ;Overall settings for frame artwork, both for smallcards and fullcards.  The
 ;variables here may be overridden for specific frame types' files.
diff --git a/DuelArt/Classic.dat b/DuelArt/Classic.dat
index aa4f1a9..d40ec1d 100644
--- a/DuelArt/Classic.dat
+++ b/DuelArt/Classic.dat
@@ -5,7 +5,7 @@
 [SmallCard]
 ArtLeft = 76
 ArtTop = 145
-ArtWidth = 857
+ArtWidth = 860
 ArtHeight = 804
 ;
 TitleSourceTop = 0
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: Sonic’s Custom Card Frames

Postby Sonic » 07 Jan 2016, 22:25

Thanks Korath. The original dat for the frames was fairly old so it was just as easy to set up the parameters in a copy of the newer duel.dat file. Because, as you know, some the text and other positioning parameters have to be set up in the duel.dat itself.

OK then, here's the fix. Just download the card frames zip again and install as before, allowing the new files to overwrite the old.

Any problems... You know where to find me.
Working On: Life, the Universe, and Everything.
User avatar
Sonic
Apprentice
 
Posts: 827
Joined: 27 Feb 2010, 00:37
Has thanked: 3 times
Been thanked: 161 times


Return to ManaLink 3.0

Who is online

Users browsing this forum: No registered users and 23 guests


Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 23 guests

Login Form