Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
ANZACSAS Steven

Join In Progress Briefing Headaches

Recommended Posts

I have been having alot of trouble getting my briefing's to show up for players who Join In Progress.

I have searched for and found a couple of examples but the examples i have found dont mention anything about JIP.

I did find one example that was using tasks aswell but it seemd too advanced on scripting for me.

I am a bit annoyed at Bis for making the simple old briefing in Mp a job for an educated scripter.

I would like to know if there is a simple way of using a briefing for MP/JIP that doesnt require me to go Uni for a few years.

Please help.:)

Steve.

Share this post


Link to post
Share on other sites

The Multiplayer Framework is actually quite easy to use and offers the ability to do exatly this. First you need to place the "functions" module on your map and then add the tasks/briefing via script.

Here's a simple example from one of my (WIP) missions.

init.sqf

// Initialization
waitUntil {!(isNil "BIS_MPF_initDone") AND !(isNil "BIS_fnc_init") AND !(isNull player)};
waitUntil {BIS_fnc_init};
// Initialization

if (isServer) then {
// Mission's Main Scope - Store for Mission Variables
_missionScopeGroup = createGroup sideLogic; 
"Logic" createUnit [[10, 10, 0], _missionScopeGroup, "BIS_missionScope = this"];
publicVariable "BIS_missionScope";

// Briefing
_nic = [objNull, player, "per", rCREATEDIARYRECORD, "Credits", "Mission Editing and Scripting by IndeedPete!<br/><br/>Thanks to:<br/>norrin for his great 'Convoy Control Script'!<br/>BIS for this awesome game wich i love and sometimes really hate! :)"] call RE;
_nic = [objNull, player, "per", rCREATEDIARYRECORD, "Diary Entry", "1Lt. Lionel Spheres - 1st SFOD-D (A)<br/><br/>Great, another day in Takistan. Seven days from now on and i'll finally leave this damn country! I've spend two fucking years here; have been there from the beginning. I still remember the invasion as if it happened just yesterday. Dead soldiers, crippled wounded, explosions, killed civillians... To see Takistan now makes me wonder if the occupation made sense in the first place. The population seems friendly but they'll stab you the moment you turn around to resume your patrol. Media says that Takistan is friendly and peacefully now. The say it's a good place for tourism. But i see dead comrades every day, new wounded every day. I know what goes on in the villages outside the cities where no-one patrols except us Delta members hunting remainig terrorist leaders. But command wouldn't listen. They don't want to hear it and prefer to stay in their dream world where the invasion was a success. Anyway, this is my last week here. Only this last job and i can return back home and leave it all behind..."] call RE;
_nic = [objNull, player, "per", rCREATEDIARYRECORD, "Support", "1 HMMWV (MK19) - 'Bodyguard One'<br/>1 HMMWV SOV - 'Bodyguard Two'<br/>1 SUV - 'Bodyguard Three'<br/>1 HMMWV - 'Bodyguard Four'<br/>1 Stryker ICV (M2) - 'Bodyguard Five'<br/>1 A10 - 'Guardian Angel'<br/>12 US army regulars<br/>4 Delta Force members<br/>4 Secret Service members<br/>Additional US army regulars at the checkpoints"] call RE;
_nic = [objNull, player, "per", rCREATEDIARYRECORD, "Execution", "The convoy will start at <marker name=""residence"">President Hamir's Residence</marker> and passes on his way the checkpoints <marker name=""c_pos_5"">'Victor'</marker>, <marker name=""c_pos_10"">'Romeo'</marker>, <marker name=""c_pos_14"">'Charlie'</marker>, <marker name=""c_pos_16"">'Juleen'</marker> and <marker name=""c_pos_22"">'Barney'</marker> before it finally reaches the <marker name=""airport"">Airport of Zargabad</marker>. The convoy has to report back at 'Overlord' at every checkpoint."] call RE;
_nic = [objNull, player, "per", rCREATEDIARYRECORD, "Mission", "The task is to get VIP One safe and without any interruptions from <marker name=""residence"">President Hamir's Residence</marker> to the <marker name=""airport"">Airport of Zargabad</marker>. Therefor, a convoy of 5 vehicles (callsigns: 'Bodyguard One' to 'Bodyguard Five') has been established. 'Guardian Angel' will secure the airspace and provide surveillance. Command element 'Overlord' will overwatch the mission and provides tactical advisory as well as satellite surveillance. Protect VIP One at all costs!"] call RE;
_nic = [objNull, player, "per", rCREATEDIARYRECORD, "Situation", "Takistan is now fully under UN control. 80% of the US forces in Takistan have already left the country. The remaining 20% are concentrated at several FOBs around the state. Takistani army regulars are slowly replacing the UN troops in law enforcement and military assignments. Rebuilding is mostly completed but there are still destroyed houses and villages. The civilian population is friendly to members of the UN. This mission will take place inside the <marker name=""green_zone"">'Green Zone of Zargabad'</marker>, a well protected, peacefully part of Zargabad. US army regulars have established checkpoints alongside the convoy route. The checkpoints are: <marker name=""c_pos_5"">'Victor'</marker>, <marker name=""c_pos_10"">'Romeo'</marker>, <marker name=""c_pos_14"">'Charlie'</marker>, <marker name=""c_pos_16"">'Juleen'</marker> and <marker name=""c_pos_22"">'Barney'</marker>."] call RE;
_nic = [objNull, player, "per", rCREATEDIARYRECORD, "Briefing", "U.S. President Ronald Taylor (after this called 'VIP One') visited the takistani President Mahmut Hamir to negotiate the future of Takistan. After the talk, VIP One will be transported from <marker name=""residence"">President Hamir's Residence</marker> to the <marker name=""airport"">Airport of Zargabad</marker> by car to speak to our remaining troops. The convoy will be protected by 'Bodyguard One' to Five and 'Guardian Angel' as well as 'Overlord' as command element wich provides tactical advisory and surveillance."] call RE;

// Tasks
_nic = [objNull, player, "per", rCREATETASKSET, "taskConvoy", ["Move VIP One from <marker name=""residence"">President Hamir's Residence</marker> to the <marker name=""airport"">Airport of Zargabad</marker>!", "Reach Zargabad Airport", "Zargabad Airport"], markerPos "airport"] call RE;
_nic = [objNull, player, "per", rCREATETASKSET, "taskVIP", ["Protect VIP One at all costs!", "Protect VIP One",""]] call RE;
};

