gNecrOz
0/0 Germ
Sr. Proffesional OR Cardiovascular Staff Nurse
Posts: 34
Favorite Card: Orvar, The All Form
Favorite Set: Kamigawa: Neon Dynasty
Color Alignment: Blue, Black, Green
|
Post by gNecrOz on May 31, 2019 2:09:03 GMT
So I am still kind of new here and I am not too sure where I should be posting this help to, it is not technically "Template" creation or a request. I am actually basically "Right There" with making this work, I am just at a slight snag. I made some new mana symbols for a set I am working on. {Black Necro Mana} SO, I have it almost working {Mana Showing in the Symbol from the Format Menu} My issue is that when I try to add this... it does not seem work work. I am using the magic-mana-large.mse-symbol-font folder in the Data section, I have dumped my .pngs and I has modified the code there (Making sure to back up the original code) to try and drop in the mana and just "Have it Work" but life is not that simple it seems. If anyone knows what the issue is or why I am having problems please let me know. {Code Example from symbol-font}
symbol:
code: A
image: mana_chaos.png
symbol:
code: N/C
image: mana_necro_c.png
image font size: 120
symbol:
code: N/W
image: mana_necro_w.png
image font size: 120
symbol:
code: N/U
image: mana_necro_u.png
image font size: 120
symbol:
code: N/B
image: mana_necro_b.png
image font size: 120
symbol:
code: N/R
image: mana_necro_r.png
image font size: 120
symbol:
code: N/G
image: mana_necro_g.png
image font size: 120
symbol:
code: H/W
image: mana_phyw.png
image font size: 120
|
|
Sensei Le Roof
1/1 Squirrel
I was interested in Banding until they tried to make me play bass
Posts: 85
Formerly Known As: _________________
Favorite Card: Unhinged Forest #3
Favorite Set: TV
Color Alignment: White, Blue, Black, Red, Green, Colorless
|
Post by Sensei Le Roof on May 31, 2019 18:56:44 GMT
I bet you have your code at the end of the file. It'll never work there. MSE will match the C or the W or the R or whatever before it even gets to your part of the code.
|
|
gNecrOz
0/0 Germ
Sr. Proffesional OR Cardiovascular Staff Nurse
Posts: 34
Favorite Card: Orvar, The All Form
Favorite Set: Kamigawa: Neon Dynasty
Color Alignment: Blue, Black, Green
|
Post by gNecrOz on May 31, 2019 19:06:36 GMT
Sensei Le Roof - The code is actually not at the end, if you look in the spoiler it is placed between the Phy-Mana and Chaos mana, which is roughly the middle of the code. However, it is good to know that it checks the code in a manner of "First Come First Serve" that is what I am getting from your statement. To me it seems like it does not register the "N" as a valid input key? even when I select it from the Drop Down menu, which is what I find strange. EDIT: 3:15 Pm EST 5-31-19I changed the placement of the code to just below the first 3 lines which involve the "Tap" symbol for the coding... from what I can see it is not for whatever reason allowing the "N" - Key to be recognized as an input into CMC on the cards... hmmmm
|
|
kolya
1/1 Squirrel
Posts: 74
Formerly Known As: fedosu
Color Alignment: Blue, Red, Green
|
Post by kolya on Jun 6, 2019 23:02:18 GMT
The recognized symbols for casting cost are set by a script in the magic.mse-game portion of the code. If you are using a custom template (one that you have modified) you can add the following to the "init script:" portion of your template's "style" file, which will override the normal copy of that script when your template loads.
# correctly sort a mana symbol (no guild mana)
mana_sort := sort_text@(order: "XYZI[0123456789]DHNSC(WUBRG)")
# correctly sort wedge mana
mana_sort_wedge := sort_text@(order: "XYZI[0123456789]DHNSC(WBGUR)")
# correctly sort guild mana
mana_sort_guild := sort_text@(order: "[XYZI01234567890DHNSCWUBRG/|]") +
replace@(
# No lookbehind :(
#match: "(?<!/)(./.|././.|./././.|.[|])(?!/)",
match: "./.|././.|./././.|.[|]",
in_context: "(^|[^/])<match>($|[^/])",
replace: {sort_text(order:"in_place((WUBRG)")}
)
If you are using existing templates, you will have to modify the game file directly. Luckily it is very easy to find. Open your "magic.mse-game" folder and edit the "script" file. Overwrite the first three scripts with the code above, all you are doing is adding N to the list of characters allowed in the casting cost. The normal version of the script deletes N when it sorts the characters in order, which happens before anything is converted by the symbol font.
|
|
gNecrOz
0/0 Germ
Sr. Proffesional OR Cardiovascular Staff Nurse
Posts: 34
Favorite Card: Orvar, The All Form
Favorite Set: Kamigawa: Neon Dynasty
Color Alignment: Blue, Black, Green
|
Post by gNecrOz on Jun 7, 2019 5:25:35 GMT
kolya - That worked, I knew there was code somewhere that I was missing but I just was not sure where too look. Thank you so very much friend
|
|
dopler64
0/0 Germ
Sleepy
Posts: 17
Favorite Card: Rules Lawyer
Favorite Set: Unstable
|
Post by dopler64 on Mar 12, 2020 19:12:17 GMT
Sorry to jump onto this somewhat old thread, but I was looking for some help adding a custom mana symbol myself. {Image} I wanted to add this symbol to the mana cost of a card, but following the steps I can see on this thread haven't quite gotten me there. Any advice on what I might have missed? P.S.This is what I have added to the code so far (Whats in bold): {Code} symbol: code: C/G image: mana_cmc_cg.png image font size: 145 symbol: code: S/U image: customsnowmana_s_u.png image font size: 145 symbol: code: 1/2 image: mana_1_half.png
|
|
|
Post by mcd00 on Oct 3, 2024 2:14:30 GMT
kolya - That worked, I knew there was code somewhere that I was missing but I just was not sure where too look. Thank you so very much friend Sorry to revive this post. Can you explain further? I think this is similar to what I want to do. Does this with with the text-box area as well?
|
|