Campaign error problem :(
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Campaign error problem :(
Hello!
I'm creating a campaign called Dawn. Had some problems at first but then I got it all working fine, using own units and all. BUT, for some odd reason I get errors when trying to run the campaign now. I haven't changed anything in the campain file I think (though sometimes I could swear Notepad undos things for me without me knowing it... grr...)
The error I get is:
Unexpected character after variable name (expected , or =) at
..../.../.../Dawn.cfg:24
Anyway, here's the code for the campaign:
I haven't changed anything in the first scenario for weeks so there should be no problems with that. However, I've added a new unit. Could a but in it be messing up the entire campaign? I tried to remove it temporarily but it didn't work.
Thank you in advance...
Anxoria
I'm creating a campaign called Dawn. Had some problems at first but then I got it all working fine, using own units and all. BUT, for some odd reason I get errors when trying to run the campaign now. I haven't changed anything in the campain file I think (though sometimes I could swear Notepad undos things for me without me knowing it... grr...)
The error I get is:
Unexpected character after variable name (expected , or =) at
..../.../.../Dawn.cfg:24
Anyway, here's the code for the campaign:
Code: Select all
[campaign]
id=dawn
name="Dawn"
define=CAMPAIGN_DAWN
icon=elvish-hero.png
image=elvish-hero.png
description= "Dawn is the story about the brave young elf-queen Anvariel."
difficulties=EASY,MEDIUM,HARD
difficulty_descriptions="&"+elvish-fighter.png+"="+"Easy"+
";*"+"&"+elvish-avenger.png+"="+"Medium"+
";"+"&"+elvish-high-lord.png+"="+"Hard"
first_scenario=A_First_Look
[/campaign]
#ifdef CAMPAIGN_DAWN
[+units]
{campaigns/Dawn/units}
{~campaigns/Dawn/units}
[/units]
{campaigns/Dawn/scenarios}
{~campaigns/Dawn/scenarios}
[binary_path]
path=data/campaigns/Dawn/
[/binary_path]
#endif
Thank you in advance...
Anxoria
This might help, but I don't know if it will sove things
http://www.wesnoth.org/forum/viewtopic. ... cted#87610
http://www.wesnoth.org/forum/viewtopic. ... cted#87610
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.
well, I don't see how it would since I don't have any - or _ anywhere on those lines that it complains about. But I don't know.
( I've changed editor to WebSyntax instead of Notepad and it's WONDERFUL cause suddenly I can read other people's campaigns without having to reformat the whole thing manually. )
( I've changed editor to WebSyntax instead of Notepad and it's WONDERFUL cause suddenly I can read other people's campaigns without having to reformat the whole thing manually. )
It's complaining about your units (line 24), and one of them might have a hyphen. Move the unit, delete your cache, and start again. When the game tries to parse a campaign but fails, it doesn't automatically reparse on startup when you change the campaign (it probably should). I wrote up the campaign data and it started fine, so you should look elsewhere for the problem.
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.