fix assorted stamping bugs

This commit is contained in:
cajun
2024-10-04 09:17:52 -05:00
parent 1c48d999f6
commit 0b04c7c41b
49 changed files with 50 additions and 221 deletions

View File

@@ -351,7 +351,7 @@ extra card style:
z index: 3 z index: 3
render style: image render style: image
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"} image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
mask: { if is_rare() and styling.use_holofoil_stamps then "foil_mask_rare.png" else "foil_mask.png" } mask: { if is_stamped() then "foil_mask_rare.png" else "foil_mask.png" }
pt box: pt box:
left: 273 left: 273
top: 466 top: 466

View File

@@ -694,15 +694,6 @@ extra card style:
render style: image render style: image
image: { card_stamp() } image: { card_stamp() }
mask: stamp_mask.png mask: stamp_mask.png
foil stamp:
left: 170
top: 473
width: 36.5
height: 22.5
z index: 7
visible: { is_rare() and styling.use_holofoil_stamps }
render style: image
image: foil_stamp.png
frame: frame:
left: 0 left: 0
top: 0 top: 0

View File

@@ -322,7 +322,7 @@ card style:
left: 28 left: 28
top : {348-(-chop_top())} top : {348-(-chop_top())}
width: 311 width: 311
bottom: {483-chop_bot()-(if is_rare() and styling.use_holofoil_stamps then 3 else 0)} bottom: {483-chop_bot()-(if is_stamped() then 3 else 0)}
font: font:
name: Tahoma name: Tahoma
size: 14 size: 14

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1021 B

View File

