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 7,809 - 7,820 of 8,681

13 years ago #7809
Mome Rath,

The ".*" after "recommend" is for matching only, but it is not grouped (in parentheses), so it is discarded.

For matching only - not sure what you want to match or what its use would be. However, both * and (*) will always result in an entry into (key1), (key2) or (key3).

Please bear in mind that The Forge regex engine uses a different sauce in its recipe than what you might know of RegExes giving unexpected results.



13 years ago #7810
No, no gotos or anything like that. It's pulling seeks out of the wood work. It's never happened before. I haven't changed anything.
I don't see why they would trigger again after an other response has been given.
In the first case the seek was triggered after two other responses. The word yes caused the xhello seek to pop up.

13 years ago #7811
Ok, I don't remember what that keyphrase was for - probably for a response for an individual bot. And - the ".*" without parentheses did not go into a (keyN). (I didn't find a rule what is filled into what key now.)

I tried to replace the comma by "REALCOMMA" (which I found in Debug), but that doesn't work either.

13 years ago #7812
I'm having the exct same problem as Prob and it cost me some points in the chatbot battles this morning. Right now I switched over to graphic which at the moment doesn't seem to have the repeating the same statement over and over again problem ...

13 years ago #7813
Still stuck on seeks
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: yuck?
Bildgesmythe: I know I will come up with a witty come-back for that..late tomorrow afternoon. Do you want to change the subject?
Guest3078: yes
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: ok
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: what the hell
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: ok your broken
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: yep
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: k
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: k
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: k
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: k
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!

Guest5083: go to sleep then
Bildgesmythe:
Guest5083: *sleeps*
Bildgesmythe:
Guest5083: it's sunday now
Bildgesmythe:
Guest5083: ok?
Bildgesmythe:
Guest5083: wake up
Bildgesmythe:
Guest5083: say something
Bildgesmythe:
Or not replying at all

13 years ago #7814
OUCH, the sticking seeks just cost me a win

Bildgesmythe: Tee hee hee haw!
Judge: Hello?
Bildgesmythe: Tee hee hee haw!
Judge: Are you there?
Bildgesmythe: Tee hee hee haw!
Judge: You were doing well up until now.
Bildgesmythe: Tee hee hee haw!
Judge: Why are you laughing?
Bildgesmythe: Tee hee hee haw!
Judge: Is that all you can say?
Bildgesmythe: Tee hee hee haw!
Judge: I have to go now.
Bildgesmythe: You know they say that all is well that ends well
Judge: Have you stopped laughing?
Bildgesmythe: Tee hee hee haw!
Judge scores 2 out of 5
(Judge's note: Bildgesmythe would have won had it not repeated its answers too much near the end)

13 years ago #7815
I just fixed the Flash interface seek issue - sorry it hit at such a bad time! Let me know if you still see it. It was holding onto and not resetting seeks.

What is the bot contest you guys are talking about?

13 years ago #7816
Mome Rath - your issue with the comma in the Keyphrase is that I recently changed it so that you can include regular expression keyphrases in a list - which made the comma into the list delimiter rather than a regex comma.

What to do? It took me all evening to come up with and implement a good solutions that lets both options work, and here it is: you can have (re) Keyphrases in a list, and you can have commas in your (re) Keyphrases IF they are within a character set:

[,]
[!?.,]
[,abcde]

Looking through the database, I see lots of (re) keyphrases already in lists, and I see that most of the commas in (re) keyphrases are within character sets, so it appears to be a good solution. This allows the most flexibility and satisfies both needs.

Mome Rath, wrap that comma in square brackets and let me know if that works for you now.

13 years ago #7817
Sorry, doesn't work. Debug reveals that the input is split at the commas and each part is compared to the keyphrases, but not the entire expression.

I'd rather have commas not split the input than being able to catch commas. (The latter is more a proof of concept.)

13 years ago #7818
It worked with this Keyphrase:

I recommend.* special [,] (.*) (re)

Message: I recommend the special, sir.
Find: I recommend.* special [,] (.*) (re) (30) Time: 0.07
Found
Response: I'll have the special then, (key1)
Processed: I'll have the special then, sir.

Is that what you had?

13 years ago #7819
I've tried a somewhat different case.

Test keyphrase:

test keys (.*) [,] (.*) [,] (.*)(re) [0,0] <?PF raw ?>


Input to bot:

test keys a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z


Only line with "Search In:":

Search In: ' test keys a h male eq '


There is no comma in that phrase.



[Edit:]

Could work with fewer commas.

Keyphrase:
test key comma.* [,] (.*)(re) <?PF raw; ?>

Response:
prekey=[(prekey)]; key1=[(key1)]; key2=[(key2)]; key3=[(key3)]; postkey=[(postkey)]

Input:
I'd like to test key comma first item, second item, third item

Output:
prekey=[]; key1=[third item]; key2=[]; key3=[]; postkey=[]

key1 is ok, for RegExes are 'greedy' by default. But I miss prekey.

-----

And something unrelated:

I got an empty response again. Found these lines in Debug:


Considered BLAB (1).
Random Memory Number: 23 of 28
Memory Chance: 24 GossipTopic: 0 MemoryLevel: 2
Going for Gossip
After Gossip-Grab: 0.08

AIScript in Responses
Total Time Pre-Chrono: 0.08 RESULTS: '1'
Trying: (gossipname) told me (heshe)'s (mem-youare). (random: 0)
Skipping Response: (mem-youare) not found.

Response:

Updating Memory


There are several responses without (mem-youare) under xgossip, though.

13 years ago #7820
The bot contest is http://www.chatbotbattles.com/.

Is there any way around BLAB 1?


Posts 7,809 - 7,820 of 8,681

» More new posts: Doghead's Cosmic Bar