[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]  Mapper for Achaea

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Mapper for Achaea

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


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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #120 on Fri 17 Dec 2010 08:17 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #121 on Fri 17 Dec 2010 08:21 PM (UTC)  quote  ]
Message
Change is uploaded to git here:

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

- Nick Gammon

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

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #123 on Wed 29 Dec 2010 11:34 PM (UTC)  quote  ]
Message
Thanks for the supportive comments!

- Nick Gammon

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

Posted by Dontarion   USA  (62 posts)  [Biography] bio
Date Reply #124 on Tue 01 Feb 2011 11:59 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #125 on Wed 02 Feb 2011 04:10 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Dontarion   USA  (62 posts)  [Biography] bio
Date Reply #126 on Wed 02 Feb 2011 06:10 AM (UTC)  quote  ]
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.
[Go to top] top

Posted by Ahiram   (14 posts)  [Biography] bio
Date Reply #127 on Sun 20 Feb 2011 06:06 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Reply #128 on Sun 20 Feb 2011 08:16 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Ahiram   (14 posts)  [Biography] bio
Date Reply #129 on Sun 20 Feb 2011 08:40 PM (UTC)  quote  ]
Message
Much better. Thanks a million.
[Go to top] top

Posted by Dontarion   USA  (62 posts)  [Biography] bio
Date Reply #130 on Mon 21 Feb 2011 05:24 PM (UTC)  quote  ]
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.

[Go to top] top

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

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #132 on Thu 24 Feb 2011 04:37 AM (UTC)  quote  ]
Message
Near the start of the plugin does it say:


<!ENTITY show_other_areas "false" > 



- Nick Gammon

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

Posted by BeardedBuddhist   (21 posts)  [Biography] bio
Date Reply #133 on Thu 24 Feb 2011 06:05 AM (UTC)  quote  ]

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.
[Go to top] top

Posted by Dontarion   USA  (62 posts)  [Biography] bio
Date Reply #134 on Thu 24 Feb 2011 06:25 PM (UTC)  quote  ]
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.
[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.


51,819 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]

[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]