|
srai
Nov 30, 2008 23:47:47 GMT -5
Post by pythonax on Nov 30, 2008 23:47:47 GMT -5
Hey. I am currently using AIML for a project and your program has been amazingly helpful. I had noticed, however, that the s tag doesn't seem to work as fully as it should. In the preview on the title page, it shows s translating to srai. In the sample code, it shows it just repeating what was entered for the template for each s. While it makes things longer, I see no real problem with copying things. However, I am trying to do a srai on a pattern with a random in it, and it catches the template before the random but ends where the random starts, so the copied versions are missing half of the template. Thanks.
|
|
|
srai
Dec 1, 2008 20:36:33 GMT -5
Post by Grant on Dec 1, 2008 20:36:33 GMT -5
I did some testing and found out what caused the issue you were seeing. Thanks for letting me know about it! I fixed the bug and made a new release (v1.22) that you can download from the website. I'm glad to hear you like MakeAiml, if you think there's anything I could improve on, send me an email or something and I'll try to incorporate it into my next release.
The nasty details of the fix... I choose to recurse to the pattern being srai'ed if the template is complex, but if it is a simple p/t combination I just copy it to the srai template. Roberto Gilli let me know that some bots (like pandorabots) have a limited number of recursive calls they can make, so by copying the template instead of recursing, the user "gains" a recursive call to make elsewhere in their code.
|
|
|
srai
Dec 1, 2008 21:50:19 GMT -5
Post by pythonax on Dec 1, 2008 21:50:19 GMT -5
Thanks for the quick fix. It seems to work right for me now.
|
|