Jump to content
Sign in to follow this  
banenwn

frustrated

Recommended Posts

I pretty much got every aspect of the game editor down well enough to make pretty solid missions.However im having a serious issue with inserting a briefing.To put it simply i do not know what the heck im doing.I watched a tuitorial on youtube thought i did everything he said and nothing.Then i downloaded the briefing manager and i understand how to use it but do i have to edit anything after i save it as a briefing.sqf?In the video tuitorial i was told all i needed in the init.sqf was execVM "briefing.sqf"; im lost here.Ive spent about 30 hours working on a mission i have it completed accept the briefing.

Ive looked for hours for help and even the one thing the guy had posted here confused me.I did alot of editor work for the deltaforce series but this is way above that.If anyone could tell me what im doing wrong id appreciate it.I realize i ask alot of questions but i really love this game and want to add to the community thanks

Share this post


Link to post
Share on other sites

It's not so tough to get the basics down. You should create a file called "briefing.sqf", and you should understand the code that goes into it. Here's an example from one of my missions:

///////////////////////////////////////////////////////////////////////////////
//
// briefing.sqf, originally by bartkusa 2009
//	- Throw tasks and markers on the map. Tasks are always local to the player.
//	- Know what's fucked up?  If you code tasks and diary notes in order (A, B, C),
//		then they're displayed in order (C, B, A).
//	- Oh my lord check this shit out: http://www.ofpec.com/forum/index.php?topic=33468.0
//
///////////////////////////////////////////////////////////////////////////////



// Mission notes //////////////////////////////////////////////////////////////


player createDiaryRecord[
"Diary",
[
	"Credits",
"Mission by bartkusa.<br />
<br />
Known issues:<br />
blah blah blah"
]
];


// Player-specific briefings //////////////////////////////////////////////////
switch (side player) do
{
case WEST:
{
	if (player in (units group downedPilotsGroup)) then
	{
		[] call compile preprocessFile "briefing\briefingDownedPilots.sqf";
	}
	else
	{
		[] call compile preprocessFile "briefing\briefingWest.sqf";
	};
};

case EAST:
{
	[] call compile preprocessFile "briefing\briefingEast.sqf";
};
};

if (player in (units group bluFRCommandGroup)) then
{
[] call compile preprocessFile "briefing\briefingHqOfc.sqf";
};

Now, that code is a little funky, because in my mission there's multiple roles that get slightly different briefings. The insurgents get different info from the Marines, and those specific things are tucked away in their own files. Here's the contents of BLUFOR's briefing, "briefingWest.sqf":

// Mission notes //////////////////////////////////////////////////////////////

player createDiaryRecord[
"Diary",
[
	"INTEL: Assets",
"1  x  Force Recon Marine squad.<br/>
1  x  MH-60S Seahawk helicopter.<br/>
1  x  AH-1Z helicopter gunship.<br/>"
]
];

player createDiaryRecord[
"Diary",
[
	"INTEL: Anti-Air Artillery",
"The insurgents have been provided AAA through the Russian black market. Past behavior indicates that they will probably move their AAA near to where they think the pilots are, to discourage rescue attempts.<br /><br />The further you touch down from the pilots' initial position, the safer your transport craft will be."
]
];

player createDiaryRecord[
"Diary",
[
	"INTEL: OPFOR",
"The insurgents have set up a perimeter around the area the CDF aircraft was disabled. They are closely watching towns and likely points of egress. Beware of <marker name='baseRed'>insurgent strongholds in the South</marker>; they are especially well-defended.<br /><br />
Radio and television broadcasts to South Chernarussian citizens have promised strong reprisals against against anyone who provides aid to the crashed pilots, so expect some civilians to be reluctant to help the pilots."
]
];

player createDiaryRecord[
"Diary",
[
	"Objectives",
"- Locate the crashed pilots <marker name='ao'>in Southern Chernarus</marker>.<br />
- Bring them back to <marker name='baseBlu'>the airfield North of Vybor</marker>.<br/>"
]
];

player createDiaryRecord[
"Diary",
[
	"SITREP",
"CDF and Insurgent forces have signed a <marker name='armisticeLineBlu'>cease-fire agreement</marker>, effectively partitioning Chernarus into northern and southern halves.
<br/><br/>
At 1720, a CDF Su-34 conducting a combat air patrol was engaged by OPFOR AAA.  At least one pilot is confirmed to have ejected, although <marker name='ao'>his exact location is unknown</marker>.
<br/><br/>
If the pilots cannot be recovered, they may be tortured, and will be forced to 'confess' to breaking the cease-fire. This cannot be permitted."
]
];


// Tasks //////////////////////////////////////////////////////////////////////

taskWestRescuePilots = player createSimpleTask["Rescue crashed pilots"];
taskWestRescuePilots setSimpleTaskDescription
[
"Find the pilots, who ejected somewhere in the <marker name='ao'>area of operations</marker>, and return them to our airstrip",
"Rescue Pilots",
"Rescue Pilots"
];
taskWestRescuePilots setSimpleTaskDestination (getMarkerPos "baseBlu");

The two basic things you need in a briefing are notes (aka DiaryRecords) and tasks. These examples should suit you well. If you want to understand the commands better, I suggest these links:

- OFPEC Briefing Tutorial

- ArmA 2 Command Reference

Share this post


Link to post
Share on other sites

I use the briefing manager all the time with no problems. Just save the briefing as briefing.sqf and place it in the missions folder and then create the init.sqf file. The init.sqf should look like this:

//Briefing

nul=[] execVM "briefing.SQF";

Share this post


Link to post
Share on other sites
I use the briefing manager all the time with no problems. Just save the briefing as briefing.sqf and place it in the missions folder and then create the init.sqf file. The init.sqf should look like this:

//Briefing

nul=[] execVM "briefing.SQF";

thanks this did the trick i got the briefing ingame now again thanks alot!Hopefully ill have a 2 player co-op mission to upload shortley

Share this post


Link to post
Share on other sites
//Briefing

nul=[] execVM "briefing.SQF";

Are you parsing any variables to the script? No.

Are you saving the success value of the execution? I guess not.

Therefore.

//Briefing
execVM "briefing.SQF";

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  

×