Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ Achaea's built-in map system.

Achaea's built-in map system.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2  3 

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #30 on Sat 10 Apr 2010 05:08 AM (UTC)
Message
Oh. >_>

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Windmill_Man   USA  (29 posts)  Bio
Date Reply #31 on Sat 10 Apr 2010 09:36 AM (UTC)
Message
Hmm... it seems like the plugin also has trouble with roomnames that have commas...

Also. I made a change with "main.lua" file in the script folder. I made it to where in/out and up/down exits have there own characters so that it's possible to tell them apart from the normal rooms that use the pound character. I think it's pretty cool. Now I could probably do without the compass.

I also have Nick's mapper running with your mapwindow plugin so that I have access to some of the feature it has and so I can use it as a backup or for when the room isn't mapped. Though, for some reason or another, I can't right click on rooms with Nick's plugin. Gives me an error. Also, I mentioned before that the mapper considers ALL rooms to be in the same area (area 0). I saw the screenshots of it in the "Achaea mapper" thread and saw that it listed the area names correctly... so I don't know what's up with mine. This could probably go in another thread though...
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #32 on Sat 10 Apr 2010 11:16 AM (UTC)

Amended on Sat 10 Apr 2010 11:17 AM (UTC) by Nick Gammon

Message
You're going to have to add a comma to the list then:


 match   = [[^\-+(?: [A-Za-z'"\-_ \(\),]+ )?(?:\-+)?(?: -?\d+:-?\d+:-?\d+ )\-+$]],


As for the error, what was it exactly?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Windmill_Man   USA  (29 posts)  Bio
Date Reply #33 on Sat 10 Apr 2010 11:50 AM (UTC)

Amended on Sat 10 Apr 2010 02:46 PM (UTC) by Windmill_Man

Message
This is it.

Error number: 0
Event:        Run-time error
Description:  [string "Plugin"]:871: bad argument #1 to 'WindowInfo' (string expected, got nil) stack traceback: 	[C]: in function 'WindowInfo' 	[string "Plugin"]:871: in function 'room_click' 	D:\Games\MUSHclient\lua\mapper.lua:261: in function <D:\Games\MUSHclient\lua\mapper.lua:253>
Called by:    Function/Sub: mapper.mouseup_room called by Plugin ATCP_Mapper Reason: Executing plugin ATCP_Mapper sub mapper.mouseup_room


EDIT: By the way... I would have added the comma myself... but I can't tell what's going on with that line. :P
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #34 on Sat 10 Apr 2010 06:53 PM (UTC)

Amended on Sat 10 Apr 2010 07:05 PM (UTC) by Twisol

Message
Windmill_Man said:
Also. I made a change with "main.lua" file in the script folder. I made it to where in/out and up/down exits have there own characters so that it's possible to tell them apart from the normal rooms that use the pound character. I think it's pretty cool. Now I could probably do without the compass.


Slick. I should have thought of that. *laughs* My plan was to add an overlay of up/down/in/out symbols on top of each room, but I didn't get around to it. Your approach is probably smarter though: since each room on the MAP can only have one symbol for information at a time, there's not much point, because you'd never have more information besides a symbol and a color to display.


Windmill_Man said:
EDIT: By the way... I would have added the comma myself... but I can't tell what's going on with that line. :P

Nick Gammon said:

match   = [[^\-+(?: [A-Za-z'"\-_ \(\),]+ )?(?:\-+)?(?: -?\d+:-?\d+:-?\d+ )\-+$]],


To break it down:

pattern ::= <dashes> <room nane> <dashes>? <coordinates> <dashes>
dashes ::= (?:\-+)
room name ::= (?: [A-Za-z'"\-_ \(\),]+ )?
coordinates ::= (?: -?\d+:-?\d+:-?\d+ )

Since the room name characters are clearly so hard to pin down, I'd try just using this instead:

room name ::= (?: .+? )?

One or more of any character, non-greedy match, whole thing optional. That comes out to:

^\-+(?: .+? )?(?:\-+)?(?: -?\d+:-?\d+:-?\d+ )\-+$

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Windmill_Man   USA  (29 posts)  Bio
Date Reply #35 on Sat 10 Apr 2010 10:46 PM (UTC)
Message
Yeah. You've done good. The map is more compact because you took the brackets out, which makes it nicer as a mini window because I think it might make it more "mini". Anyways, I had to make up/down as U/D because the underscore looked weird (it just looked like more of the lines between the rooms) without the brackets. I was wondering if there was a upside down caret or maybe some arrows I could use... but I didn't find any. "U" and "D" look good though. The in/out exits are still represented as "<" and ">" too.

Yeah. That line is less confusing. I'll see if there's a difference in performance between the two later. Thanks!
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #36 on Sun 11 Apr 2010 04:19 AM (UTC)
Message
Windmill_Man said:
I was wondering if there was a upside down caret or maybe some arrows I could use...


Could use 'v', couldn't you? ^v<>

I hope you're putting my translation tables (color and symbol) to good use. :)

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Windmill_Man   USA  (29 posts)  Bio
Date Reply #37 on Sun 11 Apr 2010 06:31 AM (UTC)
Message
Oh man... I never thought of using "v"... I'll try that.
Top

Posted by Indico   (16 posts)  Bio
Date Reply #38 on Mon 19 Apr 2010 11:30 PM (UTC)
Message
Hey Twisol, I got your gauges plugin off of your site and have been trying to get it to run off of Nick's ATCP plugin, since it is what the new mapper runs off of...and I'm having a lot of trouble getting into your work and figuring out what is going on. Could you point out what exactly I'd have to change to get it to work?
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


88,803 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.