Please help there's an error message about making a campaign
Moderator: Forum Moderators
Please help there's an error message about making a campaign
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?
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?
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.
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!
another error
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?
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?
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]
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.
Wesnoth acronym guide.
another baffling error
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.
Re: another baffling error
That usually means that there's a missing quote sign, or you've called a macro with the wrong number of parameters.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.
unterminated [element] tag
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.
- Luke the Flaming
- Posts: 215
- Joined: October 18th, 2006, 6:25 pm
Re: unterminated [element] tag
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]).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.
O, Wind, if Winter comes, can Spring be far behind?