Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Korus99
Newbie


Joined: 08 Mar 2006
Posts: 7

PostPosted: Wed Jan 07, 2009 5:42 pm   

[3.03a] Problem with Word Wrap and HTML
 
The MUD I play on sends special html commands so you can click on them to issue a command to the MUD.

For example the 'exits' command lists the current exits in a room (MUD output):
You may leave through <a xch_cmd='go east'>the poplar door</a>(east), <a xch_cmd='go northeast'>the mahogany door</a>(northeast), <a xch_cmd='go northwest'>the passage archway</a>(northwest) and <a xch_cmd='go west'>the thin sycamore door</a>(west).

However, depending on the size of my window, word wrapping causes it to do odd things (MUD output):
You may leave through <a xch_cmd='go east'>the poplar door</a>(east), <a xch_cmd='go northeast'>the mahogany         (northeast), <a xch_cmd='go northwest'>the passage archway</a>(northwest) and <a xch_cmd='go west'>the thin sycamore door</a>(west).

The difference between those two lines is that after 'mahogany' in the second one 'door </a>' is missing. I can get different words to disappear based on the width of my window. The issue is probably not with the MUD, as zMud displays the lines fine (I'm converting over from zMud).

The MUD also has an in game item (a folder) that lets you store 'scrolls', the in game version of email. If you read the folder, it gives a listing of hypertext links to the topics in the folder (MUD output without word wrap):
- <a xch_cmd='read my folder "(amanda) ruby gown"'>(amanda) ruby gown</a>
- <a xch_cmd='read my folder "(amanda) testimony against her"'>(amanda) testimony against her</a>


This is what is displayed with word wrap on (of course where it truncates, depends on window size):
- <a xch_cmd='read my folder "(amanda) ruby gown"'>(amanda) ruby gown</a>
- <a xch_cmd='read my folder "(amanda) testimony against her"'>(amanda) testimony


These problems only occur when there is embedded html in the line. On my end I use a trigger to convert them into actual clickable links, but as the lines are truncated, or parts of them missing, they don't render correctly if they trigger at all. The only way I could get them to display correctly 100% of the time was to turn off word wrap in cMud, which isn't very feasible due to the number of long lines coming from the mud.

On a plus note, they also have @commands in the MUD (commands proceeded by @), and they have some embedded in the hyperlinks. zMud didn't render these correctly, but cMud has no problem with them (as long as they are word wrapped correctly).
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Jan 07, 2009 5:59 pm   
 
Since CMUD has built-in support for Pueblo emulation (which is what your MUD tags are using), why aren't you just using this feature in CMUD to have it make the links itself? Just turn on MXP and Pueblo emulation in the MXP preferences and CMUD should parse all of this and handle it correctly.

If you still want to handle it yourself for some reason, then you are going to need to specifically turn off both MXP and Pueblo emulation in your preferences. Then the internal MXP/Pueblo parser won't interfere with what you are trying to do.
Reply with quote
Korus99
Newbie


Joined: 08 Mar 2006
Posts: 7

PostPosted: Wed Jan 07, 2009 8:46 pm   
 
The MUD I'm doing this on is not Pueblo enabled. They have their own web client(s) that handles the html. Connecting via a telnet client is unsupported, but not disallowed. In fact, several of their GMs use zMud for it's superior scripting capability. Without their client, it is essentially a telnet session.

I have Pueblo enabled (I believe it is by default?), but I believe <A> is a secure tag so the pueblo engine won't touch it since this is not a Pueblo MUD? If there is a way to change that behavior, I am unaware, obviously Smile I seem to remember from my research several years ago (when I made the scripts for zMud, and am now redoing them for cMud packaging), that there was not a way to change this.

I would love to give the Pueblo route a try if possible, but it still seems odd to me that cMud is truncating the MUD output before the triggers. All my output above is with the trigger disabled.

Trying what you suggested though, to turn off mxp and pueblo.
Reply with quote
Korus99
Newbie


Joined: 08 Mar 2006
Posts: 7

PostPosted: Wed Jan 07, 2009 9:11 pm   
 
With both Pueblo and MXP emulation turned off, it was still displaying as indicated above. Missing words and truncating lines. With MXP turn off, it stopped interpreting the FONT tags (as it should, I believe). As I pointed out earlier, this works fine in zMud, and I can see that I have Pueblo and MXP emulation turned on in my zMud client.

cMud is still a superior product over zMud though. I wouldn't be going to all this trouble of translating my old scripts if it wasn't for that :) I'm converting them, because they didn't work quite right after the autoconversion, but that might be because I was relying on some 'bugs' for things to work right. I thought I would re-do it and take advantage of the package system as well as the new zscript items like #switch. I'm about 90% of the way done with the conversion (60% if you include feature creep Wink), and only a few things aren't working like they used to. Most everything else is working 100% better! Smile.

