Jump to content
Sign in to follow this  
iconoclastdx

Simple Briefing.sqf works fine in preview but not in multiplayer.

Recommended Posts

It seems like this would have been a common issue but my searching skills are apparently lacking.

Below is the briefing.sqf that is called from init.sqf. Basically, in MP the tasks and diary enteries are not created. But in preview they work fine. Any help would be great!

waitUntil { !isNil {player} };
waitUntil { player == player };

switch (side player) do 
{

case WEST: // BLUFOR briefing goes here
{
player createDiaryRecord ["Diary", ["Title 1", "Message 1"]];
player createDiaryRecord ["Diary", ["Title 1", "We have an objective <marker name='mkrObj01'>here</marker>"]];
tskTask01 = player createSimpleTask ["Task 1 Title"];
tskTask01 setSimpleTaskDescription ["Task 1 Message...<marker name='mkrObj01'>HERE</marker>", "Task 1 Title", "Task 1 HUD"];
tskTask01 setSimpleTaskDestination (getMarkerPos "mkrObj01");
tskTask01 setTaskState "Assigned";

Player setCurrentTask tskTask01;
};


case EAST: // OPFOR briefing goes here
{  
};


case RESISTANCE: // RESISTANCE/INDEPENDENT briefing goes here
{ 
};


case CIVILIAN: // CIVILIAN briefing goes here
{ 
};
};

Share this post


Link to post
Share on other sites

[solution]

Just in case anyone encounters this issue I will post my solution. It turns out that I renamed my mission when I was exporting it as a MP mission. This prevented the associated files from being exported along with the .sqm and being packaged into the .pbo. No amount of resaving the mission over the old incomplete mission would prompt the editor to include the script files into the .pbo. I had to delete the incomplete .pbo, resave the original editor files as something new and then re-export it to MPMissions with the exact same name (new name). Hope that helps someone.

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  

×