I've done some testing and I think I've worked out the best way to do this. What I'm planning is:
- check for spaces, hyphens and apostrophes, and deal with those (by taking whatever's in front of them as the filename)
- then check it's a valid filename, and if not, discard the player name and just use a number
- put the full name as the first string in the file, so you can just open it to find out which character it's for if the name can't be used.
Unfortunately it seems I can't really take the characters that are OK and leave the rest (at least, not without pulling the name apart, checking everything and reassembling the usable bits, which IMO would be overkill). The whole name-in-filename thing was just for convenience anyway, so you know what files are OK to delete without opening them.
I'll need to rewrite some scripts and test them though, so it'll probably be a few days before it's ready. And I was also thinking of adding a way to re-order your marks, since I can do that without compatibility problems (I think) - but I'll see how long it takes to do, I want the bug fixed ASAP so maybe the other stuff can wait.
If I reinstall it, and make a new character, with no symbols in his name, will the mod work?
Yes, the mod as it is will work as long as your character's name starts with a word containing only letters (and/or numbers). It will actually still work if there's a word, then a space, then a hyphenated word after (because it will stop at the space, so what's after it doesn't matter). Apostrophes are a problem too, btw.
And then can I just uncheck it and enable teleporting when I play my other character? Or does it have to be completely uninstalled to enable teleporting?
Just uncheck it, no need to uninstall.
I want to mark on target the commoners so they're all wandering around the wrong town. Or have a mark over some lava pit in the middle of the ashlands and teleport anyone who makes me mad there.
Or teleport a winged twilight to seyda neen, lol.
Maybe I should make an addon just for fun
By the way, my MWSE is version 0.9.4.1, but my .dll and MWSE log say 0.9.4.0 Does that make any difference?
That sounds right - should be fine.
Again, I apologise - I really should have thought of this and tested it out. For some reason it just never occurred to me (probably because my characters have all had one-word names).