Home   Help Search Login Register  

Author Topic: Syntax error in briefing.html  (Read 1515 times)

0 Members and 1 Guest are viewing this topic.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Syntax error in briefing.html
« on: 13 Aug 2006, 17:46:23 »
I'm having trouble with the briefing for my mission The Safe House, currently being BETA-tested. The Ending paragraphs for end1, end2 and end3 don't show up on completion. Can someone check my syntax? This is the entire briefing for the mission. Scroll down to the bottom, and you'll find the three paragraphs...

WARNING: Spoiler!

Code: [Select]
<html>


<body bgcolor="#FFFFFF">


<h2><a name="Main"></a></h2>
<h2>...</h2>
<h3>
<br>
Nato and Warsaw Pact forces are in a standoff situation near Malden. The world is on the brink of nuclear war.
<br><br>
<A HREF="#situation">Situation</A>
<br>
<A HREF="#Safe">Hill Ed12</A>
<br>
<A HREF="#friendly">Friendly Forces</A>
<br>
<A HREF="#hostile">Hostile Forces</A>
</h3>
</p>
<hr>


<p><a name="plan"></a>
Attention: <A HREF="#alpha">Alpha Black</A>.
<br><br>
Attention: <A HREF="#charlie">Charlie Black</A>.
<br><br>
General Orders: SAT 17.30, May 11, 1985
<br><br>
<a href="marker:start">Insertion: </a>Guard a strategic point in the area of operations. Further instructions will follow on location.
</p>
<hr>

<p><a name = "OBJ_1"></a>ALPHA: Go to <a href="marker:outpost">Hill Ed12</a> and relieve Bravo Black, the previous guard unit.
</p>
<hr>

<p><a name = "OBJ_2"></a>CHARLIE: Go to <a href="marker:outpost">Hill Ed12</a>.
</p>
<hr>

<p><a name = "OBJ_3"></a>ALL:Read your mission plans. They are locked up in <a href="marker:safe">this</a> safe.
</p>
<hr>

<p><a name = "OBJ_4"></a>ALL: Guard <a href="marker:outpost">Hill Ed12</a> until SAT 19.00, May 11, 1985. Read <A HREF="#1900">Intel</A>.
</p>
<hr>

<p><a name = "OBJ_5"></a>ALPHA: A minefield has been laid at location <a href="marker:mineField">Di32</a>. Clear the crossroads. Read <A HREF="#mines">Intel</A>.
</p>
<hr>

<p><a name = "OBJ_6"></a>CHARLIE: Locate the spetznas groups hiding in the hills.
</p>
<hr>

<p><a name = "OBJ_7"></a>ALL: Stay at <a href="marker:outpost">Hill Ed12</a> until SAT 20.00, May 11, 1985. Read <A HREF="#2000">Intel</A>.
</p>
<hr>

<p><a name = "OBJ_8"></a>ALL: The russians are moving two scudlaunchers to the <a href="marker:abndonedField0">abandoned airfield</a>. Stop them before they get there. Read <A HREF="#scuds">Intel</A>.
</p>
<hr>

<p><a name = "OBJ_9"></a>ALL: The russians are attacking. Hold your positions as long as possible. If outnumbered, retreat to the eastern <a href="marker:nimitz">islands</a> any way you can.
</p>
<hr>

<h2><a name="alpha"></a>[Attn: Alpha Black]</h2>
<p>
<br>
<h6>
Lieutenant,<br>
You and your men will serve as a regular guard unit, but you must also respond to any hostile activities taken by the soviets.
The Black Ops from Charlie Black is under your command, but they will be given another assignment than you have. Please respect that and aid them in any way.
When they are not preoccupied you may order them around as you see fit. There will be a 5t truck waiting for you at the LZ.
<br><br>
Good luck
<br><br>
Cpt. C. Everet Coperdale
<br><br>
P.s - Never leave your post unmanned. Never, ever...
</h6>
</p>
<hr>

<h2><a name="charlie"></a>[Attn: Charlie Black]</h2>
<p>
<br>
<h6>
Sergeant,<br>
technically you are under the command of Alpha Black,
but I instructed their Lt. to cut you and the boys some slack,
and keep you away from trenchdigging and other activities suited for grunts.
Try to lend them a hand whenever you can, and get permission to dismiss before you and the team wander off on some covert operation in the wilderness.
<br><br>
Best wishes
<br><br>
Cpt. C. Everet Coperdale
<br><br>
P.S - Due to different circumstances, beyond my control, I have not managed to find transport for you yet.
Try to hitch a ride with the tankers or the helicopter, if they have cargo space for you.
Be adviced that they can take you for a detour, if they have other things to do.
</h6>
</p>
<hr>

<h2><a name="Situation"></a>[Attn: All Forces]</h2>
<p>
<br>
The USS Nimitz carrier group is stationed near <a href="marker:nimitz">these</a> small islands.
The Russian carrier Ivan Potemkin is stationed <a href="marker:potemkin">here</a>.
<br><br>
US ground forces controlls all towns and roads along the eastern coast on Malden.
The Russian forces are known to have set foot in <a href="marker:riviere">La Riviere</a> and is likely conducting ground operations in the foothills that stretches <a href="marker:red1">north</a>, along the west <a href="marker:red2">coast</a>.
<br><br>
Both Nato and the Warsaw Pact have agreed not to fly over Malden. The agreement is broken occasionally by both sides.
This armed truce has now lasted for almost one week. The world is holding its breath.
<br><br>
Return to <A HREF="#main">notes</A>
</p>
<hr>

<h2><a name="safe"></a>[Attn: Alpha and Charlie Black]</h2>
<p>
<br>
<a href="marker:outpost">Hill Ed12</a> is our outer defence line.
It monitors the <a href="marker:ocean">ocean</a> and the <a href="marker:foothills">road</a> to the southern foothills.
Today it will be strengthened from four to sixteen men.
<br><br>
<a href="marker:start">Alpha Black</a> will travel by <a href="marker:truck">truck</a> along a safe <a href="marker:passage">passage</a> at the <a href="marker:eastern">eastern</a> shoreline.
<br><br>
Alpha Black relieves Bravo Black, a four man team who has been guarding <a href="marker:outpost">Hill Ed12</a> for 72 hours.
<br><br>
<a href="marker:start">Charlie Black</a> must arrange a transport  to <a href="marker:outpost">Hill Ed12</a> themselves.
<br><br>
For reasons of security, both Alpha's and Charlie's mission plans are locked up in <a href="marker:safe">this</a> safe.
The commanding officer is personally responsible for the code required to open the safe. It should be passed on from hand to hand, from Bravo commander to Alpha commander, at the changing of the guards.
<br><br>
Return to <A HREF="#main">notes</A>
</p>
<hr>

<h2><a name="friendly"></a>[Attn: All Forces]</h2>
<p>
<br>
<br><br>
Alpha Black
<br>Unit size: 1 5t Truck, 12 men.
<br>Location: <a href="marker:outpost">Ed12</a>.
<br>Notes: Guard unit (playable).
<br><br>
Bravo Black
<br>Unit size: 1 M113 APC, 1 Jeep, 4 men.
<br>Location: <a href="marker:outpost">Ed12</a>.
<br>Notes: Guard unit.
<br><br>
Charlie Black
<br>Unit size: 4 men.
<br>Location: <a href="marker:outpost">Ed12</a>.
<br>Notes: Special Forces (playable).
<br><br>
Delta Black
<br>Unit size: 1 M113 Ambulance, 9 Men.
<br>Location: <a href="marker:fieldHospital">Fi17</a>.
<br>Notes: Supporting medvac unit. Use radio to call for assistance.
<br><br><br>
Echo Black
<br>Unit size: 1 CH47 Helicopter, 2 men.
<br>Location: <a href="marker:trinite">Fg37</a>.
<br>Notes: Transport unit on stand by in La Trinite.
<br><br>
Foxtrot Black
<br>Unit size: 1 5t Truck, 1 Jeep, 10 men.
<br>Location: <a href="marker:port">Gd75</a>.
<br>Notes: Intel and Communications HQ in Le Port.
<br><br>
Golf Black
<br>Unit size: 4 M60 Tanks, 12 men.
<br>Location: <a href="marker:dourdan">Ff44</a>.
<br>Notes: Armored unit.
<br><br>
Alpha Red
<br>Unit size: 4 M60 Tanks, 12 men.
<br>Location: <a href="marker:dourdan">Ff44</a>.
<br>Notes: Armored unit undergoing maintenance in Dourdan due to serious engine problems and fuel leakage. Will be active after 19.00 hrs.
<br><br>
Kilo Black
<br>Unit size: 2 AH1 Cobras, 4 men.
<br>Location: <a href="marker:nimitz">Ic74</a>.
<br>Notes: To call for for gunship support to <a href="marker:outpost">Ed12</a>, radio: 0-0-3.
There is fuel for one fly by only.
<br><br>
Return to <A HREF="#main">notes</A>
</p>
<hr>

