Difficulty getting My Template to show up

Login or register to post comments
Wed, 2015-07-01 16:15
Navypiper
Navypiper's picture

Hi guys,

I am having difficulties with a template that I am working on (my first...hopefully of a few!). Essentially I can't get it to show up on the New Set screen to chose it as an option. It simply doesn't show up. I have followed the tutorial to the letter, but this doesn't seem to work. And, until I can actually select it, I can't tell if anything else works. Please help!!

Wed, 2015-07-01 18:13
Sensei Le Roof
Sensei Le Roof's picture

I recall my Mega Man 2 style template not showing up until I gave it a card sample. Try that?

Online dictionaries abound. It's time to start using them.

Wed, 2015-07-01 19:08
Pichoro
Pichoro's picture

Two thoughts.

1.) The "game:" line in the style must match the label put on the game file's folder. So, World of Warcraft's game folder is "wow.mse-game", and so each style must have the line "game: wow" in the header.

2.) Since World of Warcraft's game file is "wow.mse-game", no World of Warcraft style can be "wow.mse-style". They must all have a second word in the name, such as "wow-standard.mse-style" or "wow-new.mse-style" or "wow-old.mse-style" or something.

Wed, 2015-07-01 19:53
Navypiper
Navypiper's picture

Thanks, guys. It still doesn't show up yet, but I appreciate the input in any case.

Wed, 2015-07-01 20:08
Navypiper
Navypiper's picture

For some reason, the 'game type' icon doesn't show up either so I can't see even that icon.

Thu, 2015-07-02 00:59
Navypiper
Navypiper's picture

It appears that the program is not recognizing my 'game' and 'style' files. How can I make it do recognize them?

Thu, 2015-07-02 01:22
Pichoro
Pichoro's picture

What is the name of the game folder? Do not retype it - copy and paste it.

And paste the contents of the game file up in code tags. If you don't know what those are, go here and learn real quick: http://magicseteditor.sourceforge.net/filter/tips/5#filter-bbcode-0

Edit: Also, please copy and paste the exact name of your card sample icon for the game file.

Thu, 2015-07-02 09:44
Navypiper
Navypiper's picture

Game folder: sto.mse-game

Card sample image: war-poster-1.png

Is this what you were wanting for the contents of the game file? Let me know if you require more.

mse version: 2.0.0
short name: STO Doff
full name: STO Duty Officers
installer group: sto-doff/game files
icon: war-poster-1.png
position hint: 51

version: 2015-05-20
depends on:
package: sto-icons.mse-include
version: 2015-05-20
depends on:
package: sto-actual-marks.mse-include
version: 2015-05-20

Thu, 2015-07-02 13:56
Pichoro
Pichoro's picture

Still not seeing the problem.

Next step, then. Zip up all of your files for this game - that means, game, style, and includes - and email it to me so I can load it up myself and figure out what's going wrong. Send to pichoro at users dot source forge period net.

Edit: Oh, and just in case you're one of those people with new fangled compression technology, none of that rar or 7z nonsense. A happy smile Just good old-fashioned zips, please.

Thu, 2015-07-02 18:10
Navypiper
Navypiper's picture

I sent it but for some reason it was rejected by the server is there another email to send it to?

Thu, 2015-07-02 18:12
Pichoro
Pichoro's picture

No. The only other option would be to put it up for public download somewhere else. Perhaps temporarily attach it to the first post on this thread?

Thu, 2015-07-02 23:36
Navypiper
Navypiper's picture

Attachment added

Fri, 2015-07-03 00:40
Pichoro
Pichoro's picture

Okay. Things I saw.

1.) You need to delete the ".txt" file endings from the game and style files. MSE won't recognize game/style/include files that have file extensions. This is probably why your template isn't even recognized.

2.) You're going to want to shrink that card-sample icon down to no more than 105 pixels tall. MSE won't shrink it for you - your icon will appear at whatever the size the image is and spill all over. Trust me - you want to fix that.

3.) sto-specializations needs an include file.

4.) Don't use any capitals in any filenames or choices in choice fields. Use all lower case. This can cause errors in any version of MSE, but it will cause your template to absolutely fail to function for Linux users. Also, get the spaces out of the filenames.

Fri, 2015-07-03 00:42
Navypiper
Navypiper's picture

Thanks! I will give those a try tomorrow. Cheers!

Fri, 2015-07-03 20:30
Navypiper
Navypiper's picture

Excellent!! I've got it to show up on both upper and lower level of the new set screen...but it won't do anything when I select the lower one and press OK.

Fri, 2015-07-03 21:17
Pichoro
Pichoro's picture

Update your upload.

Fri, 2015-07-03 21:23
Navypiper
Navypiper's picture

Attached

Sat, 2015-07-04 16:24
Navypiper
Navypiper's picture

