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

Transition from 1.59 to 1.9x

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
hightekvagabond



Joined: 30 Mar 2009
Posts: 3

PostPosted: Wed Jul 08, 2009 8:48 am    Post subject: Transition from 1.59 to 1.9x Reply with quote

Is there a document somewhere that tells you all the stuff to look for as you transition from 1.59 to 1.9x?
Back to top
View user's profile Send private message
hightekvagabond



Joined: 30 Mar 2009
Posts: 3

PostPosted: Wed Jul 08, 2009 9:49 am    Post subject: examples Reply with quote

For example, I have found thus far that if you have multiple actions in an action you need to be sure there is no white space in front of the #

#action {blah} {#action {foo} {dance};#action {bar} {smile}}

not

#action {blah} {#action {foo} {dance}; #action {bar} {smile}}

and when doing if statements to check a variable you need to quote them now:

#if {"$varname"<1} {smile}

not

#if {$varname<1} {smile}


Those two thigns alone have caused massive editing to my very long rc file.....

And I'm still having problems with actions that are too deeply nested, it seems if you nest them deep enough they still don't interpret even if you take out the white space.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3281

PostPosted: Wed Jul 08, 2009 10:01 am    Post subject: Reply with quote

The issue with spaces should have been fixed in version 1.99.6.

You should only use " " for strings, so:

#if {"$var" == "hello"} {smile}

or

#if {$var == 2} {smile}

Comparing a string to an integer will always result in the string being 0, so that'd be pretty pointless.

When nesting actions make sure to use %%1 instead of %1 for the 2nd nest, %%%1 for the 3rd nest, etc. That is, for each nested action/alias, not for each pair of braces. (I think wintin 95 does this.)

There's a list with things to look for in the README file that might be helpful.


I don't think there's a problem with high nesting levels, you can try using: #debug all on, to see what's going on nesting wise at run time.
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 -> General Discussion 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