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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Miniwindow plugin - map window for Aardwolf

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Miniwindow plugin - map window for Aardwolf
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1  2 

Posted by Upkens   (1 post)  [Biography] bio
Date Sun 28 Apr 2013 01:28 AM (UTC)  quote  ]
Message
hey guys.
i am trying to make simplest map on another mud (falloutmud.ca) but installing of plugin doesnot work. can you simplify for new users of mushclient how to make it works on another muds? very bid thanks in advance)
[Go to top] top

Posted by CincyMush   (15 posts)  [Biography] bio
Date Sun 06 Jan 2013 01:23 AM (UTC)  quote  ]

Amended on Sun 06 Jan 2013 04:09 AM (UTC) by CincyMush

Message
Hehe Well lots of digging through the forum helped me find something similar that Nick and Twisol did so I"ve figured it out. Thanks for all the Help
[Go to top] top

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Sat 05 Jan 2013 11:10 PM (UTC)  quote  ]
Message
Quote:
Is there a way for me to grab the * and switch the colour?

Of course.

http://aardwolfclientpackage.googlecode.com/
[Go to top] top

Posted by CincyMush   (15 posts)  [Biography] bio
Date Fri 04 Jan 2013 02:03 AM (UTC)  quote  ]
Message
SO I fixed the issue with picking up the map as it displays on room switching by replacing the coulornotes with simulate so it does not mess with the parsing of map start lines. One final issue I am having is the * that represents my location on the map is showing up in black. In the mud ithas the * with a blinking white cursor so it's not an issue but in the mini window I have to change the background colour from black to grey, but it makes some of the colours look off from the game. Is there a way for me to grab the * and switch the colour?

Thanks
[Go to top] top

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Tue 01 Jan 2013 08:13 PM (UTC)  quote  ]

Amended on Tue 01 Jan 2013 08:16 PM (UTC) by Fiendish

Message
Quote:
the first two lines of the display show portions of my map rather than the roominfo

This is just a stylization in the plugin. You can remove the bit that goes


-- title rectangle
   check (WindowRectOp (win, 2, 2, 2, -2, font_height * 2 + 10, title_colour))
   check (WindowRectOp (win, 5, 2, 2, -2, font_height * 2 + 10, 5, 8))


Quote:
Also it's not displaying the start and end lines of the map frame.

That's because the plugin is set up to catch but not show elements that are merely indicators of the start and end of the map. It only shows the stuff between those indicators. You'd have to edit function map_redirect to look like this if you want to show them...


-- map redirector
function map_redirect (name, line, wildcards, styles)
   if name == "map_start" then
      EnableTrigger ("multi_line_map", true)  -- capture subsequent lines
      map_lines = {}
      max_width = 0
   end

   table.insert (map_lines, styles)
   max_width = math.max (max_width, #line)

   if name == "map_end" then
      EnableTrigger ("multi_line_map", false)  -- no more lines to go
      Display_Map ()
   end -- if

end -- function map_redirect 



Quote:
Also while Look and and move both display the same map with the same dimensions the map only catches the map when I do a look. when I do a move it only seems to rip my closing line of my map from the main screen. The one difference is on roommoves there is a colournote that is displayed before the map and seems to be breaking the trigger processing the map.

Then you'll need reconsider how your triggers work, I think.

http://aardwolfclientpackage.googlecode.com/
[Go to top] top

Posted by CincyMush   (15 posts)  [Biography] bio
Date Mon 31 Dec 2012 02:49 AM (UTC)  quote  ]

Amended on Mon 31 Dec 2012 05:02 PM (UTC) by CincyMush

Message
So I pulled this down and tweaked the trigger to match the start and end of my map windows and it's working somewhat.

the first two lines of the display show portions of my map rather than the roominfo

Also it's not displaying the start and end lines of the map frame.

Also while Look and and move both display the same map with the same dimensions the map only catches the map when I do a look. when I do a move it only seems to rip my closing line of my map from the main screen. The one difference is on roommoves there is a colournote that is displayed before the map and seems to be breaking the trigger processing the map.

Below are the triggers I use and the map from the mud. Any help is greatly appreciated.


/---------------------\
|  |           | X |  |
|  |          ( )-( ) |
|  |           | X |  |
|  |          ( )-( ) |
|  |         / | X |  |
|  |      (*)-( )-( ) |
|  |       | X | X |  |
| ( )     (F)-( )-( ) |
|  |     /   X | X |  |
|-( )-(i)-( )-( )-( ) |
|  |   | \ | X | /    |
\---------------------/


