HELP ME

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

Post Reply
mastergonf
Posts: 3
Joined: January 16th, 2012, 10:10 pm

HELP ME

Post by mastergonf »

I'm working on a new campaign called "Age of the Orcs"
All the scenarios are written, but when i went back to add certain new elements, Wesnoth cannot find the first scenario.

Code: Select all

[campaign]
    id=Conquest_of_Wesnoth
    icon="units/orcs/grunt.png~RC(magenta>red)"
    image="data/core/images/portraits/orcs/warrior.png"
    name= _ "Age of the Orcs: Part 1 Conquest of Wesnoth"
    abbrev= _ "AOCW"
    define=CAMPAIGN_CONQUEST_OF_WESNOTH
    first_scenario=1_Invasion
   
 difficulties=EASY,MEDIUM,HARD
  
  difficulty_descriptions={MENU_IMG_TXT2 "units/orcs/grunt.png~RC(magenta>red)" _"Grunt" _"(Beginner)"} +
    ";" + {MENU_IMG_TXT2 "units/orcs/leader.png~RC(magenta>red)" _"Leader" _"(Intermediate)"} +
    ";" + {MENU_IMG_TXT2 "units/orcs/sovereign.png~RC(magenta>red)" _"Sovereign" _"(Hard)"}
 
   description= _ "A history of the orcish people in Wesnoth

" + _"(Intermediate level, 10 scenarios;)"



    [about]
        title = _ "Campaign Design"
        [entry]
            name = "matser_gonf"
        [/entry]
    [/about]
 
[/campaign]

#ifdef CAMPAIGN_CONQUEST_OF_WESNOTH
[binary_path]
    path=data/campaigns/Age_Of_ The_Orcs
[/binary_path]
{campaigns/Age_Of_ The_Orcs/utils}
{campaigns/Age_Of_ The_Orcs/scenarios}

#endif



Code: Select all

[scenario]
    id=1_Invasion
    name=_ "Invasion"
    map_data="{campaigns/Age_Of_The_Orcs/maps/1_Invasion.map}"
    turns=20
    next_scenario=2_Defense_at_Soradoc

    {DUSK}
    {FIRST_WATCH}
    {SECOND_WATCH}
    {DAWN}
    {MORNING}
    {AFTERNOON}

    {INTRO_AND_SCENARIO_MUSIC legends_of_the_north.ogg transience.ogg}
    {EXTRA_SCENARIO_MUSIC underground.ogg}
    {EXTRA_SCENARIO_MUSIC knolls.ogg}
    {EXTRA_SCENARIO_MUSIC battle.ogg}
    {EXTRA_SCENARIO_MUSIC vengeful.ogg}
    {EXTRA_SCENARIO_MUSIC revelation.ogg}


    [story]
        [part]
            story=_ "Before Orcs were called orcs, they were created in the far West by the evil wizard Gorcilion. He poured into them all his hatred for mankind and a thirst for destruction."
        [/part]
        [part]
            story=_ "He sent them into the world, where the wreaked their destruction on all that drew breath. They burned towns and villages, killing the men, and children and leaving the womento mourn."
            background=story/Two_Brothers_M1P1.png        
    [/part] 
    [part]
            story=_ "But then, a strange thing happened. Orcs began taking humans for wives. These new orc-children were stronger, faster and more intelligent than the rest of their race. One such man-orc was Orcithu."
            background=story/Two_Brothers_M1P1.png        
    [/part] 
    [part]
            story=_ "The son of Goriath, Orcithu rose to lead a great army of the scum. In a test of courage, Orcithu led his men up to the gates of Tir Amlhuer, the dark Wizard's citadel, and besieged him until the castle crumbled under the noise of the horde."
            background=story/Two_Brothers_M1P1.png        
    [/part]
    [part]
            story=_ "And thus, Orcithu defeated Gorcilion and led the entire race of the orcs. He then led them west, to the land of Wesnoth to bring its inhabitants under his subjection......"
            background=story/Two_Brothers_M1P1.png        
    [/part]
   [part] 
    {TO_INVASION} 
    [/part]

    [/story]

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Slay the elvish watchman"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Orcithu"
                condition=lose
            [/objective]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]

            note={EARLY_FINISH_BONUS_NOTE}+{NEW_GOLD_CARRYOVER_NOTE_40}
        [/objectives]
    [/event]

    [side]
