Regex problem or problem with Memberslist in WoW Roster 1601

Posts from previous Beta sessions

Regex problem or problem with Memberslist in WoW Roster 1601

Postby Dyaxler » Mon Jan 28, 2008 6:07 am

All my guild's mains are using the designation Main in the public note. Sometimes we add additional notes such as "Main Armorsmith/Miner" etc. But the word Main is the first word that appears in the public note. All guild alts are using the tag, for example, "Dyaxler alt"

The Regex I'm using is:

Code: Select all
/([\w]+)\salt/i


I don't think the additional info along with the Main identifier is messing things up because not all toons have additional notes. When I update relations, I get the same result for each character:
"No main match - Main - No alts"

Relations seem to work ok when ever someone uploads their profile. LOL... I'm sure it's my Regex but man am I stumped. Very Happy

Apply on field: Public Note
Use Match No: 1
Main Identifier: Main
No Result: Tried both
Invalid Result: Tried both
Alt of Alt: Tried all options
Update Type: Both

Memberslist: latest version
WoWRoster: v1.9.9.1601
PHP version: 5.2.5
MySQL version: 4.1.22-standard
MySQL client version: 4.1.21

I'm just wondering if my Regex is wrong or there might be something else goofed up.
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm

Regex problem or problem with Memberslist in WoW Roster 1601

Postby zanix » Mon Jan 28, 2008 7:14 am

This regex really only needs to match the alt notes, do not concern yourself with trying to make it match the main notes as well

I would un-install then re-install memberslist to clear the alt tables

Lets use this regex string for this example
Code: Select all
/([\w]+) alt/i


And these settings for alt monitor
Apply on field: Public Note
Use Match No: 1
Main Identifier: Main
No Result: Tried both
Invalid Result: Mainless Alt
Alt of Alt: Set as mainless alt
Update Type: Guild


The first / begins the regex string
/i ends the string and the i tells it is case insensitive

Code: Select all
([\w]+)

Matches a word, in this case a name
The parenthesis () tell regex to remember this word, or name

Code: Select all
 alt

Matches " alt"

So the entire regex string looks for "NAME alt" in the player note

When memberslist examines the player note "Dyaxler alt", it tries to match the regex with that string
Is the first chunk a word "([\w]+)"? Yes
Is the end of the string match " alt"? Yes

The entire string matches the regex, lets continue on


Memberslist takes the word or name, remembered by "([\w]+)" and sees if it exists in the members table

If this name is found, then memberslist marks this name an alt of "Dyaxler"
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Regex problem or problem with Memberslist in WoW Roster

Postby Dyaxler » Mon Jan 28, 2008 7:39 am

Uninstalling Members List and Reinstalling then setting everything to exactly how you suggested results in the follow:

Dyaxler - No main match - Main - With alts

And ever member name in the list has "- No main match - Main - With alts" as well. If I go back and click "Update Relations" again I get the following:

Dyaxler - No main match - Main - No alts

And the same goes for every member in the list. If I uninstall and reinstall again with your settings, it goes back to "- No main match - Main - With alts"

So it appears that it only attempts to parse upon initial install. Then breaks... I don't get any error messages during these results either.

Correction, I do get an error:

addons/memberslist/inc/update_hook.php
Notice line 102: Undefined index: use_global
Last edited by Dyaxler on Mon Jan 28, 2008 7:41 am, edited 1 time in total.
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm

Regex problem or problem with Memberslist in WoW Roster 1601

Postby zanix » Mon Jan 28, 2008 7:59 am

Try entering these settings per guild, see if that works
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Regex problem or problem with Memberslist in WoW Roster

Postby Dyaxler » Mon Jan 28, 2008 9:52 am

We are only one guild on the alliance side on a PvE server. We have no Horde guild. :)

http://www.persistenceguild.net/roster/

Thanks for helping me with this by the way. Just want to get it working so I can continue to test it. I have several test cases I need to try out but can't until I get the basic functions working.
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm

Regex problem or problem with Memberslist in WoW Roster 1601

Postby zanix » Mon Jan 28, 2008 11:58 am

Even if you only have one guild, there is still a per guild setting
Try entering the same info into "Persistence @ US-Cenarius"

The global setting doesn't work for me either, I have to enter the right regex into the per guild section to get it working
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Regex problem or problem with Memberslist in WoW Roster 1601

Postby Dyaxler » Mon Jan 28, 2008 1:53 pm

OMG... duuuuuu... LOL. That worked. I was looking up at the top of the control panel box and it said Persistence so I thought my guild was selected but I didn't notice the setting change until I saw the correct menu item to click on. Thanks Zanix. :)
Dyaxler
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Sat Jan 05, 2008 4:51 pm

Regex problem or problem with Memberslist in WoW Roster 1601

Postby zanix » Mon Jan 28, 2008 2:49 pm

No problem
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Regex problem or problem with Memberslist in WoW Roster 1601

Postby PleegWat » Mon Jan 28, 2008 3:40 pm

Bug fixed: The use global settings switch on each per-guild config page (should to default to on) is no longer deleted by the config system.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron