Jump to content
Sign in to follow this  
Cyper

Need help with .ext (campaign)

Recommended Posts

I'm lost.

I don't understand what I am supposed to write into the text that I've marked in bold. I think I've done everything else right (tell me if not), but the text in bold is something I do not understand.

Wtf? I have no idea what I am supposed to write there..so I have just been writing what I believe should be there.

class MissionDefault

{

lives = -1;

lost = ;

end1 = ;

end2 = ;

end3 = ;

end4 = ;

end5 = ;

end6 = ;

};

class Campaign

{

name = "OPERATION DEAD FOX";

firstBattle = Beginning;

class Beginning

{

name = "01 - CALL OF DUTY";

firstMission = 01 - CALL OF DUTY;

end1 = ; 02 - OPERATION DEAD FOX

end2 = ;

end3 = ;

end4 = ;

end5 = ;

end6 = ;

lost = ; 01 - CALL OF DUTY

class OPERATION DEAD FOX: MissionDefault

{

end1 = 03 - THE FIRST DAY;

lost = 02 - OPERATION DEAD FOX;

template = 03 - CALL OF DUTY.afghan_village;

};

class 02 - OPERATION DEAD FOX: MissionDefault

{

end1 = 03 - THE FIRST DAY;

lost = 02 - OPERATION DEAD FOX;

template = 02 - OPERATION DEAD FOX.afghan_village;

};

class 03 - THE FIRST DAY: MissionDefault

{

end1 = 04 - ARMED ASSAULT;

lost = 03 - THE FIRST DAY;

template = 03 - THE FIRST DAY.afghan_village;

};

class 04 - ARMED ASSAULT: MissionDefault

{

end1 = ; 05 - TAKEOUT

lost = 04 - ARMED ASSAULT;

template = 04 - ARMED ASSAULT.afghan_village;

};

class 05 - TAKEOUT: MissionDefault

{

end1 = 06 - AFGANI SHOWDOWN

lost = 05 - TAKEOUT;

template = 05 - 05 - TAKEOUT.afghan_village

};

class 06 - AFGANI SHOWDOWN: MissionDefault

{

end1 = 07 - PEACEKEEPER;

lost = 06 - AFGANI SHOWDOWN;

template = 06 - AFGANI SHOWDOWN;

};

class 07 - PEACEKEEPER: MissionDefault

{

end1 = 08 - GOOD MORNING AVGANI;

lost = 07 - PEACEKEEPER;

template = 07 - PEACEKEEPER.afghan.village;

};

class 08 - GOOD MORNING AVGANI: MissionDefault

{

end1 = 09 - TANK RALLY;

lost = 08 - GOOD MORNING AVGANI;

template = 08 - GOOD MORNING AVGANI.avgani;

};

class 09 - TANK RALLY: MissionDefault

{

end1 = 10 - DESERT STORM;

lost = 09 - TANKRALLY;

template = 09 - TANK RALLY.avgani;

};

class 10 - DESERT STORM: MissionDefault

{

end1 = 11 - INTO THE STORM;

lost = 10 - DESERT STORM;

template = 10 - DESERT STORM.avgani;

};

class 11 - INTO THE STORM: MissionDefault

{

end1 = 12 - DISTURBANCE;

lost = 11 - INTO THE STORM;

template = 11 - INTO THE STORM.avgani;

};

class 12 - DISTURBANCE: MissionDefault

{

end1 = 13 - ROAD TO AVGANi;

lost = 12 - DISTURBANCE;

template = 12 - DISTURBANCE.avgani;

};

class 13 - ROAD TO AVGANI: MissionDefault

{

end1 = 14 - END OF THE LINE;

lost = 13 - ROAD TO AVGANI;

template = 13 - ROAD TO AVGANI.avganI ;

};

class 14 - END OF THE LINE: MissionDefault

{

end1 =15 - LONE WOLF;

lost = 14 - END OF THE LINE;

template =14 - END OF THE LINE.avgani;

};

class 15 - LONE WOLF: MissionDefault

{

end1 =16 - HEAVY ARMOUR;

lost =15 - LONE WOLF ;

template =15 - LONE WOLF.avgani ;

};

class 16 - HEAVY ARMOUR: MissionDefault

{

end1 =17 - SERVE AND PROTECT;

lost = 16 - HEAVY ARMOUR;

template =16 - HEAVY ARMOUR;

};

class 17 - SERVE AND PROTECT: MissionDefault

{

end1 =18 - A HIKE IN THE HILLS;

lost =17 - SERVE AND PROTECt;

template =17 - SERVE AND PROTECT.avganI;

};

class 18 - A HIKE IN THE HILLS: MissionDefault

{

end1 =19 - TERMINATOR;

lost =18 - A HIKE IN THE HILLS;

template =18 - A HIKE IN THE HILLS.avgani;

};

class 19 - TERMINATOR: MissionDefault

{

end1 =20 - SEARCH AND DELETE;

lost =19 - TERMINATOR;

template =19 - TERMINATOR.avgani;

};

class 20 - SEARCH AND DELETE: MissionDefault

{

end1 =21 - GHOST TOWN;

lost = 20 - SEARCH AND DELETE;

template =20 - SEARCH AND DELETE.avgani ;

};

class 22 - ESCAPE: MissionDefault

{

end1 = ;

lost =22 - ESCAPE;

template =22 - ESCAPE.avganI;

};

};

};

Share this post


Link to post
Share on other sites

There is obviously something wrong...

I get this message when I click on campaigns in the meny:

File campaigns/operation dead fox campaign/description.ext, line 22:'/campaign/beginning.02': '-' encountered instead of '='

:bored:

Share this post


Link to post
Share on other sites

a) use quotes to enclose the strings

b) class names may not use a hypen nor spaces

class 02_OPERATION_DEAD_FOX: MissionDefault
{
end1 = "03_THE_FIRST_DAY";
lost = "02_OPERATION_DEAD_FOX";
template = "02_OPERATION_DEAD_FOX.afghan_village";
};

Share this post


Link to post
Share on other sites
a) use quotes to enclose the strings

b) class names may not use a hypen nor spaces

class 02_OPERATION_DEAD_FOX: MissionDefault
{
end1 = "03_THE_FIRST_DAY";
lost = "02_OPERATION_DEAD_FOX";
template = "02_OPERATION_DEAD_FOX.afghan_village";
};

Thanks a lot dude.. It worked well. I can click at my campaign but when I'm about to start it I get the message No entry 'Campaigns/operation dead fox campaign/description.ext/campaign.01 - CALL OF DUTY'..

I think there is something wrong here but I can't figure out what..

class MissionDefault
{
	lives = -1;

lost = ;
end1 = ;
end2 = ;
end3 = ;
end4 = ;
end5 = ;
end6 = ;
};

class Campaign
{
name = "OPERATION DEAD FOX";
firstBattle = "01 - CALL OF DUTY";

class 01_CALL_OF_DUTY: MissionDefault
{
	name = "01 - CALL OF DUTY";
	firstMission = "01 - CALL OF DUTY";
	end1 = "02 - OPERATION DEAD FOX";
	end2 = ;
	end3 = ;
	end4 = ;
	end5 = ;
	end6 = ;
	lost = "01 - CALL OF DUTY";

