Campaign/Scenario problems.

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Emmanovi
Posts: 266
Joined: October 21st, 2005, 4:24 pm
Location: In a galaxy, far, far away........

Campaign/Scenario problems.

Post by Emmanovi »

I have created a campaign and put it in the Campaign folder.

I have then created the scenario for it and placed it in the scenario folder.

The scenario "could not be found". I tried placing the scenario:
  • In a sepcific folder in the scenario folder.
    In the campaign folder.
I have checked it over and over again...but it comes up with the same message: ""X" cannot be found".

Help?

(Shall I post the cfg files here?)
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

No, post everything including folders.

If you download a campaign and modify each piece line-by-line your chances of success should go up.
Hope springs eternal.
Wesnoth acronym guide.
Emmanovi
Posts: 266
Joined: October 21st, 2005, 4:24 pm
Location: In a galaxy, far, far away........

Post by Emmanovi »

Riight...here goes....

Hold on, how do I do folders?
User avatar
turin
Lord of the East
Posts: 11662
Joined: January 11th, 2004, 7:17 pm
Location: Texas
Contact:

Post by turin »

tgzip it. (tar -czvvf file.tar.gz FOLDER).
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
Emmanovi
Posts: 266
Joined: October 21st, 2005, 4:24 pm
Location: In a galaxy, far, far away........

Post by Emmanovi »

turin wrote:tgzip it. (tar -czvvf file.tar.gz FOLDER).
Forgive me...I am a complete novice at these things...

Do I type:

> tar -czvvf (FILENAME).tar.gz

?

And That would be all the folders? As in the entire directory? Or just those I need?
WildPenguin
Posts: 161
Joined: September 6th, 2005, 10:41 pm
Location: Australia

Post by WildPenguin »

"tar -czvvf (FILENAME).tar.gz FOLDERNAME" to add the folder to a tgzip'd archive :)
Emmanovi
Posts: 266
Joined: October 21st, 2005, 4:24 pm
Location: In a galaxy, far, far away........

Post by Emmanovi »

And Which folders do I need to do that to?

Oh, and I used the basic layouts on the creating scenarios thingy on the wiki.
If white was black and black was white, what would happen to zebra crossings?
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

The campaign folder and the campaign .cfg file. Anything in .wesnoth/data/campaigns (or userdata/data/campaigns/ or ~/Library/Preferences/Wesnoth/data/campaigns ... whichever applies to you) that pertains to your campaign.

You could post the contents of the .cfg file, but it would be hard to tell what's supposed to happen without knowing the directory structure of the campaign folder.
Hope springs eternal.
Wesnoth acronym guide.
Emmanovi
Posts: 266
Joined: October 21st, 2005, 4:24 pm
Location: In a galaxy, far, far away........

Post by Emmanovi »

Here goes....

Grr... the campaign folder isn't tzipping!

Right, sorted it!

BTW, these are both folders in the /data folder. The Campaign is "Test Campaign" and the scenario is "Tester".
Attachments
wesnoth.tar.gz
The scenario folder.
(2 KiB) Downloaded 104 times
camp.tar.gz
The campaign folder.
(2 KiB) Downloaded 103 times
If white was black and black was white, what would happen to zebra crossings?
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

Ok, first of all, you're using the game data folder and not the user data folder. You must use the user data folder, which varies based on operating system.

Assuming you have located the user's data folder, you should place your files in certain locations.

I recommend you do it like this:

./data/campaigns <- the user data folder
./data/campaigns/test_campaign.cfg
./data/campaigns/test_campaign/ <- a folder
./data/campaigns/test_campaign/scenarios/ <- drop your scenarios here
./data/campaigns/test_campaign/maps/ <- drop your maps here

The scenario file looks alright, except using the above scheme the map data line looks like this:
map_data="{@campaigns/test_campaign/maps/scenario1}"

The campaign configuration file, when using the above scheme, needs some lines telling the game where to find the scenario configuration files. The lines look like this:
#ifdef CAMPAIGN_TEST <- which is defined with the define= key in [campaign]
{@campaigns/Liberty/scenarios}
#endif

You should download a campaign from the campaign server and modify it. That way all of the structure is already done for you.
Hope springs eternal.
Wesnoth acronym guide.
Emmanovi
Posts: 266
Joined: October 21st, 2005, 4:24 pm
Location: In a galaxy, far, far away........

Post by Emmanovi »

I can't find anything like a user data folder...I'm running this on Suse Linux, do you know where it might be?
If white was black and black was white, what would happen to zebra crossings?
User avatar
turin
Lord of the East
Posts: 11662
Joined: January 11th, 2004, 7:17 pm
Location: Texas
Contact:

Post by turin »

/home/(username)/.wesnoth/data/campaigns/
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
Emmanovi
Posts: 266
Joined: October 21st, 2005, 4:24 pm
Location: In a galaxy, far, far away........

Post by Emmanovi »

Got it. Copying over files....
If white was black and black was white, what would happen to zebra crossings?
Emmanovi
Posts: 266
Joined: October 21st, 2005, 4:24 pm
Location: In a galaxy, far, far away........

Post by Emmanovi »

scott wrote:Ok, first of all, you're using the game data folder and not the user data folder. You must use the user data folder, which varies based on operating system.

Assuming you have located the user's data folder, you should place your files in certain locations.

I recommend you do it like this:

./data/campaigns <- the user data folder
./data/campaigns/test_campaign.cfg
./data/campaigns/test_campaign/ <- a folder
./data/campaigns/test_campaign/scenarios/ <- drop your scenarios here
./data/campaigns/test_campaign/maps/ <- drop your maps here

The scenario file looks alright, except using the above scheme the map data line looks like this:
map_data="{@campaigns/test_campaign/maps/scenario1}"

The campaign configuration file, when using the above scheme, needs some lines telling the game where to find the scenario configuration files. The lines look like this:
#ifdef CAMPAIGN_TEST <- which is defined with the define= key in [campaign]
{@campaigns/Liberty/scenarios}
#endif

You should download a campaign from the campaign server and modify it. That way all of the structure is already done for you.

The #ifdef thing I don't fully understand....

I copied down those lines, but do I need to put CAMPAIGN_TEST somewhere as well?
If white was black and black was white, what would happen to zebra crossings?
scott
Posts: 5243
Joined: May 12th, 2004, 12:35 am
Location: San Pedro, CA

Post by scott »

You already have it as the define key in [campaign]
Hope springs eternal.
Wesnoth acronym guide.
Post Reply