Ghostly Campaign Problems

The place to post your WML questions and answers.

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.
Post Reply
arielbys
Posts: 51
Joined: May 6th, 2008, 2:57 pm

Ghostly Campaign Problems

Post by arielbys »

In a campaign I'm making (that is not set in wesnoth, and i will start a thread at Scenario & Campaign Development when I will finish scenario 3, so no design notes) I got a nasty error at the start with fails the campaign

Code: Select all

Battle for Wesnoth v1.5.9+svn (32787)
Started on Fri Feb 13 13:46:04 2009


Data directory: /usr/local/share/wesnoth
User configuration directory: /home/ariel/.wesnoth

Checking video mode: 1280x949x32...
setting mode to 1280x949x32
no location found for 'data/campaigns/Era_of_Myths/translations', not adding textdomain
no location found for 'data/campaigns/apitf/translations', not adding textdomain
20090213 13:46:20 error config: Could not open file data/SET_VARIABLE
20090213 13:46:20 error config: Could not open file data/SET_VARIABLE
20090213 13:46:20 error config: Could not open file data/SET_VARIABLE
20090213 13:46:20 error config: Could not open file data/SET_VARIABLE
20090213 13:46:21 error engine: unit of type elvish_archer not found!
20090213 13:46:21 error general: Error while playing the game: game_error: Unknown unit type 'elvish_archer'
Wesnoth 1.5.9r32787
Ubuntu Intrepid

I attached the campaign

Note: The cave movement change is because I want to have a few cave scenarios, and I don't want to seriously disadvantage my players. The deep water is because it is logical, and I don't know why it is here.
Attachments
a_problem_in_the_forest.tar.bz2
(5.36 KiB) Downloaded 129 times
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: Ghostly Campaign Problems

Post by Turuk »

You do not need to post in all caps for part of your message. Do not worry, people will read your whole post.

Your error comes from the way you entered the recruit names. Look at a scenario from another campaign for reference. It should read:

Code: Select all

recruit=Elvish Archer,Elvish Fighter,Elvish Shaman,Elvish Scout
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
arielbys
Posts: 51
Joined: May 6th, 2008, 2:57 pm

Re: Ghostly Campaign Problems

Post by arielbys »

Turuk wrote:You do not need to post in all caps for part of your message. Do not worry, people will read your whole post.

Your error comes from the way you entered the recruit names. Look at a scenario from another campaign for reference. It should read:

Code: Select all

recruit=Elvish Archer,Elvish Fighter,Elvish Shaman,Elvish Scout
The elvish_archer and so are units in units/apitf_units.cfg, so they will have 2 moves and 40% defense in caves.

Also, it seems to ignore the {SET_VARIABLE} macros
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Ghostly Campaign Problems

Post by zookeeper »

arielbys wrote:Also, it seems to ignore the {SET_VARIABLE} macros
There are no SET_VARIABLE macros. And yes, I know what I'm talking about.
User avatar
Iris
Site Administrator
Posts: 6798
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: Ghostly Campaign Problems

Post by Iris »

The correct macro is VARIABLE. It contains the [set_variable] tag. That must have confused your little, little mind ;-).
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
arielbys
Posts: 51
Joined: May 6th, 2008, 2:57 pm

Re: Ghostly Campaign Problems

Post by arielbys »

Shadow_Master wrote:The correct macro is VARIABLE. It contains the [set_variable] tag. That must have confused your little, little mind ;-).
Yes. I didn't write WML for some time.

The "real" problem was that I written [unit] instead of [unit_type] in units/apitf_units.cfg
Last edited by arielbys on February 15th, 2009, 12:26 pm, edited 1 time in total.
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: Ghostly Campaign Problems

Post by Turuk »

arielbys wrote:The "real" problem was that I written [unit_type] instead of [unit] in units/apitf_units.cfg
What? But you said you were using 1.5.9, so it would indeed be [unit_type].
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
arielbys
Posts: 51
Joined: May 6th, 2008, 2:57 pm

Re: Ghostly Campaign Problems

Post by arielbys »

Turuk wrote:
arielbys wrote:The "real" problem was that I written [unit_type] instead of [unit] in units/apitf_units.cfg
What? But you said you were using 1.5.9, so it would indeed be [unit_type].
Typo. I meant [unit] instead of [unit_type]
Post Reply