IMPORTANT: Usage of id= key in [campaign] nodes

Discussion and development of scenarios and campaigns for the game.

Moderators: Forum Moderators, Developers

Post Reply
User avatar
Site Administrator
Posts: 6718
Joined: November 14th, 2006, 5:54 pm
Location: Chile

IMPORTANT: Usage of id= key in [campaign] nodes

Post by Iris »

This message is directed to all user-made add-on makers.

The wiki formerly stated that [campaign] node's attribute id= was deprecated with the gettext i18n support introduced in the 0.x series. However, this is not correct.

The id attribute is used nowadays by the game engine to classify saved games, to determine what campaign they pertain to. Due to this misinformation published in the wiki (and removed during the clean-up, leaving id= undocumented), I had a lot of problems trying to trace back an inexistent bug. The fact is that you must use id= attribute in your [campaign] declarations.

Otherwise, your players will stumble upon saved games that display this way (or similar, i.e. "(invalid)" in red) in the left panel of "Load game" dialog:
no_id_attribute_causes_this.png (37.6 KiB) Viewed 2652 times
Campaign authors are encouraged to fix their content as soon as possible. Thanks.
Last edited by Iris on May 26th, 2008, 9:03 pm, edited 2 times in total.
Reason: De-announced it. It should be de-stickified once we reach 1.6.0.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm (now available for Wesnoth 1.14.x and 1.15.4+).
User avatar
Posts: 395
Joined: January 3rd, 2006, 8:39 pm
Location: Somewhere Far Beyond...

Re: IMPORTANT: Usage of id= key in [campaign] nodes

Post by db0 »

Hey, that's my campaign. W00t!

Oh wait..

Post Reply