[tag] not supported at scenario toplevel errors

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
User avatar
Bob_The_Mighty
Posts: 875
Joined: July 13th, 2006, 1:15 pm

[tag] not supported at scenario toplevel errors

Post by Bob_The_Mighty »

Thanks for that, I got it working. However, among the many messages the game is throwing up is this:
Invalid WML found: [movetype], [movetype], [movetype], [race], [race], [race] not supported at scenario toplevel
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.
My current projects:
MP pirate campaign: The Altaz Mariners
RPG sequel: Return to Trent
MP stealth campaign: Den of Thieves
User avatar
Crendgrim
Moderator Emeritus
Posts: 1328
Joined: October 15th, 2010, 10:39 am
Location: Germany

Re: wmllint tutorial

Post by Crendgrim »

IIRC, "scenario toplevel" is called everything inside [scenario] tags. And, according to the wiki, [race] and [movetype] have to go inside the [units] tag: UnitsWML
So, 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!
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: wmllint tutorial

Post by Anonymissimus »

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 ? :roll: ) 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.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Post Reply