New Campaign: A Seed of Evil
Moderator: Forum Moderators
Ok here is a replacement cfg, don't know how well it will work, but it doesn't stop wesnoth running.
- Attachments
-
- A_Seed_of_Evil.cfg
- (960 Bytes) Downloaded 380 times
The version on the campaign server is still broken. Could you update it please? You probably need to wrap the unit inclusion statement inside [+units] and [/units] tags. Please also make sure your #ifdef CAMPAIGN_SEED_OF_EVIL and #ifdef USE_L3_OUTLAWS are both terminated by #endif directives, not #enddef.
This quote is not attributable to Antoine de Saint-Exupéry.
What is wrong with this!
Code: Select all
[campaign]
id=a_seed_of_evil
name= _ "A Seed of Evil"
define=CAMPAIGN_A_SEED_OF_EVIL
icon=human-general.png
description= _ "Following the happenings of one of the Royal Guards of Wesnoth through the dark side of the reign of Queen Ashieviere!"
difficulties=Easy,Normal,Hard
first_scenario="the_first_scenario"
image="asheviere.png"
[/campaign]
[+units}
{@campaigns/A_Seed_of_Evil/units/}
[/units]
#ifdef CAMPAIGN_A_SEED_OF_EVIL1
{@campaigns/A_Seed_of_Evil/}
{@campaigns/A_Seed_of_Evil/scenarios/}
{@campaigns/A_Seed_of_Evil/images/}
{@campaigns/A_Seed_of_Evil/maps/}
{@campaigns/A_Seed_of_Evil/items/}
#define USE_L3_OUTLAWS
#ifdef USE_L3_OUTLAWS
{@campaigns/L3_Outlaws/}
#enddef
#enddif
#ifdef CAMPAIGN_A_SEED_OF_EVIL1
Note the 1 is not in the campaign tag
You're also missing the code to build the difficulty menu.
Note the 1 is not in the campaign tag
You're also missing the code to build the difficulty menu.
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.
Still doesn't work.
Something about config 25, and missing a closing tag.
Something about config 25, and missing a closing tag.
Code: Select all
[campaign]
id=a_seed_of_evil
name= _ "A Seed of Evil"
define=CAMPAIGN_A_SEED_OF_EVIL
icon=human-general.png
description= _ "Following the happenings of one of the Royal Guards of Wesnoth through the dark side of the reign of Queen Ashieviere!"
difficulties=Easy,Normal,Hard
difficulties=EASY,NORMAL,HARD
difficulty_descriptions={MENU_IMG_TXT2 neutral-peasant.png _"Squire" _"(simple)"} + ";*" + {MENU_IMG_TXT2 human-spearman.png _"Noble" _"(easy)"} + ";" + {MENU_IMG_TXT2 human-javileneer.png _"Warlord" _"(normal)"}
first_scenario="the_first_scenario"
image="asheviere.png"
[/campaign]
#ifdef CAMPAIGN_A_SEED_OF_EVIL
[+units}
{@campaigns/A_Seed_of_Evil/units/}
[/units]
{@campaigns/A_Seed_of_Evil/}
{@campaigns/A_Seed_of_Evil/scenarios/}
{@campaigns/A_Seed_of_Evil/images/}
{@campaigns/A_Seed_of_Evil/maps/}
{@campaigns/A_Seed_of_Evil/items/}
#enddif
You might have come up against the phantom linefeed gremlin. I have tried to fix several campaign.cfg files with this problem, flushing hours down the toilet in the process. Textually it appears fine but it still gives errors... Finally I started fresh by copying a config file that I know works and edited the tag values. That works. So download Flight to Freedom and type over the tag values.
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.
Disto, please carefully read the comments that people posted. If you are using an old version of the game like 0.9.2 or 0.9.3 then you need to make sure your campaign .cfg files all have a final newline before the end of file. The easiest way to fix this is to put a couple of blank lines at the end of the file.
See also my campaign status summary: http://www.wesnoth.org/forum/viewtopic.php?t=6463 for more things that could go wrong and how to fix them.
See also my campaign status summary: http://www.wesnoth.org/forum/viewtopic.php?t=6463 for more things that could go wrong and how to fix them.
This quote is not attributable to Antoine de Saint-Exupéry.
Ok, what is wrong with this code?
Code: Select all
difficulty_descriptions={MENU_IMG_TXT2 "neutral-peasant.png" _ "Squire" _"(EASY)"} + ";*" + {MENU_IMG_TXT "human-spearman.png" _"Noble"} + ";" + {MENU_IMG_TXT2 "human-javileneer.png" _"Warlord" _"(HARD)"}