Help! Wesnoth won't recognize my .cfg file

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
Shadowdweller
Posts: 53
Joined: August 4th, 2005, 10:16 am

Help! Wesnoth won't recognize my .cfg file

Post by Shadowdweller »

Right. So, it's my first time trying to create a scenario thingy. Based on the builder's wiki, I created a .cfg file using wordpad and placed it within the ~wesnoth/userdata/data/campaigns directory. When wesnoth failed to recognize it, I tried placing it within the ~wesnoth/userdata/data/campaigns/scenarios/multiplayer directory. Still no luck. What am I doing wrong? Am I missing something?

Here's the file
Attachments
Citadel.cfg
(3.84 KiB) Downloaded 164 times
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Help! Wesnoth won't recognize my .cfg file

Post by zookeeper »

When you put it in userdata/data/campaigns/, you must either:

1. Also create an empty directory called userdata/data/campaigns/Citadel/. The game won't load your Citadel.cfg unless it finds a similarly named directory there, too. Feel free to submit a feature request for removing the limitation.

2. Simply move/rename your Citadel.cfg to userdata/data/campaigns/Citadel/_main.cfg.
Shadowdweller
Posts: 53
Joined: August 4th, 2005, 10:16 am

Re: Help! Wesnoth won't recognize my .cfg file

Post by Shadowdweller »

That worked! My thanks :D
AI
Developer
Posts: 2396
Joined: January 31st, 2008, 8:38 pm

Re: Help! Wesnoth won't recognize my .cfg file

Post by AI »

zookeeper wrote:1. Also create an empty directory called userdata/data/campaigns/Citadel/. The game won't load your Citadel.cfg unless it finds a similarly named directory there, too. Feel free to submit a feature request for removing the limitation.
Fixed.
Post Reply