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 3404 matches
The TinTin++ message board Forum Index
Author Message
  Topic: Saving Vars to Class Files - #Math doesn't update?
Scandum

Replies: 3
Views: 118

PostForum: Script Help   Posted: Wed Jan 10, 2018 11:08 pm   Subject: Saving Vars to Class Files - #Math doesn't update?

I guess I thought that this is what I was doing with the opening code:

#class icefall_crumble_tracker open;
#var {icefall_crumbled} {0};
#var {icefall_crumbled_qty} ...
  Topic: Online manual updates
Scandum

Replies: 4
Views: 65

PostForum: Feature Requests   Posted: Tue Jan 09, 2018 8:44 pm   Subject: Online manual updates
Thanks lugnut, apiari sounds interesting.

https://github.com/tintinplusplus is intended as a community project that maintains a repository, and they use readtheocs.org in some form or fashion.
  Topic: Saving Vars to Class Files - #Math doesn't update?
Scandum

Replies: 3
Views: 118

PostForum: Script Help   Posted: Tue Jan 09, 2018 8:05 pm   Subject: Saving Vars to Class Files - #Math doesn't update?
Yes, you need to define the variables while the class is opened for them to be added to the class. It's theoretically possible to auto-assign, but it would be really annoying in cases where you don't ...
  Topic: Actions on dynamic lines matching a variable.
Scandum

Replies: 15
Views: 131

PostForum: Script Help   Posted: Sun Jan 07, 2018 1:32 am   Subject: Actions on dynamic lines matching a variable.
I wish there was a perfect way to handle it. If I change the behavior people who play MUDs that require $$ as input will start having problems.


#action {%*\b{$namelist}\b%*} & ...
  Topic: Actions on dynamic lines matching a variable.
Scandum

Replies: 15
Views: 131

PostForum: Script Help   Posted: Sat Jan 06, 2018 10:11 am   Subject: Actions on dynamic lines matching a variable.
It should work, might fail if you define the variable after the action however.
  Topic: Hashing function in tt++ proper
Scandum

Replies: 6
Views: 99

PostForum: General Discussion   Posted: Sat Jan 06, 2018 9:50 am   Subject: Hashing function in tt++ proper
Thanks for the code, already updated the beta code 4 days ago though. The hashing was as good as Jenkin's last time I checked, and a little bit faster.

I reused the hash code from buffer.c and adde ...
  Topic: Actions on dynamic lines matching a variable.
Scandum

Replies: 15
Views: 131

PostForum: Script Help   Posted: Sat Jan 06, 2018 1:29 am   Subject: Actions on dynamic lines matching a variable.
Regular expressions get confusing real quick.

\b matches all word boundaries, spaces, commas, dots, start of line, end of line, etc.

I was overthinking it though, the following should work as we ...
  Topic: Actions on dynamic lines matching a variable.
Scandum

Replies: 15
Views: 131

PostForum: Script Help   Posted: Fri Jan 05, 2018 8:08 pm   Subject: Actions on dynamic lines matching a variable.
Oh yeah, that's not working too well, this might:


#action {{.*\b}{$$namelist}{.*\b} {
#format {strdate} {./%2/%2-%t.txt} {%Y ...
  Topic: Actions on dynamic lines matching a variable.
Scandum

Replies: 15
Views: 131

PostForum: Script Help   Posted: Fri Jan 05, 2018 7:04 pm   Subject: Actions on dynamic lines matching a variable.
That should be fairly easy, you could try:


#action {{.*\b}{$$namelist}{.*\b} {
#format {strdate} {./%2/%2-%t.txt} {%Y-%m-%d& ...
  Topic: Hashing function in tt++ proper
Scandum

Replies: 6
Views: 99

PostForum: General Discussion   Posted: Tue Jan 02, 2018 9:14 am   Subject: Hashing function in tt++ proper
If the average room description is 4 lines that's about 300 bytes, times 50000 makes for 15 MB.

A 32 bit hash would be about 0.5 MB.

Tintin nodes have an overhead of 32 bytes, so that comes ou ...
  Topic: Online manual updates
Scandum

Replies: 4
Views: 65

PostForum: Feature Requests   Posted: Mon Jan 01, 2018 10:21 pm   Subject: Online manual updates
I do think a user managed script repository would be pretty cool.

Google Sites might work, and it should allow for collaboration.

I'm not sure if other good alternatives exist. Wikia and ShoutWi ...
  Topic: functions in #substitute 2.01.4
Scandum

Replies: 2
Views: 60

PostForum: Bug Reports   Posted: Mon Jan 01, 2018 7:41 pm   Subject: functions in #substitute 2.01.4
That was a pretty old bug, but it didn't become noticeable until recent changes.

I updated the beta for now.

http://tintin.sf.net/download/tintin-beta.tar.gz
  Topic: Hashing function in tintin
Scandum

Replies: 5
Views: 1279

PostForum: Script Help   Posted: Mon Jan 01, 2018 6:12 pm   Subject: Hashing function in tintin
'%' is modulus but needs to be doubled to escape it in that position otherwise it would be mistaken for an argument supplied to the parent #ALIAS.

The double %% can be avoided by adding spaces:

...
  Topic: Online manual updates
Scandum

Replies: 4
Views: 65

PostForum: Feature Requests   Posted: Mon Jan 01, 2018 5:32 pm   Subject: Online manual updates
https://github.com/tintinplusplus/tintinplusplus-unoffical-documentation

That's supposed to be a community effort although not as flexible as a Wiki.

I've neglected the online documentation for ...
  Topic: Hashing function in tt++ proper
Scandum

Replies: 6
Views: 99