@@ -1,7 +0,0 @@
cd ..
cd ..
mse --create-installer magic-m15.mse-style magic.mse-game magic-blends.mse-include magic-mana-small.mse-symbol-font magic-mana-large.mse-symbol-font magic-watermarks.mse-include magic-default-image.mse-include magic-identity-new.mse-include
ren "magic-m15.mse-installer" "Magic - M15 Style.mse-installer"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -14,11 +14,8 @@ depends on:
package: magic-default-image.mse-include package: magic-default-image.mse-include
version: 2007-09-23 version: 2007-09-23
depends on: depends on:
package: magic-watermarks.mse-include package: magic-modules.mse-include
version: 2007-09-23 version: 2024-10-01
depends on:
package: magic-identity-new.mse-include
version: 2012-01-22
depends on: depends on:
package: magic-mana-large.mse-symbol-font package: magic-mana-large.mse-symbol-font
version: 2007-09-23 version: 2007-09-23
@@ -40,8 +37,20 @@ init script:
#Should multicolor lands with basic land types have a colored name? #Should multicolor lands with basic land types have a colored name?
mask_multi_land_with_color := { styling.colored_multicolor_land_name } mask_multi_land_with_color := { styling.colored_multicolor_land_name }
template_prefix := [card: "" pt: "" stamp: "" identity: "/magic-modues.mse-include/indicators/"] template_prefix := [
template_suffix := [card: "card.jpg" pt: "pt.png", stamp: "stamp.jpg" identity: "identity.png"] card: ""
pt: "/magic-modules.mse-include/pts/375 m15/"
stamp: "/magic-modules.mse-include/stamps/backs/375 round/"
ubstamp: "/magic-modules.mse-include/stamps/backs/375 ub/"
identity: "/magic-modues.mse-include/indicators/"
]
template_suffix := [
card: "card.jpg"
pt: "pt.png",
stamp: "stamp.png"
ubstamp: "stamp.png"
identity: "identity.png"
]
template := { template_prefix[type] + input + template_suffix[type] } template := { template_prefix[type] + input + template_suffix[type] }
land_template := { template_prefix[type] + (if input == "a" then "c" else input) + "l" + template_suffix[type] } land_template := { template_prefix[type] + (if input == "a" then "c" else input) + "l" + template_suffix[type] }
# Use land templates for previews because they show more contrast # Use land templates for previews because they show more contrast
@@ -99,10 +108,6 @@ styling field:
choice: On cards typed Conspiracy choice: On cards typed Conspiracy
choice: Always choice: Always
choice: Never choice: Never
styling field:
type: boolean
name: use holofoil stamps
description: Change to no to disable rare holofoil stamps
styling field: styling field:
type: text type: text
name: alt rarity color name: alt rarity color
@@ -184,6 +189,13 @@ styling style:
no: { symbol_variation(symbol: set.symbol, variation: "common") } no: { symbol_variation(symbol: set.symbol, variation: "common") }
yes: { symbol_variation(symbol: set.symbol, variation: "invertedcommon") } yes: { symbol_variation(symbol: set.symbol, variation: "invertedcommon") }
############################################################## Card fields ############################################################## Card fields
include file: /magic-modules.mse-include/card-symbols/card_fields
include file: /magic-modules.mse-include/corners/card_fields
include file: /magic-modules.mse-include/information/card_fields
include file: /magic-modules.mse-include/separators/card_fields
include file: /magic-modules.mse-include/stamps/card_fields
include file: /magic-modules.mse-include/stamps/stamp_back
include file: /magic-modules.mse-include/rarities/card_fields
card style: card style:
############################# Background stuff ############################# Background stuff
border color: border color:
@@ -191,19 +203,18 @@ card style:
top : 0 top : 0
width: 375 width: 375
height: 523 height: 523
radius: 18
left width: 17 left width: 17
right width: 17 right width: 17
top width: 17 top width: 17
bottom width: 18 bottom width: 18
z index: 4 z index: 400
mask: border_mask.png mask: border_mask.png
card color: card color:
left: 0 left: 0
top: 0 top: 0
width: 375 width: 375
height: 523 height: 523
z index: 0 z index: 100
render style: image render style: image
popup style: in place popup style: in place
image: { card_background() } image: { card_background() }
@@ -215,7 +226,7 @@ card style:
height: 23 height: 23
alignment: bottom shrink-overflow alignment: bottom shrink-overflow
padding bottom: 0 padding bottom: 0
z index: 1 z index: 900
font: font:
name: Beleren Bold name: Beleren Bold
size: 16 size: 16
@@ -234,24 +245,15 @@ card style:
size: 15 size: 15
alignment: middle right alignment: middle right
always symbol: true always symbol: true
z index: 2 z index: 920
padding top: 0 padding top: 0
card symbol:
left: {if card.card_symbol=="none" then 20 else 30}
top: 29
height: 20
width: 14
z index: 1
render style: image
choice images:
tombstone: tombstone.png
############################# Image ############################# Image
image: image:
left: 29 left: 29
top: 60 top: 60
width: 316 width: 316
height: 231 height: 231
z index: 1 z index: 200
default: {default_image(card.card_color)} default: {default_image(card.card_color)}
############################# Card type ############################# Card type
indicator: indicator:
@@ -259,7 +261,7 @@ card style:
top: 300 top: 300
width: 17 width: 17
height: 17 height: 17
z index: 2 z index: 940
render style: image render style: image
visible: { has_identity() } visible: { has_identity() }
image: { module_identity() } image: { module_identity() }
@@ -269,7 +271,7 @@ card style:
width: { (if has_identity() then "290" else "310") - max(22,card_style.rarity.content_width) } width: { (if has_identity() then "290" else "310") - max(22,card_style.rarity.content_width) }
height: 20 height: 20
alignment: top shrink-overflow alignment: top shrink-overflow
z index: 1 z index: 900
padding top: 2 padding top: 2
font: font:
name: Beleren Bold name: Beleren Bold
@@ -281,47 +283,10 @@ card style:
top: 297 top: 297
width: 44 width: 44
height: 22 height: 22
z index: 2 z index: 950
render style: image render style: image
alignment: middle right alignment: middle right
choice images: include file: /magic-modules.mse-include/rarities/choice_images
# Images based on the set symbol
basic land:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png"
else if use_alt_rarity() then alt_symbol()
else if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
common:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png"
else if use_alt_rarity() then alt_symbol()
else if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
uncommon:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "u.png"
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "uncommon")
rare:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "r.png"
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "rare")
mythic rare:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "m.png"
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "mythic rare")
special:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "s.png"
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "special")
masterpiece:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "mp.png"
else symbol_variation(symbol: set.masterpiece_symbol, variation: "mythic rare")
############################# Text box ############################# Text box
text: text:
left: 29 left: 29
@@ -346,7 +311,7 @@ card style:
styling.center_text == "always" styling.center_text == "always"
then "middle center" then "middle center"
else "middle left" else "middle left"
z index: 2 z index: 900
padding left: 6 padding left: 6
padding right: 4 padding right: 4
line height hard: 1.2 line height hard: 1.2
@@ -363,10 +328,11 @@ card style:
render style: image render style: image
popup style: in place popup style: in place
alignment: middle center alignment: middle center
include file: /magic-watermarks.mse-include/watermarks include file: /magic.mse-game/watermarks/menu_choice_images
image: { watermark_image_1() }
############################# PT ############################# PT
pt: pt:
z index: 2 z index: 910
left: 286 left: 286
top: 469 top: 469
width: 60 width: 60
@@ -377,89 +343,19 @@ card style:
size: 16 size: 16
color: black color: black
separator color: red separator color: red
############################# Card sorting / numbering
set code:
left: 24
top: 498
width: 40
height: 10
z index: 1
font:
name: Relay-Medium
size: 7
color: white
weight: bold
############################# Copyright stuff
illustrator:
left: { 44 + card_style.set_code.content_width }
top: 497.5
width: 200
height: 10
z index: 1
font:
name: Beleren Small Caps Bold
size: 7.25
color: white
copyright:
right: 350
top: { if card.pt != "" then 500 else 488 }
width: 140
height: 10
z index: 2
visible: {not set.automatic_copyright}
alignment: middle right shrink-overflow
font:
name: Matrix
size: 7
color: white
weight: bold
############################################################## Extra card fields ############################################################## Extra card fields
extra card field:
type: text
name: card code
save value: false
script:
if set.automatic_card_numbers and not styling.remove_from_autocount then
forward_editor(prefix: card_number_m15() + "/" + card_count_m15() + " " + rarity_code() + " ", field: card.card_code_text)
else
combined_editor(field1: card.custom_card_number, separator: " " + rarity_code() + " ", field2: card.card_code_text)
extra card field:
type: choice
name: artist arrow
editable: false
save value: false
choice: white
extra card field: extra card field:
type: choice type: choice
name: pt box name: pt box
script: card.card_color script: card.card_color
editable: false editable: false
save value: false save value: false
extra card field:
type: choice
name: stamp
script: card.card_color
editable: false
save value: false
extra card field:
type: choice
name: foil stamp
choice: stamp
save value: false
editable: false
extra card field: extra card field:
type: choice type: choice
name: foil layer name: foil layer
choice: foil choice: foil
save value: false save value: false
editable: false editable: false
extra card field:
type: text
name: auto copyright
script: set.copyright
save value: false
editable: false
show statistics: false
extra card field: extra card field:
type: choice type: choice
name: scrolls name: scrolls
@@ -467,80 +363,30 @@ extra card field:
save value: false save value: false
editable: false editable: false
extra card style: extra card style:
card code:
left: 24
top: 488
width: 120
height: 10
z index: 1
font:
name: Relay-Medium
size: 7
color: white
weight: bold
artist arrow:
left: { 28 + card_style.set_code.content_width }
top: 500
width: 12
height: 7
z index: 1
render style: image
image: artist_arrow.png
pt box: pt box:
left: 273 left: 273
top: 466 top: 466
width: 81 width: 81
height: 42 height: 42
z index: 1 z index: 840
visible: { card.pt != "" } visible: { card.pt != "" }
render style: image render style: image
image: { card_ptbox() } image: { card_ptbox() }
stamp:
left: 165
top: 472
width: 46
height: 26
z index: 1
visible: { is_rare() and styling.use_holofoil_stamps }
render style: image
image: { card_stamp() }
foil stamp:
left: 165
top: 472
width: 46
height: 26
z index: 1
visible: { is_rare() and styling.use_holofoil_stamps }
render style: image
image: foil_stamp.png
foil layer: foil layer:
left: 0 left: 0
top : 0 top : 0
width: 375 width: 375
height: 523 height: 523
z index: 3 z index: 1050
render style: image render style: image
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"} image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
mask: { if is_rare() then "foil_mask_rare.png" else "foil_mask.png" } mask: { if is_stamped() then "foil_mask_rare.png" else "foil_mask.png" }
auto copyright:
right: 350
top: { if card.pt != "" then 500 else 488 }
width: 140
height: 10
z index: 2
alignment: middle right shrink-overflow
visible: {set.automatic_copyright}
font:
name: Matrix
size: 7
color: white
weight: bold
scrolls: scrolls:
left: 0 left: 0
top: 0 top: 0
width: 375 width: 375
height: 523 height: 523
z index: 0 z index: 300
render style: image render style: image
image: consscrolls.png image: consscrolls.png
visible: {is_cons()} visible: {is_cons()}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1008 B

