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

TinTin++ 1.99.7

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    The TinTin++ message board Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Thu Aug 27, 2009 6:46 pm    Post subject: TinTin++ 1.99.7 Reply with quote

I updated the OS X binary which is no longer compatible with OS X 10.4 since it was build on OS X 10.6. People running 10.4 will have to compile from source.


  • Updated #map list to use the same arguments as #map goto.
  • Added the #map color <field> <color> option to globally set the default room and exit colors.


If you want to reset the default colors of your rooms so the global room color is used you can execute the following code:
Code:

#loop 1 10000 cnt {#map goto $cnt;#map set roomcolor {}}
Back to top
View user's profile Send private message Send e-mail
louipc



Joined: 16 Jul 2006
Posts: 65

PostPosted: Sun Aug 30, 2009 12:51 pm    Post subject: Reply with quote

Hmm I'm not sure if this was intended or not, but lists contain indexes as well as elements now.

This breaks scripts which pass lists to #forall, #foreach, and #showme.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sun Aug 30, 2009 2:38 pm    Post subject: Reply with quote

It's intended behavior.

If you do something like:

#list test create bli bla blo

You'd use:
Code:

#forall {$test}
{
    #showme $test[&0]
}


or:

Code:

#loop 1 &test[] tmp
{
    #showme $test[$tmp]
}


If order is not important you can use (with 1 being an arbitrary number):

Code:

#var test {bla}{1}{bli}{1}{blo}{1}

#foreach {$test[]} {temp}
{
    #showme $temp
}


Take a look at the item database script to see how the associative array support can be used to do previously complex things in an easy manner.
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sun Sep 06, 2009 5:25 pm    Post subject: Reply with quote

There was an issue with && being converted to & in #if checks, causing all kinds of weird behavior. It's fixed in the beta.

http://tintin.sf.net/download/tintin-beta.tar.gz
Back to top
View user's profile Send private message Send e-mail
Mogs



Joined: 03 Jul 2009
Posts: 8

PostPosted: Thu Sep 10, 2009 3:08 pm    Post subject: Reply with quote

Hi,

#map write xxx doesn't seem to write roomdesc, roomarea and roomnote properly.

Regards,
mogs
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Thu Sep 10, 2009 4:52 pm    Post subject: Reply with quote

I thought I added the saving of those fields, but apparently I did not.

It's fixed in the beta: http://tintin.sf.net/download/tintin-beta.tar.gz
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Tue Sep 15, 2009 4:23 pm    Post subject: Reply with quote

Updated the beta so it's no longer required to escape literal ^ and $ signs.

So #regex {A ^ B} {A ^ B} returns true now instead of false.


Added support for using regular expressions as a valid index for nested variables, if there are multiple matches it'll return multiple results.

For example:
Code:

#var bla[a] hello
#var bla[b] world
#showme Test: $bla[%*]
Test: {hello}{world}
#showme Test: $bla[%iA]
Test: {hello}
#showme Test: &bla[%*]
Test: 2


Only oddity compared with $variable[] behavior is that on an empty list it returns "0" instead of "". I'm considering adding a regex check, so in the case a regex is found "" is returned.
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Wed Sep 16, 2009 10:31 am    Post subject: Reply with quote

Updated the beta so that when using a regular expression as an index and the query doesn't return any results "" rather than "0" is returned.
This is mainly so it's easier to use in combination with #foreach.

For example:
Code:

#var test[a] 2
#OK. VARIABLE {test[a]} HAS BEEN SET TO {2}.
#var test[c] 8
#OK. VARIABLE {test[c]} HAS BEEN SET TO {8}.
#showme $test[%*]
{2}{8}
#showme ($test[%*x])
()
#showme ($test[x])
(0)
Back to top
View user's profile Send private message Send e-mail
grs



Joined: 01 Feb 2009
Posts: 4

PostPosted: Fri Oct 02, 2009 2:45 am    Post subject: Reply with quote

The function list has some odd extra indent (?) While other listings arent affected...

Code:

############################################################ FUNCTIONS #############################################################
                                                                                    #FUNCTION {a}={b}


And also... for some reason, listing aliases/variables/anything with wildcard matching nolonger work... ie.

Code:

#act aaa bbb
#OK. {aaa} NOW TRIGGERS {bbb} @ {5}.
#act aaa
#ACTION {aaa}={bbb} @ {5}
#act *a*
#ACTION: NO MATCH(ES) FOUND FOR {*a*}.
#act {*a*}
#ACTION: NO MATCH(ES) FOUND FOR {*a*}.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Fri Oct 02, 2009 7:31 am    Post subject: Reply with quote

Fixed the indentation issue with the function list.

With the switch to perl compatible regular expressions you now need to use %* instead of *:

#act %*a%*
Back to top
View user's profile Send private message Send e-mail
titeuf



Joined: 29 Jul 2006
Posts: 84

PostPosted: Mon Dec 21, 2009 4:19 pm    Post subject: Reply with quote

Hey Scandum,

I finally decided to upgrade my tt++ version and downloaded the latest beta.
After some playing around I found the following bug:
Code:

#math a 100-200
#MATH: VARIABLE {a} HAS BEEN SET TO {0}.


#MATH doesn't seem to want to work with negative numbers anymore.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Mon Dec 21, 2009 7:20 pm    Post subject: Reply with quote

Thanks for letting me know, I'll give this a bump when I got it fixed.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    The TinTin++ message board Forum Index -> Announcements 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