[tag] not supported at scenario toplevel errors
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.
- Bob_The_Mighty
- Posts: 875
- Joined: July 13th, 2006, 1:15 pm
[tag] not supported at scenario toplevel errors
Thanks for that, I got it working. However, among the many messages the game is throwing up is this:
I'm not sure what has changed in 1.9 to cause this. I've had a look at other add-ons with custom units and I can't see what I'm doing wrong.Invalid WML found: [movetype], [movetype], [movetype], [race], [race], [race] not supported at scenario toplevel
My current projects:
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
Re: wmllint tutorial
IIRC, "scenario toplevel" is called everything inside
So, you might want to check whether you include the race and movetype declarations at the correct place.
[scenario]
tags. And, according to the wiki, [race]
and [movetype]
have to go inside the [units]
tag: UnitsWMLSo, you might want to check whether you include the race and movetype declarations at the correct place.
UMC Story Images — Story images for your campaign!
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: wmllint tutorial
The engine emits "not supported at scenario toplevel"-errors if it encounters a tag at scenario toplevel when loading a scenario which it cannot handle there. (you wouldn't have guessed that would you ?
) A tag that is handled there is, for instance, [item]; if one uses the action tag [item] in a scenario and then looks at the savegame that item is stored in the savefile at toplevel.
Now, this error could be rather anything, most likely inconsistencies (bugs) in the loading code in the engine, probably with respect to multiplayer campaigns. In any case, it is probably not fatal. It means that for some reason this tag was there but probably shouldn't have been.
I'm splitting the question into a new thread since it has nothing to do with wmllint.

Now, this error could be rather anything, most likely inconsistencies (bugs) in the loading code in the engine, probably with respect to multiplayer campaigns. In any case, it is probably not fatal. It means that for some reason this tag was there but probably shouldn't have been.
I'm splitting the question into a new thread since it has nothing to do with wmllint.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign