Ralshan2005-02-03 01:01:23
I don't have anything to add except I'm glad to see fellow TF users out there! I've tried a couple times to build systems in TF but I've never quite scraped together the motivation to finish and debug them. But, I know a bit about using it so feel free to ask more questions. Maybe someday we'll catch up to those pesky zMud users!
Unknown2005-02-03 01:49:48
I too am pleased to see some TF users. I've switched between TF and Zmud over the past few years. I finally dropped Zmud and stuck with TF about 8 months ago. I liked all of the Zmud documentation and features, but it always seemed to crash for random reasons, parts of my system would get corrupted or something odd.
The real nice thing about TF is that I can keep all of my config files on my debian server and connect to it from work, my fiancee's apartment, or just about anywhere. It's also nice to know that you can write scripts in any language your terminal supports and TF will run them.
If anyone else is interested in giving TF a shot I posted the installation files (source code and windows binary) for 5.0 beta 6, as well as the documentation and vim syntax highlighting file on my website. http://www.bwbettin.com
The real nice thing about TF is that I can keep all of my config files on my debian server and connect to it from work, my fiancee's apartment, or just about anywhere. It's also nice to know that you can write scripts in any language your terminal supports and TF will run them.

If anyone else is interested in giving TF a shot I posted the installation files (source code and windows binary) for 5.0 beta 6, as well as the documentation and vim syntax highlighting file on my website. http://www.bwbettin.com
Alger2005-02-03 02:10:10
well looks like alyssandra got you covered...
but ill throw in a couple just incase
triggering would basically be
/def -t'' =
so say you want to trigger paralysis message and color it red, it would be something like :
/def -aCred -p0 -mglob -t'a prickly stinging has something something(cant remember the message at the moment)' ackcantmove = /set paralysis=1
breaking it down a little
-
color is how TF returns the message to your shell. -ag would be to gag, -aCred (or yellow magenta blue black white etc etc) is how to color the text, -ah is for bold, -au I think(brain hurts dont make me remember) is underline. Background coloring is -aCbgred... you can combine the whole lot as well going something like -ahuCred which is bold underline red. Personally i just gag everthing and echo it back because on my version coloring text is a bit buggy.
-
priority is well the priority of the triggers like for example you have
/def -p0 -mregexp -t'^Here stands (.*)\\.$' exampleyo = lick %P1
that would trigger Here stands (anything). and you would end up licking (anything) in the said line. But for example you want a different return for a more specific line.. say
/def -p0 -mregexp -t'^Here stands HotBabe\\.$' justanexampleyo = fondle
that would trigger you to fondle everytime you see here stands HotBabe. but its going to conflict with your exampleyo trigger and so youll end up sometimes licking hotbabe and sometimes fondling yourself... so in order to make sure you fondle yourself all the time you set it up as.
/def -p0 -mregexp -t'^Here stands (.*)\\.$' exampleyo = lick %P1
/def -p1 -mregexp -t'^Here stands HotBabe\\.$' justanexampleyo = fondle
(sorry if im over simplifying im sure you get most of what im saying already but meh
)
-
matchingtype is basically how you want tf to handle the line glob and regexp are what i normally use but both also have a different way of umm... writing the line
for example you want to trigger the line You have slain (whoever). and gag it and come up with a more personalized echo
if you use glob you would go something like
/def -ag -p0 -mglob -t'You have slain *' uslainthefoo = /echo -ahCwhite JOO OWNZ %{4}
/if you use regexp it would go something like
/def -ag -p0 -mregexp -t'^You have slain (.*)/.$' uslainthefoo = /echo -ahCwhite I ownage da %P1.
generally regexp is more flexible but i find uses for glob as well just depends on what you want to trigger.
-
-t well thats to say its a trigger there are other things like hooks etc.
-
hehe yeah that line
-
macro name you can do without but i find it good to put one on all your triggers anyway because it can be hell to find/edit/delete a trigger you dont have a name for plus you can call the macro as well like going
/
so /justanexampleyo would end up umm fondling (this is such a bad example but im lazy to rewrite now)
-
function well what ever you want it to do.
...
the regular experssion and glob difference well just ask here about a line and ill answer how i would trigger each in both... well ill try anyway
...
about the binding you didnt have trouble binding your function keys and keypad yeah? well you probably looked at your character map anyway... heh
...
ralshan we need to catch up? o.O
but ill throw in a couple just incase
triggering would basically be
/def
so say you want to trigger paralysis message and color it red, it would be something like :
/def -aCred -p0 -mglob -t'a prickly stinging has something something(cant remember the message at the moment)' ackcantmove = /set paralysis=1
breaking it down a little
-
color is how TF returns the message to your shell. -ag would be to gag, -aCred (or yellow magenta blue black white etc etc) is how to color the text, -ah is for bold, -au I think(brain hurts dont make me remember) is underline. Background coloring is -aCbgred... you can combine the whole lot as well going something like -ahuCred which is bold underline red. Personally i just gag everthing and echo it back because on my version coloring text is a bit buggy.
-
priority is well the priority of the triggers like for example you have
/def -p0 -mregexp -t'^Here stands (.*)\\.$' exampleyo = lick %P1
that would trigger Here stands (anything). and you would end up licking (anything) in the said line. But for example you want a different return for a more specific line.. say
/def -p0 -mregexp -t'^Here stands HotBabe\\.$' justanexampleyo = fondle
that would trigger you to fondle everytime you see here stands HotBabe. but its going to conflict with your exampleyo trigger and so youll end up sometimes licking hotbabe and sometimes fondling yourself... so in order to make sure you fondle yourself all the time you set it up as.
/def -p0 -mregexp -t'^Here stands (.*)\\.$' exampleyo = lick %P1
/def -p1 -mregexp -t'^Here stands HotBabe\\.$' justanexampleyo = fondle
(sorry if im over simplifying im sure you get most of what im saying already but meh

-
matchingtype is basically how you want tf to handle the line glob and regexp are what i normally use but both also have a different way of umm... writing the line
for example you want to trigger the line You have slain (whoever). and gag it and come up with a more personalized echo
if you use glob you would go something like
/def -ag -p0 -mglob -t'You have slain *' uslainthefoo = /echo -ahCwhite JOO OWNZ %{4}
/if you use regexp it would go something like
/def -ag -p0 -mregexp -t'^You have slain (.*)/.$' uslainthefoo = /echo -ahCwhite I ownage da %P1.
generally regexp is more flexible but i find uses for glob as well just depends on what you want to trigger.
-
-t well thats to say its a trigger there are other things like hooks etc.
-
hehe yeah that line
-
macro name you can do without but i find it good to put one on all your triggers anyway because it can be hell to find/edit/delete a trigger you dont have a name for plus you can call the macro as well like going
/
so /justanexampleyo would end up umm fondling (this is such a bad example but im lazy to rewrite now)
-
function well what ever you want it to do.
...
the regular experssion and glob difference well just ask here about a line and ill answer how i would trigger each in both... well ill try anyway
...
about the binding you didnt have trouble binding your function keys and keypad yeah? well you probably looked at your character map anyway... heh
...
ralshan we need to catch up? o.O
Alger2005-02-03 02:17:51
oh theres a tf prompt capture thread here somewhere too...
Unknown2005-02-03 08:07:29
just to add the only option alger missed (not suprising really, its more for novelty scripts at least thats what I find) you can also have
-c
its defaults to 100% but you can change it
so
/def -aCred -p0 -mglob -t'a prickly stinging has something something(cant remember the message at the moment)' ackcantmove = /set paralysis=1
could become
/def -aCred -c50% -p0 -mglob -t'a prickly stinging has something something(cant remember the message at the moment)' ackcantmove = /set paralysis=1
this would make the trigger only fire half of the time.
-c
its defaults to 100% but you can change it
so
/def -aCred -p0 -mglob -t'a prickly stinging has something something(cant remember the message at the moment)' ackcantmove = /set paralysis=1
could become
/def -aCred -c50% -p0 -mglob -t'a prickly stinging has something something(cant remember the message at the moment)' ackcantmove = /set paralysis=1
this would make the trigger only fire half of the time.
Unknown2005-02-03 08:08:07
Oh and prompt triggering is a complicated pain in the ass, because the prompt is a hook event, not normal text.
ohtaren2005-02-03 17:55:06
ok, new quesion, I want to bind all of the number pad chars, combined with ctr to moving in different directions. I have run into a few problems with this. first if I try just using numbers and not numpad chars, ^8 gets interpreted by the terminal as backspace. other numbers do otherthings and such. how do I override this?
If I have numpad on, then I go up or to the side or something when I press the key, because it is interpreted as an arrow key. I can't find the visual equivalents to this anywhere. Also how can I override the build in direction functions of those keys when I'm in TF?
The other problem that I have is sometimes when I make changes to tfrc and I load lusternia, it loads fine, I type in Ohtaren then I start typing my password and is gets part way through then somehow a CR is entered, it tells me the password is incorect and lusternia disconnects me. Any ideas on what is going on with this?
perhaps I should start a new thread if I have a new question instead of people reading through a bunch of discussion that has already been settled.
Oh yeah, Thanks for all the pointers, Alger, I was trying to figure out color. Also, are there other ways of entering color, like, ill ir read hex codes for collor? does -aC005634 work? That would be about a hunderd times better than the java clients limited range of colors. If not, then where do I find a list of accepted colors?
Edit oh yeah, one moe thing, I am really used to writing in C, and yiu said that you can use your favorit programing language to script for TF, how do I do this?
If I have numpad on, then I go up or to the side or something when I press the key, because it is interpreted as an arrow key. I can't find the visual equivalents to this anywhere. Also how can I override the build in direction functions of those keys when I'm in TF?
The other problem that I have is sometimes when I make changes to tfrc and I load lusternia, it loads fine, I type in Ohtaren then I start typing my password and is gets part way through then somehow a CR is entered, it tells me the password is incorect and lusternia disconnects me. Any ideas on what is going on with this?
perhaps I should start a new thread if I have a new question instead of people reading through a bunch of discussion that has already been settled.
Oh yeah, Thanks for all the pointers, Alger, I was trying to figure out color. Also, are there other ways of entering color, like, ill ir read hex codes for collor? does -aC005634 work? That would be about a hunderd times better than the java clients limited range of colors. If not, then where do I find a list of accepted colors?
Edit oh yeah, one moe thing, I am really used to writing in C, and yiu said that you can use your favorit programing language to script for TF, how do I do this?
Alger2005-02-03 21:20:47
Well i use a mac dont know if it would be the same but... my num keys are something like this
/def -b'^
/def -b'^
ohtaren2005-02-03 23:53:16
ok one more problem. I try making (Aquamancers): red. then, when I do /list it shows that I have two bach slashes. I tried several way of inputing it, including writing it in tfrc and loading it, changing -mregexp to -glob and such. all the times I just entered one \\ and made sure of it. I also tried entering two backslashes and it came out the same.
This was coppied from a log file after doing /list:
% 261: /def -p1 -aCred -mregexp -t'\\\\(Aquamancers\\\\):' channlered
any help?
EDIT:
Ok I tried adding another thing to do with this trigger like going south and the going south bit works. It still has the two \\'s and it does not highlight red. this makes me think that the highlighting red bit doesn't work. how do I gag it and spit it back out as red?
This was coppied from a log file after doing /list:
% 261: /def -p1 -aCred -mregexp -t'\\\\(Aquamancers\\\\):' channlered
any help?
EDIT:
Ok I tried adding another thing to do with this trigger like going south and the going south bit works. It still has the two \\'s and it does not highlight red. this makes me think that the highlighting red bit doesn't work. how do I gag it and spit it back out as red?
Unknown2005-02-04 22:48:33
I didn't try your exact example, but while TF was running I ran the following command to match ANY (single word titled) channel:
/def -p1 -aCred -mregexp -t'\\(\\w+\\):' testtrig
That seemed to work fine for me, colored the first line of what was said red. I don't think you want double backslashes, that first one escapes the second which would make it look for a literal backslash. Your trigger is trying to match "\\Aquamancers\\" I think (since the second backslash is no longer escaping the parentheses, they get eaten by the regexp).
so /def -p1 -aCred -mregexp -t'\\(Aquamancers\\):' colorred should do the trick.
I've never messed with the "-p" priority option. Perhaps you have another trigger of higher priority that's matching that line and thus not allowing your new trigger to fire? Also, I know this sounds dumb, make sure you spelled Aquamancers correctly in your code (I've done this before, it's realy annoying heh).
/def -p1 -aCred -mregexp -t'\\(\\w+\\):' testtrig
That seemed to work fine for me, colored the first line of what was said red. I don't think you want double backslashes, that first one escapes the second which would make it look for a literal backslash. Your trigger is trying to match "\\Aquamancers\\" I think (since the second backslash is no longer escaping the parentheses, they get eaten by the regexp).
so /def -p1 -aCred -mregexp -t'\\(Aquamancers\\):' colorred should do the trick.
I've never messed with the "-p" priority option. Perhaps you have another trigger of higher priority that's matching that line and thus not allowing your new trigger to fire? Also, I know this sounds dumb, make sure you spelled Aquamancers correctly in your code (I've done this before, it's realy annoying heh).
Unknown2005-02-04 22:51:45
On another note, I updated my website with a few script files. They might help you out a bit. The one you'll probably find the most interesting is the status_prompt.tf script which handles the prompt triggering and obtaining updated information whenever you type 'score'. 
www.bwbettin.com -> click on "TF Scripting"

www.bwbettin.com -> click on "TF Scripting"
ohtaren2005-02-05 21:33:45
the problem is I'm not typing two \\'s I'm only typing one. when I do /list it tells me I have two though. try entering your thing and then typing /list and see if it is internaly storing it as two. I got the trigger to work, but I can't get color to work.
Morik2005-02-14 03:05:02
QUOTE(AlyssandraAbSidhe @ Feb 3 2005, 04:08 PM)
Oh and prompt triggering is a complicated pain in the ass, because the prompt is a hook event, not normal text.
41355
Not really:
/def -q -F -mregexp -h"PROMPT (.*?)h, (.*?)m, (.*?)e, (.*?)p, (.*?)en, (.*?)w (*)\\-" prompt_catch = \\
/eval /set line1=$(/recall -ag /1) %; \\
/eval /set line2=$(/recall -ag /2) %; \\
/eval /set line3=$(/recall -ag /3) %; \\
/set a=%P1 %; /set b=%P2 %; \\
/set cur_health=$ %; \\
/set cur_mana=$ %; \\
/try_cure %; \\
/do_sip
Thats my prompt code.
Here's something from Erikarn in Achaea:
http://www.cacheboy.net/achaea/healing/tf/
.. which has some simple examples that cover almost everything.
I really do suggest you (ab)use tinyfugue 5.x - the only instability I've seen over the past few beta releases has been pertinent to MCCP and only under extreme spammy conditions (spammier than combat ever has been in Achaea or Lusternia, even when fighting Occultists.) There's a lot of useful stuff in 5 which doesn't exist in 4.
Let me know if you have any questions via forum PM.