I just realized that this isn't the correct forum for my initial question. Sorry about that!

Sun, 2015-07-05 02:37
Navypiper
Navypiper's picture

I think I have solved some stuff, but am still having trouble tweaking things.

Sun, 2015-07-05 05:32
Pichoro
Pichoro's picture

Okay, so what's going on now?

Wed, 2015-07-08 00:35
Navypiper
Navypiper's picture

Where to begin?!

Well, firstly, I can't seem to be able to choose other factions (the main part of the 'card').

Secondly, for some reason the 'double click to load image' window below "Rank" seems to think it is the window for adding the character image instead of the one in the big vacant area in the upper left side.

Thirdly, over top of that same area in the upper left side is the rarity overlay. Unfortunately each of those images is not hollow so I can't seem to access the actual 'double click to load image' area in the centre of that square.

Also, I can't get any of the drop down menus to work. I have included the appropriate files which have been coded the same way as other ones that have worked, so I am very confused.

I have placed some files in multiple locations to try different 'tactics' for figuring some things out, but very little luck. (Are you familiar with the Star Trek Online Duty Officer system, by any chance? If so you know what I have in mind for this template. If not I can send you a link to their wiki, or you can google images for Star Trek Online Duty Officers.) That is the basic layout. Some of the stuff in a couple of the folders are incomplete, so bear with me.

Please have a look over this stuff and see if there are any suggestions. I am possibly getting a bit ahead of myself by trying something this complicated, but I am very keen to learn how.

I have attached the latest version.

Wed, 2015-07-08 00:41
Navypiper
Navypiper's picture

Also, I can't get the 'rarity' to recognize 'unique'. (?!?!)

Wed, 2015-07-08 00:44
Pichoro
Pichoro's picture

I'll try to get to this sometime. I'm actually ill currently, and spending my days clinging to life. A sad 'frowny' I'm exaggerating of course, but I do feel like crud.

Wed, 2015-07-08 01:14
Navypiper
Navypiper's picture

No worries, my friend! Get well soon, ok?

Wed, 2015-07-08 09:37
Navypiper
Navypiper's picture

Disregard. Got that to work....damned lower case!

Wed, 2015-07-08 09:38
Navypiper
Navypiper's picture

(The 'Unique' bit, I mean)

Wed, 2015-07-08 09:53
Pichoro
Pichoro's picture

A lot of it might be lower case. In your style file, where you tell which image goes to which choice in your drop downs, do you still have the image names there as capitals? They need to be lower case. Generally, you should just check over and make sure everything but font names are in lower case.

Thu, 2015-07-09 00:13
Navypiper
Navypiper's picture

Here's a question. How do I phrase the idea for 'If a symbol field has something in it, then the text field stars after the image. Otherwise it starts where the symbol field would start'? The same goes for the length of the text box. The textbox field name is 'department_symbol_2'.

I'm actually doing great at fixing most of the other errors and it's working pretty good, all things considered.

I will probably have many more questions as time goes by. Thanks for your help.

Thu, 2015-07-09 14:53
Sensei Le Roof
Sensei Le Roof's picture

By "after", do you mean to the right or below? The right is generally only a good idea if the text field is one line.

Online dictionaries abound. It's time to start using them.

Thu, 2015-07-09 17:35
Navypiper
Navypiper's picture

To the right, and yes, it is only one line.

Thu, 2015-07-09 22:23
Navypiper
Navypiper's picture

I've got that figured out now.

Fri, 2015-07-10 23:08
Navypiper
Navypiper's picture

How can I get a choice from one field to affect a text colour choice in another?

Fri, 2015-07-10 23:42
Navypiper
Navypiper's picture

Disregard the second 'choice' in that last statement.

Sat, 2015-07-11 14:58
Sensei Le Roof
Sensei Le Roof's picture

Here's an example from the current version of my poker-style Magic template:

			color:
				{
					if contains(card.type, match:"Land") then rgb(127,63,0)
					else if contains(card.type, match:"Artifact") then rgb(122,122,122)
					else if contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"hybrid") then rgb(229,229,0)
					else if contains(card.casting_cost, match:"W") then rgb(216,216,216)
					else if contains(card.casting_cost, match:"U") then rgb(0,173,247)
					else if contains(card.casting_cost, match:"B") then rgb(45,45,45)
					else if contains(card.casting_cost, match:"R") then rgb(249,62,0)
					else if contains(card.casting_cost, match:"G") then rgb(0,211,74)
					else rgb(122,122,122)
				}

It should be easy enough to figure it out from that (I hope).

Online dictionaries abound. It's time to start using them.

Sat, 2015-07-11 15:22
Navypiper
Navypiper's picture

Woohoo! It works!! Exactly what I was looking for, Sensei!! Thank you so much!

