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 5,983 - 5,994 of 8,681

19 years ago #5983
I've found the problem, mickmca. We need to put a space after the semicolon.

so, this doesn't work
+ yes [0] <?PF rem "coffee" as "youlike";?>

but this does
+ yes [0] <?PF rem "coffee" as "youlike"; ?>

19 years ago #5984
I still can't get mine to import. I know I don't have any blank keyphrases. Dunno how the 8048 present lines got doubled - I added 2 lines to it for testing.

Present Lines: 8048 • Import Lines: 16100
ATTENTION: This will overwrite all online work done since April 28 2006

Begin Language Center
----------------------------------------------------------------------------------------------------
ERROR: Keyphrases cannot be blank.

19 years ago #5985
What are you editing it with? Sounds like it's adding an extra carriage return to each line, and double-spacing the file (so every other line will be a blank one.)

19 years ago #5986
I've tried it with both notepad and WordPad. Tried saving it as both plain text and RTF (which I didn't expect to work anyway)

19 years ago #5987
it ought to work with Notepad, though it can add spurious hard breaks to files when saving if wordwrap is on.
I can highly recommend textpad (http://www.textpad.com) - it's fully-featured shareware, and I've never had any problems like that with it. Plus it can sort, spellcheck, find & replace, use macros and handle regexes very capably.

19 years ago #5988
I love textpad - I lost my reg key for it a long time ago and never bothered to re-download it. Done that now, opened the LC and removed the first and last blank lines...

Looks like it's not doubling things any longer. Now just to find where it thinks there is a blank keyphrase...

Present Lines: 8048 • Import Lines: 8047
ATTENTION: This will overwrite all online work done since April 28 2006

Begin Language Center
----------------------------------------------------------------------------------------------------
ERROR: Keyphrases cannot be blank.

19 years ago #5989
I figured it out. One of my keyphrases was simply

!!!

the system was seeing that as blank

19 years ago #5990
if you want that keyphrase you'll have to set it as a regex (raw mode too, obviously) -

([ ~!]+) (re) should do the job for any number of exclamation marks. If you want it to only cut in if there's no other text, ^([ ~!]+)$ (re) ought to do it.

replace the tildes with forward slashes (they won't display in forum posts.)

19 years ago #5991
I was doing regex's the old way (back before there was RAW)

\"you live in (noun)$ (re)\"

It removed all of them when I uploaded

time to rebuild em the correct way I suppose

19 years ago #5992
I found that often the error messages on imports refer to the line above the one reported. For example, if you put in a + no and forget to add a response for it, the error message will tell you the next keyphrase is not indented properly.

And another vote for TextPad. I've been using it exclusively for years. Now with WIldEdit it's even better. I'm thinking about writing a syntax file for PF, if anyone's interested. My biggest import problem is forgetting to put [0] after Seeks. Royal PIA, especially if you routinely put + yes, + no, + nomatch after the bot asks a question. Hundreds of the bloody things to search through.

M

19 years ago #5993
Uh, I'm not sure if anyone else noticed, but in the Language Center, when you're adding new responses, the number 3 is listed twice on the side where it numbers how many responses you have. (Man, I am awful at explaining things.)

19 years ago #5994
Actually, whichever line has the last entered response will have its number duplicated. So if you've got three responses, the next line down will be 3____________. No clue why, but it holds until you fill them all up.


Posts 5,983 - 5,994 of 8,681

» More new posts: Doghead's Cosmic Bar