Subject: "HOWTO post your formatted log on these forums properly." Previous topic | Next topic
Printer-friendly copy Email this topic to a friend CF Website
Top General Discussions Logs Topic #166
Show all folders

DwoggurdThu 03-Apr-08 05:45 PM
Member since 20th Jan 2004
668 posts
Click to send email to this author Click to send private message to this author Click to add this author to your buddy list
#166, "HOWTO post your formatted log on these forums properly."


          

Let's assume that you want to post your favorite log with nice colors and good formatting.
The direct copy/paste approach won't work.
Standard HTML tags have "<" and ">" angle brackets around them but the forum engine accepts "[" and "]" square brackets as HTML tags.
Also, extra spaces will be removed from the log.
Why it is bad for your log?
Because an original text between square brackets in your log will be considered as an invalid HTML tag and will be removed from the log.
That means that the output of commands like "who pk" or room exit descriptions or cabal channels will be broken.

For those who aren't lazy and don't mind some additinal work I've prepared a detailed step-by-step work-around.
In this example I've used a short log that is filled with problematic symbols ( like "[" ).

1) Get your original log.
For example:
Here you see all of those problematic places: "Who pk", "[Exits: west]" in the "The Hall of Light" room description and cabal tells.



<1283 955 776 outdoor 1 AM civilized> who pk
*51 Fire A-P* (PK) [EMPIRE] Nabburak Ram the Bearer of Keset'rah, Emperor of Thera
[51 Storm War] (PK) Kaajk the Legend of the Battlefield
[51 Elf Bar] (PK) Dorthonion the Grand Master of Artistry, Disciple of the Harvest Moon
[47 H-Drw Nec] (PK) [EMPIRE] Makholvek the Spectre, Imperial Dread Lord

Players found: 4

<1179 861 811 indoor 3 AM civilized>
Someone closes its eyes for a moment and nods at someone.
Your shocking bite *** DEVASTATES *** someone!
Your defilement === OBLITERATES === someone!
Your defilement *** DEVASTATES *** someone!
Your shocking bite *** DEVASTATES *** someone!
You feel your mace come alive in your hand, a beautiful song rising with each swing.
Buzzing with charge an arc of lightning snaps from your weapon, arcing towards someone.
You thrust your hand forward as a brilliant shaft of lightning lurches toward someone.
Your lightning bolt *** DEVASTATES *** someone!
You parry someone's searing light.
Someone is covered with bleeding wounds.

<1283 864 839 indoor 4 AM civilized>
People near you:
(PK) Nabburak The Altar Room
The Watcher is covered with bleeding wounds.

<1283 864 839 indoor 4 AM civilized> fle
The Hall of Light

[Exits: west]
You flee from combat!

<1283 864 838 indoor 4 AM civilized>
[EMPIRE] Makholvek: My appologies Emperor.

<1283 864 838 indoor 4 AM civilized>
[EMPIRE] Makholvek: Dark Tidings



If you will post this log right away the result will be dissapointing and people won't read it!


<1283 955 776 outdoor 1 AM civilized> who pk
*51 Fire A-P* (PK) Nabburak Ram the Bearer of Keset'rah, Emperor of Thera
<51 Storm War> (PK) Kaajk the Legend of the Battlefield
<51 Elf Bar> (PK) Dorthonion the Grand Master of Artistry, Disciple of the Harvest Moon
<47 H-Drw Nec> (PK) Makholvek the Spectre, Imperial Dread Lord

Players found: 4

<1179 861 811 indoor 3 AM civilized>
Someone closes its eyes for a moment and nods at someone.
Your shocking bite *** DEVASTATES *** someone!
Your defilement === OBLITERATES === someone!
Your defilement *** DEVASTATES *** someone!
Your shocking bite *** DEVASTATES *** someone!
You feel your mace come alive in your hand, a beautiful song rising with each swing.
Buzzing with charge an arc of lightning snaps from your weapon, arcing towards someone.
You thrust your hand forward as a brilliant shaft of lightning lurches toward someone.
Your lightning bolt *** DEVASTATES *** someone!
You parry someone's searing light.
Someone is covered with bleeding wounds.

<1283 864 839 indoor 4 AM civilized>
People near you:
(PK) Nabburak The Altar Room
The Watcher is covered with bleeding wounds.

<1283 864 839 indoor 4 AM civilized> fle
The Hall of Light


You flee from combat!

<1283 864 838 indoor 4 AM civilized>
Makholvek: My appologies Emperor.

<1283 864 838 indoor 4 AM civilized>
Makholvek: Dark Tidings



2) Go to Dioxide's Page, and format it.
You will get a nice HTML-colored version of this log.
The formatter will also replace angle brackets around prompts with literal form (so they will not be considered as standard HTML tags)
As a format target use "Display Type" = HTML-source.
( Or use your own log formatter if you have one )
Select the whole output and copy/paste it into any editor.
Don't be scared, you will see something ugly like this:


<table width=100% border=0 bgcolor=black>
<tr>
<td>
<tt><font color=white>

<code>

&lt;1283 955 776 outdoor 1 AM civilized&gt; who pk
*51 Fire A-P* <font color="yellow"><b>(PK)</b></font> [EMPIRE] Nabburak Ram the Bearer of Keset'rah, Emperor of Thera
[51 Storm War] <font color="yellow"><b>(PK)</b></font> Kaajk the Legend of the Battlefield
[51 Elf Bar] <font color="yellow"><b>(PK)</b></font> Dorthonion the Grand Master of Artistry, Disciple of the Harvest Moon
[47 H-Drw Nec] <font color="yellow"><b>(PK)</b></font> [EMPIRE] Makholvek the Spectre, Imperial Dread Lord

Players found: 4

&lt;1179 861 811 indoor 3 AM civilized&gt;
Someone closes its eyes for a moment and nods at someone.
<b>Your shocking bite <font color="red">*** DEVASTATES ***</font> someone!</b>
<b>Your defilement <font color="red">=== OBLITERATES ===</font> someone!</b>
<b>Your defilement <font color="red">*** DEVASTATES ***</font> someone!</b>
<b>Your shocking bite <font color="red">*** DEVASTATES ***</font> someone!</b>
<font color="pink">You feel your mace come alive in your hand, a beautiful song rising with each swing.</font>
Buzzing with charge an arc of lightning snaps from your weapon, arcing towards someone.
<font color="pink">You thrust your hand forward as a brilliant shaft of lightning lurches toward someone.</font>
<b>Your lightning bolt <font color="red">*** DEVASTATES ***</font> someone!</b>
You parry someone's searing light.
<font color="darkgreen">Someone is covered with bleeding wounds.</font>

&lt;1283 864 839 indoor 4 AM civilized&gt;
<font color="pink">People near you:</font>
<font color="yellow"><b>(PK)</b></font> Nabburak The Altar Room
<font color="darkgreen">The Watcher is covered with bleeding wounds.</font>

&lt;1283 864 839 indoor 4 AM civilized&gt; fle
The Hall of Light

[Exits: west]
<font color="pink">You flee from combat!</font>

&lt;1283 864 838 indoor 4 AM civilized&gt;
<font color="lime">[EMPIRE] Makholvek: My appologies Emperor.</font>

&lt;1283 864 838 indoor 4 AM civilized&gt;
<font color="lime">[EMPIRE] Makholvek: Dark Tidings</font>

</code>

</font></tt>
</td></tr></table>



3) At this stage you have the HTLM version of your log in your favorite editor.
Now we have to convert your original square brackets in the whole text into HTML literal form, so they won't be considered as HTML tags.
Learn how to find/replace text in your editor and do this:
Replace any occurence of [ with &#91; ( Don't miss the semicolon )
Replace any occurence of ] with &#93;


<table width=100% border=0 bgcolor=black>
<tr>
<td>
<tt><font color=white>

<code>

