need help my campaign wont even show up (is only one level)

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.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Post by zookeeper »

How to debug WML: remove half of it. If it still doesn't work, remove another half. Repeat until your campaign/whatever doesn't give errors anymore. You've then found the part that causes the error(s). Go through it carefully and if you can't spot the error that way, apply the same method to it: remove half of it, test, repeat, until it doesn't produce errors anymore.

Your difficulty_descriptions= is really f***ed up. You should be able to spot that really easily.
troodon
Posts: 218
Joined: July 22nd, 2006, 8:55 pm

Post by troodon »

That "crap" is an error message. Since it is an innacurate error message, you need to open a terminal or a shell and run Wesnoth in it. When your campaign fails to start, the real error should be mentioned in the terminal, or it will give you the line number. If what Wesnoth says the error is isn't the error, then the "Error general:" stuff isn't going to be of any use. Look at the stuff above it. Good luck.

And listen to Zookeeper. He knows what he's doing.
Post Reply