Page 1 of 1

Can't get the compass to update, what did I mess up?

Posted: Sun Aug 07, 2011 1:52 am
by Jarrin
I started to play Materia Magica and have ported in the Achea Fancy GUI because I like the compass and gauges. I've got the gauges updating properly, but I can't seem to get a trigger to fire on the visible exits line.

I started with a filter chain 'compass' that uses a substring to match
Code: [show] | [select all] lua
Visible Exits: 
That filter leads into the secondary filter 'exit filter chain' using RegEx
Code: [show] | [select all] lua
^Visible Exits: (.*)$
which sets the direction values to 0 just like in the Achaea version

then it feeds into the next filter 'direction filter' which should capture the viable directions from the Visible Exits line using RegEx:
Code: [show] | [select all] lua
[\s]?(\w+)[\s]
I used [\s] for a space, because one always follows Visible Exits:
Directions show as N E S W Ne Se Nw Sw U D if they are available. (\w+) should capture those correct?
Then I have triggers for each direction to set the direction to 1 and showWindow("direction")

Here is a screenshot of the mud output:

Image

What am I doing wrong?

Re: Can't get the compass to update, what did I mess up?

Posted: Sun Aug 07, 2011 11:35 pm
by Rakon
Screenshot is not working.

Re: Can't get the compass to update, what did I mess up?

Posted: Mon Aug 08, 2011 2:31 am
by Jarrin
let me try the image again

Image

if it fails this time here is a link to photobucket

http://i45.photobucket.com/albums/f85/p ... nt0/MM.png