<h2><a name="hostile"></a>[Attn: All Forces]</h2>
<p>
<br>
Due to the situation at hand, detailed information is not availiable.
The Ivan Potemkin carrier groups consists of naval, infantry, and air units.
Aproximate size is one battalion, but it is highly unlikely that more than three or four companies are deployed on Malden at the moment.
It is likely that armored support is nearby.
<br><br>
The following russian forces have been spotted in small numbers:
<br>- Infantry units travelling i Ural trucks or UAZ's.
<br>- Infantry units guarding BMP's and T72's.
<br>- Mi17 troop ships.
<br>- Several three man spetznas units are known to operate on the island.
<br><br>
Return to <A HREF="#main">notes</A>
</p>
<hr>

<h2><a name="mines"></a>[Attn: Alpha black]</h2>
<p>
<br>
Russian engineers have placed at least 25-30 AT mines at a strategic <a href="marker:mineField">spot</a>.
It must be removed to allow passage for our M60 tanks.
<br><br>
Send your engineers to the crossroads. They are the only ones skilled to disarm AT mines.
The munitions will not react to wheeled vehicles or infantry units.
<br><br>
The minefield is likely to be unguarded, but russian modus operandi suggests that an engineer will pass the minefield occasionally.
Leave one man to guard the crossroads until you are relieved.
<br><br>
Deactivate as many mines and you can find. If light conditions are poor (i.e after 19.00) you can leave job for the team who's on duty tomorrow morning.
</p>
<hr>

<h2><a name="1900"></a>[Attn: Alpha and Charlie Black]</h2>
<p>
<br>
<h6>
Gentlemen,<br>
Make sure that you arrive to <a href="marker:outpost">Ed12</a> before 18.00 hrs.
Echo Black will fly in with further instructions at that time. The orders are written down and will be handed over to you on location.
If you should miss your appointment with Echo Black,
or if any thing should happen to the helicopter, you must go to <a href="marker:trinite">Fg37</a> to recieve the instructions.
A copy is kept there, in Echo Black's HQ.
<br><br>
Before that Alpha is expected to:
<br>1. Set up a perimiter defence and stay alert.
<br>2. Patrol the surrounding area at regular intervals.
<br>3. Follow the insructions given in the secret mission plan.
<br><br>
On arrival Charlie is expected to:
<br>1. Assist Alpha.
<br>2. Follow the insructions given in the secret mission plan.
<br><br>
<br><br>
Cpt. C. Everet Coperdale
<br><br>
P.s - Remember, never leave your post unmanned.
</h6>
</p>
<hr>


<h2><a name="2000"></a>[Attn: Alpha and Charlie Black]</h2>
<p>
<br>
<h6>
Gentlemen,<br>
some good news and some bad news. Bad news first: You will be stuck at Hill Ed12 until 20.00.
Proceed with normal guard routines. Our intelsuggests the russians might be planning a full scale attack.
<br><br>
Good news: You guys have more time to acomplish your individual assignments.
<br><br>
I have also arranged emergency evacuation, as well as gunship and armor support for you.
If you need evacuation, Echo Black will arrive again and carry you to safety.
The Cobras from Kilo Black and the tanks from Golf Black/Alpha Red will come to the position of Ed12 if you call them over the radio.
They will arrive ASAP, along the shortest route from their current position.
<br><br>
RADIO CODES:
<br>[0-0-1] Evac chopper to Ed12
<br>[0-0-2] Armored support to Ed12
<br>[0-0-3] Gunships to Ed12
<br><br>
Call them only in case of emergency.
<br><br>
Cpt. C. Everet Coperdale
<br><br>
P.s - Extraction will take place at Hill Ed12 SAT 20.00. I don't have to remind you that it's important to be there exactly then, do I?
</h6>
</p>
<hr>

<h2><a name="scuds"></a>[Attn: All Units]</h2>
<p>
<br>
The russians have two mobile SCUD launchers on Malden.
They are armed with nuclear warheads, according to our intel, and will most likely be directed at our bases on Everon if this crisis develops into a hot war.
They must be destroyed.
<br><br>
A launch against Everon requires that the launchers reaches the <a href="marker:abandonedfield0">Abandoned Airfield</a> on the east shore.
We do not know the current location of the SCUD's.
</p>
<hr>

<a name="Debriefing:End1">Mission Completed</a>
<p>
Good job. Most US Forces are returning to the USS Nimitz. You might recieve a Bronze Star for this.
</p>
<hr>

<a name="Debriefing:End2">Mission Failed</a>
<p>
US casualties became unacceptable due to your poor fighting skills and badly coordinated actions.
Prepare to face an investigation, and perhaps even be court martaled for this.
</p>
<hr>