	class OPERATION_DEAD_FOX: MissionDefault
	{
		end1 = "03 - THE FIRST DAY";
		lost = "02 - OPERATION DEAD FOX"; 
		template = "01 - CALL OF DUTY.afghan_village";
	};

Share this post


Link to post
Share on other sites

The string references are the class names I think.

So you need to rename them like-wise.

endX, lost and firstMission probably lack the world extension too.

Not entirely sure though. Best to extract a working community campaign.

Share this post


Link to post
Share on other sites

Here is the campaign.ext of my campaign I'm currently working on and it works so far no error messages are popping up.

So here you go

class CfgIdentities {

class player

{

name = "Vincent Vega";

face = "Face01";

glasses = "None";

speaker = "Male02EN";

pitch = 1.00;

};

};

class CfgSounds

{};

class MissionDefault

{

lives = -1;

lost = ;

end1 = ;

end2 = ;

end3 = ;

end4 = ;

end5 = ;

end6 = ;

};

class Campaign

{

name = "Hammer of Thor";

firstBattle = chapter1;

class chapter1

{

name = "chapter1";

cutscene = ;

firstMission = WelcomeToTakistan;

end1 = ;

end2 = ;

end3 = ;

end4 = ;

end5 = ;

end6 = ;

lost = ;

class WelcomeToTakistan: MissionDefault

{

end1 = Spearhead;

lost = WelcomeToTakistan;

template = WelcomeToTakistan.Desert_E;

};

class Spearhead: MissionDefault

{

end1 = OnTheHotSpot;

lost = Spearhead;

template = Spearhead.Zargabad;

};

class OnTheHotSpot: MissionDefault

{

end1 = HammerOfThor;

lost = OntheHotSpot;

template = OnTheHotSpot.Zargabad;

};

class HammerOfThor: MissionDefault

{

end1 = OperationGhostRider;

lost = HammerOfThor;

template = HammerOfThor.Zargabad;

};

class OperationGhostRider: MissionDefault

{

end1 = BlackNight;

lost = OperationGhostRider;

template = OperationGhostRider.Zargabad;

};

class BlackNight: MissionDefault

{

end1 = Sledgehammer;

lost = OperatioGhostRider;

template = BlackNight.Zargabad;

};

class Sledgehammer: MissionDefault

{

end1 = DressedToKill;

lost = Sledgehammer;

template = Sledgehammer.Zargabad;

};

class DressedToKill: MissionDefault

{

end1 = Cleansweep;

lost = DressedToKill;

template = DressedToKill.Zargabad;

};

class Roadblock: MissionDefault

{

end1 = Cleansweep;

lost = Roadblock;

template = Roadblock.Zargabad;

};

class Cleansweep: MissionDefault

{

end1 = Silverspoon;

lost = Cleansweep;

template = Cleansweep.Zargabad;

};

class Silverspoon: MissionDefault

{

end1 = BlackGold;

lost = Silverspoon;

template = Silverspoon.Zargabad;

};

class BlackGold: MissionDefault

{

end1 = LastObstacle;

lost = BlackGold;

template = BlackGold.Zargabad;

};

class PaybackIsABitch: MissionDefault

{

end1 = LastObstacle;

lost = PaybackIsABitch;

template = PaybackIsABitch.Zargabad;

};

class LastObstacle: MissionDefault

{

end1 = WarPig;

lost = LastObstacle;

template = LastObstacle.Zargabad;

};

class warpig: MissionDefault

{

end1 = LastStand;

lost = WarPig;

template = WarPig.Zargabad;

};

class LastStand: MissionDefault

{

end1 = ;

end2 = ;

lost = ;

template = LastStand.Zargabad;

};

};

};

class Awards {};

class Penalties {};

Please post always the complete code otherwise it's a bit hard to understand where an error might be found.

Edited by nettrucker

Share this post


Link to post
Share on other sites

Thanks nettrucker.. but it seems like I won't get this working. Now I get the message:

File Campaigns/operation dead fox campaign/description.ext,line 151: /Campaign/chapter1/: 'M' encountered instead of '{'

I used exactly the same as you did but it keep getting screwed up for me. =/

class CfgIdentities {
class player
{
name = "James Cooley";
face = "Chad H.";
glasses = "None";
speaker = "Dusan";
pitch = 1.00;

};

};

class CfgSounds
{};

class MissionDefault
{
lives = -1;

lost = ;
end1 = ;
end2 = ;
end3 = ;
end4 = ;
end5 = ;
end6 = ;
};

class Campaign
{
name = "Operation Dead Fox";
firstBattle = chapter1;

class chapter1
{
name = "chapter1";
cutscene = ;
firstMission = CallOfDuty;
end1 = ;
end2 = ;
end3 = ;
end4 = ;
end5 = ;
end6 = ;
lost = ;

class CallOfDuty: MissionDefault
{
end1 = OperationDeadFox;
lost = CallOfDuty;
template = CallOfDuty.afghan_village;
};
class TheFirstDay: MissionDefault
{
end1 = ArmedAssault;
lost = TheFirstDay;
template = ArmedAssault.afghan_village.Zargabad;
};

class TakeOut: MissionDefault
{
end1 = AfganiShowdown;
lost = TakeOut;
template = TakeOut.afghan_village;
};

class AfganiShowdown: MissionDefault
{
end1 = PeaceKeeper;
lost = AfganiShowdown;
template = AfganiShowdown.afghan_village;
};

class PeaceKeeper: MissionDefault
{
end1 = GoodMorningAvgani;
lost = PeaceKeeper;
template = PeaceKeeper.afghan_village;
};

class GoodMorningAvgani: MissionDefault
{
end1 = TankRally;
lost = GoodMorningAvgani;
template = GoodMorningAvgani.avgani;
};

class TankRally: MissionDefault
{
end1 = DesertStorm;
lost = TakeRally;
template = TankRally.avgani;
};

class DesertStorm: MissionDefault
{
end1 = IntoTheStorm;
lost = DesertStorm;
template = Desertstorm.avgani;
};

class Disturbance: MissionDefault
{
end1 = RoadToAvgani;
lost = Disturbance;
template = Disturbance.avgani;
};

class RoadToAvgani: MissionDefault
{
end1 = EndOfTheLine;
lost = RoadToAvgani;
template = RoadToAvgani.avgani;
};

class EndOfTheLine: MissionDefault
{
end1 = LoneWolf;
lost = EndOfTheLine;
template = EndOfTheLine.avgani;
};

class LoneWolf: MissionDefault
{
end1 = HeavyArmour;
lost = LoneWolf;
template = LoneWolf.avgani;
};

class HeavyArmour: MissionDefault
{
end1 = ServeAndProtect;
lost = HeavyArmour;
template = HeavyArmour;
};

class ServeAndProtect: MissionDefault
{
end1 = AHikeInTheHills;
lost = ServeAndProtect;
template = ServeAndProtect.avgani;
};

class AHikeInTheHills: MissionDefault
{
end1 = Terminator;
lost = AHikeInTheHills;
template = AHikeInTheHills.avgani;
};

class SearchAndDelete MissionDefault
{
end1 = GhostTown;
lost = SearchAndDelete;
template = SearchAndDelete.avgani;
};

class GhostTown: MissionDefault
{
end1 = Escape;
lost = GhostTown;
template = GhostTown.avgani;
};

class Escape: MissionDefault
{
end1 = ;
end2 = ;
lost = ;
template = Escape.avgani;
};
};
};

class Awards {};

class Penalties {};

Edited by Cyper

Share this post


Link to post
Share on other sites
the bible for campaign making is here

http://community.bistudio.com/wiki/Campaign_Description.ext

the 'trick' to understand is that a campaign consists of one or more CHAPTERS.

CHAPTERS contain one or more missions

I've used that link before for a one chapter campaign. The only diffrence is that I get a diffrenent error message; File Campaigns/operation dead fox campaign/description.ext, line 4;/Campaign.Chapter1: Undefined case class 'No Endings'.

I have absolutely no clue what all these error messages means so I can't solve it.

Share this post


Link to post
Share on other sites

Your/the above ext is faulty:

> Line 152 Expected class name

Get a proper text editor like notepad++.

class CfgIdentities
{
class player
{
	name = "James Cooley";
	face = "Chad H.";
	glasses = "None";
	speaker = "Dusan";
	pitch = 1.00;
};
};
class CfgSounds
{
};
class MissionDefault
{
lives = -1;
lost = ;
end1 = ;
end2 = ;
end3 = ;
end4 = ;
end5 = ;
end6 = ;
};
class Campaign
{
name = "Operation Dead Fox";
firstBattle = chapter1;
class chapter1
{
	name = "chapter1";
	cutscene = ;
	firstMission = CallOfDuty;
	end1 = ;
	end2 = ;
	end3 = ;
	end4 = ;
	end5 = ;
	end6 = ;
	lost = ;
};
class CallOfDuty: MissionDefault
{
	end1 = OperationDeadFox;
	lost = CallOfDuty;
	template = CallOfDuty.afghan_village;
};
class TheFirstDay: MissionDefault
{
	end1 = ArmedAssault;
	lost = TheFirstDay;
	template = ArmedAssault.afghan_village.Zargabad;
};
class TakeOut: MissionDefault
{
	end1 = AfganiShowdown;
	lost = TakeOut;
	template = TakeOut.afghan_village;
};
class AfganiShowdown: MissionDefault
{
	end1 = PeaceKeeper;
	lost = AfganiShowdown;
	template = AfganiShowdown.afghan_village;
};
class PeaceKeeper: MissionDefault
{
	end1 = GoodMorningAvgani;
	lost = PeaceKeeper;
	template = PeaceKeeper.afghan_village;
};
class GoodMorningAvgani: MissionDefault
{
	end1 = TankRally;
	lost = GoodMorningAvgani;
	template = GoodMorningAvgani.avgani;
};
class TankRally: MissionDefault
{
	end1 = DesertStorm;
	lost = TakeRally;
	template = TankRally.avgani;
};
class DesertStorm: MissionDefault
{
	end1 = IntoTheStorm;
	lost = DesertStorm;
	template = Desertstorm.avgani;
};
class Disturbance: MissionDefault
{
	end1 = RoadToAvgani;
	lost = Disturbance;
	template = Disturbance.avgani;
};
class RoadToAvgani: MissionDefault
{
	end1 = EndOfTheLine;
	lost = RoadToAvgani;
	template = RoadToAvgani.avgani;
};
class EndOfTheLine: MissionDefault
{
	end1 = LoneWolf;
	lost = EndOfTheLine;
	template = EndOfTheLine.avgani;
};
class LoneWolf: MissionDefault
{
	end1 = HeavyArmour;
	lost = LoneWolf;
	template = LoneWolf.avgani;
};
class HeavyArmour: MissionDefault
{
	end1 = ServeAndProtect;
	lost = HeavyArmour;
	template = HeavyArmour;
};
class ServeAndProtect: MissionDefault
{
	end1 = AHikeInTheHills;
	lost = ServeAndProtect;
	template = ServeAndProtect.avgani;
};
class AHikeInTheHills: MissionDefault
{
	end1 = Terminator;
	lost = AHikeInTheHills;
	template = AHikeInTheHills.avgani;
};
class SearchAndDelete: MissionDefault
{
	end1 = GhostTown;
	lost = SearchAndDelete;
	template = SearchAndDelete.avgani;
};
class GhostTown: MissionDefault
{
	end1 = Escape;
	lost = GhostTown;
	template = GhostTown.avgani;
};
class Escape: MissionDefault
{
	end1 = ;
	end2 = ;
	lost = ;
	template = Escape.avgani;
};
};
class Awards
{
};
class Penalties
{
};

Share this post


Link to post
Share on other sites

Well, that pretty much explains WHY nothing seems to have worked for me. I didn't use notepad while I wrote the script. When I did I could start the campaign, however, the only problem left not is that the game freeze and finally close down when I click on start. :eh:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×