unknown scenario "scenario_id"

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

Post Reply
monokli
Posts: 31
Joined: November 13th, 2011, 4:56 am
Location: Southern Quadrant/unknown

unknown scenario "scenario_id"

Post by monokli »

Windows xp:
okay. Cloned Two_Brothers->Dorf
moved it to /My Documents/My Games/Wesnoth1.8/data/campaigns

it doesn't show up
Last edited by monokli on November 29th, 2011, 7:02 pm, edited 1 time in total.
User avatar
Heindal
Posts: 1457
Joined: August 11th, 2011, 9:25 pm
Location: Germany, Karlsruhe
Contact:

Re: unknown scenario "scenario_id"

Post by Heindal »

As far as I know, in 1.8.4 you have to copy your campaign to the addon folder:

Example: \Battle for Wesnoth 1.8.4\userdata\data\add-ons

Than it should work. Its the same in 1.8.6 - I just tested that.

You should check wether your campaing has a main.cfg and a starting scenario.


The other option is to upload it to the main campaign folder - but that is not recommended - you better use the addon folder as you can later upload your campaign and share it with other people.
The future belongs to those, who believe in the beauty of their dreams.
Developer of: Trapped, Five Fates, Strange Legacy, Epical, UR Epic Era
Dungeonmasters of Wesnoth, Wild Peasants vs Devouring Corpses, Dwarf Dwarfson Dwarvenminer
monokli
Posts: 31
Joined: November 13th, 2011, 4:56 am
Location: Southern Quadrant/unknown

Re: unknown scenario "scenario_id"

Post by monokli »

So far so good. Add-ons folder works

still the topic title: unknown scenario: "1_Halthan" happens

<s>Rewriting scenario file from scratch.(delicious copypasta)</s> Rewrote it, nothing changed.
Attachments
_main.cfg
campaign _main.cfg
(1.4 KiB) Downloaded 435 times
1_Halthan.cfg
The scenario file
(2.29 KiB) Downloaded 147 times
User avatar
Iris
Site Administrator
Posts: 6800
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: unknown scenario "scenario_id"

Post by Iris »

Your includes in both files point to add-ons/Dorf/ (which obviously doesn’t exist) instead of ~add-ons/Dorf/. PreprocessorRef in the wiki explains why the tilde matters under {~filename}.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
monokli
Posts: 31
Joined: November 13th, 2011, 4:56 am
Location: Southern Quadrant/unknown

Re: unknown scenario "scenario_id"

Post by monokli »

Many many thanks. It works flawlessly

interestingly this wasn't an issue under ubuntu...
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: unknown scenario "scenario_id"

Post by Anonymissimus »

raypinmau wrote:
monokli wrote: interestingly this wasn't an issue under ubuntu...
Only on Windows?
Probably not.
I think it's save to assume monokli was confused (sorry). This isn't something where OSes differ.
As far as coding a wesnoth addon goes, the most important and rather the only differences are listed in my ASC:
# windows users:
# Be careful to spell referenced filenames correctly inside of your wml code (capitalization), since windows is case insensitive in that aspect, while other operating systems are case sensitive.
# Always use only forward slashes (/) as separators in paths to files. Only windows is using backslashes (\).
# Both things would cause errors on other operating systems.
# Don't use paths containing the userdata/ folder to reference maps or other files from within your .cfg files. That folder only exists on windows (sometimes, depending on how you installed Battle for Wesnoth).
So there's some stuff to watch out for if one is on a windows system but not if one uses a Linux system.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Post Reply