<a name="Debriefing:End3">Outstanding Performance</a>
<p>
A long evening has come to an end. You held Hill Ed12 until 20.00.
A very good job. You must have real patience.
You will be awarded with a Silver Star for this.
</p>
<hr>

</body>
</html>

« Last Edit: 13 Aug 2006, 17:48:20 by nominesine »
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: Syntax error in briefing.html
« Reply #1 on: 13 Aug 2006, 17:54:29 »
Rather than check your syntax can I give you one that I know does work:

Code: [Select]


<h2><a name="Debriefing:End1"><br>Complete Success!</a></h2>
<p><br>
You have freed the island of soldiers.<br><br>

Your family and the rest of the population must now prepare for the coming nuclear winter.  An important decision must be made immediately about the fate of any surviving soldiers.  Does the island have the resources to support them?<br><br>

Do you wish to?

</p>
<br>
<hr>


<h2><a name="Debriefing:End2"><br>Partial Success</a></h2>
<p><br>
You have freed the island of soldiers, but unfortunately you failed to rescue all of the civilians.<br><br>

Your family and the rest of the population must now prepare for the coming nuclear winter.  An important decision must be made immediately about the fate of any surviving soldiers.  Does the island have the resources to support them?<br><br>
Do you wish to?
</p>
<br>
<hr>

<h2><a name="Debriefing:End3"><br>Partial Success</a></h2>
<p><br>
You have succeeded in killing all the soldiers and rescuing the civilian groups, but unfortunately you killed one of Stamenov's hostages.<br>
<br>
Your family and the rest of the population must now prepare for the coming nuclear winter.  An important decision must be made immediately about the fate of any surviving soldiers.  Does the island have the resources to support them?<br><br>

Do you wish to?
</p>
<br>
<hr>

<h2><a name="Debriefing:End4"><br>Partial Success</a></h2>
<p><br>
You have succeeded in killing all the soldiers, but unfortunately you failed to rescue all the civilians and you killed one of Stamenov's hostages.<br>
<br>
Your family and the rest of the population must now prepare for the coming nuclear winter.  An important decision must be made immediately about the fate of any surviving soldiers.  Does the island have the resources to support them?<br><br>

Do you wish to?
</p>
<br>
<hr>



<h2><a name="Debriefing:End6"><br>A failure</a></h2>
<p><br>
You failed to find your uncle Nikolai. <br>
<br>
Your family now have no hope of surviving the coming winter.
</p>
<br>
<hr>


I presume you remembered to end the mission with the appropriate trigger type (End1, end2 etc.
« Last Edit: 13 Aug 2006, 18:16:52 by THobson »

Offline rado1265

  • Members
  • *
Re: Syntax error in briefing.html
« Reply #2 on: 13 Aug 2006, 18:07:52 »
You're missing (as is also shown THobson's sample) a font type, ( <h2> ).

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: Syntax error in briefing.html
« Reply #3 on: 13 Aug 2006, 18:16:36 »
Also missing a few <br> s
I am not sure why either of these would cause the problem but briefings are close to black magic.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Syntax error in briefing.html
« Reply #4 on: 13 Aug 2006, 18:20:03 »
OK, will try the h2's and the br's, but I was pretty convinced something might be wron in the paragraph directly above the endings. Thank's for the help so far. Will try now.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline rado1265

  • Members
  • *
Re: Syntax error in briefing.html
« Reply #5 on: 13 Aug 2006, 18:29:37 »
I'm pretty sure it's a font; if there's no font for the text then ... <br> just 'brakes' into new line.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Syntax error in briefing.html
« Reply #6 on: 13 Aug 2006, 18:38:15 »
I'm also quite sure it's the font. The line breaks usually dont mess up a briefing. I added both the font and the line break however, and now it's working like a charm. Thank you Thobson and thank you Karantan. Problem solved (too bad I added both at the same time, because I don't know if one of them could have been left out).
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: Syntax error in briefing.html
« Reply #7 on: 13 Aug 2006, 19:23:07 »
So we can 'Solve' this one then?

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Syntax error in briefing.html
« Reply #8 on: 13 Aug 2006, 19:53:42 »
Yes we can. I was jus waiting to see if any of you guru's had something interesting to say. No, seriously, I forgot.

EDIT: unlocking temporarily to make a clarification: the <br>'s aren't needed, but they make the briefing look alittle better. The <h2>'s are a must have.
« Last Edit: 14 Aug 2006, 17:35:48 by nominesine »
OFPEC | Intel Depot
RETARDED Ooops... Retired!