The AI Engine
This forum is for discussion of how The Personality Forge's AI Engine works. This is the place for questions on what means what, how to script, and ideas and plans for the Engine.
Posts 5,563 - 5,575 of 7,766
seek not work after xinitiate For some reason they just don't work very often. Funny, I have noticed that they work when the AI engine is having a problem like xnonits.
Posts 5,563 - 5,575 of 7,766
trevorm
18 years ago
18 years ago
You shouldn't need the (re) - that's really for regular expressions (wildcards etc). Raw should do it.
BUT - I have had problems with matching plugins in raw mode. You might have to restrict the plugin to words recognised by the spell checker and have a separate raw-mode keyphrase for naginata etc
It's a pain, however you can get round some of the hassle of duplication with gotos, providing you structure your responses carefully. eg:
I train (martialarts)
goto zmartialarts
I train (naginata) raw
goto zmartialarts
zmartialarts
That's cool, what belt are you?
As you can see you lose the ability to include (key1) this way. Oh, and z-keywords don't mean anythng special to the system it's just a convention I use in my bots. Helps me avoid the dreaded "I have too many gotos" message
BUT - I have had problems with matching plugins in raw mode. You might have to restrict the plugin to words recognised by the spell checker and have a separate raw-mode keyphrase for naginata etc
It's a pain, however you can get round some of the hassle of duplication with gotos, providing you structure your responses carefully. eg:
I train (martialarts)
goto zmartialarts
I train (naginata) raw
goto zmartialarts
zmartialarts
That's cool, what belt are you?
As you can see you lose the ability to include (key1) this way. Oh, and z-keywords don't mean anythng special to the system it's just a convention I use in my bots. Helps me avoid the dreaded "I have too many gotos" message
Bev
18 years ago
18 years ago
I think TrevorM has the right idea. I've also seen what Prob123 suggested, which is where I got the (re) idea.
BTW, Akaihane I think you shouldn't need the extra AI script characters if you are using the AI script box while updating your bot online. You need all that extra stuff if you download your language center and work on your bot off line. It seems like you found the right part of the Book of AI on your own.
TrevorM or anyone who knows what they are are doing (unlike me), I also have problems getting memories to store from some wild cards. (e.g. I train (*), rem (key1) as "style"). Like Akaihane, I can get the first response to work (e.g. What do you like about (key1)?)but it doesn't seem to be stored in memory when I check inner life and won't be picked up if they trigger a response like "Did you learn that practicing (mem-style)?", instead it will trigger the default (Did you learn that while practicing watching kung fu movies on TV)? You can make key phrases for the most common styles (or whatever) but it's not as good as picking up the memory.
BTW, Akaihane I think you shouldn't need the extra AI script characters if you are using the AI script box while updating your bot online. You need all that extra stuff if you download your language center and work on your bot off line. It seems like you found the right part of the Book of AI on your own.

TrevorM or anyone who knows what they are are doing (unlike me), I also have problems getting memories to store from some wild cards. (e.g. I train (*), rem (key1) as "style"). Like Akaihane, I can get the first response to work (e.g. What do you like about (key1)?)but it doesn't seem to be stored in memory when I check inner life and won't be picked up if they trigger a response like "Did you learn that practicing (mem-style)?", instead it will trigger the default (Did you learn that while practicing watching kung fu movies on TV)? You can make key phrases for the most common styles (or whatever) but it's not as good as picking up the memory.
Akaihane
18 years ago
18 years ago
Thanks, all of you. I "solved" the problem similarly to what TrevorM described, but I had to sacrifice the "remember (*) as youtrain"-code... I can't find a way to get it to work for some reason. Oh well.
I also have a (possible) strange problem. My bot's transcripts never start on a new day/page, but all the scrips end up on the same day he was created... meaning I have a really long transcript now. =/ The transcript for me as a user doesn't have the same bug...
//Akaihane
I also have a (possible) strange problem. My bot's transcripts never start on a new day/page, but all the scrips end up on the same day he was created... meaning I have a really long transcript now. =/ The transcript for me as a user doesn't have the same bug...
//Akaihane
Ulrike
18 years ago
18 years ago
The transcripts being lumped on a single day is an ongoing bug. *crosses fingers that the Prof can fix it soon*
Akaihane
18 years ago
18 years ago
Ah, I see. =/ Well, at least it's not only me then. It's a kind of relief. I have yet another question... Does seek not work after xinitiate?. My bot promptly refuses to find it. And I can't change some of the responses in xnone to only appear once... It just doesn't save.
//Akaihane
//Akaihane
prob123
18 years ago
18 years ago
I have found, that with words or names that the AI engine won't recognize, making the keyphrase a regular expression will fix the problem. I have used it for proper last names, place names, foreign expressions etc.
prob123
18 years ago
18 years ago
Bowchickawowers
18 years ago
18 years ago
Could someone please repost how to make a regular guest web-based conversation embedded into a normal web page rather than merely linked to? I remember seeing it done, possibly with clever use of frames, but can't remember where. Maybe there are other ideas too.
Please post them here, or even better, at the new PF Wiki at http://personalityforge.wikispaces.com/.
Please post them here, or even better, at the new PF Wiki at http://personalityforge.wikispaces.com/.
psimagus
18 years ago
18 years ago
If you've already got a frameset on your webpage, just use something like:
{a href="http://www.personalityforge.com/directchat.php?BotID=29681&MID=29674" target="bjmain"} (changing the BotID/MID and target frame as appropriate, and of course the curly brackets into pointy ones. This is how I do it on BJ's website.)
Or if you want to embed it in a plain page, use an iframe:
{iframe src="http://www.personalityforge.com/directchat.php?BotID=29681&MID=29674"}
{/iframe}
(likewise with the desired BotID/MID.)
Yeah, I'll stick that on the Wiki too.
{a href="http://www.personalityforge.com/directchat.php?BotID=29681&MID=29674" target="bjmain"}
Or if you want to embed it in a plain page, use an iframe:
{/iframe}
(likewise with the desired BotID/MID.)
Yeah, I'll stick that on the Wiki too.
Akaihane
18 years ago
18 years ago
I want to make a seek that has the words "hello", "hi", etc in it, but it doesn't seem to work, even when I use the raw code. This makes me unhappy... =/
//Emma
//Emma
Ulrike
18 years ago
18 years ago
psimagus found a way around that. I believe it went:
[H][E][L][L][O] (re) as the seek, and in raw mode. Hmmm... his was as a keyphrase, and he also upped the rank I believe. You can try paging back through AIEngine to find it... seems like it was late summer or early fall.
In generaly, it's pretty hard to override the AI Engine on hellos.
In generaly, it's pretty hard to override the AI Engine on hellos.
» More new posts: Doghead's Cosmic Bar