my campaign doesn't start
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.
my campaign doesn't start
hello everyone,
I 'm new to campaign creating, and my first try ended very bad:
when I started my campaign and set the difficulty, the game crashed. I don't know what I did wrong.
This is the scenario code:
(i've put this in the folder Wesnoth/data/campaigns/Strijd_Der_Elementen/scenarios)
this is the file located in wesnoth/data/campaigns:
My map works fine, i tested it in multiplayer mode.
I hope i've given enough information for you to solve my problem
thanks,
fearbear[/code]
I 'm new to campaign creating, and my first try ended very bad:
when I started my campaign and set the difficulty, the game crashed. I don't know what I did wrong.
This is the scenario code:
Code: Select all
[scenario]
id=Strijd_Der_ElementenSC1
next_scenario=null
name=Strijd Der Elementen
map_data="{campaigns/Strijd_Der_Elementen/maps/Strijd_Der_Elementen}"
turns=100
{DAWN}
{AFTERNOON}
{SECOND_WATCH}
{SECOND_WATCH}
{SECOND_WATCH}
music=wesnoth-1.ogg
[event]
name=prestart
[objectives]
side=1
[objective]
description=_ "Versla Murdock"
condition=win
[/objective]
[objective]
description=_ "Krodar verslagen"
condition=lose
[/objective]
[/objectives]
[/event]
[side]
side=1
controller=human
team_name=1
type=Lieutenant
description=Krodar
canrecruit=1
recruit=Cavalryman, Dark Adept, Fencer, Footpad, Heavy Infantryman, Spearman, Bowman, Thief, Thug
{GOLD 500 200 100}
{INCOME 10 5 2}
[/side]
[side]
side=2
controller=ai
team_name=1
type=Lieutenant
description=Drokar
canrecruit=1
recruit=Heavy
{GOLD 200 100 50}
{INCOME 5 2 1}
[/side]
[side]
side=3
controller=ai
team_name=2
type=Lieutenant
description=Murdock
user_description=_ "Murdock"
canrecruit=1
recruit=
{GOLD 200 500 1000}
{INCOME 2 5 10}
[/side]
[/scenario]
this is the file located in wesnoth/data/campaigns:
Code: Select all
[campaign]
id=Strijd_Der_Elementen
name=_ "Strijd Der Elementen"
define=CAMPAIGN_STRIJD_DER_ELEMENTEN
first_scenario=Strijd_Der_ElementenSC1
difficulties=EASY,NORMAL,HARD
difficulty_descriptions="*&units/human-loyalists/fencer.png=Easy;&units/human-loyalists/duelist.png=Medium;&units/human-loyalists/master-at-arms.png=Hard"
icon=units/human-loyalists/lieutenant.png
description="Beschrijving"
[/campaign]
[binary_path]
path=data/campaigns/Strijd_Der_Elementen
[/binary_path]
I hope i've given enough information for you to solve my problem
thanks,
fearbear[/code]
Set the music name under quote marks please. I don´t know if it hurts without them, but they are commonly used.
Other...nothing found.
I don´t know if the difficulty descriptions are right, but you better use the MENU_IMG_TXT macro.
Other...nothing found.
I don´t know if the difficulty descriptions are right, but you better use the MENU_IMG_TXT macro.
First read, then think. Read again, think again. And then post!
You need to include your scenarios inside an #ifdef, otherwise the game doesn't ever read in your scenario files. So, this is what you add to the bottom of that file:fearbear wrote:this is the file located in wesnoth/data/campaigns:Code: Select all
[campaign] id=Strijd_Der_Elementen name=_ "Strijd Der Elementen" define=CAMPAIGN_STRIJD_DER_ELEMENTEN first_scenario=Strijd_Der_ElementenSC1 difficulties=EASY,NORMAL,HARD difficulty_descriptions="*&units/human-loyalists/fencer.png=Easy;&units/human-loyalists/duelist.png=Medium;&units/human-loyalists/master-at-arms.png=Hard" icon=units/human-loyalists/lieutenant.png description="Beschrijving" [/campaign] [binary_path] path=data/campaigns/Strijd_Der_Elementen [/binary_path]
Code: Select all
#ifdef CAMPAIGN_STRIJD_DER_ELEMENTEN
{@campaigns/Strijd_Der_Elementen/scenarios/}
#endif
Re: thank you
How about a good campaign?fearbear wrote:If I can ever do something for you, just tell me.
yes, i'm trying, but again, i have a problem:
I made a new unit for the enemy, but each time i start my campaign, its says: error: can't find unit "Olivian" (thats the name of my unit)
in the caller script, i put this:
so i told where my unit is located, but it still doesn't work.
fearbear
I made a new unit for the enemy, but each time i start my campaign, its says: error: can't find unit "Olivian" (thats the name of my unit)
in the caller script, i put this:
Code: Select all
#ifdef CAMPAIGN_STRIJD_DER_ELEMENTEN
{@campaigns/Strijd_Der_Elementen/scenarios/}
{@campaigns/Strijd_Der_Elementen/units/}
#endif
fearbear
It sounds like you are missing a [+units] tag. Try this:fearbear wrote:yes, i'm trying, but again, i have a problem:
I made a new unit for the enemy, but each time i start my campaign, its says: error: can't find unit "Olivian" (thats the name of my unit)
in the caller script, i put this:
so i told where my unit is located, but it still doesn't work.
fearbear
Code: Select all
#ifdef CAMPAIGN_STRIJD_DER_ELEMENTEN
[+units]
{@campaigns/Strijd_Der_Elementen/units/}
[/units]
{@campaigns/Strijd_Der_Elementen/scenarios/}
#endif
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.