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,032 - 6,043 of 8,681

19 years ago #6032
>> I've always wondered if we can use any of the keys
>> the AIEngine uses internally, like (submod), (vmod)
>> and (obmod). Anyone tried these in responses?
I am using them more successfully than I am the regular stuff like (verb). Check out the PF2 News for an update on how they parse the sentence.

Warning: The data contained in (submod) (vmod) (obmod) does not add up to an actual quote, because the sentence is parsed into root forms and rearranged, as you can see in the debugger. The various pieces are VERY useful, though!

Mick

19 years ago #6033
good heavens - I've been here for nearly a year, and I've only just found the "PF2 New Features" page! I'd checked the "View Past News" back to the year dot early on, but I always skip merrily past the News page on my way in, with just a quick glance at any new headlines.


19 years ago #6034
I can't get it too work very well. I know there is a fantastic secrete to it..

19 years ago #6035
I've tended to use regexes for extracting and reinflecting gerunds etc. instead, though that can be perilous with strong verbs - I regularly find myself having to screen out "goed" or "singed" and the like when it should be "went" or "sang". Of course, that problem is still there with these lower level keys, but it gives us a bit more flexibility I guess.

19 years ago #6036
What are you guys talking about?!?

19 years ago #6037
Sentence-Part Plug-Ins as listed on the "PF2 New Features!" page (below "Chat with Featured Bots" and "Set Preferences" on the right-hand side of the "News" page)

19 years ago #6038
I want to apologize for the obsession with musical tastes that seems to lead nowhere. I haven't figured out why the matches refuse to work, but I have determined why more than half of my xnones were not firing at all.
It seems that the AI Inits do not always load, or may only partially load. This is confirmed in the debugger, if you check the top of the first report. I have set switches in the AI Init that record whether certain xnones have fired. Those switches are not getting loaded, and as a result when I check to see, for example, if (mem-saidTea) is "no", it isn't, even though I have "set" it to "no" in the AI Init.
This accounts for a great deal of the problems I have been having with AI conditionals. I'm sure some of the trouble is my own errors, but I am also sure that the AI Inits do not always load correctly, and that they usually only load partially.

M

19 years ago #6039
Sure enough, removing the AI init and switching to the say once code (the [1], not the AI code) has solved the problem. We know what varous kinds of music are, we walk in the garden, and we take tea. And I've lost some subtleties that depended using that init. Oh well.

19 years ago #6040
Hi everybody.
Bug report about the use of regex in keyphrases. Let's have an example : I have a keyphrase like this :
([A-Z]\w+) (verb)(re)
When I register it the first time, it's ok. The backslash is doubled, I guess it's for the regex engine purposes. Anyway, changing the rehex itself is not a good idea, because it has side effects. If I edit it and save the new responses, the backslashes come in a crowd like this :
([A-Z]\\\\w+) (verb)(re)

PS : what regex engine do you use ?

19 years ago #6041
Herode --
I haven't been able to tell what level or degree of regex the system uses. It would be helpful is someone would post their most complex regex that works. I've tried some very complicated ones I use in TextPad and they have been unsuccessful.

19 years ago #6042
Herode again --
My experience has been that the Import/Export process is not truly reversible. Your observation seems to confirm that. I struggled for a number of days with goto references that were obviously correct but could not get translated correctly back into numerics. At one point, I was sure that the code that failed to transfer was one I inherited from an Export. I have also had trouble both importing and exporting Once markers.

In fact, now that I think of it, my failed regexes may have included slashes. Hmm.

M

19 years ago #6043
I was not using Import/Export. Well, frankly speaking, I *tried* to use this feature. But it doesn't work (something to see with my tab options in SciTE I suppose). Anyway, the bug comes with the web interface. Assuming PHP code behin the scenes, I'd suspect an abusive use of the addslashes() function or something like that. I mean : addslashes() reading the input must be articulated with a stripslahes() when writing the output.


Posts 6,032 - 6,043 of 8,681

» More new posts: Doghead's Cosmic Bar