Aliases not loading in 4.04

Posted by Norbert on Thu 19 Apr 2007 11:19 AM — 9 posts, 42,557 views.

USA #0
I get pages and pages of similar errors like the following
Quote:
Line 72: Error "Failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0
" processing regular expression "^\#snoop (.*?)$" (alias not loaded)

This one is from the aliases in the Lua_chat plugin, but none of the aliases in the world file were loaded either.
Any suggestions on how to fix this?

Amended: There is a block character after the 0 that did not show up when I pasted the error into the formum, not sure if that helps out or not.
Amended on Thu 19 Apr 2007 11:22 AM by Norbert
Australia Forum Administrator #1
Can you paste the alias itself (one that fails)? See:

http://mushclient.com/copying

That regexp seems to work for me, however it is possible that I overlooked enabling UTF-8 support when upgrading the PCRE engine.
Amended on Thu 19 Apr 2007 01:19 PM by Nick Gammon
Australia Forum Administrator #2
Yes it looks like the way the PCRE people renamed configuration files and everything, that one slipped through. I will do a new version tomorrow with the UTF-8 support added back in.

It would still help if you posted an example alias that uses UTF-8, for testing purposes.
Amended on Thu 19 Apr 2007 01:39 PM by Nick Gammon
#3
It's kind of hard since launching 4.04 ate all of my aliases and triggers. (And overwrote the worldfile so they are truly and finally gone.)

None of them used UTF-8 and the world file itself wasn't UTF-8. They were all regular expressions, one of them being an alias for ".*", i.e:
  <alias
   name="OnCommand"
   script="OnCommand"
   match="^(.*)$"
   enabled="y"
   regexp="y"
   sequence="50"
  >

USA #4
Dang! Good thing I didn't run into that bug... Mine is intact after running 4.04.
USA #5
This is why I save my world files before upgrading. I also noticed that when I upgraded to 4.03, then downgraded to 4.01, the saved state of Onoitsu's spellup script was eaten up somewhere. I started manually adding all 40 spells before remembering that I could just copy over the saved state.

I haven't tried 4.04 yet, since I'd like to get a speedwalk script down before upgrading again.
Australia Forum Administrator #6
Quote:

It's kind of hard since launching 4.04 ate all of my aliases and triggers. (And overwrote the worldfile so they are truly and finally gone.)


Ach! Sorry about that, that is so annoying when that happens.

I know it is a bit late, but my advice is to save your world files (and plugins) before upgrading. In fact, regular backups will also help if you accidentally delete something you want to keep.

Quote:

None of them used UTF-8 and the world file itself wasn't UTF-8.


It isn't totally clear to me why you had the problem if you are not using UTF-8 anywhere.

I had the UTF-8 option turned on in a file called "internal.h" however the newer version of PCRE switched to using "config.h", and thus the option was no longer processed. And as I don't normally use Unicode I didn't notice it.
USA #7
None of my aliases were UTF-8, I only had the UTF-8 block checked in Global preferences. And it did it to all aliases, including the ones inside plugins, but those weren't deleted. I was able to load my saved alias file for that world so I didn't lose too many, but I still get the error messages when I open the world, and I've unchecked UTF-8 in the Global preferences and saved the world file.
Australia Forum Administrator #8
Ah that explains why I didn't see the message. If you check the UTF-8 box it sets the flag when processing regular expressions (whatever they may have in them), and then the PCRE routine warned it hadn't been compiled with that support in it.