#ifdef EASY
        gold=300
#endif
#ifdef MEDIUM
        gold=200
#endif
#ifdef HARD
        gold=100
#endif
        type=Orcish Leader
        id=Orcithu
        name= _ "Orcithu"
        unrenamable=yes
        facing=sw
        side=1
        canrecruit=yes
        controller=human
        recruit=Orcish Grunt,Orcish Archer,Wolf Rider
        profile="data/core/images/portraits/orcs/warrior.png"
 

        team_name=orc
        user_team_name=_"Orcs"
    [/side]

    [side]
#ifdef HARD
        gold=400
#else
        gold=200
#endif
        type=Elvish Captain
        id=Elhorir
        name= _ "Elhorir"
        side=2
        canrecruit=yes
#ifdef HARD
        recruit=Elvish Hero,Elvish Marksman,Elvish Rider
#else
        recruit=Elvish Fighter,Elvish Archer,Elvish Scout
#endif
        [ai]
            time_of_day=morning,afternoon
            recruitment_ignore_bad_movement=yes
            grouping=yes
            passive_leader=yes
        [/ai]
        team_name=elf
        user_team_name=_"Enemies"
    [/side]


    [event]
        name=start

        [message]
            speaker=Orcithu
            message= _ "Greetings, my pretties, you will make nice meat for our wolves."
        [/message]
        [message]
            speaker=Elhorir
            message= _ "A dark odor is on the horizon, light the alarm!"
        [/message]
        [message]
            speaker=Orcithu
            message= _ "Light your puny fires elf, your armies are no match for the hordes of Orcithu!"
        [/message]
       
    [/event]

    [event]
        name=last breath
        [filter]
            id=Elrohir
        [/filter]
        [message]
            speaker=unit
            message= _ "There is a castle in the distance"
        [/message]
        [message]
            speaker=Orcithu
            message= _ "Onward! to Saradoc."
        [/message]
        [kill]
            id=Elhorir
            animate=yes
        [/kill]
        [message]
            speaker=Orcithu
            message= _ "There's nothing more to be had from this one; we will march on"
        [/message]
        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]
    {ORCS_DEATHS}
[/scenario]
User avatar
Alarantalara
Art Contributor
Posts: 789
Joined: April 23rd, 2010, 8:17 pm
Location: Canada

Re: HELP ME

Post by Alarantalara »

Is it "Age_Of_ The_Orcs" or "Age_Of_The_Orcs"?

Also, unless you've put your campaign in with the mainline ones, you'll be wanting paths that reference the add-ons directory, not campaigns. See http://wiki.wesnoth.org/EditingWesnoth for details (add-ons is in the user directory).
User avatar
Boldek
Posts: 576
Joined: April 14th, 2011, 6:37 pm

Re: HELP ME

Post by Boldek »

Alarantalara wrote:#ifdef CAMPAIGN_CONQUEST_OF_WESNOTH
[binary_path]
path=data/campaigns/Age_Of_ The_Orcs
[/binary_path]
{campaigns/Age_Of_ The_Orcs/utils}
{campaigns/Age_Of_ The_Orcs/scenarios}

#endif
I think that should be

Code: Select all

[binary_path]
    path=data/campaigns/Age_Of_The_Orcs
[/binary_path]
as I don't beleive the folders accept spaces.
Guys I never thought I'd come back to this forum after 8 years this is wild
mastergonf
Posts: 3
Joined: January 16th, 2012, 10:10 pm

Re: HELP ME

Post by mastergonf »

Yep, that was the problem. Look for it soon
Post Reply