View File

@@ -61,7 +61,7 @@ init script:
# Is the card a promo card? # Is the card a promo card?
is_promo := { styling.promo } is_promo := { styling.promo }
is_stamped := { styling.holofoil_stamps } is_stamped := { styling.holofoil_stamps and card.card_stamp != "none" }
is_unsorted := {styling.remove_from_autocount} is_unsorted := {styling.remove_from_autocount}
############################################################## Set info fields ############################################################## Set info fields

View File

@@ -221,7 +221,7 @@ card style:
width: 648 width: 648
height: 877 height: 877
z index: 1 z index: 1
mask: { "imagemask" + ( if has_four_abilities() then "_4abil" else "" ) + ( if is_rare() and styling.use_holofoil_stamps then "_rare" else "" ) + ".png" } mask: { "imagemask" + ( if has_four_abilities() then "_4abil" else "" ) + ( if is_stamped() then "_rare" else "" ) + ".png" }
############################# Card type ############################# Card type
indicator: indicator:
left: 62 left: 62
@@ -455,7 +455,7 @@ extra card style:
width: 98 width: 98
height: 53 height: 53
z index: 6 z index: 6
visible: { is_rare() and styling.use_holofoil_stamps } visible: { is_stamped() }
render style: image render style: image
image: { card_stamp() } image: { card_stamp() }
mask: stamp_mask.png mask: stamp_mask.png
@@ -465,7 +465,7 @@ extra card style:
width: 92 width: 92
height: 52 height: 52
z index: 7 z index: 7
visible: { is_rare() and styling.use_holofoil_stamps } visible: { is_stamped() }
render style: image render style: image
image: foil_stamp.png image: foil_stamp.png
foil layer: foil layer:

