Please help there's an error message about making a campaign

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

Post Reply
troodon
Posts: 218
Joined: July 22nd, 2006, 8:55 pm

Please help there's an error message about making a campaign

Post by troodon »

I made a scenario and a campaign on wesnoth 1.1.2 using the text editor, "KWrite", in SuSE Linux. I copied the spaces, tags, tabs, etc. from the user-made campaign "Legend_of _Wesmere." I did not upload it to the server, I don't know how to, and when I started Wesnoth version 1.1.2, I got this error message:

Error
The following add-on campaign(s) had errors and could not be loaded:
/home/def/.wesnoth/data/campaigns//Drake_War.cfg
ERROR DETAILS:
Missing closing tag for tag campaign at /home/def/.wesnoth/data/campaigns//Drake_War.cfg:3 at /home/def/.wesnoth/data/campaigns//Drake_War.cfg:14

What does the error message mean, and how do I fix it?
User avatar
Chris NS
Posts: 541
Joined: May 6th, 2006, 3:22 pm
Location: Where the Queen lives

Post by Chris NS »

Have a look at lines 3 and 14. Chances are you've made an error with the tags so that they don't pair up.

Remember that every tag like this:

[tag]

must be followed by a tag like this:

[/tag]
toms
Posts: 1717
Joined: November 6th, 2005, 2:15 pm

Post by toms »

Nope. The tags are probably right. If they are right, check for the following things:

1) Look if every #ifdef has an #endif too.

2) Look if you have not missed any quote marks.

3) Check if all macros have the right number of arguments. You may have written {GOLD 100 80} instead of {GOLD 100 80 80} or something like that.

4) Search for typos, generally. They are evil, hard to find, but cause bad errors.
First read, then think. Read again, think again. And then post!
troodon
Posts: 218
Joined: July 22nd, 2006, 8:55 pm

another error

Post by troodon »

Thanks for the help, there was a quotation mark missing. After I fixed that and some other errors, I tried to start the campaign and got this error message:

Error
The game could not be loaded: load_game_failed:
Invalid Starting position (0,0) for the leader of side 1.

How do I specify the starting position, and where in the scenario file do I write it?
toms
Posts: 1717
Joined: November 6th, 2005, 2:15 pm

Post by toms »

Check the map if you really have a starting position for the side 1 leader.
First read, then think. Read again, think again. And then post!
scott
Posts: 5248
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

The starting locations are specified in the map.

You should replace 'Castle keep' hexes (letter 'K') with the numbers '1' - '9' to designate the starting location for sides 1-9. The number is also interpreted as a keep. Every side you create with [side] tags must have a starting location unless the side is leaderless (no_leader=yes).

Put another way: instead of this,
[map]
ggggg
gCCCg
gCKCg
ggggg
[/map]

you want this:
[map]
ggggg
gCCCg
gC1Cg
ggggg
[/map]
Hope springs eternal.
Wesnoth acronym guide.
troodon
Posts: 218
Joined: July 22nd, 2006, 8:55 pm

another baffling error

Post by troodon »

Thanks, but I have another error now. Once again, the error message is telling me that there are missing closing tags for items, but the closing tags are right there.
NeoPhile
Posts: 155
Joined: July 22nd, 2004, 4:33 am
Location: Halifax, NS, Canada
Contact:

Re: another baffling error

Post by NeoPhile »

troodon wrote:Thanks, but I have another error now. Once again, the error message is telling me that there are missing closing tags for items, but the closing tags are right there.
That usually means that there's a missing quote sign, or you've called a macro with the wrong number of parameters.
troodon
Posts: 218
Joined: July 22nd, 2006, 8:55 pm

unterminated [element] tag

Post by troodon »

I have another bug. When I tried to start my campaign, I got an error message that said,"Error: unterminated [element] tag" and said it was located in the 3rd scenario of my campaign. What is an [element] tag? I did not type [element] in my campaign. still wesnoth 1.1.2.
User avatar
Luke the Flaming
Posts: 215
Joined: October 18th, 2006, 6:25 pm

Re: unterminated [element] tag

Post by Luke the Flaming »

troodon wrote:I have another bug. When I tried to start my campaign, I got an error message that said,"Error: unterminated [element] tag" and said it was located in the 3rd scenario of my campaign. What is an [element] tag? I did not type [element] in my campaign. still wesnoth 1.1.2.
When I got this error, it was because I wrote a tag of more than a word using the space rather than the underscore to separate the words (e.g. [capture village] instead of [capture_village]).
O, Wind, if Winter comes, can Spring be far behind?
User avatar
Ken_Oh
Moderator Emeritus
Posts: 2178
Joined: February 6th, 2006, 4:03 am
Location: Baltimore, Maryland, USA

Post by Ken_Oh »

Image
User avatar
Iris
Site Administrator
Posts: 6800
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Post by Iris »

Um... once again, I didn't notice the date difference of these posts before thinking on Ken's message for a minute or two. There should be a strong posting policy about this, or a bigger font for the dates. :roll:

May the moderators decide the future of this thread. Amen.
User avatar
Ken_Oh
Moderator Emeritus
Posts: 2178
Joined: February 6th, 2006, 4:03 am
Location: Baltimore, Maryland, USA

Post by Ken_Oh »

For me, I just saw scott's post and almost shat my pants.
Post Reply