Sun, 2015-07-12 15:34
Navypiper
Navypiper's picture

I have another question (I will have a million of them so I apologize in advance!). Does this work also with having a background image be dependent on the choice of frame? and also, if I can get the background image to work, would that affect the double clicking to load a character image? I would prefer to have the character image below the frame, thereby hopefully removing the need for more than one image mask, but how can you have the program disregard a 'hole' (transparent spot) in the .png? As it stands I have to reduce the rarity overlay until it's chosen, but that, too, shows over top of the window for the character image.

Sun, 2015-07-12 19:09
green_meep
Administrator
green_meep's picture

Should be able to create a hole by masking the field.

Mon, 2015-07-13 00:00
Navypiper
Navypiper's picture

How would I go about that?

Thu, 2015-07-23 22:05
Navypiper
Navypiper's picture

I have a couple of questions, if I may:

1: How do I get an image mask to actually work? I have the image masks made, put where they are supposed to go, and referred-to in the style field exactly as they are named in the correct folder, like this:

image:
left: 13
top: 16
width: 117
height: 147
z index: 1
mask:
script:
if card.faction == "acamarian" then image-mask-acamarian.png
else if card.faction == "alpha centauri" then image-mask-alpha-centauri.png
else if card.faction == "andorian" then image-mask-andorian.png
else if card.faction == "apu-cravic" then image-mask-apu-cravic.png
else if card.faction == "apu-pralor" then image-mask-apu-pralor.png
else if card.faction == "bajoran" then image-mask-bajoran.png
else if card.faction == "benthan" then image-mask-benthan.png
else if card.faction == "benzite" then image-mask-benzite.png
else if card.faction == "betazoid" then image-mask-betazoid.png
else if card.faction == "bluegill" then image-mask-bluegill.png
else if card.faction == "bolian" then image-mask-bolian.png
else if card.faction == "borg" then image-mask-borg.png
else if card.faction == "breen" then image-mask-breen.png
else if card.faction == "caitian" then image-mask-caitian.png
else if card.faction == "cardassian" then image-mask-cardassian.png
else if card.faction == "cooperative" then image-mask-cooperative.png
else if card.faction == "coridan" then image-mask-coridan.png
else if card.faction == "deferi" then image-mask-deferi.png
else if card.faction == "deltan" then image-mask-deltan.png
else if card.faction == "denobulan" then image-mask-denobulan.png
else if card.faction == "devidian" then image-mask-devidian.png
else if card.faction == "devore" then image-mask-devore.png
else if card.faction == "dominion" then image-mask-dominion.png
else if card.faction == "elachi" then image-mask-elachi.png
else if card.faction == "federation tactical" then image-mask-federation.png
else if card.faction == "federation science" then image-mask-federation.png
else if card.faction == "federation engineering" then image-mask-federation.png
else if card.faction == "federation civilian" then image-mask-federation.png
else if card.faction == "federation starfleet intelligence" then image-mask-federation.png
else if card.faction == "federation presidential staff" then image-mask-federation.png
else if card.faction == "federation section 31" then image-mask-federation.png
else if card.faction == "federation temporal investigations" then image-mask-federation.png
else if card.faction == "fek'lhri" then image-mask-feklhri.png
else if card.faction == "ferengi" then image-mask-ferengi.png
else if card.faction == "galactic empire" then image-mask-galactic-empire.png
else if card.faction == "gorn" then image-mask-gorn.png
else if card.faction == "grazerite" then image-mask-grazerite.png
else if card.faction == "hazari" then image-mask-hazari.png
else if card.faction == "hierarchy" then image-mask-hierarchy.png
else if card.faction == "hirogen" then image-mask-hirogen.png
else if card.faction == "iconian" then image-mask-iconian.png
else if card.faction == "kazon" then image-mask-kazon.png
else if card.faction == "klingon tactical" then image-mask-klingon.png
else if card.faction == "klingon science" then image-mask-klingon.png
else if card.faction == "klingon engineering" then image-mask-klingon.png
else if card.faction == "klingon civilian" then image-mask-klingon.png
else if card.faction == "kobali" then image-mask-kobali.png
else if card.faction == "kzinti" then image-mask-kzinti.png
else if card.faction == "malon" then image-mask-malon.png
else if card.faction == "maquis" then image-mask-maquis.png
else if card.faction == "mirror alliance" then image-mask-mirror-alliance.png
else if card.faction == "mirror universe" then image-mask-mirror-universe.png
else if card.faction == "monsters/animals" then image-mask-monster.png
else if card.faction == "nausicaan" then image-mask-nausicaan.png
else if card.faction == "non-aligned" then image-mask-non-aligned.png
else if card.faction == "ocampa" then image-mask-ocampa.png
else if card.faction == "octanti" then image-mask-octanti.png
else if card.faction == "orion" then image-mask-orion.png
else if card.faction == "reman" then image-mask-reman.png
else if card.faction == "risan" then image-mask-risan.png
else if card.faction == "romulan empire" then image-mask-romulan-empire.png
else if card.faction == "romulan republic tactical" then image-mask-romulan-republic.png
else if card.faction == "romulan republic science" then image-mask-romulan-republic.png
else if card.faction == "romulan republic engineering" then image-mask-romulan-republic.png
else if card.faction == "romulan republic civilian" then image-mask-romulan-republic.png
else if card.faction == "shakespeare" then image-mask-shakespeare.png
else if card.faction == "s'ona" then image-mask-sona.png
else if card.faction == "suliban" then image-mask-suliban.png
else if card.faction == "talaxian" then image-mask-talaxian.png
else if card.faction == "tellarite" then image-mask-tellarite.png
else if card.faction == "terran slave" then image-mask-terran-slave.png
else if card.faction == "tholian" then image-mask-tholian.png
else if card.faction == "trill" then image-mask-trill.png
else if card.faction == "turei" then image-mask-turei.png
else if card.faction == "undine" then image-mask-undine.png
else if card.faction == "united earth starfleet" then image-mask-united-earth-starfleet.png
else if card.faction == "vaadwaur" then image-mask-vaadwaur.png
else if card.faction == "viddians" then image-mask-viddians.png
else if card.faction == "voth" then image-mask-voth.png
else if card.faction == "vulcan" then image-mask-vulcan.png
else if card.faction == "x-men" then image-mask-xmen.png
else if card.faction == "xindi" then image-mask-xindi.png
else nil

