Unknown Scenario Error

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
George345
Posts: 5
Joined: June 29th, 2017, 3:57 am

Unknown Scenario Error

Post by George345 »

Whenever I try to load this campaign I made it gives me the error unknown scenario. I've attached the campaign below could someone please tell me what's wrong.
Attachments
Rise.zip
Here is the campaign
(4.34 KiB) Downloaded 158 times
User avatar
skeptical_troll
Posts: 500
Joined: August 31st, 2015, 11:06 pm

Re: Unknown Scenario Error

Post by skeptical_troll »

in the main you write

Code: Select all

#ifdef CAMPAIGN_RISE
    
{~add-ons/Rise/scenarios}
{~add-ons/Rise/maps}

#endif
but the campaign id is stil CAMPAIGN_SIMPLE_CAMPAIGN, not CAMPAIGN_RISE
User avatar
Bitron
Developer
Posts: 453
Joined: October 19th, 2015, 9:23 am
Location: Germany

Re: Unknown Scenario Error

Post by Bitron »

Usually that means the scenario which is called be the [campaign]-tag is not there.
If the ID of the scenario and the first_scenario are identically, then it's because the scenario is not loaded.
Sketptical_troll wrote:but the campaign id is stil CAMPAIGN_ID, not CAMPAIGN_RISE
It might also be the definesubtag. Not sure which one is meant for #ifdef.
User avatar
skeptical_troll
Posts: 500
Joined: August 31st, 2015, 11:06 pm

Re: Unknown Scenario Error

Post by skeptical_troll »

it is actually 'define', I edited later :)
George345
Posts: 5
Joined: June 29th, 2017, 3:57 am

Re: Unknown Scenario Error

Post by George345 »

Thanks so much I should have seen that.
Post Reply