&lt;1283 955 776 outdoor 1 AM civilized&gt; who pk
*51 Fire A-P* <font color="yellow"><b>(PK)</b></font> &#91;EMPIRE&#93; Nabburak Ram the Bearer of Keset'rah, Emperor of Thera
&#91;51 Storm War&#93; <font color="yellow"><b>(PK)</b></font> Kaajk the Legend of the Battlefield
&#91;51 Elf Bar&#93; <font color="yellow"><b>(PK)</b></font> Dorthonion the Grand Master of Artistry, Disciple of the Harvest Moon
&#91;47 H-Drw Nec&#93; <font color="yellow"><b>(PK)</b></font> &#91;EMPIRE&#93; Makholvek the Spectre, Imperial Dread Lord

Players found: 4

&lt;1179 861 811 indoor 3 AM civilized&gt;
Someone closes its eyes for a moment and nods at someone.
<b>Your shocking bite <font color="red">*** DEVASTATES ***</font> someone!</b>
<b>Your defilement <font color="red">=== OBLITERATES ===</font> someone!</b>
<b>Your defilement <font color="red">*** DEVASTATES ***</font> someone!</b>
<b>Your shocking bite <font color="red">*** DEVASTATES ***</font> someone!</b>
<font color="pink">You feel your mace come alive in your hand, a beautiful song rising with each swing.</font>
Buzzing with charge an arc of lightning snaps from your weapon, arcing towards someone.
<font color="pink">You thrust your hand forward as a brilliant shaft of lightning lurches toward someone.</font>
<b>Your lightning bolt <font color="red">*** DEVASTATES ***</font> someone!</b>
You parry someone's searing light.
<font color="darkgreen">Someone is covered with bleeding wounds.</font>

&lt;1283 864 839 indoor 4 AM civilized&gt;
<font color="pink">People near you:</font>
<font color="yellow"><b>(PK)</b></font> Nabburak The Altar Room
<font color="darkgreen">The Watcher is covered with bleeding wounds.</font>

&lt;1283 864 839 indoor 4 AM civilized&gt; fle
The Hall of Light

&#91;Exits: west&#93;
<font color="pink">You flee from combat!</font>

&lt;1283 864 838 indoor 4 AM civilized&gt;
<font color="lime">&#91;EMPIRE&#93; Makholvek: My appologies Emperor.</font>

&lt;1283 864 838 indoor 4 AM civilized&gt;
<font color="lime">&#91;EMPIRE&#93; Makholvek: Dark Tidings</font>

</code>

</font></tt>
</td></tr></table>




4) Now we have to convert standard HTLM tags into square brackets HTML tags. Otherwise the forum engine will not recongnize them.
Do this:
Replace any occurence of < with [
Replace any occurence of > with ]
Your log is ready. Copy/paste it into your post.


[table width=100% border=0 bgcolor=black]
[tr]
[td]
[tt][font color=white]

[code]

&lt;1283 955 776 outdoor 1 AM civilized&gt; who pk
*51 Fire A-P* [font color="yellow"][b](PK)[/b][/font] &#91;EMPIRE&#93; Nabburak Ram the Bearer of Keset'rah, Emperor of Thera
&#91;51 Storm War&#93; [font color="yellow"][b](PK)[/b][/font] Kaajk the Legend of the Battlefield
&#91;51 Elf Bar&#93; [font color="yellow"][b](PK)[/b][/font] Dorthonion the Grand Master of Artistry, Disciple of the Harvest Moon
&#91;47 H-Drw Nec&#93; [font color="yellow"][b](PK)[/b][/font] &#91;EMPIRE&#93; Makholvek the Spectre, Imperial Dread Lord

Players found: 4

