New Campaign: A Seed of Evil

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

Post Reply
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

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
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
ott
Inactive Developer
Posts: 838
Joined: September 28th, 2004, 10:20 am

Post by ott »

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.
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

Changed the endef problem in the version i posted but because my brother won't fix wesnoth i can't upload it. And the same reason for the lvl. 3 Outlaw pack.
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

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
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

#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.
Hope springs eternal.
Wesnoth acronym guide.
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

Still doesn't work.
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
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

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.
torangan
Retired Developer
Posts: 1365
Joined: March 27th, 2004, 12:25 am
Location: Germany

Post by torangan »

Maybe it's missing a final newline? That problem is fixed in CVS but not in 0.9.3 AFAIK.
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

Ok, i might try to just retype it out in a new document then... anyway i'm using 9.2 but i believe there are no WML changes between them.
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

Ok now i get a different error message.
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
ott
Inactive Developer
Posts: 838
Joined: September 28th, 2004, 10:20 am

Post by ott »

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.
This quote is not attributable to Antoine de Saint-Exupéry.
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

It say's it is missing a closing tag, which is obviously there.
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
Ave
Posts: 221
Joined: February 28th, 2004, 4:42 pm
Location: Hungary

Post by Ave »

Disto wrote:It say's it is missing a closing tag, which is obviously there.
It should be #endif not #enddif
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

Ok fixed it, it just says unexpected charecters after variable or something but it works.

I've uploaded it too the server, but it still is partly broken, and i'll pray that it'll work on 0.9.4
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

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)"}
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
Post Reply