WML: endlevel/result=continue_no_save

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
HaJo
Inactive Developer
Posts: 174
Joined: August 7th, 2005, 11:52 pm
Location: DE

WML: endlevel/result=continue_no_save

Post by HaJo »

I made a scenario-selector for the holidays-campaign, i.e. a small map
where you move a unit to select the next scenario without save-dialog, like so:

Code: Select all

...
[endlevel]
next_scenario=easter-eggs
result=continue_no_save
[/endlevel]
This works. But in the next scenario, it looks like the scenario-name is not set correctly,
so that the proposed filename for savegames is still the same as for the first scenario.

E.g. the config-file for the next scenario has

Code: Select all

[scenario]
id=easter-eggs
name= _ "Easter Eggs"
This text "Easter Eggs" is used for the scenario-objective, which is ok.

http://www.wesnoth.org/wiki/ScenarioWML tells
"The [scenario] tag ... name (translatable) is shown in several places in the level, including the intro screen.
It is also the default name for saves on the level."
So savegames should also get names like "Easter Eggs Turn XX", but they do not.

If I use "result=victory", the default filename for savegame is set correctly,
so I think there is a bug in the processing of "result=continue_no_save".
-HaJo
User avatar
turin
Lord of the East
Posts: 11662
Joined: January 11th, 2004, 7:17 pm
Location: Texas
Contact:

Post by turin »

I don't think so, I think it's supposed to be like that. In any case, there is a solution. Use result=continue, it will work the same as continue_no_save except 1) give them an option to save and 2) have the scenario name be correct.
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
HaJo
Inactive Developer
Posts: 174
Joined: August 7th, 2005, 11:52 pm
Location: DE

Post by HaJo »

turin wrote:Use result=continue, it will work the same as continue_no_save
except 1) give them an option to save
For such a selection-scenario, saving the game (i.e. just one move) is pointless,
so I want to avoid it.
-HaJo
HaJo
Inactive Developer
Posts: 174
Joined: August 7th, 2005, 11:52 pm
Location: DE

Post by HaJo »

turin wrote:I think it's supposed to be like that.
Then it would be nice if this detail (different behavior of result=
victory / continue / continue_no_save) were documented.

http://www.wesnoth.org/wiki/DirectActionsWML does not mention
that the save-filename is not changed with continue_no_save.

BTW: is there a WML-command to set the suggested filename for savegames,
and for the icon that gets displayed in the loadgame-dialog ?
-HaJo
Post Reply