&lt;1179 861 811 indoor 3 AM civilized&gt;
Someone closes its eyes for a moment and nods at someone.
[b]Your shocking bite [font color="red"]*** DEVASTATES ***[/font] someone![/b]
[b]Your defilement [font color="red"]=== OBLITERATES ===[/font] someone![/b]
[b]Your defilement [font color="red"]*** DEVASTATES ***[/font] someone![/b]
[b]Your shocking bite [font color="red"]*** DEVASTATES ***[/font] someone![/b]
[font color="pink"]You feel your mace come alive in your hand, a beautiful song rising with each swing.[/font]
Buzzing with charge an arc of lightning snaps from your weapon, arcing towards someone.
[font color="pink"]You thrust your hand forward as a brilliant shaft of lightning lurches toward someone.[/font]
[b]Your lightning bolt [font color="red"]*** DEVASTATES ***[/font] someone![/b]
You parry someone's searing light.
[font color="darkgreen"]Someone is covered with bleeding wounds.[/font]

&lt;1283 864 839 indoor 4 AM civilized&gt;
[font color="pink"]People near you:[/font]
[font color="yellow"][b](PK)[/b][/font] Nabburak The Altar Room
[font color="darkgreen"]The Watcher is covered with bleeding wounds.[/font]

&lt;1283 864 839 indoor 4 AM civilized&gt; fle
The Hall of Light

&#91;Exits: west&#93;
[font color="pink"]You flee from combat![/font]

&lt;1283 864 838 indoor 4 AM civilized&gt;
[font color="lime"]&#91;EMPIRE&#93; Makholvek: My appologies Emperor.[/font]

&lt;1283 864 838 indoor 4 AM civilized&gt;
[font color="lime"]&#91;EMPIRE&#93; Makholvek: Dark Tidings[/font]

[/code]

[/font][/tt]
[/td][/tr][/table]




5) Preview your message and look if everything is fine. Post your message
Now look at the result and laugh at lazy people.







<1283 955 776 outdoor 1 AM civilized> who pk
*51 Fire A-P* (PK) [EMPIRE] Nabburak Ram the Bearer of Keset'rah, Emperor of Thera
[51 Storm War] (PK) Kaajk the Legend of the Battlefield
[51 Elf Bar] (PK) Dorthonion the Grand Master of Artistry, Disciple of the Harvest Moon
[47 H-Drw Nec] (PK) [EMPIRE] Makholvek the Spectre, Imperial Dread Lord

Players found: 4

<1179 861 811 indoor 3 AM civilized>
Someone closes its eyes for a moment and nods at someone.
Your shocking bite *** DEVASTATES *** someone!
Your defilement === OBLITERATES === someone!
Your defilement *** DEVASTATES *** someone!
Your shocking bite *** DEVASTATES *** someone!
You feel your mace come alive in your hand, a beautiful song rising with each swing.
Buzzing with charge an arc of lightning snaps from your weapon, arcing towards someone.
You thrust your hand forward as a brilliant shaft of lightning lurches toward someone.
Your lightning bolt *** DEVASTATES *** someone!
You parry someone's searing light.
Someone is covered with bleeding wounds.

<1283 864 839 indoor 4 AM civilized>
People near you:
(PK) Nabburak The Altar Room
The Watcher is covered with bleeding wounds.

<1283 864 839 indoor 4 AM civilized> fle
The Hall of Light

[Exits: west]
You flee from combat!

<1283 864 838 indoor 4 AM civilized>
[EMPIRE] Makholvek: My appologies Emperor.

<1283 864 838 indoor 4 AM civilized>
[EMPIRE] Makholvek: Dark Tidings





  

Alert | IP Printer Friendly copy | Reply | Reply with quote

Anchored TopicHOWTO post your formatted log on these forums properly. [View all] , Dwoggurd, Thu 03-Apr-08 05:45 PM
Reply How to post logs if you use Dwoggurd's CMUD setup, Dwoggurd, 06-Dec-09 07:46 PM, #4
Reply (Test) Parting blow is overpowered, Dwoggurd, 22-Jun-09 07:49 AM, #2
Reply (Test 2) Parting blow is overpowered, Dwoggurd, 23-Jun-09 07:59 AM, #3
Reply Addendum: HOWTO post a plain text log, Dwoggurd, 09-Nov-06 09:32 AM, #1
Top General Discussions Logs Topic #166 Previous topic | Next topic