PostForum: General Discussion   Posted: Mon Jan 01, 2018 4:56 pm   Subject: Hashing function in tt++ proper
Take the forum post you linked to for example, creating a table to handle this would be quick and easy.

It'd take a little bit more memory, but it would be faster than any other scripted solution, ...
  Topic: Hashing function in tt++ proper
Scandum

Replies: 6
Views: 99

PostForum: General Discussion   Posted: Mon Jan 01, 2018 3:22 pm   Subject: Hashing function in tt++ proper
What exactly would you need a hashing function for?

TinTin++ tables have extremely fast lookup rates, and if you use #write so the table is properly sorted the #read loading time is extremely fast ...
  Topic: functions in #substitute 2.01.4
Scandum

Replies: 2
Views: 60

PostForum: Bug Reports   Posted: Mon Jan 01, 2018 2:42 pm   Subject: functions in #substitute 2.01.4
Ooops! Thanks for letting me know!
  Topic: TinTin++ 2.01.4
Scandum

Replies: 0
Views: 61

PostForum: Announcements   Posted: Sat Dec 30, 2017 11:46 pm   Subject: TinTin++ 2.01.4

main.c Added proper greeting handling for narrow terminals, mainly for
people using tt++ on an android phone.

variable.c Added proper \ handling in string length calcu ...
  Topic: set editing-mode support
Scandum

Replies: 9
Views: 148

PostForum: Unix Shell   Posted: Wed Dec 27, 2017 6:23 pm   Subject: set editing-mode support
The error messages are from capturing { and } which unfortunately is pretty much impossible to do with #macro. Guess an #event is required to handle that.

The linefeed problem with your alias shoul ...
  Topic: set editing-mode support
Scandum

Replies: 9
Views: 148

PostForum: Unix Shell   Posted: Mon Dec 25, 2017 10:20 am   Subject: set editing-mode support
You're welcome. I placed it on my todo list, so I'll take another look at it when I get into one of my programming moods.
  Topic: Super newbie looking for help with tt++ on Android
Scandum

Replies: 4
Views: 90

PostForum: Script Help   Posted: Mon Dec 25, 2017 10:15 am   Subject: Super newbie looking for help with tt++ on Android
Keep in mind to always use Wordpad instead of Notepad to edit Linux files on Windows.

The ~ at the start of an #action turns it into a color trigger. This can cause problems when there are color co ...
  Topic: Super newbie looking for help with tt++ on Android
Scandum

Replies: 4
Views: 90

PostForum: Script Help   Posted: Mon Dec 25, 2017 12:09 am   Subject: Re: Super newbie looking for help with tt++ on Android
Hello guys,

First of all I'd like to thank you for the greatest MUD client ever.
I use tt++ on Android and it looks very good compared to buggy MUD apps from Google Play.

I'm not a programmer, ...
  Topic: Truecolor support
Scandum

Replies: 2
Views: 45

PostForum: Feature Requests   Posted: Sun Dec 24, 2017 11:05 pm   Subject: Truecolor support
If people want to use true color they can already using:


#showme {\e[38;2;255;100;0mtrue color test\e[0m}


I'll see about including the true color specs in my color document ...
  Topic: set editing-mode support
Scandum

Replies: 9
Views: 148

PostForum: Unix Shell   Posted: Sun Dec 24, 2017 8:20 pm   Subject: set editing-mode support
I should be able to add a {RECEIVED KEYPRESS} event without too much trouble.

Some things are surprisingly easy to script in TinTin++ so I'd suggest not ruling that out either.

Cursor positionin ...
  Topic: set editing-mode support
Scandum

Replies: 9
Views: 148

PostForum: Unix Shell   Posted: Fri Dec 22, 2017 8:48 pm   Subject: set editing-mode support
Oh, my mistake, I misunderstood your question.

TinTin++ only supports one default editing mode. If you want vi-like behavior you'll have to create macros and check out the #cursor command.

You c ...
  Topic: set editing-mode support
Scandum

Replies: 9
Views: 148

PostForum: Unix Shell   Posted: Wed Dec 20, 2017 6:14 pm   Subject: set editing-mode support
Did you launch a new terminal after editing .inputrc?
  Topic: Sorting a multicolumn list....
Scandum

Replies: 2
Views: 126

PostForum: Script Help   Posted: Wed Nov 15, 2017 9:31 pm   Subject: Sorting a multicolumn list....
Could also convert it to a table.


#foreach $item_list[] cnt
{
#var {item_table[$item_list[$cnt][expire].$item_table[$item_list[$cnt][obje ...
  Topic: Function arguments
Scandum

Replies: 4
Views: 286

PostForum: Bug Reports   Posted: Wed Nov 15, 2017 9:21 pm   Subject: Function arguments
Obviously you have to use the right number of arguments. Coffee

I'll see what I can do though. Smile
  Topic: How to strip out unwanted parts of string?
Scandum

Replies: 4
Views: 123

PostForum: Script Help   Posted: Sun Nov 12, 2017 12:55 pm   Subject: How to strip out unwanted parts of string?
Might be possible to simplify this slightly:


#act {^-M-_%1{ \[(.*?)\]|}{ \[(.*?)\%\]|}{ attacking you!|}.%*%*} {#showm ...
  Topic: Does there exist a tintin object notation to JSON
Scandum

Replies: 2
Views: 104

PostForum: Script Help   Posted: Sun Nov 12, 2017 12:31 pm   Subject: Does there exist a tintin object notation to JSON
This might be easier if tintin had an easier way to access variable names.

Right now $variable[] is the only way to do this, generating a list of all the keys in a table, which is problematic for l ...
 
Page 1 of 114 Goto page 1, 2, 3 ... 112, 113, 114  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