TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Command file rewriting

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
Slysven



Joined: 10 Apr 2011
Posts: 365
Location: As "Jomin al'Bara" in WoTMUD or Wiltshire, UK

PostPosted: Mon Apr 16, 2012 6:48 pm    Post subject: Command file rewriting Reply with quote

When I write scripts I do not always use a consistant case for the TinTin++ commands (e.g. I might write #VAR in one place and #variable in another). I have noted that when what I have input is written back out to a new file (or back over the original) some of the "tokens"? are written back in a capitalised form and in a standardised layout whereas others are as I entered them. Can it be improved to at least capitalise and put the full tokens in universally? I note that one case where this needs tweaking is for the #ELSE case for the #REGEXP command.


P.S. There is a slight glitch when "named" #TICKERs are written out in that the third argument (the TICK period) is spaced with a large number of spaces away from the preceeding command string argument, whereas I would expect only a single space. I am trying to get around this by adding a case LIST_TICKER: to the switch(){} in the write_node() function to handle the two and three argument types for this, without the indirect spacing bits used in the default: case which is where I think the fault lies - I am using command arguments that are more than the 25 character figure I see in that area of the source code - is that a cause of this. I'll report back how this tweak goes.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Mon Apr 16, 2012 8:44 pm    Post subject: Reply with quote

The #regexp body doesn't get compiled, this because of argument handling. I'll have a look at it though.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group