[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  Map miniwindow in MKO?

Map miniwindow in MKO?

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


Pages: 1 2  

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Sun 15 May 2011 01:36 AM (UTC)
Message
Hi there.

I tried to omit my map and send it to a mini-window... but I have no idea what I'm doing with miniwindows... or omitting really...

My map looks like this:

------- v6760 -------
                     
                     
                     
                     
                     
         [+]- - - - -
        / | 
     [^] [ ]
      | 
      | 
      | 
------ -3:7:0 -------


I don't care about changing the format or anything... I just want this omitted from my output and carbon copied into a mini-window... How would I go about this?
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Sun 15 May 2011 01:43 AM (UTC)
Message
You can download my Achaea map-window plugin [1] and refit it for MKO if you want. I'd appreciate it if you left me a credit in the README or something though!

[1]: http://jonathan.com/achaea/plugins/MapWindow.plugin.zip

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Reply #2 on Sun 15 May 2011 01:49 AM (UTC)
Message
Hoping this works, as it's the same company with (probably) exactly the same map system... Will let you know shortly.
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #3 on Sun 15 May 2011 01:54 AM (UTC)

Amended on Sun 15 May 2011 01:55 AM (UTC) by Twisol

Message
If I recall, the mapper is built into the Rapture code shared by all of their MUDs, so it should theoretically work the same. You might also want to grab my GMCP plugin [1], as the MapWindow hooks into some GMCP events so it can tell when to update the map.

[1]: http://jonathan.com/achaea/plugins/GMCP.plugin.zip

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Reply #4 on Sun 15 May 2011 01:58 AM (UTC)
Message
Weeelp... It displays a blank/black window. Do I need any other plugins to get it to work? If not, how can I go about looking at/changing the trigger matches?
[Go to top] top

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Reply #5 on Sun 15 May 2011 02:00 AM (UTC)

Amended on Sun 15 May 2011 02:01 AM (UTC) by Kaimarae

Message
Installed the second plugin, still no display... On the upshot, a black window is a step in the right direction as I couldn't even get that, heh heh.

I have tried manually MAP-ing
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #6 on Sun 15 May 2011 02:01 AM (UTC)
Message
Without the GMCP plugin, you can use MAP PARSE to force a refresh. (Sorry I didn't make that clear originally - it's been a while since I first made it!) With GMCP, it should only take a LOOK/QL or any kind of movement to cause an update.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Reply #7 on Sun 15 May 2011 02:03 AM (UTC)
Message
Moved, looked, MAP-ed. Tried MAP PARSE but it just comes up with a list of commands for it and does nothing. Hmm... Curiouser and curiouser.
[Go to top] top

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Reply #8 on Sun 15 May 2011 02:09 AM (UTC)

Amended on Sun 15 May 2011 02:10 AM (UTC) by Kaimarae

Message
Um. Ok. So, I started attacking something. Now the window has two columns of seemingly random gibberish.

e.g.

adna    rainiecvrs
amna    un famna
bnicm   adtcm
bae     evrdm
bro     odn
cen     ar
clsis   aatu onan


...?
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #9 on Sun 15 May 2011 02:20 AM (UTC)
Message
Oh lovely. That basically means it's been collecting lines from the output window, and it -finally- hit a line that matches the map-end trigger. Then it processed it (removing every other character) and displayed it.

Open up the MapWindow.plugin folder and edit reflexes/map.lua. Find the trigger definition starting with trigger["prompt"], and change the match text to a regexp that matches your prompt. (Paste yours here and I'll try to write one for you.) Then find trigger["arealine"] right above it and replace the match= line with:

match = [[^\-+(?: v\d+ )?\-+$]],


That should match the first line in your example map output. Reload the plugin and give it another try.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Reply #10 on Sun 15 May 2011 02:29 AM (UTC)
Message
Some manner of success. It now updates when I do "MAP", but not when I move or look around. It also doesn't omit the map in the regular text, is it possible to get it to do that?
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #11 on Sun 15 May 2011 02:39 AM (UTC)
Message
The MAP PARSE alias should do that (i.e. hide the map output while still updating the window). It's very odd that it doesn't work for you: I just re-downloaded and installed it and it works fine.

As for auto-updating, type GMCP DEBUG and then type LOOK. Paste all of the new lines (they should be like Char.Vitals <stuff>, Room.Info <stuff>, etc.). If there -aren't- any new lines, or the MUD says that's not a command, let me know.

Oh, incidentally, go to Game -> Configure -> Aliases and make sure "Enable aliases" is checked.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Reply #12 on Sun 15 May 2011 02:43 AM (UTC)
Message
Hummm... MAP PARSE isn't a command, it just comes up with a list of other MAP commands.

There don't appear to be any lines out of the ordinary with debug enabled.

And yes, I use quite a few aliases and they are indeed enabled (checked anyway, juuust to be sure)
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #13 on Sun 15 May 2011 02:53 AM (UTC)

Amended on Sun 15 May 2011 02:55 AM (UTC) by Twisol

Message
....That's very weird, because it's an alias I put in MapWindow. It shouldn't be coming up with a list of commands, it should do nothing visibly at all. And yet GMCP's debug alias seems to be working.

When you installed GMCP, were you connected or not? If you were connected, have you since reconnected? I'm not sure, but I think GMCP can only be enabled right as you're connecting to the MUD, so you should reconnect to be sure.

If you open up the reflexes/map.lua file again, are there any 'alias' lines at the bottom? There should be two, one for any generic MAP* command and another for the MAP HELP output for my plugin. If they're both there, see if MAP HELP works at all.

[EDIT]: You may need to add the "sequence = 99," property to the help alias, due to a bug in my alias ordering I just noticed.

[EDIT]: Woohoo! 2,000th post!

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Kaimarae   (34 posts)  [Biography] bio
Date Reply #14 on Sun 15 May 2011 03:02 AM (UTC)
Message
Yay for your 2000th post!

MAP HELP comes up with the same list of commands as MAP PARSE.

In oth- WOAH. Just reconnected. Many MANY new lines upon looking around...

Hold on. They are:

Password correct. Welcome to Midkemia Online.
Your last login was from domain: pa114-72-245-171.pa.nsw.optusnet.com.au.

"message"="Char.StatusVars"
"data":
  "city"="City"
  "name"="Name"
  "guild"="Guild"
  "order"="Order"
  "level"="Level"
  "class"="Class"
  "fullname"="Full name"

"message"="Char.Status"
"data":
  "city"="Krondor (Peasant)"
  "name"="Kaimarae"
  "guild"="The Pathfinders (a Runner)"
  "order"="(None)"
  "level"="25 (11.62%)"
  "class"="Warlock Magician"
  "fullname"="Recruit Kaimarae"

"message"="Char.Skills.Groups"
"data":
  1:
    "name"="Vigilance"
    "rank"="Inept (0%)"
  2:
    "name"="Fighting"
    "rank"="Adept (17%)"
  3:
    "name"="Riding"
    "rank"="Inept (0%)"
  4:
    "name"="Arcana"
    "rank"="Adept (0%)"
  5:
    "name"="Thaumaturgy"
    "rank"="Adept (15%)"
  6:
    "name"="Demonology"
    "rank"="Capable (48%)"
  7:
    "name"="Tattoos"
    "rank"="Inept (0%)"

"message"="Comm.Channel.List"
"data":
  1:
    "caption"="Newbie"
    "name"="newbie"
    "command"="newbie"
  2:
    "caption"="Market"
    "name"="market"
    "command"="market"
  3:
    "caption"="Krondor"
    "name"="ct"
    "command"="ct"
  4:
    "caption"="Pathfinders novices"
    "name"="gnt"
    "command"="gnt"
  5:
    "caption"="Pathfinders"
    "name"="gt"
    "command"="gt"

"message"="Char.Name"
"data":
  "name"="Kaimarae"
  "fullname"="Recruit Kaimarae"

"message"="Room.Info"
"data":
  "map"="www.midkemiaonline.com/irex/maps/clientmap.php?map=4&building=0&level=0 12 6"
  "num"=7126
  "name"="First Bank of Krondor."
  "environment"="urban"
  "details":
    1="bank"
  "coords"="4,12,-1,0"
  "exits":
    "n"=566
  "area"="Krondor"

Your moon tattoo tingles slightly.
*** SPECIAL: It's Double XP today!

First Bank of Krondor.
This simple room is small and square without windows or secondary entry point 
other than the main doorway to the street. Iron bars divide the room in half, 
with several guards holding crossbows and swords belted at their waist. Standing
behind the safety bars, they guard a wizened old man who sits behind a desk in 
the middle of the room with a large ledger on his desk, holding a long feathered
quill. There are 2 corpses of a seagull here. Cutlass discarded to one side, a 
mariner lies here covered in his own blood. Her fine clothes ruined, a female 
smuggler lies here dead.
"message"="Char.Items.List"
"data":
  "location"="room"
  "items":
    1:
      "id"="12593"
      "name"="the corpse of a seagull"
    2:
      "id"="15046"
      "name"="the corpse of a seagull"
    3:
      "id"="13146"
      "name"="the corpse of a Quegan mariner"
    4:
      "id"="9505"
      "name"="the corpse of a smuggler"


You see a single exit leading north (open door).
"message"="Char.Vitals"
"data":
  "string"="H:935/935 E:236/236 M:1033/1033 A:500/1000 NL:11/100 "
  "ep"="236"
  "maxhp"="935"
  "hp"="935"
  "maxap"="1000"
  "maxep"="236"
  "maxmp"="1033"
  "mp"="1033"
  "nl"="11"
  "ap"="500"

935h, 236e, 1033m xb A:50% -

Room.Info { "num": 7126, "name": "First Bank of Krondor.", "area": "Krondor", "environment": "urban", "coords": "4,12,-1,0", "map": "www.midkemiaonline.com/irex/maps/clientmap.php?map=4&building=0&level=0 12 6", "details": [ "bank" ], "exits": { "n": 566 } }------- v7126 -------
"message"="Redirect.Window"
"data"="map"

  |           | 
 [<] [P] [S] [ ]
    \ |   |   |     /
-[ ]-[ ]-[ ]-[ ]-[ ]-
      |   |   | 
 [C] [ ] [+] [ ] [N]
      | \   /   \ | 
-[ ] [<]-[ ]-[ ]-[ ]-
  |   | \   /       /
 [ ] [ ] [ ]-[E] [S]
      | / | 
"message"="Redirect.Window"
"data"="main"

------ 12:-1:0 ------


Then the vitals thing just repeats a lot.

My god... Your plugin is the most insane thing I have EVER seen.

Does it track things entering and leaving the room too? Christ.
[Go to top] 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.


47,930 views.

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

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]