Jump to content
swiso

Help with briefing...

Recommended Posts

Hello,

I am having trouble creating a briefing for a mission that I have made.

I followed this tutorial :

The problem is that nothig appear in the briefing tab when mission start...

Using his templates I edited the "diary.sqf" to suit my mission briefing needs.

 

This is the content of file "diary.sqf" :

 

if (!hasInterface) exitWith {};
waitUntil {!isNull player};

/*
modifiers, links, and font options
<marker name='marker_name'>text with link</marker>
<img image='Image file name jpeg or paa' />
<font color='#FF0000' size='14' face='PuristaLight'>Text you want in this font</font>
<br/> New Line

http://www.w3schools.com/colors/colors_picker.asp

https://community.bistudio.com/wikidata/images/archive/0/0e/20140217182059%21Arma3Fonts.png
*/

player createDiaryRecord ["Diary",["Additional Intel",
"<font color=#66a3ff' size='18' face='PuristaLight'>Main Targets Pictures</font><br/>
<br/>
<img image="pics\Bin-Saden.jpg"/><br/>
<img image="pics\Costas.jpg"/><br/>
<img image="pics\GeorgePiedons.jpg"/><br/>
<img image="pics\Zahawiri.jpg"/><br/>
<br/>
<br/&gt]];

player createDiaryRecord ["Diary",["Rules Of Engagement",
"<font color=#f2f2f2' size='14' face='PuristaLight'>You are free to engage any OPFOR you encounter, but the only Civilian you are authorized to eliminate is George Piedons</font&gt]];

player createDiaryRecord ["Diary",["Objectives",
"<font color=#f2f2f2' size='14' face='PuristaLight'>The main targets are the following Commanders :</font><br/>
<br/>
Commander Olama Bin Saden: Chief of Guerrilla Forces<br/>
<br/>
Commander Abdullah Zahawiri: Chief of planning Operations<br/>
<br/>
Commander Sotiris Costas: Chief of Guerrila Intel<br/>
<br/>
George Piedons: Civilian representative responsible for resources and logistics<br/>
<br/>
<br/&gt]];

player createDiaryRecord ["Diary",["Execution",
"<font color=#f2f2f2' size='14' face='PuristaLight'>Your team is composed of the following elements:</font><br/>
<br/>
1 Recon Team Leader<br/>
8 Recon Scouts<br/>
2 Recon Paramedics<br/>
2 Recon Scout AT's<br/>
2 Recon Demo speciaslists<br/>
<br/>
I'll leave it to you how to execute the mission (dividing your force in groups or go together), but here is some important advise :
Since there could be minefields on the beaches around the island (as reported on CURRENT SITATION), we STRONGLY suggest to put the two Recon Demo Specialists on the first SDV that will arrive on the planned insertion points.
They are the only two soldiers equipped with Mine detectors, so they will open up some free lanes in the minefileds for your group to pass trough.
Recon Demo Specialists carry 3 expl.charges each, use them to blow up the ammo boxes you encounter. (1 charge is enough for each ammo box)<br/>
<br/>
<br/&gt]];

player createDiaryRecord ["Diary",["Current Situation",
"SAT pictures show AT LEAST 10 static emplacements, some could be AA's launchers but unfortunately the majority look like HMG's.<br/>
Almost all of them are located on the rooftops of bunkers around the island.<br/>
Many guerrila infantry patrols have been spotted patrolling the island so far but NO veichles have been seen...probably they dont have them, or they're hidden somewhere.<br/>
One curious thing we noticed is that infantry patrols never venture to go on patrol, on most of the beaches, namely:<br/>
<br/>
North of hill 18 on northern part of the island<br/>
E/NE of hill 12 on Eastern part of island<br/>
On the whole W coast<br/>
<br/>
<br/>"]];

player createDiaryRecord ["Diary",["Background",
"Morning Chaps.<br/>
This is it !<br/>
After months of fruitless intel gathering, we finally have a breach.
STARTCOM provided us some interesting pictures of a small and isolated island with an unusual high nuber of AA and HMG statics.
Seeing the few resources Guerrila forces have, they must protect something of very high value there.
UK Special Forces think that's the place where Guerrilla main base and HQ cell is located.<br/>
We estimate the HQ cell to be composed of 3 Officers and 1 civilian representative.
At this moment we dont know exactly the precise location of where they are on the island, but we guess they might be all on the same place discussing their operations.
With a little bit of luck we might be able to catch the all at once.<br/>
<br/>
<br/>"]];

player createDiaryRecord ["Diary",["Mission Info",
"<font color=#f2f2f2' size='14' face='PuristaLight'>SPECOPS mission to find and kill enemy Guerrila HQ cell</font&gt]];

 

 

This is the content of "initLocalPlayer.sqf" :

 

if ((!isServer) && (player != player)) then
{
  waitUntil {player == player};
};
_null = [] execVM "diary.sqf";                                        // diary tabs

 

 

This is the content of "description.ext" file :

 

author = "DoGB Aris";
onLoadName = "Operation Pancacke";
onLoadMission = "Swiftly,Silently,Deadly";
loadScreen = "pics\intro.JPG"; // Preview picture


Respawn = 3;
RespawnDelay = 4;

#include "=BTC=_revive\=BTC=_respawn.h"

 

This is the content of the "init.sqf" file :

 

//EOS SYSTEM
[]execVM "eos\OpenMe.sqf";

call compile preprocessFile "=BTC=_revive\=BTC=_revive_init.sqf";

 

 

 

Any reason why it should not work ?

Thanks afor any tip or help.

Regards

Share this post


Link to post
Share on other sites

How does it not work? No diary records? Try to make it simple (no formating and just "test 1" text or something) and build on top of it if it works.

Share this post


Link to post
Share on other sites
if ((!isServer) && (player != player)) then
{
  waitUntil {player == player};
};

This could be an issue. I'd not use that at all. !isServer check is unecessary anyway in the initPlayerLocal.sqf

Share this post


Link to post
Share on other sites

How does it not work? No diary records? Try to make it simple (no formating and just "test 1" text or something) and build on top of it if it works.

Hello and thanks for the help.

What do you mean by "No Diary records?"

 

I just edited the diary.sqf without fonts...now it look like this :

 

if (!hasInterface) exitWith {};

waitUntil {!isNull player};

/*

modifiers, links, and font options

<marker name='marker_name'>text with link</marker>

<img image='Image file name jpeg or paa' />

<font color='#FF0000' size='14' face='vbs2_digital'>Text you want in this font</font>

<br/> New Line

http://www.w3schools.com/colors/colors_picker.asp

https://community.bistudio.com/wikidata/images/archive/0/0e/20140217182059%21Arma3Fonts.png

*/

player createDiaryRecord ["Diary",["Additional Intel",

"Main Targets Pictures<br/>

<img image=pics\Bin-Saden.jpg"/><br/>

<img image="pics\Costas.jpg"/><br/>

<img image="pics\GeorgePiedons.jpg"/><br/>

<img image="pics\Zahawiri.jpg"/><br/&gt]];

player createDiaryRecord ["Diary",["Rules of Engagement",

"You are free to engage any OPFOR you encounter but the only Civilian you are authorized to eliminate is George Piedons"]];

player createDiaryRecord ["Diary",["Objectives",

"The main targets are the following Commanders<br/>

<br/>

Commander Olama Bin Saden Chief of Guerrilla Forces<br/>

<br/>

Commander Abdullah Zahawiri Chief of planning Operations<br/>

<br/>

Commander Sotiris Costas Chief of Guerrila Intel<br/>

<br/>

George Piedons Civilian representative responsible for resources and logistics<br/>

<br/>

<br/>"]];

player createDiaryRecord ["Diary",["Execution",

"Your team is composed of the following elements<br/>

<br/>

1 Recon Team Leader<br/>

8 Recon Scouts<br/>

2 Recon Paramedics<br/>

2 Recon Scout AT's<br/>

2 Recon Demo speciaslists<br/>

<br/>

I'll leave it to you if executing the mission dividing your force in groups or go together but here is some important advise<br/>

Since there could be minefields on the beaches around the island as reported on CURRENT SITATION we STRONGLY suggest to put the two Recon Demo Specialists on the first SDV that will arrive on the planned insertion points since

they are the only two soldiers equipped with Mine detectors so they will open up some free lanes in the minefileds for your group to pass trough<br/>

Recon Demo Specialists carry 3 explosive charges each use them to blow up the ammo boxes you encounter<br/>

1 charge is enough for each ammo box<br/>

<br/>

<br/>"]];

player createDiaryRecord ["Diary",["Current Situation",

"SAT pictures show AT LEAST 10 static emplacements and while some could be AA launchers the majority look like HMG<br/>

Almost all of them are located on the rooftops of bunkers around the island<br/>

Many guerrila infantry patrols have been spotted patrolling the island so far but NO veichles have been seen probably they dont have them or they are hidden somewhere<br/>

One curious thing we noticed is that infantry patrols never venture to go on patrol in the following beaches<br/>

North of hill 18 on northern part of the island<br/>

E/NE of hill 12 on Eastern part of island<br/>

On the whole W coast<br/>

<br/>

<br/>"]];

player createDiaryRecord ["Diary",["Background",

"Morning Chaps.<br/>

This is it !<br/>

After months of fruitless intel gathering we finally have a breach<br/>

STARTCOM provided us some interesting pictures of a small and isolated island with an unusual high nuber of AA and HMG statics

Seeing the few resources Guerrila forces have they must protect something of very high value there<br/>

UK Special Forces think that is the place where Guerrilla main base and HQ cell is located<br/>

We estimate the HQ cell to be composed of 3 Officers and 1 civilian representative<br/>

At this moment we dont know exactly the precise location of where they are on the island but we guess they might be all on the same place discussing their operations<br/>

With a little bit of luck we might be able to catch the all at once<br/>

<br/>

<br/>"]];

player createDiaryRecord ["Diary",["Mission Info",

"SPECOPS mission to find and kill enemy Guerrila HQ cell"]];

 

A "stupid" question....when I write a text describing the mission, can I use these type of symbols ( ) , . or I should use only letters and numbers ?

 

Now I am gonna try this new diary.sqf and will let you know.

Thanks

Share this post


Link to post
Share on other sites
if ((!isServer) && (player != player)) then
{
  waitUntil {player == player};
};

This could be an issue. I'd not use that at all. !isServer check is unecessary anyway in the initPlayerLocal.sqf

 

Thanks for the help,

so what you would suggest to do instead ? just leave out this file ? (initPlayerLocal.sqf)

Share this post


Link to post
Share on other sites

tried the new diary.sqf but same result.....nothing there under briefing

Share this post


Link to post
Share on other sites

Thanks for the help,

so what you would suggest to do instead ? just leave out this file ? (initPlayerLocal.sqf)

 

No, you  will still need the initPlayerLocal.sqf. But those checks if player == player are bullshit and are only sources for errors.

Are you sure the syntax is correct everywhere? Try to execute it in singleplayer and see if the briefing is properly added.

 

You had a syntax error in the first few lines. You used quotation marks ", instead of those '

if (!hasInterface) exitWith {};
waitUntil {!isNull player};

player createDiaryRecord ["Diary",["Additional Intel",
"Main Targets Pictures<br/>
<img image='pics\Bin-Saden.jpg'/><br/>  
<img image='pics\Costas.jpg'/><br/>
<img image='pics\GeorgePiedons.jpg'/><br/>
<img image='pics\Zahawiri.jpg'/><br/>"]];//Replaced " with '

player createDiaryRecord ["Diary",["Rules of Engagement",
"You are free to engage any OPFOR you encounter but the only Civilian you are authorized to eliminate is George Piedons"]];

player createDiaryRecord ["Diary",["Objectives",
"The main targets are the following Commanders<br/>
<br/>
Commander Olama Bin Saden Chief of Guerrilla Forces<br/>
<br/>
Commander Abdullah Zahawiri Chief of planning Operations<br/>
<br/>
Commander Sotiris Costas Chief of Guerrila Intel<br/>
<br/>
George Piedons Civilian representative responsible for resources and logistics<br/>
<br/>
<br/>"]];

player createDiaryRecord ["Diary",["Execution",
"Your team is composed of the following elements<br/>
<br/>
1 Recon Team Leader<br/>
8 Recon Scouts<br/>
2 Recon Paramedics<br/>
2 Recon Scout AT's<br/>
2 Recon Demo speciaslists<br/>
<br/>
I'll leave it to you if executing the mission dividing your force in groups or go together but here is some important advise<br/>
Since there could be minefields on the beaches around the island as reported on CURRENT SITATION we STRONGLY suggest to put the two Recon Demo Specialists on the first SDV that will arrive on the planned insertion points since
they are the only two soldiers equipped with Mine detectors so they will open up some free lanes in the minefileds for your group to pass trough<br/>
Recon Demo Specialists carry 3 explosive charges each use them to blow up the ammo boxes you encounter<br/>
1 charge is enough for each ammo box<br/>
<br/>
<br/>"]];

player createDiaryRecord ["Diary",["Current Situation",
"SAT pictures show AT LEAST 10 static emplacements and while some could be AA launchers the majority look like HMG<br/>
Almost all of them are located on the rooftops of bunkers around the island<br/>
Many guerrila infantry patrols have been spotted patrolling the island so far but NO veichles have been seen probably they dont have them or they are hidden somewhere<br/>
One curious thing we noticed is that infantry patrols never venture to go on patrol in the following beaches<br/>
North of hill 18 on northern part of the island<br/>
E/NE of hill 12 on Eastern part of island<br/>
On the whole W coast<br/>
<br/>
<br/>"]];

player createDiaryRecord ["Diary",["Background",
"Morning Chaps.<br/>
This is it !<br/>
After months of fruitless intel gathering we finally have a breach<br/>
STARTCOM provided us some interesting pictures of a small and isolated island with an unusual high nuber of AA and HMG statics
Seeing the few resources Guerrila forces have they must protect something of very high value there<br/>
UK Special Forces think that is the place where Guerrilla main base and HQ cell is located<br/>
We estimate the HQ cell to be composed of 3 Officers and 1 civilian representative<br/>
At this moment we dont know exactly the precise location of where they are on the island but we guess they might be all on the same place discussing their operations<br/>
With a little bit of luck we might be able to catch the all at once<br/>
<br/>
<br/>"]];

player createDiaryRecord ["Diary",["Mission Info",
"SPECOPS mission to find and kill enemy Guerrila HQ cell"]];

A "stupid" question....when I write a text describing the mission, can I use these type of symbols ( ) , . or I should use only letters and numbers ?

 

You can use any symbols.

Share this post


Link to post
Share on other sites

R3vo !

Thanks !!!

That syntax error was the cause....now ity run perfectly !!!

Thank you very much mate !!!

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

×