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 ➜ Mapper for Achaea

Mapper for Achaea

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


Pages: 1  2  3  4  5  6  7  8  9 10  11  12  13  

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #120 on Fri 17 Dec 2010 08:17 PM (UTC)
Message
The relevant part of the code is:


 local areaname = room.area
  if tonumber (areaname) then
    areaname = areas [tonumber (areaname)]
  end -- convert to name
    
  room.hovermessage = string.format (
      "%s\tExits: %s\nRoom: %s\nArea: %s%s%s%s",
      room.name, 
      table.concat (texits, ", "),
      uid,
      areaname,
      terrain,
      info,
      notes
      -- depth,
      -- table.concat (path, ",")
      )


I think I would convert the first line to read:


 local areaname = room.area or "Unknown"


It was complaining about bad argument #5 to 'format' (string expected, got nil). The 5th argument is areaname, which must have been nil. The change I made would at least make it display as "Unknown".

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #121 on Fri 17 Dec 2010 08:21 PM (UTC)
Message
Change is uploaded to git here:

https://github.com/nickgammon/plugins/commit/e344b9f01ad

- Nick Gammon

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

Posted by Nylian   (12 posts)  Bio
Date Reply #122 on Wed 29 Dec 2010 06:27 AM (UTC)
Message
This mapper is ABSOLUTELY INCREDIBLE and I have suggested it to everyone I talk to about maps. Nick, you are freaking amazing.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #123 on Wed 29 Dec 2010 11:34 PM (UTC)
Message
Thanks for the supportive comments!

- Nick Gammon

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

Posted by Dontarion   USA  (62 posts)  Bio
Date Reply #124 on Tue 01 Feb 2011 11:59 PM (UTC)
Message
I read through the comments but I'm sure I missed some.

Nick or anyone: Why does the mapper only draw one level now instead of just drawing until the max length limit is reached or a collision is detected? That is how an older version I had worked and I'd like to be able to turn that back on; suggesting that there is even a toggle for this. I haven't looked in the code yet.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #125 on Wed 02 Feb 2011 04:10 AM (UTC)
Message
At the start of the plugin are a few lines like this:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE muclient [
  <!ENTITY show_vnums "true" > 
  <!ENTITY show_timing "false" > 
  <!ENTITY show_completed "false" > 
  <!ENTITY show_database_mods "true" > 
  <!ENTITY show_other_areas "false" > 
  <!ENTITY show_area_exits "true" > 
  <!ENTITY show_up_down "false" > 
  <!ENTITY speedwalk_prefix "" > 
]>



Change true/false as required to enable various features. You might want to change "show_other_areas". Then reload the plugin.

- Nick Gammon

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

Posted by Dontarion   USA  (62 posts)  Bio
Date Reply #126 on Wed 02 Feb 2011 06:10 AM (UTC)
Message
Thanks.

Something you may want to implement is adding another true/false option there to eliminate the down dashed lines when the room is classified a shop. Fairly easy to code as I put it in an older version of the map.
Top

Posted by Ahiram   (14 posts)  Bio
Date Reply #127 on Sun 20 Feb 2011 06:06 PM (UTC)
Message
Quick question. I installed the mapper and it works great. But later I connected to Achaea through a program called VadiSystem and the mapper stopped working. Does anyone know why or how to fix this? There's a companion program to the MushClient mapper called VadiMap, but given the choice between the two, I'd much rather have the one I got from this site.
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #128 on Sun 20 Feb 2011 08:16 PM (UTC)
Message
I believe it's because Vadisys filters out certain ATCP messages that the mapper requires, because I remember dealing with this with someone else.

You can try setting this configuration option in the config.txt file:
atcp_info "yes"

'Soludra' on Achaea

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

Posted by Ahiram   (14 posts)  Bio
Date Reply #129 on Sun 20 Feb 2011 08:40 PM (UTC)
Message
Much better. Thanks a million.
Top

Posted by Dontarion   USA  (62 posts)  Bio
Date Reply #130 on Mon 21 Feb 2011 05:24 PM (UTC)
Message
I've noticed now the new plugin isnt reading ATCP correctly. Every new room is being classified as black forest. I will test some more tonight and make sure I updated all pieces of the new mapper correctly.

Top

Posted by BeardedBuddhist   (21 posts)  Bio
Date Reply #131 on Thu 24 Feb 2011 03:10 AM (UTC)
Message
Hours have brought me no closer to making the map simply not show other areas... (sigh)I love coding.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #132 on Thu 24 Feb 2011 04:37 AM (UTC)
Message
Near the start of the plugin does it say:


<!ENTITY show_other_areas "false" > 



- Nick Gammon

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

Posted by BeardedBuddhist   (21 posts)  Bio
Date Reply #133 on Thu 24 Feb 2011 06:05 AM (UTC)

Amended on Thu 24 Feb 2011 09:51 AM (UTC) by BeardedBuddhist

Message
Nick Gammon said:

Near the start of the plugin does it say:


<!ENTITY show_other_areas "false" > 





Aye, it does. Tried changing it to true as well, just to see, but yes it is at false.

Edit: I was using Dontarion's modified mapper plugin, with Kairuni's length stuff scripted in. I thought that might be the hold up so I did try to tinker with the default mapper plugin as well, but I could not figure out how to hide other areas with either.

Edit 2: I have completely wiped everything and reinstalled the latest version of MUSHCLIENT. Out of the box, the mapper is now properly hiding areas (that are now instead numbered).

Problem Found: Dontarion's beautiful but lethal mapper.lua.
Top

Posted by Dontarion   USA  (62 posts)  Bio
Date Reply #134 on Thu 24 Feb 2011 06:25 PM (UTC)
Message
@ Nick:

Think you could work in a permanent solution for tracking wormholes? I'm going to re-add my wormhole solution into the current version but IIRC the last time took quite a bit effort but this is because I don't do SQL at all.
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.


501,810 views.

This is page 9, subject is 13 pages long:  [Previous page]  1  2  3  4  5  6  7  8  9 10  11  12  13  [Next page]

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.