Briefing not loading

Post Reply
User avatar
Ender
Posts: 218
Joined: Sun Mar 06, 2016 5:42 pm
Location: Sweden
Contact:

Briefing not loading

Post by Ender »

Using 26k's Server 2# Framework https://github.com/LISTINGS09/Zeus_Server2/

Unchanged framework setup mission/briefing/f_briefing_west

In mission players are BLUFOR.

Code: Select all

// F3 - Briefing
// Credits: Please see the F3 online manual http://www.ferstaberinde.com/f3/en/
// ====================================================================================

// FACTION: WEST
// <font color='#0080FF'><marker name='respawn_west'>XXX</marker></font color>
// Green #72E500
// Orange #FF7F00
// Blue #0080FF

if (isNil "f_param_CasualtiesCap") then { f_param_CasualtiesCap = 100 };

// The code below creates the administration sub-section of notes.

_adm = player createDiaryRecord ["diary", ["Administration",["
<br/><font size='18' color='#FF7F00'>ADMINISTRATION</font>
<br/>The following text has been auto-generated from the mission modules and parameters.
<br/>
"] call f_fnc_fillAdministration]];

// The code below creates the execution sub-section of notes.

_exe = player createDiaryRecord ["diary", ["Mission",format["
<br/><font size='18' color='#FF7F00'>OBJECTIVES</font>
<br/>Eliminate all Rebel presence within the AO.
<br/>
<br/>5 key positions has been marked as a red question mark on the map.
<br/>
<br/>The question marks is where you will most likely find the Rebels.
<br/>
<br/>Ensure %1&#37; of your force is not KIA.
<br/>
<br/><font size='18' color='#FF7F00'>SPECIAL TASKS</font>
<br/>Stay alive
<br/>
<br/><font size='18' color='#FF7F00'>FRIENDLY FORCES</font>
<br/>Alpha through Delta consist of:
<br/>-2 Autoriflemen.
<br/>-2 AT's, A-B ATGM's "2X HEAT each", C-D LAT.
<br/>-2 TL's with grenade launchers.
<br/>-2 Assistant Autoriflemen "2x boxes 200x rounds each + Laser Designator + Entrenching Tool"
<br/>-1 Medic
<br/>-1 Squadleader
<br/>
<br/>Vehicle assets are as follows:
<br/>-4x Tempest transport covered "Spare ammo for rifles, AR's, AT's and medical supplies aswell as basic throwables"
<br/>-1x Hunter
<br/>
<br/><font size='18' color='#FF7F00'>ENEMY FORCES</font>
<br/>Our UAV's reconnaissance mission was highly successfull and the information on the enemy we obtained is as follows:
<br/>-85x infantry units spreaded across the AO. Two of are occupying statical HMG's, one of are occupying a GMG.
<br/>-4x armored vehicles, T-72B, BTR-70, BRDM-2, BMP-2K.
<br/>-2x weaponised UAZ's, one HMG, one GMG.
<br/
<br/Our UAV was later spotted and shot down half an hour ago so we are unable to put a marker on where these infantry and armored assets are located.
<br/
<br/The enemy doesn't have enough time to fortify or add to the current enemy list. So expect it to be accurate.
<br/
<br/All enemies in the AO are highly trained veterans, do not underestimate them.
<br/
<br/><font size='18' color='#FF7F00'>CREDITS</font>
<br/>Created by Ender<font color='#72E500'>?</font color>
<br/>
<br/>A custom-made mission for ArmA 3 and Zeus Community
<br/>http://zeus-community.net/
<br/>
",f_param_CasualtiesCap]]];
Briefing doesn't show when I launch the mission. I've compared one working code with this one and can't find any difference. I've tried removing the - on Enemy/Friendly units and the : but still doesn't work.

I've also double checked the folder, mission so the briefing isn't in the wrong place. It was in the right place.

I also deleted the briefing folder and added a brand new in and just copied the text over again but didn't solve it. So maby the problem is somewhere outside the code, but I don't know where to start looking.

Maby someone more used to this can see something wrong that may cause this problem`?
It is the challenge that makes one better, to push one's limit and actively look for things to do better- Ender
Spud
Posts: 89
Joined: Sun Apr 17, 2016 7:46 pm
Contact:

Re: Briefing not loading

Post by Spud »

1. Use Discord for this stuff, stops clogging up the forums

2. Is there any error messages?

2. Make sure in the init you have this line near the end

Code: Select all

f_sqf_brief = execVM "f\briefing\briefing.sqf";
User avatar
Ender
Posts: 218
Joined: Sun Mar 06, 2016 5:42 pm
Location: Sweden
Contact:

Re: Briefing not loading

Post by Ender »

1. Okay.

2. []: 'bin\config.bin/CfgPatches/zeus_tb_alfr_units/' not an array
and
No entry 'bin\config.bin/RadioProtocolRUS/SentCovering.'.

3. It's there.
It is the challenge that makes one better, to push one's limit and actively look for things to do better- Ender
User avatar
2600K
Posts: 173
Joined: Sun Jan 17, 2016 5:21 pm
Contact:

Re: Briefing not loading

Post by 2600K »

After you readded the original briefing file in and before you replaced the text again, you should have tested it then to ensure the briefing showed with the original file.

This would them tell you where the issue was located - If the briefing showed then you'll know the error is in what you added afterwards, if the briefing still didn't show you'd know the issue is somewhere earlier on.

That said, the briefing code you have provided does have errors. Get Notepad++ installed with the Arma Syntax highlighting and it will immediately show you the issue; you're using double quotes in your briefing which is escaping the format text.

With syantax highlighting enabled the color of the text will change when you've escaped the string, which in the middle of a briefing text is indication of a big problem.
User avatar
2600K
Posts: 173
Joined: Sun Jan 17, 2016 5:21 pm
Contact:

Re: Briefing not loading

Post by 2600K »

https://community.bistudio.com/wiki/String

Gives an example to work around the issue of quotes in text.
User avatar
Ender
Posts: 218
Joined: Sun Mar 06, 2016 5:42 pm
Location: Sweden
Contact:

Re: Briefing not loading

Post by Ender »

Thanks!

I installed syantax highlighting and enabled it and it's perfect. Now the briefing shows in the mission.

Since were at it. Do you know how to remove the two errors:
[]: 'bin\config.bin/CfgPatches/zeus_tb_alfr_units/' not an array
No entry 'bin\config.bin/RadioProtocolRUS/SentCovering.'.
It is the challenge that makes one better, to push one's limit and actively look for things to do better- Ender
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests