Mudlet Map Generator?

by Unknown

Back to Mechanic's Corner.

Unknown2010-08-11 02:42:05
I know I've seen this in the forums before, but does anyone have the package for generating the IG Map in a little window for Mudlet? Or can point me to where it is? I have tried to install it once before, but it was wonky and ended up messing something up. I keep using the map command, so having it always there would be a great convenience.
Neos2010-08-11 04:25:43
QUOTE (Shou @ Aug 10 2010, 10:42 PM) <{POST_SNAPBACK}>
I know I've seen this in the forums before, but does anyone have the package for generating the IG Map in a little window for Mudlet? Or can point me to where it is? I have tried to install it once before, but it was wonky and ended up messing something up. I keep using the map command, so having it always there would be a great convenience.


Link in demonnics sig leads to the map xml
Unknown2010-08-11 05:54:36
Thanks, installed it again, but I'm still having problems. I downloaded md-map-v2-1.0.5.xml since that's the only one for Lusternia I could find. Here's a screenshot:



Can the room descs appear in the main window instead of map window? And how can I resize/reposition it? The script says not to touch it...
Lilia2010-08-11 07:58:30
QUOTE (Shou @ Aug 11 2010, 12:54 AM) <{POST_SNAPBACK}>
Can the room descs appear in the main window instead of map window? And how can I resize/reposition it? The script says not to touch it...


I had this problem too. I can't remember exactly how I fixed it, although I think it has something to do with the font settings. In this line: moveWindow( "mk_map", WindowWidth-x*45-20, 0) change the bolded numbers to move it around.

Oh, I think I remembered! Make sure you config mapwidth 5
Unknown2010-08-11 14:41:10
Correct, it's designed to work with map radius 5. Much easier to code it when you know how many lines it is going to be.

iirc the command actually is MAP RADIUS 5
Unknown2010-08-11 15:06:07
Works like a charm now, thank you both!!
Unknown2010-08-11 21:37:45
Hrm I noticed there were some parts of the UV that are not captured into the map window, for example here:

CODE
--- Area 116: The Illteeth Tunnels  v8275 ---
      |                 /       \\   /
     -                    
    /   \\ |         /             |
     --            
  |                             /
                        
/                           /
                        
                          |
                        
                        /   \\
-         -     -
/       \\       /                   \\
         -                    
                                      |
                                    
                                      |
                                    
                                        \\
                                        
                                            \\
                                            
                                            
--- inside a worm-like maw ------ -9:39:0 ---


Compared to a room that is captured, like here:

CODE
--- Area 184: The Master Complex - v12989 ---
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                  |
                
                    \\
                    
                    /
                
                    \\
                    
                    /
                
                /   \\
                 
              |       |
                 
            /   \\   /   \\
--- a waxy tunnel ----------------- 1:6:0 ---


Any ideas why?
Unknown2010-08-11 22:25:30
QUOTE (Shou @ Aug 11 2010, 05:37 PM) <{POST_SNAPBACK}>
Hrm I noticed there were some parts of the UV that are not captured into the map window, for example here:

CODE
--- Area 116: The Illteeth Tunnels  v8275 ---
      |                 /       \\   /
     -                    
    /   \\ |         /             |
     --            
  |                             /
                        
/                           /
                        
                          |
                        
                        /   \\
-         -     -
/       \\       /                   \\
         -                    
                                      |
                                    
                                      |
                                    
                                        \\
                                        
                                            \\
                                            
                                            
--- inside a worm-like maw ------ -9:39:0 ---


Compared to a room that is captured, like here:

CODE
--- Area 184: The Master Complex - v12989 ---
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                  |
                
                    \\
                    
                    /
                
                    \\
                    
                    /
                
                /   \\
                 
              |       |
                 
            /   \\   /   \\
--- a waxy tunnel ----------------- 1:6:0 ---


Any ideas why?



Would have to look at the regex involved to be sure, but I believe it's possible it is the lack of a - between the area name and the room's vnum, which occurs in the second but not in the first example.
Lilia2010-08-11 22:45:29
Off the top of my head, Magnagora and Acknor don't capture right for me.
Unknown2010-08-11 22:58:29
QUOTE (Lilia @ Aug 11 2010, 06:45 PM) <{POST_SNAPBACK}>
Off the top of my head, Magnagora and Acknor don't capture right for me.


I will make a profile with just that in it, and any temporary alts necessary to check it out.
Neos2010-08-12 00:33:20
Yeah, the regex is missing an option. It's the problem I had a while back with this. This is the changed regex that captures everything so far, though I don't travel much.
CODE
^+ v(\\d+) +$ -- first regex
^+ .* ?+?+ v\\d+ +$ -- second
Unknown2010-08-13 07:02:35
QUOTE (AquaNeos @ Aug 11 2010, 08:33 PM) <{POST_SNAPBACK}>
Yeah, the regex is missing an option. It's the problem I had a while back with this. This is the changed regex that captures everything so far, though I don't travel much.
CODE
^+ v(\\d+) +$ -- first regex
^+ .* ?+?+ v\\d+ +$ -- second


Thanks, this worked to solve the map problem above, however it didn't capture everything, like this one below:

CODE
--- Area 26: Avechna's Teeth ------ v2086 ---
              |
            
              |
            
              |
            -
              |
            -
                \\
                
                    \\
                    
                      |
                    
                      |
                    
                    /
                
                /
            
              |
            
              |
--- the edge of a large bowl ----- 2:62:0 ---


I tried looking at the pattern too, but I can't figure it out.
Unknown2010-08-13 12:01:31
I use this for the start line: ^\\-\\-\\-.+? v\\d+ \\-\\-\\-+$
I use this for the end line: ^\\-\\-\\-.+? +\\:+\\:+ \\-\\-\\-+$
And, for everything in between, it's simply: .+
Neos2010-08-13 17:41:16
QUOTE (Shou @ Aug 13 2010, 03:02 AM) <{POST_SNAPBACK}>
Thanks, this worked to solve the map problem above, however it didn't capture everything, like this one below:

CODE
--- Area 26: Avechna's Teeth ------ v2086 ---
              |
            
              |
            
              |
            -
              |
            -
                \\
                
                    \\
                    
                      |
                    
                      |
                    
                    /
                
                /
            
              |
            
              |
--- the edge of a large bowl ----- 2:62:0 ---


I tried looking at the pattern too, but I can't figure it out.


weird that regex captures that area for me easily. Not sure why it's not working for you.
Unknown2010-08-13 17:47:59
QUOTE (Zarquan @ Aug 13 2010, 08:01 AM) <{POST_SNAPBACK}>
I use this for the start line: ^\\-\\-\\-.+? v\\d+ \\-\\-\\-+$
I use this for the end line: ^\\-\\-\\-.+? +\\:+\\:+ \\-\\-\\-+$
And, for everything in between, it's simply: .+



you don't have to escape the - character outside of a range grouping/capture group

eta: At least, Mudlet doesn't seem to require it, and kiki (which I use to test regex) doesn't require it.
Unknown2010-08-13 18:00:18
I escape all symbols out of habit, and it doesn't really hurt to escape too much.
Unknown2010-08-13 19:23:12
QUOTE (Zarquan @ Aug 13 2010, 02:00 PM) <{POST_SNAPBACK}>
I escape all symbols out of habit, and it doesn't really hurt to escape too much.



This is true. I didn't mean it to be corrective, more just another piece of information for people to have =)
Unknown2010-08-14 05:40:57
EDIT: Working now, thanks to a new regex by Demonnic!!!

^---\\s*.+v\\d+.*---$

I don't know what that means but it looks beautiful to me.