deciphering this error message

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
Steelclad Brian
Posts: 110
Joined: November 15th, 2005, 5:26 am

deciphering this error message

Post by Steelclad Brian »

I was wondering if anyone could help me in figuring out the nature of an error I get while trying to load the first scenario of my campaign. I recently remade it from scratch, but I've never seen an error like this before:

ERROR DETAILS:
nested quoted string started at 79 data/schedules.cfg 7 data/game.cfg 142 /Users...bla...Wesnoth/data/campaigns/Age_of_Axes/scenarios/day_raid.cfg 13
/Users...bla.../campaigns//Age_of_Axes.cfg

the ...bla... is just useless directory info

Any help you can provide on where or what I should be looking for would be helpful.
User avatar
Ranger M
Art Contributor
Posts: 1965
Joined: December 8th, 2005, 9:13 pm
Location: England

Post by Ranger M »

the numbers represent line numbers, so they say where the computer is having problems, usually this means an error in the code, or unclosed tags, etc.

try posting the file (and please not attached, I can't download them from here)
Steelclad Brian
Posts: 110
Joined: November 15th, 2005, 5:26 am

Post by Steelclad Brian »

Ranger M wrote:the numbers represent line numbers, so they say where the computer is having problems, usually this means an error in the code, or unclosed tags, etc.

try posting the file (and please not attached, I can't download them from here)
I know they represent line numbers, but I'm more interested in what exactly a "nested quoted string started" is, and why it's bad. Here is the beginning of the code, in which I'm just defining a series of macros:

Code: Select all

#define ORC_GUARD X Y
[unit]
	[set_variable]
		name=random_guard
		random=Orcish Archer,Orcish Grunt,Goblin Impaler
	[/set_variable]
	type=$random_guard
	side=2
	x={X}
	y={Y}
	upkeep=free
	ai_special=guardian
[/unit]
#enddef

#define ORC_TENT X Y
	[item]
	x={X}
	y={Y}
	image=terrain/tent.png
	[/item]
	{ORC_GUARD {X} {Y}}
#enddef

#define EV_TENT X Y
[event]
name=moveto
	[filter]
	side=1
	x={X}
	y={Y}
	[/filter]
	[message]
	speaker=unit
	message= _ "You search through the tent, taking any items of interest."
	[/message]
	[removeitem]
		x={X}
		y={Y}
	[/removeitem]
	[item]
		image=terrain/trash.png
		x={X}
		y={Y}
	[/item]
	{VARIABLE_OP tents_explored add 1}
[/event]
#enddef
And here's the very beginning of the actual scenario:

Code: Select all

[scenario]
	id=day_raid
	name= _ "Day Raid"
	map_data={@campaigns/Age_of_Axes/maps/dayraid}"

	[story]
		[part]
		story= _ "Scenario 1"
		[/part]
	[/story]

	[label]
	x=22
	y=10
	text="Wolf Pen"
	[/label]

	[label]
	x=14
	y=8
	text="The Watchful Keep"
	[/label]

	{TURNS 30 24 18}

	{FIRST_WATCH}
	{SECOND_WATCH}
	{SECOND_WATCH}
	{DAWN}
	{DAWN}
	{MORNING}
	{MORNING}
	{AFTERNOON}
	{AFTERNOON}
	{DUSK}
	{DUSK}
	{FIRST_WATCH}
User avatar
Ranger M
Art Contributor
Posts: 1965
Joined: December 8th, 2005, 9:13 pm
Location: England

Post by Ranger M »

it's probably the " behind the map data macro, you don't need it (or you do and need two, but I doubt that)
Steelclad Brian
Posts: 110
Joined: November 15th, 2005, 5:26 am

Post by Steelclad Brian »

That was it. Thanks. :D
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

This looks like it shouldn't work either:

Code: Select all

[unit] 
   [set_variable] 
      name=random_guard 
      random=Orcish Archer,Orcish Grunt,Goblin Impaler 
   [/set_variable] 
   type=$random_guard 
   side=2 
   x={X} 
   y={Y} 
   upkeep=free 
   ai_special=guardian 
[/unit] 
The set variable tag should be outside the unit tag. If it works, then I will have learned something new.
Hope springs eternal.
Wesnoth acronym guide.
Post Reply