Error while making Template

Login or register to post comments
Mon, 2010-06-28 23:13
sauron the king

Hello,

I've been following this tutorial today for making my own template. This is the first time I've ever done coding, so I'm not expierenced at all with it:
http://magicseteditor.sourceforge.net/node/1677

I was at this part of the tutorial:

Spoiler:
Quote:
OK, you almost had it right Stick out your tongue The choice images go underneath their main entry in the middle part of the style file. I edited it so it's now correct. Another pointer; You HAVE to use _tabs_ to line up the text, not spaces. I know that you can't type a tab into the wiki edit box, but you can copy and paste them.

So if you copy the current version into your local style file, you should now be able to open it in MSE. It is very important that you take note of any error messages that come up, but I don't think there will be any. *fingers crossed*.

When I opened MSE and wanted to do "New Set" I got this error:

Spoiler:

Here is my style file:

Spoiler:
version: 0.3.8


game: YugiohRisk
short name: YugiohRisk
full name: YugiohRisk

card background: white 
card width: 333
card height: 523


version: 2010-06-28 
depends on: YugiohRisk.mse-game 2010-06-28 


card style:
	name:
		top: 30
		left: 33
		width: 300
		height: 35
	image:
		top: 112
		left: 44
		width: 245
		height: 168
	type:
		left: 114
		top: 296
		width: 107
		height: 15
	effect1:
		left: 31
		top: 333
		width: 273
		height: 52
	effect2:
		left: 31
		top: 404
		width: 273
		height: 89

extra card field:
	name: bgimage
	type: choice
	editable: false
	show statistics: false
	save value: false
	choice: default

extra card style:
	bgimage:
		top: 0
		left: 0
		height: 523
		width: 333
		z index: -1
		render style: image
		choice images:
			default: Veroveringskaart.png
			default: Veroveringskaart.png

And here is my game file:

Spoiler:
mse version: 0.3.8
short name: YugiohRisk
full name: YugiohRisk
position hint: 100

version: 2010-06-28

set field:
	type: text
	name: set title
	identifying: true
set field:
	type: text
	name: description
	multi line: true
set field:
	type: text
	name: artist
set field:
	type: text
	name: copyright


card field:
	type: text
	name: name
	description: The card's name
	identifying: true
	show statistics: false
	card list allow: true
	card list column: 1

card field:
	type: image
	name: image
	show statistics: false
	description: The card's art
	card list column: 2

card field:
	type: text
	name: type
	description: What sort of card is it
	show statistics: false
	multi line: false
	card list column: 3

card field:
	type: text
	name: effect1
	description: When to activate
	show statistics: false
	multi line: true
	card list column: 4

card field:
	type: text
	name: effect2
	description: The effect
	show statistics: false
	multi line: true
	card list column: 5

Does anyone know where I've made a mistake and how I can solve it?

Kind regards,
Sauron

Mon, 2010-06-28 23:51
Pichoro
Pichoro's picture

1.) Always ALWAYS use "code" tags when posting code. They work just like spoiler tags, but preserve the formatting.

2.) Is the file named "style" or "style.txt". It needs to be "style".

Tue, 2010-06-29 10:19
sauron the king

I've added the "code" tags. Since I use notepad and Windows 2007, it kept saving it as .txt, while I didn't select it. I've downloaded an other program called "EditPad Lite". Now it works, so thankyou! Big smile I'm continueing the tuturial now.

Edit:
How can I get images at this screen? For the "game type" I will use the picture of a monster and for the "Card style" I will use the templates themselves.

Spoiler:
Spoiler:

Tue, 2010-06-29 20:19
Pichoro
Pichoro's picture

Look in other game and style files; specifically at the "icon" field at the top of the file.

Sun, 2010-07-11 09:23
sauron the king

Thank you Pichoro, you sure help good A happy smile
Now it works, I'm now going to make 4 other new templates.

EDIT:
All the templates are ready and working, thanks for the help A happy smile