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 Goto page Previous  1, 2
Zugg Posted: Mon Nov 05, 2007 8:17 pm
New Script debugger window and timestamps for v2.11
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Sun Nov 11, 2007 1:23 am   
 
Zugg wrote:
Quote:
Oh, and it would be nice to be able to display both timestamp and timestamp delta sometimes.

I'll have to think about how I'd implement this. When delta time is disabled, it just uses the timestamp Format with the Delphi FormatDateTime routine (same as %time) and there is no easy way for me to hook into this to add support for delta times.

Well, delta time would have to be enabled, but not override having timestamps enabled like it currently does. I don't really understand the problem as you already have the ability to get both formats, so it's just a question of displaying both isn't it? BTW, I was thinking more of the mud window than the debugger window with this idea.
Reply with quote
Zugg
MASTER


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

PostPosted: Sun Nov 11, 2007 5:15 am   
 
It's more of an issue with how to set the time display format. I guess I could just have the delta time always displayed *after* the specified absolute time string maybe. What I was saying is that there isn't any syntax in the time format string for specfifying where to display the delta time. The time string uses stuff like "hh" for hours, "nn" for minutes, "zzz" for milliseconds, etc...there isn't an easy way to just add a new syntax for delta time since then the existing FormatDateTime routine would break and I'd have to write my own. But if you just want the delta time displayed after the current absolute time, then it's a bit easier.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Nov 11, 2007 12:15 pm   
 
I think that's all he was after.

07:21:04a 0.04343

Perhaps with a d after it to make sure it's obvious that it's the delta time?
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Sun Nov 11, 2007 9:03 pm   
 
Yeah, I reckon the delta time would always be after. I think I prefer:
07:21:04/0.04343
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Nov 12, 2007 5:46 pm   
 
Great, now you guys want *another* option to specify the character between the two time values??? Razz

See, that's what I meant about the time format string. Seems like everyone is going to want something different. Some people want a "d" at the end, some people want to use "/" instead of a space. I'm sure some people will want the delta time shown first instead of last. etc. etc. Now you know why I didn't do it.
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Mon Nov 12, 2007 6:28 pm   
 
Just add it in any format you like - and that's all! Rolling Eyes
_________________
My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Nov 12, 2007 6:29 pm   
 
Don't worry...I think I have a trick up my sleeve.
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Mon Nov 12, 2007 7:28 pm   
 
Nest the formatting, so the timestamp format is within some string formatting.
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Mon Nov 12, 2007 7:32 pm   
 
How do you get the debugger to come up?
_________________
Run as hard as a wild beast if you will, but you won't get any reward greater than that destined for you.
Source: (Egyptian)
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Nov 12, 2007 7:38 pm   
 
Select Script Debugger from the Window menu, or type #DEBUG. Please read the Sticky topic in this forum that already describes how to use the debugger window.
Quote:
Nest the formatting, so the timestamp format is within some string formatting.

That's exactly what I am thinking about. I think the FormatDateTime routine will pass any characters that are not currently used for formatting, so I can do something like replace the string "delta" with the delta time value, or something like that.

Edited: Actually, I'm going to use qqq for the delta time. Using "delta" wasn't very good because the "d" was reserved already and I didn't want people to be forced to put quotes around it. Using qqq works much better, and it's pretty easy to remember since Ctrl-Q has always been the speed test function.


Last edited by Zugg on Mon Nov 12, 2007 8:05 pm; edited 1 time in total
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Mon Nov 12, 2007 7:42 pm   
 
Wow. I just ran this for the first time on a script I have been working on and found out EXACTLY where the problem was.... I love this!!! It will be a great thing for everyone once 2.x becomes public.
_________________
Run as hard as a wild beast if you will, but you won't get any reward greater than that destined for you.
Source: (Egyptian)
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Mon Nov 12, 2007 8:04 pm   
 
Zugg wrote:
Quote:
Nest the formatting, so the timestamp format is within some string formatting.

That's exactly what I am thinking about. I think the FormatDateTime routine will pass any characters that are not currently used for formatting, so I can do something like replace the string "delta" with the delta time value, or something like that.

Actually I was thinking of the other way round, but that sounds good too.
Reply with quote
JQuilici
Adept


Joined: 21 Sep 2005
Posts: 250
Location: Austin, TX

PostPosted: Tue Nov 13, 2007 11:11 pm   
 
Zugg, what did you rename the pre-2.11 #DEBUG command to? In case I ever want to log the raw MUD output...
_________________
Come visit Mozart Mud...and tell an imm that Aerith sent you!
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Nov 14, 2007 12:08 am   
 
It's called #DEBUGFILE now.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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