main.cgf can't find the scenario (but it's right THERE) v1.6
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.
main.cgf can't find the scenario (but it's right THERE) v1.6
Hey, I'm new to coding Wesnoth (but not to playing it, played for a few years but now I want to create shiz)
and I've looked at the excellent HowTo guides on creating scenarios (copying then editing the sample campaign here: http://wiki.wesnoth.org/BuildingScenariosSimple ) for two scenarios and making the relevant maps.
Anyway, when I load up Wesnoth and try to access my campaign, it can't find my first scenario when I try playing it (on any difficulty - if that makes a difference???). The Error message reads:
Unknown scenario: Kith_And_Kin
(name of my first scenario)
Having tried solving it myself, I found that the name for the unknown scenario is related to the "first_scenario=01_Kith_And_Kin" part in the _main.cgf
I've looked at the directory in the main to see if it was correct, and it appeared so (I crossed referenced it with other usermade campaigns and their _main.cgf files) which is:
Any help please? and yes, the id for the first scenario is completely identical to the one in the _main.cgf
thank you in advance
and I've looked at the excellent HowTo guides on creating scenarios (copying then editing the sample campaign here: http://wiki.wesnoth.org/BuildingScenariosSimple ) for two scenarios and making the relevant maps.
Anyway, when I load up Wesnoth and try to access my campaign, it can't find my first scenario when I try playing it (on any difficulty - if that makes a difference???). The Error message reads:
Unknown scenario: Kith_And_Kin
(name of my first scenario)
Having tried solving it myself, I found that the name for the unknown scenario is related to the "first_scenario=01_Kith_And_Kin" part in the _main.cgf
I've looked at the directory in the main to see if it was correct, and it appeared so (I crossed referenced it with other usermade campaigns and their _main.cgf files) which is:
Code: Select all
#ifdef CAMPAIGN_THE_OTHER_SIDE
[binary_path]
path=data/campaigns/The_Other_Side
[/binary_path]
{@campaigns/The_Other_Side/scenarios}
#endif
thank you in advance
Last edited by Mkampbell on October 18th, 2010, 1:47 pm, edited 1 time in total.
Re: main.cgf can't find the scenario (but it's right THERE)
You should remove the '@', I tried it and with it I got the same error in a campaign which worked before.
Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
Re: main.cgf can't find the scenario (but it's right THERE)
just tried it, but it didn't seem to work :/
thanks anyway
Oh and I'm using v1.6.5 with Linux
thanks anyway
Oh and I'm using v1.6.5 with Linux
Re: main.cgf can't find the scenario (but it's right THERE)
First of all, what do you want with the [section]-tag there?
1. it's written
1. it's written
UMC Story Images — Story images for your campaign!
Re: main.cgf can't find the scenario (but it's right THERE)
Sheesh.
First of all, it's .cfg, not .cgf...
Secondly, the problem is obvious.
Kith_and_Kin is the scenario ID.
Thus the first_scenario= should also be Kith_and_Kin or it won't show up.
First of all, it's .cfg, not .cgf...
Secondly, the problem is obvious.
Kith_and_Kin is the scenario ID.
Thus the first_scenario= should also be Kith_and_Kin or it won't show up.
"What do you mean, "a dwarvish dragonguard with marksman is overpowered"?"
Story of a Drake Outcast | The Nonsense Era
Played HttT-Underground Channels? Thought it was rubbish? Help us develop it here!
Story of a Drake Outcast | The Nonsense Era
Played HttT-Underground Channels? Thought it was rubbish? Help us develop it here!
Re: main.cgf can't find the scenario (but it's right THERE)
Reepurr: lol for typo
and I've changed it now (I saw a similar thread and you gave the same answer to someone else yesterday), still has an issue though.
Crend: because I'm using Linux Mint and can't see support for it easily enough, but I'll update when I have time
and I've changed it now (I saw a similar thread and you gave the same answer to someone else yesterday), still has an issue though.
Crend: because I'm using Linux Mint and can't see support for it easily enough, but I'll update when I have time
Re: main.cgf can't find the scenario (but it's right THERE)
cheers Reepurr XD my main.cfg was written correctly, my scenario's had .cgf
still refuses to work though, same error as before.
still refuses to work though, same error as before.
Re: main.cgf can't find the scenario (but it's right THERE)
What exactly did you change?
The knowledge of this would make helping much easier.
Maybe you could post your current main.cgf?
Crend
The knowledge of this would make helping much easier.
Maybe you could post your current main.cgf?
Crend
UMC Story Images — Story images for your campaign!
Re: main.cgf can't find the scenario (but it's right THERE)
Just changed the filename (but both are plain text format) and took out the 01_ in the first_scenario= part of the main.
whole main:
Scenario 1 (the relevant part):
whole main:
Code: Select all
[campaign]
name= _ "The Other Side"
abbrev= _ "TOS"
icon="units/orcs/sovereign.png~RC(magenta>red)"
first_scenario="Kith_And_Kin"
define=CAMPAIGN_THE_OTHER_SIDE
difficulties=EASY,NORMAL,HARD
difficulty_descriptions={MENU_IMG_TXT2 "units/orcs/grunt.png~RC(magenta>red)" _"Grunt" _"(Easy)"} +
";*" + {MENU_IMG_TXT2 "units/orcs/warrior.png~RC(magenta>red)" _"Warrior" _"(Medium)"} +
";" + {MENU_IMG_TXT2 "units/orcs/warlord.png~RC(magenta>red)" _"Warlord" _"(Difficult)"}
description=_ "Play as Droth'Gar, an orc trying to lead his tribe to safety during the Year 23
(Easy level, 4 scenarios)"
[/campaign]
#ifdef CAMPAIGN_THE_OTHER_SIDE
[binary_path]
path=data/campaigns/The_Other_Side
[/binary_path]
{campaigns/The_Other_Side/scenarios}
#endif
Code: Select all
[scenario]
id="Kith_And_Kin"
next_scenario="02_The_Heart_Mountains"
name="Kith And Kin"
map_data="{@campaigns/The_Other_Side/maps/Scenario_1}"
turns=20
music=wesnoth-1.ogg
Last edited by Mkampbell on October 18th, 2010, 1:47 pm, edited 1 time in total.
Re: main.cgf can't find the scenario (but it's right THERE)
also, rage at [section]this[/section]
EDIT: and many people seem to be having the same problems:
http://forums.wesnoth.org/viewtopic.php?f=21&t=31918
http://forums.wesnoth.org/viewtopic.php?f=21&t=31333
EDIT: and many people seem to be having the same problems:
http://forums.wesnoth.org/viewtopic.php?f=21&t=31918
http://forums.wesnoth.org/viewtopic.php?f=21&t=31333
Re: main.cgf can't find the scenario (but it's right THERE)
I don't know whether this causes your problem (I don't think so), but you didn't define an id for your campaign.
Maybe this isn't essential for a campaign file, but the most trivial things are often the hardest ones to find..
Crend
Maybe this isn't essential for a campaign file, but the most trivial things are often the hardest ones to find..
Crend
UMC Story Images — Story images for your campaign!
Re: main.cgf can't find the scenario (but it's right THERE)
Does that point to the directory you have your scenario files in?{campaigns/The_Other_Side/scenarios}
Re: main.cgf can't find the scenario (but it's right THERE)
Zookeeper: yep :/ it's also an identical (apart from campaign name ofc) path for another usermade campaign (downloaded) so it's pointing to the right direction.
didn't I do it here though:I don't know whether this causes your problem (I don't think so), but you didn't define an id for your campaign.
Maybe this isn't essential for a campaign file, but the most trivial things are often the hardest ones to find..
Code: Select all
define=CAMPAIGN_THE_OTHER_SIDE
Re: main.cgf can't find the scenario (but it's right THERE)
Well, that's funny since downloaded add-ons don't go anywhere near the directory that path points to. Check again.Mkampbell wrote:Zookeeper: yep :/ it's also an identical (apart from campaign name ofc) path for another usermade campaign (downloaded) so it's pointing to the right direction.
Re: main.cgf can't find the scenario (but it's right THERE)
does for me :p
Example (Story of Wose):
please bear in mind I'm on Linux and using v1.6.5
Example (Story of Wose):
Code: Select all
#ifdef STORY_OF_WOSE
[binary_path]
path=data/campaigns/Story_of_Wose
[/binary_path]
{@campaigns/Story_of_Wose/utils.cfg}
[+units]
{@campaigns/Story_of_Wose/wtraits.cfg}
{@campaigns/Story_of_Wose/units}
[/units]
{@campaigns/Story_of_Wose/scenarios}
{@campaigns/Story_of_Wose/terrain.cfg}
#endif