The 'Big Whine' patch:

Any use of a file from another package without a declared dependency will give a warning;

Also added some more _LOCALE_123_ macros so we need less format_string calls

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@753 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-09-24 20:24:22 +00:00
parent efcccb79c4
commit 36a36356c5
51 changed files with 246 additions and 132 deletions
+11 -1
View File
@@ -622,14 +622,24 @@ error:
You should leave a bug report on http://magicseteditor.sourceforge.net/
# File related
file not found: File not found: '%s' in package '%s'
file not found: File not found: '%s' in package '%s'
file not found package like:
File not found: '%s' in package '%s'
If you are trying to open a file from another package, use "/package/filename"
file parse error:
Error while parsing file: '%s'
%s
package not found: Package not found: '%s'
package out of date: The package '%s' (version %s) is out of date, version %s is required.
package too new: The package '%s' (version %s) is not compatible with version %s, required by '%s'
unable to open output file: Error while saving, unable to open output file
unable to store file: Error while saving, unable to store file
dependency not given:
The package '%s' uses files from the package '%s', but it does not list a dependency.
To resolve this, add:
depends on:
package: %s
version: %s
# Script stuff
has no member: %s has no member '%s'
+1 -1
View File
@@ -15,7 +15,7 @@ card dpi: 150
init script:
# Load scripts for image box
include file: magic-default-image.mse-include/scripts
include file: /magic-default-image.mse-include/scripts
# Should hybrids have a grey name?
mask_hybrid_with_land := { styling.grey_hybrid_name }
@@ -33,7 +33,7 @@ card dpi: 150
init script:
# Load blend scripts for hybrids/multicolors
include file: magic-default-image.mse-include/scripts
include file: /magic-default-image.mse-include/scripts
# We have no land templates
land_template := { "c{type}.jpg" }
@@ -305,7 +305,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
text 2:
left: 33
top : 65
@@ -348,7 +348,7 @@ card style:
render style: image
alignment: middle center
angle: 180
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
power:
+1 -1
View File
@@ -279,7 +279,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
power:
@@ -250,7 +250,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
power:
@@ -378,7 +378,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
watermark 2:
left: 349.45
top : 240
@@ -387,7 +387,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
power:
@@ -263,7 +263,7 @@ card style:
render style: image
alignment: middle center
visible: { card.rule_text != "" and card.flavor_text != "" }
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
power:
+1 -1
View File
@@ -253,7 +253,7 @@ card style:
width: { 300 - max(18,card_style.rarity.content_width) }
height: 28
alignment: middle shrink-overflow
z index: 1
z index: 2
padding top: 2
font:
name: Matrix
+1 -1
View File
@@ -398,7 +398,7 @@ card style:
z index: 2
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
pt:
+3 -3
View File
@@ -18,7 +18,7 @@ card dpi: 150
init script:
# Load scripts for image box
include file: magic-default-image.mse-include/scripts
include file: /magic-default-image.mse-include/scripts
# Should hybrids have a grey name?
mask_hybrid_with_land := { false }
@@ -332,7 +332,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
watermark 2:
left: 151
top : 378
@@ -342,7 +342,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
pt:
+2 -2
View File
@@ -18,7 +18,7 @@ card dpi: 150
init script:
# Load scripts for image box
include file: magic-default-image.mse-include/scripts
include file: /magic-default-image.mse-include/scripts
# Should hybrids have a grey name?
mask_hybrid_with_land := { styling.grey_hybrid_name }
@@ -270,7 +270,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# Loyalty
loyalty:
+2 -2
View File
@@ -14,7 +14,7 @@ card dpi: 150
init script:
# Load scripts for image box
include file: magic-default-image.mse-include/scripts
include file: /magic-default-image.mse-include/scripts
# Should hybrids have a grey name?
mask_hybrid_with_land := { styling.grey_hybrid_name }
@@ -229,7 +229,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
pt:
+3 -3
View File
@@ -17,7 +17,7 @@ card dpi: 150
init script:
# Load scripts for image box
include file: magic-default-image.mse-include/scripts
include file: /magic-default-image.mse-include/scripts
# Should hybrids have a grey name?
mask_hybrid_with_land := { styling.grey_hybrid_name }
@@ -365,7 +365,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
watermark 2:
left: 338
top : 228
@@ -374,7 +374,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
pt:
+1 -1
View File
@@ -17,7 +17,7 @@ card dpi: 150
init script:
# Load scripts for default images
include file: magic-default-image.mse-include/scripts
include file: /magic-default-image.mse-include/scripts
# What should the textbox look like?
text_shape := {
+3 -3
View File
@@ -21,7 +21,7 @@ card dpi: 150
init script:
# Load scripts for image box
include file: magic-default-image.mse-include/scripts
include file: /magic-default-image.mse-include/scripts
# Should hybrids have a grey name?
mask_hybrid_with_land := { styling.grey_hybrid_name }
@@ -224,7 +224,7 @@ card style:
type:
left: 35
top : 299
top : 298
width: { 308 - max(22,card_style.rarity.content_width) }
height: 20
alignment: top shrink-overflow
@@ -305,7 +305,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
pt:
+2 -2
View File
@@ -426,7 +426,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
watermark 2:
left: 338
top : 228
@@ -435,7 +435,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
pt:
+1 -1
View File
@@ -315,7 +315,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
pt:
+1 -1
View File
@@ -266,7 +266,7 @@ card style:
z index: 1
render style: image
alignment: middle center
include file: magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks
############################# PT
pt:
+6 -6
View File
@@ -173,10 +173,10 @@ init script:
# The code consists of 4 parts:
# normal/token, color, shifted, split
sort_index := {
(if contains(card.shape, match:"token") then "T" else "N") + # Tokens come last
(if contains(card.shape, match:"token") then "T" else " ") + # Tokens come last
color_of_card() +
(if contains(card.shape, match:"shifted") then "S" else "N") + # planeshifted cards come after normal ones
(if contains(card.shape, match:"split") then "S" else "N") + # split cards come after normal ones
(if contains(card.shape, match:"shifted") then "S" else " ") + # planeshifted cards come after normal ones
(if contains(card.shape, match:"split") then "S" else " ") + # split cards come after normal ones
":"
}
is_multicolor := { chosen(choice: "multicolor") and input != "artifact, multicolor" }
@@ -221,7 +221,7 @@ init script:
}
rarity_sort := {
if set.sort_special_rarity == "with the rest" or card.rarity != "special" then "A" else "Z"
if set.sort_special_rarity == "with the rest" or card.rarity != "special" then " " else "S"
}
set_filter := {
if set.sort_special_rarity != "separate numbering" then nil
@@ -825,7 +825,7 @@ card field:
name: watermark
icon: stats/watermark.png
position hint: 200
include file: magic-watermarks.mse-include/watermark-names
include file: /magic-watermarks.mse-include/watermark-names
description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, or a guild symbol
############################# Loyalty
@@ -1052,7 +1052,7 @@ card field:
card field:
type: choice
name: watermark 2
include file: magic-watermarks.mse-include/watermark-names
include file: /magic-watermarks.mse-include/watermark-names
icon: stats/watermark.png
show statistics: false
description: A watermark for below the textbox, this can be a big mana symbol used on basic lands, a special symbol, or a guild symbol