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
➜ Miniwindow plugin - map window for Aardwolf
Miniwindow plugin - map window for Aardwolf
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #15 on Mon 14 May 2012 10:57 AM (UTC) |
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 | Top |
|
Posted by
| CincyMush
(15 posts) Bio
|
Date
| Reply #16 on Mon 31 Dec 2012 02:49 AM (UTC) 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>
| Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #17 on Tue 01 Jan 2013 08:13 PM (UTC) 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. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| CincyMush
(15 posts) Bio
|
Date
| Reply #18 on Fri 04 Jan 2013 02:03 AM (UTC) |
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 | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #19 on Sat 05 Jan 2013 11:10 PM (UTC) |
Message
|
Quote: Is there a way for me to grab the * and switch the colour?
Of course. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| CincyMush
(15 posts) Bio
|
Date
| Reply #20 on Sun 06 Jan 2013 01:23 AM (UTC) 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 | Top |
|
Posted by
| Upkens
(1 post) Bio
|
Date
| Reply #21 on Sun 28 Apr 2013 01:28 AM (UTC) |
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) | 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.
98,355 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top