Now this does not seem to want to let me use the image masks on the image. It lets me double click, choose an image, etc. and put it where it's supposed to go, but without the appropriate image mask.

and,

2. I can't seem to use capital letters anywhere but the first letter of words.

Can anyone please help me? I am almost done with this template except for these 2 details, and I am very appreciative of the help I have received so far. You guys are great! Thanks in advance!!

Thu, 2015-07-23 22:57
green_meep
Administrator
green_meep's picture

Try

mask: {"image-mask-" + card.faction}

or

mask: "image-mask-{card.faction}"

You might have to tinker with names to make sure all of them work.

Not sure what you're asking in your second question.

Thu, 2015-07-23 23:10
Navypiper
Navypiper's picture

Thanks, Sensei! I will give that a try.

In the text fields, I can put capital letters at the start of words but if I
need to put a capital letter in the middle of a word (I.E.: MacDonald),
then it won't let me do that.

Thu, 2015-07-23 23:11
Navypiper
Navypiper's picture

Oops!! I meant 'Meep'!! Sorry about that!

Fri, 2015-07-24 20:50
simplegarak

Oh man i remember masks. Ok, 2 things that might be tripping you up which tripped me up at first.

1) Set the mask application to procedural instead of hard coding every "if->then". Here's mine:

		mask:
			script:
				if card.culture == "None" then ""
				else if shape () == "character" then "character-" + card.culture + "-mask.png"
				else "other-" + card.culture + "-mask.png"

Now I can add as many "cultures" to my game as I want and the program will add masks to them without me having to manually adjust a massive if-then sequence. (for yours looks like you want to do "image-mask" + card.faction + ".png"

2) MAKE SURE YOUR Z INDEX IS SET. lol This killed so many earlier attempts but the frame of the card you want to be sure is kind of low. For mine I have the card frame at -2 and the card image at -3. Definitely keep everything else in the positives and then just adjust those two up and down until you get the right look.

Fri, 2015-07-24 21:37
Navypiper
Navypiper's picture

Thanks, Garak!
Just one question: what does the 'shape () == ' do, in this case?
I just seem to get an error saying that 'Variable not set: shape'

Fri, 2015-07-24 22:42
Navypiper
Navypiper's picture

Disregard. I figured it out!

Sat, 2015-07-25 02:38
simplegarak

Yeah, sorry that's just something I do to distinguish between the different card types in my game. If you haven't got those, you can remove it.

As for me, I'm still trying to figure out flavor text. You can't seem to make any changes to it anywhere.

Sat, 2015-07-25 20:03
Navypiper
Navypiper's picture

Well, I have everything working now, except for the unfortunate issue of the capitals. I checked it again and it only seems to be in the 'name' text box, but works just fine in the others. (?!?!)

Sat, 2015-07-25 21:14
green_meep
Administrator
green_meep's picture

Your name field probably has a totitle function applied to it. The totitle function capitalizes the first letter of every word according to title conventions, but makes everything else lowercase.

Sat, 2015-07-25 22:49
Navypiper
Navypiper's picture

Thanks, Meep! That cleared it up. I must have copied something down by mistake.