OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wolf on 05 Sep 2002, 06:29:09

Title: Linking a series of missions into a campaign
Post by: Wolf on 05 Sep 2002, 06:29:09
ok, I've looked through the nice new Editors Depot, but I didn't see anything concering this there, if I missed it sorry, and I think this is the right place to put this question.

I have a series of missions, how can I link them together like in a campaign so you have to beat the first one before going on to the second and so on....
If you happen to have a link to a program, or simply the info on how . . .
Any help is appreciated.

Thank you for your time.
Title: Re:Linking a series of missions into a campaign
Post by: SimonRussi on 05 Sep 2002, 09:18:20
in the OFPEC command reference there's a description of the campaign description.ext which describe the sequence of battles in your campaign...
i don't know if it has been uploaded and i don't have it now
i'm sorry
Title: Re:Linking a series of missions into a campaign
Post by: Wolf on 05 Sep 2002, 17:21:57
Alright, but how do I properly but this into the Description.ext, the Command Reference Guide seems to me to be somewhat vague.
Title: Re:Linking a series of missions into a campaign
Post by: Black_Feather on 05 Sep 2002, 21:09:19
which bit arn't you sure of? this is a two mission campaign, the two missions are called mission1.eden & mission2.eden create a folder in your campaign directory and inside that make a description.ext with all this in. Then create a folder called missions and put your two missions in.

class MissionDefault
{
     lives = -1;
    lost = ;
    end1 = ;
    end2 = ;
    end3 = ;
    end4 = ;
    end5 = ;
    end6 = ;
};

class Campaign
{
    name =  "campaigns name";
    firstBattle = Part1;

    class Part1
    {
        name = "part 1";
        cutscene = ;

        firstMission = mission1;
        lost = ;
        end1 = ;
        end2 = ;
        end3 = ;
        end4 = ;
        end5 = ;
        end6 = ;

        class mission1: MissionDefault
        {
            end1 = mission2;
            end2 = mission2;
            end3 = mission2;
            end4 = mission2;
            end5 = mission2;
            end6 = mission2;
            lost = mission1;
            template = mission1.Eden;
        };
        class mission2: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = mission2.Eden;
        };
    };
};
Title: Re:Linking a series of missions into a campaign
Post by: Wolf on 05 Sep 2002, 21:34:11
ok, great, but if its just in a folder won't a person just be able to move it out to single missions?
I want to make this availeble to download, and I wasnt it to play like the original campaings.
Will this work? or am I dreaming?
Title: Re:Linking a series of missions into a campaign
Post by: Black_Feather on 05 Sep 2002, 21:40:09
You can load the campaign into the mission editor and export to single missions, You have to tag on an islandname (.eden) to the folder in order to open it in the editor. The editor will create a empty mission.sqm for you and you might get a message saying the file is read only or something ignore it and just export to single missions. Tthen just rename it to campaignname.pbo and put it in your campaign directory.
Title: Re:Linking a series of missions into a campaign
Post by: Wolf on 05 Sep 2002, 22:16:19
ok
I get this
Error in campaign Structure

So I'm assuming I made a mistake in the Ext file.
Cna you tell me what I did wrong, what I still need to add?

class MissionDefault
{
    lives = -1;
    lost = ;
    end1 = ;
    end2 = ;
    end3 = ;
    end4 = ;
    end5 = ;
    end6 = ;
};

class Campaign
{
    name =  "Revenge Series";
    firstBattle = Part1;

    class Part1
    {
        name = "part 1";
        cutscene = ;

        firstMission = mission1;
        lost = ;
        end1 = ;
        end2 = ;
        end3 = ;
        end4 = ;
        end5 = ;
        end6 = ;

        class mission1: MissionDefault
        {
            end1 = mission2;
            end2 = mission2;
            end3 = mission2;
            end4 = mission2;
            end5 = mission2;
            end6 = mission2;
            lost = mission1;
            template = Revenge.Abel;
        };
        class mission2: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = Revenge2.Eden;
   };
        class mission3: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = Revenge3.Eden;
   };
        class mission4: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = Revenge4.Abel;
   };
        class mission5: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = Revenge5.Cain;
        };
    };
};

Thank you.
Title: Re:Linking a series of missions into a campaign
Post by: Black_Feather on 06 Sep 2002, 00:43:59
try it like this, your class should be named the same as the mission and make sure the missions are in this dir \campaignname\Missions the you shouldn't get that error. You'll have to fill out the end's for each mission because you won't get past the second mission at the moment

class MissionDefault
{
    lives = -1;
    lost = ;
    end1 = ;
    end2 = ;
    end3 = ;
    end4 = ;
    end5 = ;
    end6 = ;
};

class Campaign
{
    name =  "Revenge Series";
    firstBattle = Part1;

    class Part1
    {
        name = "part 1";
        cutscene = ;
        firstMission = revenge;
        lost = ;
        end1 = ;
        end2 = ;
        end3 = ;
        end4 = ;
        end5 = ;
        end6 = ;

