deciphering this error message
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.
-
- Posts: 110
- Joined: November 15th, 2005, 5:26 am
deciphering this error message
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.
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.
-
- Posts: 110
- Joined: November 15th, 2005, 5:26 am
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: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)
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
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}
This looks like it shouldn't work either:
The set variable tag should be outside the unit tag. If it works, then I will have learned something new.
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]
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.