<!--  Triggers  -->

<triggers>

  <trigger
   enabled="y"
   match="^/-{21}\$"
   script="map_redirect"
   omit_from_output="y"
   regexp="y"
   name="map_start"
   sequence="100"
  >
  </trigger>
  
  <trigger
   enabled="n"
   match="*"
   script="map_redirect"
   name="multi_line_map"
   omit_from_output="y"
   sequence="10"
  >
  </trigger>

  <trigger
   enabled="y"
   match="^\-{21}/$"
   script="map_redirect"
   omit_from_output="y"
   name="map_end"
   regexp="y"
   sequence="5"
  >
  </trigger>
    
   
</triggers>

[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Mon 14 May 2012 10:57 AM (UTC)  quote  ]
Message
I think there are other threads about more generic mappers. But yes, it should be possible to do that. After all, once you have the start line, you can disable the trigger that matches that, and enable one that matches the end line.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Lentholium   (4 posts)  [Biography] bio
Date Mon 14 May 2012 04:38 AM (UTC)  quote  ]
Message
Is there a way to make this work when the line at the start of the map is the same at the end? What I am trying to capture looks like this:

------------------------------------------------------------------------
      Compass           Auto-Map            Map Key
     ---------         ----------   -----------------------------
       |   |                        C: City, I: Inside, P: Plain
 |   | |   | |   |                  F: Forest, M: Mountain, H: Hills
 |  W| |{ }| |   |       IIX        S: Sky, W: Water, U: Underwater
 | SW| |   | |   |       III        $: Shop, #: Important, D: Desert
       | S |             III        ~: Shallow Water,  : Lava, X: You
------------------------------------------------------------------------
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sun 18 Apr 2010 12:46 AM (UTC)  quote  ]
Message
It shouldn't change the wrap size on its own. Something must be changing it back.

Anyway, see this page:

Template:post=10106 Please see the forum thread: http://gammon.com.au/forum/?id=10106.


Notice on the screenshot there the text box is much smaller and the map is on one side? Half-way down the page is the alias I used to do that. You can copy and paste that in, and then tweak the settings a bit to make the text part the size you want. You would just have to type that alias every time you started up, or go into the scripting tab and put "!makerect" (note the ! there) in the "on world open" box near the bottom. That makes that alias automatically execute when you open the world.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Chicomecoatl   USA  (25 posts)  [Biography] bio
Date Sat 17 Apr 2010 06:10 PM (UTC)  quote  ]
Message
Likely a stupid question, but is there a way to make the text coming from the mud wrap around the miniwindows? I tried setting the text to wrap at 75 lines in mush 4.51, but every couple of minutes it resets to wrap at 107 lines, and i've tried doing it multiple ways, to no avail.

Appreciate any feedback on this :)
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Fri 26 Mar 2010 09:03 PM (UTC)  quote  ]
Message
The one on this page was designed for the way Aardwolf sends its maps, in particular, on request, it sends <MAPSTART> at the start of the map and <MAPEND> at the end. The plugin uses those to know where to capture the map.

You could adapt it for your MUD if you can identify something that always appears at the start of a map, and something that appears at the end (the thing at the end could be something that is *not* usually in the map, if that makes it simpler).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by WizardsEye   (24 posts)  [Biography] bio
Date Fri 26 Mar 2010 06:26 AM (UTC)  quote  ]
Message
Just by question, because I'm not familiar with how this plugin will work. Do you know if it will work with New Worlds Ateraan?
[Go to top] top

Posted by Kevnuke   USA  (83 posts)  [Biography] bio
Date Tue 23 Mar 2010 12:29 AM (UTC)  quote  ]
Message
SWEETNESS!!
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Fri 12 Mar 2010 04:58 AM (UTC)  quote  ]
Message
Nick Gammon said:
It includes things like terrain info, area relationships, and so on.

Yyyyyyyesssssss!

'Soludra' on Achaea

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Fri 12 Mar 2010 04:58 AM (UTC)  quote  ]
Message
I should add too, that for Aardwolf users, I am working with Lasher to do a version for Aardwolf - I just need a bit more information from the MUD and it should be up shortly. He also is planning to release a full map database.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


14,563 views.

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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]