View File

@@ -104,7 +104,6 @@ init script:
# Is the card a promo card? # Is the card a promo card?
is_promo := { styling.promo } is_promo := { styling.promo }
is_stamped := {styling.use_holofoil_stamps and (card.rarity == "rare" or card.rarity == "mythic rare")}
shrink_type := {if styling.shrink_typeline_text != "" then to_int(styling.shrink_typeline_text) else if length(remove_tags(card.type)) > 41 then 2 else if length(remove_tags(card.type)) > 38 then 1 else 0 } shrink_type := {if styling.shrink_typeline_text != "" then to_int(styling.shrink_typeline_text) else if length(remove_tags(card.type)) > 41 then 2 else if length(remove_tags(card.type)) > 38 then 1 else 0 }
shrink_name := {if styling.shrink_name_text != "" then to_int(styling.shrink_name_text) else 0 } shrink_name := {if styling.shrink_name_text != "" then to_int(styling.shrink_name_text) else 0 }
is_unsorted := {styling.remove_from_autocount} is_unsorted := {styling.remove_from_autocount}
@@ -470,7 +469,7 @@ card style:
height: {if is_clear() or is_expanded_art() then 523 else if is_map() then 241 else if is_puma() then 265 else if is_full_art() then 423 else if is_mutate() then 334 else 232} height: {if is_clear() or is_expanded_art() then 523 else if is_map() then 241 else if is_puma() then 265 else if is_full_art() then 423 else if is_mutate() then 334 else 232}
z index: 1 z index: 1
default: {default_image(card.card_color)} default: {default_image(card.card_color)}
mask: { if is_clear() then "image_mask.png" else if is_thbland() then "cornermask.png" else if is_puma() then "puma_mask.png" else if is_expanded_art() then expanded_mask() else if is_full_art() then "promo/image_mask" + (if is_rare() and styling.use_holofoil_stamps then "_rare") + ".png" else if is_mutate() then "mutate_mask.png" else ""} mask: { if is_clear() then "image_mask.png" else if is_thbland() then "cornermask.png" else if is_puma() then "puma_mask.png" else if is_expanded_art() then expanded_mask() else if is_full_art() then "promo/image_mask" + (if is_stamped() then "_rare") + ".png" else if is_mutate() then "mutate_mask.png" else ""}
mainframe image: mainframe image:
left: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).0 else "0"} left: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).0 else "0"}
top: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).1 else "0"} top: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).1 else "0"}
@@ -1139,7 +1138,7 @@ extra card style:
width: 40 width: 40
height: 23 height: 23
z index: 3 z index: 3
visible: { is_rare() and styling.use_holofoil_stamps and not is_clear() } visible: { is_stamped() and not is_clear() }
render style: image render style: image
image: foil_stamp.png image: foil_stamp.png
foil layer: foil layer:
@@ -1150,7 +1149,7 @@ extra card style:
z index: 1050 z index: 1050
render style: image render style: image
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"} image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
mask: { "foil_mask" + (if card.pt != "" then "_pt") + (if is_rare() and styling.use_holofoil_stamps then "_rare") + ".png" } mask: { "foil_mask" + (if card.pt != "" then "_pt") + (if is_stamped() then "_rare") + ".png" }
auto copyright: auto copyright:
right: 350 right: 350
top: { if is_leveler() and not lone_pt() then 488 else if (starting_loyalty() and card.loyalty != "") or (card.pt != "" and not starting_loyalty()) then 500 else 488 } top: { if is_leveler() and not lone_pt() then 488 else if (starting_loyalty() and card.loyalty != "") or (card.pt != "" and not starting_loyalty()) then 500 else 488 }
@@ -1190,7 +1189,7 @@ extra card style:
height: 523 height: 523
z index: 1 z index: 1
render style: image render style: image
image: { if is_rare() and styling.use_holofoil_stamps then "clear_rare.png" else "clear.png"} image: { if is_stamped() then "clear_rare.png" else "clear.png"}
visible: { is_clear() } visible: { is_clear() }
map frame: map frame:
left: 0 left: 0