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
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Sat Nov 10, 2007 12:17 pm   

[2.11] Script Debugger seeing same line twice
 
Connecting to Elysium RPG (elysium-rpg:7777)
New, empty session.

Turn on the script debugger and typed 'who'

Noticed that a particular line is showing twice, the one with 'Current Players on Saturday...'

Code:
       | ---
0.0011 |  Elysium |1000 1000 >look
0.0070 |  Elysium >look<CR><LF>
0.1254 |  Elysium |It is dark.
0.2975 |  Elysium |1000 1000 >
1.2043 | ---
0.0028 |  Elysium |  [1] Elysium Comline : start : who
0.0009 |  Elysium |1000 1000 >who
0.0058 |  Elysium >who<CR><LF>
0.0010 |  Elysium |  [1] Elysium Comline : stopped
0.2759 |  Elysium |
0.0010 |  Elysium |-=-=-=-=-=-=-=-=-{* Current Players on Saturday at 07:19 *}-=-=-
0.3026 |  Elysium |-=-=-=-=-=-=-=-=-{* Current Players on Saturday at 07:19 *}-=-=-=-=-=-=-=-
0.0011 |  Elysium |
0.0007 |  Elysium |Carse MacMordain, FarHammer                                 
0.0058 |  Elysium |Archmage Guinn, Former Somebody                                       
0.0010 |  Elysium |Virtuoso Ladygrace                                         
0.0048 |  Elysium |Morairus Everwood                                           
0.0011 |  Elysium |Myrkul Everwood                                             
0.0008 |  Elysium |High Inquisitor Nimish Dithril, Shatterer of Dreams         
0.0063 |  Elysium |Lady Sirine Winters MacMordain, Celestial Phoenix, Vicereine of Aronsol
0.0010 |  Elysium |Princess Wynne of the Knightsblade <In the BB>             
0.0008 |  Elysium |
0.0006 |  Elysium |Total of 8 players.
0.0006 |  Elysium |
0.0110 |  Elysium |1000 1000 >


Needless to say this line doesn't actually show twice in the game
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Sat Nov 10, 2007 12:19 pm   
 
Saw another two instances straight after. Something to do with line wrapping?
Code:
116.89 | Elysium |Myrkul OOC chats, "Support Elysium and don't forget to vote at http://www.topmud
0.3214 |  ElysiumL |Myrkul OOC chats, "Support Elysium and don't forget to vote at 0.3217 | http://www.topmudsites.com/vote-elysium.html "
8.9828 |  ElysiumL |The small moon hangs over you as the sun sets and the large yellow moon
0.0011 |  ElysiumL |climbs
0.2953 |  ElysiumL |climbs into the sky.


Edit:
Something else odd. Notice the 0.3217 timing on the 2nd line above - that doesn't show in the script debugger window
What I see is
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Zugg
MASTER


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

PostPosted: Sat Nov 10, 2007 6:34 pm   
 
As I mentioned in another thread, it's because the routine that shows the mud output in the debugger is called by the routine that processed triggers. So, it gets called when a newline is received (for Trigger on Newline triggers), but it also gets called at the end of a MUD prompt, or at the end of a network packet from the MUD for Trigger on Prompt triggers.

So, what you are seeing is the Trigger on Prompt call at the end of a network packet. That's generating the partial line that you see.

Oh, and regarding the time...looks like the routine that does the copy/paste and the logging adds a timestamp for the wrapped lines that it isn't supposed to. The debugger window properly doesn't display the timestamp for wrapped lines. I'll add that to the bug list.
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