Bug Stomp

Upgrades and changes sometimes have unpredictable results, so post your bugs and glitches in here and I'll get out my trusty wrench and get to fixin'!

Posts 6,016 - 6,027 of 8,681

19 years ago #6016
For some reason, one of my bot's keyphrases isn't working. Should I just boost the rank?

19 years ago #6017
yeah - try it at 50, and see if that helps. You can drop it back a bit then if you don't want it so prominent.

19 years ago #6018
OK. Thank you.

19 years ago #6019
"Here's the puzzle. I assign a triggering nickname to an annoying visitor. Then when he comes back I check for that nickname, and hang up if it's there."

Don't do nickname, create a seperate value altogether. For example, Aries creates mem-pottymouth and assigns it a value if they are too vulgar. He then checks for the existance of that to decide whether a hangup is appropriate

19 years ago #6020
>> Don't do nickname, create a seperate value altogether.
Actually I'm doing both. I have a mem-pig that the user can "turn on" and I use the special nickname when someone is so obnoxious that I want to give them personal attention.

Now if I could just figure out what I'm doing wrong with the parts of speech....

19 years ago #6021
I wrestling with the (verb) thingie, and it turned up a bug I've been suspicious of for some time.

When "I dance for you" matches
I (verb) [50,0]
~You (vmod)? Ok.
The Response comes out "You dance for I? Ok."
The parser consistently uses the subject rathet than object pronoun when doing a transform after a preposition.

BTW:
I (verb) [50,0]

Does NOT match
I leash you
even though the debugger parses "leash" as a verb!


19 years ago #6022
If this is not a bug, could someone please explaninit to me? My initial AI includes
def "none" as "tmpwd";

i enjoy (adjnoun) [45,0] {?PF rem (key1) as only "tmpwd"; ?}
~(key1)?
~You like (mem-tmpwd), eh?

"I enjoy rock music" and "I enjoy rock" do not load tmpwd. What's worse, they seem to delete tmpwd entirely. I get the match on (key1)? that is expected, but the second Response always fails, even when it was the only one. The debugger reports that (mem-tmpwd) does not exist, and that is simply NOT true.

I can't tell if (key1) is not getting stored in tmpwd, but there is my default in there if nothing else. One possible explanation is that it is storing a null (key1) in tmpwd, and since tmpwd is now a null, it's dropped.

19 years ago #6023
I found this one. The (key1) is loaded into tmpwd AFTER the Response fires, even though it is lined up with the KP. So once you have loaded "tmpwd", then the PREVIOUS (mem-tmpwd) will fire the second response. You think I'm crazy? Try it.


19 years ago #6024
You have to have the (key1) to store the memory..You like (key1), eh? then after it is stored you can use (mem-tmpwd) ie. You like (key1), eh? Then I will give you (mem-tmpwd)

19 years ago #6025
In other words I don't "have" (key1) at this point:

i enjoy (adjnoun) [45,0] {?PF rem (key1) as only "tmpwd"; ?}

If not what DO I call (adjnoun)? There is clearly something about handling the parts of speech that I'm not getting.

19 years ago #6026
i enjoy (adjnoun) [45,0] <?PF rem (key1) as "tmpwd"; ?>
~(key1). (mem-tmpwd)??

First pass: "I enjoy green gems."
No match.
Second pass: "I enjoy red sunsets."
red sunsets. Green gems??
Third pass: "I enjoy blue days."
blue days. Red sunsets??

It is discarding the default tmpwd and then using the previous one for each match.


19 years ago #6027
The following code is being passed over, even if I feed it the same KP repeatedly. I ask "What color is your bra?" and the ONLY answer I get is "My bra is a {some random color}." That I consider a bug. But what is really troubling me is that this set, when it works, requires me to load (key1) into a tmp variable and then test the variable. I can't, for example, test {?PF if (key1) is "bra"; ?> because the importer rejects those AI Scripts. And I can't set tmpwd for the scope of the set, because if I try {?PF rem (key1) as only "tmpwd";?} on the KP, it either doesn't load key1 into tmpwd at all, or it loads it AFTER selecting a response. (What is truly maddening is that sometimes it actually works as desired in Transcripts, but I have NEVER gotten it to work correctly in the debugger.)

So apparently the only way to do what I'm trying to do is to load a variable with key1 for EACH conditional Response, and then check that variable against the content of key1. I'd say, "That can't be right!" but I'm learning not to think so....

what color * your (typeof-clothing) [100,0]
~My (key1)? Black.
~You ask about my (key1)?
~My (key1)? Excuse me? {?PF rem (key1) as "tmpwd"; if (mem-tmpwd) is "panties|underwear|bra"; emo: -1; ?}
~What color is your (key1), (name)? [-4:1]


Posts 6,016 - 6,027 of 8,681

» More new posts: Doghead's Cosmic Bar