someone say what is wrong in this code.

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.
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: someone say what is wrong in this code.

Post by monochromatic »

alluton wrote:yeah im pretty new and this dont really have to work anytime. This is just learning project. I dont wanna do own campaign from scratch. Error message:Unknown scenario:'01-Al-Kamija.cfg'
zookeeper wrote:
alluton wrote:it still gives unknown scenario 01-Al-Kamilja
No, it does not. It says 01-Al-Kamilja.cfg is an unknown scenario, which is entirely correct because there is no [scenario] with id=01-Al-Kamilja.cfg.
I'm just going to quote the Wizard here. The problem should be obvious.
User avatar
Crendgrim
Moderator Emeritus
Posts: 1328
Joined: October 15th, 2010, 10:39 am
Location: Germany

Re: someone say what is wrong in this code.

Post by Crendgrim »

zookeeper already told you:
zookeeper wrote:
alluton wrote:it still gives unknown scenario 01-Al-Kamilja
No, it does not. It says 01-Al-Kamilja.cfg is an unknown scenario, which is entirely correct because there is no [scenario] with id=01-Al-Kamilja.cfg.
Look at your files:
_main.cfg wrote:first_scenario=01_Al-Kamija.cfg
01_Al-Kamija.cfg wrote:id=01_al-Kamija
You don't have to put the filename but the id of the scenario there.


Crend

EDIT: Ninja'd :(
UMC Story Images — Story images for your campaign!
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: someone say what is wrong in this code.

Post by alluton »

i but only Al-Kamija there?
edit: i think i get it now
edit2: NO!!!!!!! i change _main.cfg first_scenario= same as 01_Al-Kamija id. I used copy-paste so they are same for sure.
but same error still.....
"This game cured me of my real life addiction."
-Flameslash
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: someone say what is wrong in this code.

Post by monochromatic »

Post both files again. (it would help a lot if every time you encounter a new problem, post the code as well.)
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: someone say what is wrong in this code.

Post by alluton »

well it seems as same problem but okey i post both again...
so there is scenario file...
Spoiler:
...and here is _main.cfg
Spoiler:
"This game cured me of my real life addiction."
-Flameslash
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: someone say what is wrong in this code.

Post by monochromatic »

campaign.define=CAMPAIGN_NEW_STYLE_OF_CAMPAIGN should fix it.
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: someone say what is wrong in this code.

Post by alluton »

like where in _main.cfg it should be? could you tell me which line it is?(then even i will propably notice it)
"This game cured me of my real life addiction."
-Flameslash
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: someone say what is wrong in this code.

Post by monochromatic »

The define key in the [campaign] tag should be set to CAMPAIGN_NEW_STYLE_OF_CAMPAIGN. I'm not going to figure out the line.
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: someone say what is wrong in this code.

Post by alluton »

THANK YOU IT IS WORKING NOW
"This game cured me of my real life addiction."
-Flameslash
Post Reply