Just in case you're wondering, the MUD in question is one of the Skotos games. www.skotos.net

I should also point out that this is not new to 3.03a and was in 2.37 too
Reply with quote
Korus99
Newbie


Joined: 08 Mar 2006
Posts: 7

PostPosted: Mon Jan 12, 2009 8:49 pm   More info for bug
 
This still feels like a bug. In the debugger listings below, I had triggers disabled, MXP and Pueblo enabled, so all that is showing is the raw stuff coming from the MUD and how cMud is displaying it.

The first listing is set at a window size of about 800 pixels wide:
Code:
       | ---
0.0010 | c    Chorus |[2] Chorus Comline : start :
0.0033 | a    Chorus |> read my folder
0.0009 | h    Chorus |> <ESC>[2Sread my folder<ESC>[0m
0.0080 | i    Chorus >read my folder<CR><LF>
0.0043 | d    Chorus |[2] Chorus Comline : stopped
0.1445 | i    Chorus <The following topics are available -- to read a topic, type: <font color=#FF0000>read Chorus' frost folder "[topic]"</font><CR><LF>
0.0001 | - <a xch_cmd='read my folder "1. trifold introduction"'>1. trifold introduction</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "2. trifold circle badge and insignia"'>2. trifold circle badge and insignia</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "3. membership - devotee"'>3. membership - devotee</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "4. membership - advocate"'>4. membership - advocate</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "5. membership - triumvir"'>5. membership - triumvir</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "6. voting procedures"'>6. voting procedures</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "7. voting procedure - promotion"'>7. voting procedure - promotion</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "8. voting procedure - demotion/replacement"'>8. voting procedure - demotion/replacement</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "9. voting procedure - charter alterations."'>9. voting procedure - charter alterations.</a><CR><LF>
0.0005 | - <a xch_cmd='read my folder "final guidelines of the trifold circle"'>final guidelines of the trifold circle</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "functions of the society"'>functions of the society</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "functions of the society 2) educational events"'>functions of the society 2) educational events</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "functions of the society 3) event submission guidelines"'>functions of the society 3) event submission guidelines</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "functions of the society 4) earning honor badges"'>functions of the society 4) earning honor badges</a><CR><LF>
0.0157 | a    Chorus |The following topics are available -- to read a topic, type: read Chorus' frost folder "[topic]"
0.0075 | h    Chorus |The following topics are available -- to read a topic, type: <ESC>[0Sread Chorus' frost folder <ESC>[0m<ESC>[0S"[topic]"<ESC>[0m
0.0127 | a    Chorus |- <a xch_cmd='read my folder "1. trifold introduction"'>1. trifold
0.0084 | h    Chorus |- <a xch_cmd='read my folder "1. trifold introduction"'><ESC>[0S1. trifold <ESC>[0m
0.0114 | i    Chorus <>
0.0102 | a    Chorus |- <a xch_cmd='read my folder "2. trifold circle badge and insignia"'>2.
0.0094 | h    Chorus |- <a xch_cmd='read my folder "2. trifold circle badge and insignia"'><ESC>[0S2. <ESC>[0m
0.0106 | a    Chorus |- <a xch_cmd='read my folder "3. membership - devotee"'>3. membership -
0.0090 | h    Chorus |- <a xch_cmd='read my folder "3. membership - devotee"'><ESC>[0S3. membership - <ESC>[0m
0.0077 | a    Chorus |- <a xch_cmd='read my folder "4. membership - advocate"'>4. membership -
0.0053 | h    Chorus |- <a xch_cmd='read my folder "4. membership - advocate"'><ESC>[0S4. membership - <ESC>[0m
0.0101 | a    Chorus |- <a xch_cmd='read my folder "5. membership - triumvir"'>5. membership -
0.0054 | h    Chorus |- <a xch_cmd='read my folder "5. membership - triumvir"'><ESC>[0S5. membership - <ESC>[0m
0.0272 | a    Chorus |- <a xch_cmd='read my folder "6. voting procedures"'>6. voting procedures</a>
0.0113 | h    Chorus |- <a xch_cmd='read my folder "6. voting procedures"'><ESC>[0S6. voting procedures</a><ESC>[0m
0.0080 | a    Chorus |- <a xch_cmd='read my folder "7. voting procedure - promotion"'>7. voting
0.0065 | h    Chorus |- <a xch_cmd='read my folder "7. voting procedure - promotion"'><ESC>[0S7. voting <ESC>[0m
0.0085 | a    Chorus |- <a xch_cmd='read my folder "8. voting procedure - demotion/replacement"'>8.
0.0054 | h    Chorus |- <a xch_cmd='read my folder "8. voting procedure - demotion/replacement"'><ESC>[0S8. <ESC>[0m
0.0097 | a    Chorus |- <a xch_cmd='read my folder "9. voting procedure - charter alterations."'>9.
0.0054 | h    Chorus |- <a xch_cmd='read my folder "9. voting procedure - charter alterations."'><ESC>[0S9. <ESC>[0m
0.0082 | a    Chorus |- <a xch_cmd='read my folder "final guidelines of the trifold circle"'>final
0.0077 | h    Chorus |- <a xch_cmd='read my folder "final guidelines of the trifold circle"'><ESC>[0Sfinal <ESC>[0m
0.0075 | a    Chorus |- <a xch_cmd='read my folder "functions of the society"'>functions of the
0.0053 | h    Chorus |- <a xch_cmd='read my folder "functions of the society"'><ESC>[0Sfunctions of the <ESC>[0m
0.0303 | a    Chorus |- <a xch_cmd='read my folder "functions of the society 2) educational events"'>functions of the society 2) educational events</a>
0.0068 | h    Chorus |- <a xch_cmd='read my folder "functions of the society 2) educational events"'><ESC>[0Sfunctions <ESC>[0Sof <ESC>[0Sthe <ESC>[0Ssociety <ESC>[0S2) <ESC>[0Seducational <ESC>[0Sevents</a><ESC>[0m
0.0143 | a    Chorus |- <a xch_cmd='read my folder "functions of the society 3) event submission guidelines"'>functions of the society 3) event submission
0.0112 | h    Chorus |- <a xch_cmd='read my folder "functions of the society 3) event submission guidelines"'><ESC>[0Sfunctions <ESC>[0Sof <ESC>[0Sthe <ESC>[0Ssociety <ESC>[0S3) <ESC>[0Sevent <ESC>[0Ssubmission <ESC>[0m
0.0110 | a    Chorus |- <a xch_cmd='read my folder "functions of the society 4) earning honor badges"'>functions of the society 4) earning honor badges</a>
0.0082 | h    Chorus |- <a xch_cmd='read my folder "functions of the society 4) earning honor badges"'><ESC>[0Sfunctions <ESC>[0Sof <ESC>[0Sthe <ESC>[0Ssociety <ESC>[0S4) <ESC>[0Searning <ESC>[0Shonor <ESC>[0Sbadges</a><ESC>[0m
0.0096 | a    Chorus ]>


This second listing the window is set to full screen (about 1440, though I do have some side windows that reduce the main window to about 1340):
Code:
14.121 | ---
0.0038 | c    Chorus |[2] Chorus Comline : start :
0.0082 | a    Chorus |> read my folder
0.0050 | h    Chorus |> <ESC>[2Sread my folder<ESC>[0m
0.0098 | i    Chorus >read my folder<CR><LF>
0.0046 | d    Chorus |[2] Chorus Comline : stopped
0.3134 | i    Chorus <The following topics are available -- to read a topic, type: <font color=#FF0000>read Chorus' frost folder "[topic]"</font><CR><LF>
0.0009 | - <a xch_cmd='read my folder "1. trifold introduction"'>1. trifold introduction</a><CR><LF>
0.0005 | - <a xch_cmd='read my folder "2. trifold circle badge and insignia"'>2. trifold circle badge and insignia</a><CR><LF>
0.0007 | - <a xch_cmd='read my folder "3. membership - devotee"'>3. membership - devotee</a><CR><LF>
0.0013 | - <a xch_cmd='read my folder "4. membership - advocate"'>4. membership - advocate</a><CR><LF>
0.0005 | - <a xch_cmd='read my folder "5. membership - triumvir"'>5. membership - triumvir</a><CR><LF>
0.0005 | - <a xch_cmd='read my folder "6. voting procedures"'>6. voting procedures</a><CR><LF>
0.0005 | - <a xch_cmd='read my folder "7. voting procedure - promotion"'>7. voting procedure - promotion</a><CR><LF>
0.0007 | - <a xch_cmd='read my folder "8. voting procedure - demotion/replacement"'>8. voting procedure - demotion/replacement</a><CR><LF>
0.0005 | - <a xch_cmd='read my folder "9. voting procedure - charter alterations."'>9. voting procedure - charter alterations.</a><CR><LF>
0.0004 | - <a xch_cmd='read my folder "final guidelines of the trifold circle"'>final guidelines of the trifold circle</a><CR><LF>
0.0015 | - <a xch_cmd='read my folder "functions of the society"'>functions of the society</a><CR><LF>
0.0006 | - <a xch_cmd='read my folder "functions of the society 2) educational events"'>functions of the society 2) educational events</a><CR><LF>
0.0004 | - <a xch_cmd='read my folder "functions of the society 3) event submission guidelines"'>functions of the society 3) event submission guidelines</a><CR><LF>
0.0005 | - <a xch_cmd='read my folder "functions of the society 4) earning honor badges"'>functions of the society 4) earning honor badges</a><CR><LF>
0.0244 | i    Chorus <>
0.0047 | a    Chorus |The following topics are available -- to read a topic, type: read Chorus' frost folder "[topic]"
0.0055 | h    Chorus |The following topics are available -- to read a topic, type: <ESC>[0Sread Chorus' frost folder "[topic]"<ESC>[0m
0.0051 | a    Chorus |- <a xch_cmd='read my folder "1. trifold introduction"'>1. trifold introduction</a>
0.0057 | h    Chorus |- <a xch_cmd='read my folder "1. trifold introduction"'><ESC>[0S1. trifold introduction</a><ESC>[0m
0.0057 | a    Chorus |- <a xch_cmd='read my folder "2. trifold circle badge and insignia"'>2. trifold circle badge and insignia</a>
0.0064 | h    Chorus |- <a xch_cmd='read my folder "2. trifold circle badge and insignia"'><ESC>[0S2. trifold circle badge and insignia</a><ESC>[0m
0.0099 | a    Chorus |- <a xch_cmd='read my folder "3. membership - devotee"'>3. membership - devotee</a>
0.0062 | h    Chorus |- <a xch_cmd='read my folder "3. membership - devotee"'><ESC>[0S3. membership - devotee</a><ESC>[0m
0.0071 | a    Chorus |- <a xch_cmd='read my folder "4. membership - advocate"'>4. membership - advocate</a>
0.0072 | h    Chorus |- <a xch_cmd='read my folder "4. membership - advocate"'><ESC>[0S4. membership - advocate</a><ESC>[0m
0.0073 | a    Chorus |- <a xch_cmd='read my folder "5. membership - triumvir"'>5. membership - triumvir</a>
0.0057 | h    Chorus |- <a xch_cmd='read my folder "5. membership - triumvir"'><ESC>[0S5. membership - triumvir</a><ESC>[0m
0.0159 | a    Chorus |- <a xch_cmd='read my folder "6. voting procedures"'>6. voting procedures</a>
0.0063 | h    Chorus |- <a xch_cmd='read my folder "6. voting procedures"'><ESC>[0S6. voting procedures</a><ESC>[0m
0.0119 | a    Chorus |- <a xch_cmd='read my folder "7. voting procedure - promotion"'>7. voting procedure - promotion</a>
0.0059 | h    Chorus |- <a xch_cmd='read my folder "7. voting procedure - promotion"'><ESC>[0S7. voting procedure - promotion</a><ESC>[0m
0.0093 | a    Chorus |- <a xch_cmd='read my folder "8. voting procedure - demotion/replacement"'>8. voting procedure -
0.0064 | h    Chorus |- <a xch_cmd='read my folder "8. voting procedure - demotion/replacement"'><ESC>[0S8. voting procedure - <ESC>[0m
0.0082 | a    Chorus |- <a xch_cmd='read my folder "9. voting procedure - charter alterations."'>9. voting procedure - charter
0.0065 | h    Chorus |- <a xch_cmd='read my folder "9. voting procedure - charter alterations."'><ESC>[0S9. voting procedure - charter <ESC>[0m
0.0078 | a    Chorus |- <a xch_cmd='read my folder "final guidelines of the trifold circle"'>final guidelines of the trifold circle</a>
0.0078 | h    Chorus |- <a xch_cmd='read my folder "final guidelines of the trifold circle"'><ESC>[0Sfinal guidelines of the trifold circle</a><ESC>[0m
0.0075 | a    Chorus |- <a xch_cmd='read my folder "functions of the society"'>functions of the society</a>
0.0057 | h    Chorus |- <a xch_cmd='read my folder "functions of the society"'><ESC>[0Sfunctions of the society</a><ESC>[0m
0.0349 | a    Chorus |- <a xch_cmd='read my folder "functions of the society 2) educational events"'>functions of the society 2) educational
0.0068 | h    Chorus |- <a xch_cmd='read my folder "functions of the society 2) educational events"'><ESC>[0Sfunctions of the society 2) educational <ESC>[0m
0.0098 | a    Chorus |- <a xch_cmd='read my folder "functions of the society 3) event submission guidelines"'>functions of the society 3)
0.0050 | h    Chorus |- <a xch_cmd='read my folder "functions of the society 3) event submission guidelines"'><ESC>[0Sfunctions of the society 3) <ESC>[0m
0.0066 | a    Chorus |- <a xch_cmd='read my folder "functions of the society 4) earning honor badges"'>functions of the society 4) earning
0.0056 | h    Chorus |- <a xch_cmd='read my folder "functions of the society 4) earning honor badges"'><ESC>[0Sfunctions of the society 4) earning <ESC>[0m
0.0063 | a    Chorus ]> nor badges
0.0049 | h    Chorus ]> <ESC>[0Snor <ESC>[0Sbadges</a><ESC>[0m
0.0002 |


And finally this last listing is with word wrap turned off. Window size was back to about 800 pixels, but it would display the same at any size.
Code:
12.930 | ---
0.0022 | c    Chorus |[2] Chorus Comline : start :
0.0029 | a    Chorus |> read my folder
0.0016 | h    Chorus |> <ESC>[2Sread my folder<ESC>[0m
0.0057 | i    Chorus >read my folder<CR><LF>
0.0015 | d    Chorus |[2] Chorus Comline : stopped
0.2012 | i    Chorus <The following topics are available -- to read a topic, type: <font color=#FF0000>read Chorus' frost folder "[topic]"</font><CR><LF>
0.0002 | - <a xch_cmd='read my folder "1. trifold introduction"'>1. trifold introduction</a><CR><LF>
0.0002 | - <a xch_cmd='read my folder "2. trifold circle badge and insignia"'>2. trifold circle badge and insignia</a><CR><LF>
0.0002 | - <a xch_cmd='read my folder "3. membership - devotee"'>3. membership - devotee</a><CR><LF>
0.0002 | - <a xch_cmd='read my folder "4. membership - advocate"'>4. membership - advocate</a><CR><LF>
0.0003 | - <a xch_cmd='read my folder "5. membership - triumvir"'>5. membership - triumvir</a><CR><LF>
0.0003 | - <a xch_cmd='read my folder "6. voting procedures"'>6. voting procedures</a><CR><LF>
0.0003 | - <a xch_cmd='read my folder "7. voting procedure - promotion"'>7. voting procedure - promotion</a><CR><LF>
0.0003 | - <a xch_cmd='read my folder "8. voting procedure - demotion/replacement"'>8. voting procedure - demotion/replacement</a><CR><LF>
0.0002 | - <a xch_cmd='read my folder "9. voting procedure - charter alterations."'>9. voting procedure - charter alterations.</a><CR><LF>
0.0001 | - <a xch_cmd='read my folder "final guidelines of the trifold circle"'>final guidelines of the trifold circle</a><CR><LF>
0.0006 | - <a xch_cmd='read my folder "functions of the society"'>functions of the society</a><CR><LF>
0.0003 | - <a xch_cmd='read my folder "functions of the society 2) educational events"'>functions of the society 2) educational events</a><CR><LF>
0.0002 | - <a xch_cmd='read my folder "functions of the society 3) event submission guidelines"'>functions of the society 3) event submission guidelines</a><CR><LF>
0.0002 | - <a xch_cmd='read my folder "functions of the society 4) earning honor badges"'>functions of the society 4) earning honor badges</a><CR><LF>
0.0226 | a    Chorus |The following topics are available -- to read a topic, type: read Chorus' frost folder "[topic]"
0.0108 | h    Chorus |The following topics are available -- to read a topic, type: <ESC>[0Sread Chorus' frost folder "[topic]"<ESC>[0m
0.0136 | i    Chorus <>
0.0118 | a    Chorus |- <a xch_cmd='read my folder "1. trifold introduction"'>1. trifold introduction</a>
0.0136 | h    Chorus |- <a xch_cmd='read my folder "1. trifold introduction"'><ESC>[0S1. trifold introduction</a><ESC>[0m
0.0099 | a    Chorus |- <a xch_cmd='read my folder "2. trifold circle badge and insignia"'>2. trifold circle badge and insignia</a>
0.0056 | h    Chorus |- <a xch_cmd='read my folder "2. trifold circle badge and insignia"'><ESC>[0S2. trifold circle badge and insignia</a><ESC>[0m
0.0052 | a    Chorus |- <a xch_cmd='read my folder "3. membership - devotee"'>3. membership - devotee</a>
0.0046 | h    Chorus |- <a xch_cmd='read my folder "3. membership - devotee"'><ESC>[0S3. membership - devotee</a><ESC>[0m
0.0056 | a    Chorus |- <a xch_cmd='read my folder "4. membership - advocate"'>4. membership - advocate</a>
0.0047 | h    Chorus |- <a xch_cmd='read my folder "4. membership - advocate"'><ESC>[0S4. membership - advocate</a><ESC>[0m
0.0049 | a    Chorus |- <a xch_cmd='read my folder "5. membership - triumvir"'>5. membership - triumvir</a>
0.0047 | h    Chorus |- <a xch_cmd='read my folder "5. membership - triumvir"'><ESC>[0S5. membership - triumvir</a><ESC>[0m
0.0148 | a    Chorus |- <a xch_cmd='read my folder "6. voting procedures"'>6. voting procedures</a>
0.0065 | h    Chorus |- <a xch_cmd='read my folder "6. voting procedures"'><ESC>[0S6. voting procedures</a><ESC>[0m
0.0044 | a    Chorus |- <a xch_cmd='read my folder "7. voting procedure - promotion"'>7. voting procedure - promotion</a>
0.0042 | h    Chorus |- <a xch_cmd='read my folder "7. voting procedure - promotion"'><ESC>[0S7. voting procedure - promotion</a><ESC>[0m
0.0076 | a    Chorus |- <a xch_cmd='read my folder "8. voting procedure - demotion/replacement"'>8. voting procedure - demotion/replacement</a>
0.0047 | h    Chorus |- <a xch_cmd='read my folder "8. voting procedure - demotion/replacement"'><ESC>[0S8. voting procedure - demotion/replacement</a><ESC>[0m
0.0064 | a    Chorus |- <a xch_cmd='read my folder "9. voting procedure - charter alterations."'>9. voting procedure - charter alterations.</a>
0.0045 | h    Chorus |- <a xch_cmd='read my folder "9. voting procedure - charter alterations."'><ESC>[0S9. voting procedure - charter alterations.</a><ESC>[0m
0.0063 | a    Chorus |- <a xch_cmd='read my folder "final guidelines of the trifold circle"'>final guidelines of the trifold circle</a>
0.0048 | h    Chorus |- <a xch_cmd='read my folder "final guidelines of the trifold circle"'><ESC>[0Sfinal guidelines of the trifold circle</a><ESC>[0m
0.0050 | a    Chorus |- <a xch_cmd='read my folder "functions of the society"'>functions of the society</a>
0.0053 | h    Chorus |- <a xch_cmd='read my folder "functions of the society"'><ESC>[0Sfunctions of the society</a><ESC>[0m
0.0125 | a    Chorus |- <a xch_cmd='read my folder "functions of the society 2) educational events"'>functions of the society 2) educational events</a>
0.0046 | h    Chorus |- <a xch_cmd='read my folder "functions of the society 2) educational events"'><ESC>[0Sfunctions of the society 2) educational events</a><ESC>[0m
0.0060 | a    Chorus |- <a xch_cmd='read my folder "functions of the society 3) event submission guidelines"'>functions of the society 3) event submission guidelines</a>
0.0168 | h    Chorus |- <a xch_cmd='read my folder "functions of the society 3) event submission guidelines"'><ESC>[0Sfunctions of the society 3) event submission guidelines</a><ESC>[0m
0.0138 | a    Chorus |- <a xch_cmd='read my folder "functions of the society 4) earning honor badges"'>functions of the society 4) earning honor badges</a>
0.0049 | h    Chorus |- <a xch_cmd='read my folder "functions of the society 4) earning honor badges"'><ESC>[0Sfunctions of the society 4) earning honor badges</a><ESC>[0m
0.0067 | a    Chorus ]>
0.0000 |


In the first listing, the line with "functions of the society" is truncated in output, yet the three longer lines after, are not. (800 window size)

In the second listing, the line with "function of the society" is not truncated, but the three longer lines were (1440 window size)

And, in the third listing, none of the lines were truncated.

I also removed the windows along the side of the cMud window to see if they were causing it somehow, and they were not. Truncation was still occurring.

Is there anything else I can do to help track down this bug?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jan 12, 2009 10:25 pm   
 
If you issue the #PUEBLO command at the beginning of your session (like in the OnConnect event), then that will put CMUD in Pueblo mode even if the MUD doesn't send the Pueblo detection code. The reason I mentioned it is because the xch_cmd format in the A tag is from Pueblo, so they obviously started with that and modified it. When CMUD is in Pueblo mode it will convert those tags into proper links with no more work on your part.

But back to the word-wrap bug. I'm trying to figure out how to reproduce this. For example, I did:

#SHOW "You may leave through <a xch_cmd='go east'>the poplar door</a>(east), <a xch_cmd='go northeast'>the mahogany door</a>(northeast), <a xch_cmd='go northwest'>the passage archway</a>(northwest) and <a xch_cmd='go west'>the thin sycamore door</a>(west). "

to display a long text with html links in it, and I couldn't get it to mess up no matter what my screen size was.

Is there a quick and easy way to log into the MUD myself and see this problem? Is it something a new character can do without going through a lot of work? If it's something I can see with a quick new character than I could look into it a bit more. Unless you can come up with another #SHOW command that shows the problem.

Also, I'm assuming you are testing this without any of your own triggers turned on. In other words, does it still happen if you create a new session for your MUD? Or is it related to your scripts/triggers too?
Reply with quote
Korus99
Newbie


Joined: 08 Mar 2006
Posts: 7

PostPosted: Tue Jan 13, 2009 12:48 am   
 
I was testing it without any of my own triggers turned on, except one needed to log in.

But.. Yay! The #PUEBLO thing worked. I remember doing that now in zMud and it didn't work for some reason.

There's still a bug, but it's probably an "I don't care" one. I've only experienced it when there was html on the line, and that's a non-issue if you enable #PUEBLO properly.

If you still wanted to test it, I could make you a character, get it set up with an in-game folder, and then you could log in and all you would have to do is type 'read folder' to see it in action. I'd have to send you a package to authenticate to the server, though. It uses Lua to generate an MD5 hash.

Let me know? I'm satisfied now that it's working properly, thanks!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net