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

Search found 39 matches
The TinTin++ message board Forum Index
Author Message
  Topic: Function arguments
balthus

Replies: 4
Views: 141

PostForum: Bug Reports   Posted: Sun Nov 12, 2017 6:47 pm   Subject: Function arguments
In which case, how would I go about forcing the clearing of old arguments?

For example:


#FUNCTION {fFileGetPath}
{
#UNVAR result;
#REGEXP {%1} {{^\\*& ...
  Topic: How to strip out unwanted parts of string?
balthus

Replies: 4
Views: 52

PostForum: Script Help   Posted: Sun Nov 05, 2017 4:48 pm   Subject: How to strip out unwanted parts of string?
Try this:

^([^\[]*?)(\s*\[.+\]|)(\s*attacking you!|)\.


Matches all three of your examples.

The first set of brackets matches everything that doe ...
  Topic: Math: number variable not being treated as a number
balthus

Replies: 5
Views: 139

PostForum: Bug Reports   Posted: Wed Oct 04, 2017 3:27 am   Subject: Math: number variable not being treated as a number
That's almost certainly the problem...the control data that I'm extracting that value from does not respect lineends/carriage returns (it is intended to be gagged) which would explain the weirdly vari ...
  Topic: Math: number variable not being treated as a number
balthus

Replies: 5
Views: 139

PostForum: Bug Reports   Posted: Tue Oct 03, 2017 2:54 am   Subject: Math: number variable not being treated as a number
The variable is captured from a mud info system by a pretty complex script, something I wrote years ago that used to work fine.

Thanks for the tip on #LINE strip, I wasn't aware of that one...I'll ...
  Topic: Math: number variable not being treated as a number
balthus

Replies: 5
Views: 139

PostForum: Bug Reports   Posted: Fri Sep 29, 2017 10:10 am   Subject: Math: number variable not being treated as a number
I found with more experimentation that I did have something attached to the end of the field, by looping through the field with #PARSE:


#parse {$mip[FFF][L][data] ...
  Topic: Math: number variable not being treated as a number
balthus

Replies: 5
Views: 139

PostForum: Bug Reports   Posted: Fri Sep 29, 2017 9:10 am   Subject: Math: number variable not being treated as a number
I appear to be having an issue with some variables not being recognised as numbers within #MATH calculations:

#echo >$mip[FFF][L][data]<

>82<

#math {t ...
  Topic: Can you check if a variable doesn't exist, as in, !&?
balthus

Replies: 3
Views: 776

PostForum: Script Help   Posted: Wed Oct 30, 2013 4:39 am   Subject: Can you check if a variable doesn't exist, as in, !&?
I always use:

#IF {"$varname" == ""}
  Topic: Line gag blanks - ?
balthus

Replies: 2
Views: 649

PostForum: Script Help   Posted: Tue Oct 29, 2013 7:15 am   Subject: Line gag blanks - ?
You could try something like:

#ACTION {Something you want to gag}
{
#LINE GAG
}
  Topic: multiple tintin commands in a string?
balthus

Replies: 26
Views: 3698

PostForum: General Discussion   Posted: Fri Oct 18, 2013 3:39 am   Subject: multiple tintin commands in a string?
What have you tried so far?
  Topic: Large arrays...
balthus

Replies: 5
Views: 1912

PostForum: Script Help   Posted: Mon Oct 14, 2013 10:27 am   Subject: Large arrays...
My generic MySQL Tintin++ connector script is in the finished scripts forum:

http://tintin.sourceforge.net/board/viewtopic.php?t=1112

Should handle all of the MySQL integration for you. I initia ...
  Topic: multiple tintin commands in a string?
balthus

Replies: 26
Views: 3698

PostForum: General Discussion   Posted: Fri Oct 11, 2013 8:09 am   Subject: multiple tintin commands in a string?
#MATH {varname} {1d5}

Is one 5 sided dice roll.
  Topic: multiple tintin commands in a string?
balthus

Replies: 26
Views: 3698

PostForum: General Discussion   Posted: Wed Oct 09, 2013 2:38 am   Subject: multiple tintin commands in a string?
If you have a look at:

#help action

You'll see that the sections of text that trigger the action are passed into variables %1 to %99 (and %0 contains the entire string). This will specifically r ...
  Topic: TinTin++ 2.01.0 (Beta)
balthus

Replies: 20
Views: 5262

PostForum: Announcements   Posted: Wed Oct 02, 2013 4:26 am   Subject: TinTin++ 2.01.0 (Beta)
Yep, works again now.
  Topic: TinTin++ 2.01.0 (Beta)
balthus

Replies: 20
Views: 5262

PostForum: Announcements   Posted: Tue Oct 01, 2013 8:09 am   Subject: TinTin++ 2.01.0 (Beta)
Getting a compile error in the latest version of the beta during "make":



..yadda...
gcc -Wall -D_GNU_SOURCE -DHAVE_CONFIG_H -c variable.c
gcc -Wall -D_GNU_SOURCE -DHAVE_CONFIG_H -c ...
  Topic: Suppress informational messages
balthus

Replies: 5
Views: 1956

PostForum: Feature Requests   Posted: Tue Sep 24, 2013 11:38 am   Subject: Suppress informational messages
I'd like to add a "me too" request on being able to toggle/mute all feedback messages.

For example, I have a script that monitors which zone of the mud I am currently in, and attempts to #READ < ...
  Topic: TinTin++ 2.01.0 (Beta)
balthus

Replies: 20
Views: 5262

PostForum: Announcements   Posted: Wed Sep 18, 2013 10:50 am   Subject: TinTin++ 2.01.0 (Beta)
Map find fix works, thanks. Thumbs Up
  Topic: Replace curly braces in a string
balthus

Replies: 2
Views: 2015

PostForum: Bug Reports   Posted: Tue Sep 17, 2013 5:47 am   Subject: Replace curly braces in a string
I have a work-around function that should replace all { with ( and } with ) within a string:




#FUNCTION {fStripBraces}
{

#VAR {_fSB} {%1};
#VAR ...
  Topic: Replace curly braces in a string
balthus

Replies: 2
Views: 2015

PostForum: Bug Reports   Posted: Fri Sep 13, 2013 10:16 am   Subject: Replace curly braces in a string
I have a string that I would like to strip curly braces from (it is causing problems in the mapper because I have room names including curly braces)


#VAR {test} {\x7b something \x7 ...
  Topic: TinTin++ 2.01.0 (Beta)
balthus

Replies: 20
Views: 5262

PostForum: Announcements   Posted: Sun Sep 01, 2013 5:59 am   Subject: TinTin++ 2.01.0 (Beta)
PM'd
  Topic: TinTin++ 2.01.0 (Beta)
balthus

Replies: 20
Views: 5262

PostForum: Announcements   Posted: Sat Aug 31, 2013 3:22 am   Subject: TinTin++ 2.01.0 (Beta)
That is fixed, thanks.

Found another issue though, getting:

#SHORTEST PATH: UNKNOWN ERROR.

on some #MAP find paths.

I have checked with the same map/paths in 2.00.9 and this issue isn't ha ...
  Topic: TinTin++ 2.01.0 (Beta)
balthus

Replies: 20
Views: 5262

PostForum: Announcements   Posted: Thu Aug 29, 2013 5:05 am   Subject: TinTin++ 2.01.0 (Beta)
Spotted a small bug in the mapper. Down exits are not showing in the default map view.

2.00.9:

+
[#&# ...
  Topic: Extract a partial string by offset and length
balthus

Replies: 7
Views: 1666

PostForum: Script Help   Posted: Tue Jul 30, 2013 4:29 am   Subject: Extract a partial string by offset and length
Moire's #REGEX solution was exactly what I was looking for, thanks.

Bit of a sledgehammer to crack a nut, but nevertheless its a fair bit faster than doing a #PARSE loop and appending each letter i ...
  Topic: Extract a partial string by offset and length
balthus

Replies: 7
Views: 1666

PostForum: Script Help   Posted: Wed Jul 17, 2013 6:57 am   Subject: Extract a partial string by offset and length
Is there an efficient way I can extract a section of a string by defining start position and length within the string?

I.E.

"thisisalongstringcontainingspecificdata"

I want to get "specificda ...
  Topic: Can a #sub and #act fire at the same time?
balthus

Replies: 5
Views: 3053

PostForum: Script Help   Posted: Fri Feb 22, 2013 8:13 am   Subject: Can a #sub and #act fire at the same time?
You CAN have multiple actions etc fire off the original mud text without having to replace the text:

What you have to do is implement eventing.

http://tintin.sourceforge.net/board/viewtopic.php? ...
  Topic: Simple event code to dispatch multiple actions/aliases/etc
balthus

Replies: 13
Views: 2895

PostForum: Script Help   Posted: Fri Feb 22, 2013 8:01 am   Subject: Simple event code to dispatch multiple actions/aliases/etc
I've tweaked this code slightly to work with the latest version of Tintin++ (2.00.9), including a work-around to the current issue of using #UNVAR with nested variables:

#VAR _events {}; ...
  Topic: Can't escape curly braces
balthus

Replies: 6
Views: 3209

PostForum: Bug Reports   Posted: Sun Jan 20, 2013 6:36 pm   Subject: Can't escape curly braces
Try this:

#ACTION {*(?: \{(\d+)\}|)$}

One action matches:

Big Monster

and

Big Monster {3}
  Topic: #unvar, nested variable and variable as key
balthus

Replies: 4
Views: 1332

PostForum: Bug Reports   Posted: Fri Nov 02, 2012 4:46 am   Subject: #unvar, nested variable and variable as key
Nice trick, thanks

I also found that:

#LIST {notes} {delete} {$label};

Works too.
  Topic: #unvar, nested variable and variable as key
balthus

Replies: 4
Views: 1332

PostForum: Bug Reports   Posted: Thu Nov 01, 2012 8:08 am   Subject: #unvar, nested variable and variable as key
I just tried to upgrade from 2.00.4 and hit this bug (broke several of my scripts).

For info (in case anyone else has a similar problem) the bug seems to be in 2.00.7, 2.00.8 and 2.00.9(beta as of ...
  Topic: Generic MySQL Connector.
balthus

Replies: 0
Views: 3088

PostForum: Finished Scripts   Posted: Mon Mar 08, 2010 9:03 am   Subject: Generic MySQL Connector.
Generic MySQL Connector.

db_submit {outputVar} {select * from main_table where field_a = '%s' and field_b = '%s'} {field 'a' match string} {field 'b' match string}

The alias takes parameters in ...
  Topic: Alias argument %0 sorting problem
balthus

Replies: 1
Views: 844

PostForum: Bug Reports   Posted: Thu Feb 18, 2010 11:08 am   Subject: Alias argument %0 sorting problem
When passing multiple arguments to an alias, the order they appear in %0 isn't consistent.


#alias {test}
{
#VAR testvar {%0};
#ECHO {%1 : %2 : %3 ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 5 Hours
Jump to:  
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