        class revenge: MissionDefault
        {
            end1 = revenge2;
            end2 = revenge2;
            end3 = revenge2;
            end4 = revenge2;
            end5 = revenge2;
            end6 = revenge2;
            lost = revenge;
            template = Revenge.Abel;
        };
        class revenge2: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = Revenge2.Eden;
   };
        class revenge3: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = Revenge3.Eden;
   };
        class revenge4: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = Revenge4.Abel;
   };
        class revenge5: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = Revenge5.Cain;
        };
    };
};
Title: Re:Linking a series of missions into a campaign
Post by: Wolf on 06 Sep 2002, 02:16:44
Thanks, I'll try that.
Title: Re:Linking a series of missions into a campaign
Post by: Wolf on 06 Sep 2002, 02:30:48
class MissionDefault
{
    lives = -1;
    lost = ;
    end1 = ;
    end2 = ;
    end3 = ;
    end4 = ;
    end5 = ;
    end6 = ;
};

class Campaign
{
    name =  "Revenge Series";
    firstBattle = Part1;

    class Part1
    {
        name = "part 1";
        cutscene = ;

        firstMission = Revenge;
        lost = ;
        end1 = ;
        end2 = ;
        end3 = ;
        end4 = ;
        end5 = ;
        end6 = ;

        class Revenge: MissionDefault
        {
            end1 = revenge2;
            end2 = revenge2;
            end3 = revenge2;
            end4 = revenge2;
            end5 = revenge2;
            end6 = revenge2;
            lost = revenge1;
            template = Revenge.Abel;
        };
        class revenge2: MissionDefault
        {
            end1 = Revenge3;
            end2 = Revenge3;
            end3 = Revenge3;
            end4 = Revenge3;
            end5 = Revenge3;
            end6 = Revenge3;
            lost = Revenge2;
            template = Revenge2.Eden;
   };
        class Revenge3: MissionDefault
        {
            end1 = Revenge4;
            end2 = Revenge4;
            end3 = Revenge4;
            end4 = Revenge4;
            end5 = Revenge4;
            end6 = Revenge4;
            lost = Revenge3;
            template = Revenge3.Eden;
   };
        class Revenge4: MissionDefault
        {
            end1 = Revenge5;
            end2 = Revenge5;
            end3 = Revenge5;
            end4 = Revenge5;
            end5 = Revenge5;
            end6 = Revenge5;
            lost = Revenge4;
            template = Revenge4.Abel;
   };
        class Revenge5: MissionDefault
        {
            end1 = ;
            end2 = ;
            end3 = ;
            end4 = ;
            end5 = ;
            end6 = ;
            lost = ;
            template = Revenge5.Cain;
        };
    };
};

this is what's in the ext, but its still CTD with an error in the ext?
Title: Re:Linking a series of missions into a campaign
Post by: Garcia on 06 Sep 2002, 08:52:00
U could DL the campaign tool, I guess u'll find it over at OFP.info :-*
But I've never used it, so I don't know how it works ::)

Garcia

(P.S Join OFPRC)
Title: Re:Linking a series of missions into a campaign
Post by: Black_Feather on 06 Sep 2002, 13:33:08


[attachment deleted by admin]
Title: Re:Linking a series of missions into a campaign
Post by: Chris Death on 06 Sep 2002, 13:39:42
If you would post your error message, it would be easier to get the reason for it.  ;)

:note - take care, that there is now space (blank) field at
the end of your description.ext after the last };

~S~ CD
Title: Re:Linking a series of missions into a campaign
Post by: Wolf on 06 Sep 2002, 23:07:01
Alright, I'm still getting an error.

This is the error message
No entry 'campaigns\Revenge Series\description.ext/Campaign/Part1.mission1'.
Title: Re:Linking a series of missions into a campaign
Post by: Wolf on 07 Sep 2002, 17:09:55
Anyone know what's wrong here?
Title: Re:Linking a series of missions into a campaign
Post by: Wolf on 07 Sep 2002, 22:47:09
*Bumping*
Title: Re:Linking a series of missions into a campaign
Post by: Wolf on 08 Sep 2002, 06:01:03
I'm sorry to be impatient, but this is getting frustrating, I've been trying to get the Ext file to work, but it still keeps crashing.
Title: Re:Linking a series of missions into a campaign
Post by: silent1 on 08 Sep 2002, 12:57:38
Hi, I don't know how to make your campaign work but I found a little tutorial that might help you. Go to the Editors Depot, then find the bit on the left hand column that says SP Editing. Look down the list (from previous forum threads) until youy get to one that says "How do I get my campaign to work" or something like that anywhere. I hope it helps :)
Title: Re:Linking a series of missions into a campaign
Post by: Black_Feather on 08 Sep 2002, 13:47:29
that means the errors still in the description.ext either post that up again or just email black@zodiak.unitedgaming.net me the entire campaign and I'll try to fix it.