initJIPCompatible.sqf

// Initialization
waitUntil {!(isNil "BIS_MPF_initDone")};
waitUntil {!(isNil "BIS_fnc_init")};
waitUntil {BIS_fnc_init};
// Initialization

// Taskhandler - autimatically sets task as current - creates taskhints
[player, [["taskConvoy", 1], ["taskDefend", 2], ["taskLZ", 3], ["taskVIP", 4], ["taskExtract", 5]]] call BIS_fnc_taskHandler;

Just enter your briefing text where mine is and setup the taskhandler as you wish. The numbers there are the priority, 1 ist the highest, x the lowest.

You can set a task as succeeded, canceled etc by:

if (isServer) then {
        _nic = [objNull, objNull, "per",  rSETTASKSTATE, "taskConvoy", "Canceled"] call RE;
};

Note that you don't have to create the tasks first to use the taskhandler. You can add tasks on the fly but you must have set them in the taskhandler at the beginning.

Hope it helps! :)

€: Of course tasks get broadcasted through the network an are executed on JIP clients. But note: i haven't tested it in "real" multiplayer yet because i'm also very new to multiplayer editing and currently working on my first MP mission.^^

Edited by IndeedPete

Share this post


Link to post
Share on other sites

Thanks m8 ,I will give that a try.

Btw, i have been making MP missions on our Server for OFP,ARMA,ARMA2 for years but lack scripting skill.:(

If ya have any questions about Mp or client/server stuff please dont hesitate to ask.:)

Thanks for your reply.Steve.

:)

Edited by ANZACSAS Steven

Share this post


Link to post
Share on other sites

I am having a heck of a time with this. I cannot get it to work on a dedicated server. I followed the steps given above and nothing. Client side rpt log shows

Error in expression < (units group _subject) find _subject;

BIS_missionScope setVariable ["BIS_taskH>

Error position: <BIS_missionScope setVariable ["BIS_taskH>

Error Undefined variable in expression: bis_missionscope

Share this post


Link to post
Share on other sites

Give this a go. It looks scary at first, but it really is quite simple.

Share this post


Link to post
Share on other sites

Thank you Shk i was looking at that. I was hoping for BI devs or someone that knows how the re commands for tasks work. I did everything that was done in the campaign but still a nogo on a dedicated server.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×