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, 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.
 Entire forum ➜ MUSHclient ➜ Plugins ➜ MUSHclient generic graphical mapper module

MUSHclient generic graphical mapper module

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  14 15  16  17  

Posted by Crular   (12 posts)  Bio
Date Reply #195 on Sun 06 Nov 2011 06:31 AM (UTC)
Message
Xyllomer IP: mud.xyllomer.de Port 3000
Enable room headers: @options room 1
After enabling the headers enter "save".

I have to add, that I saw rooms in the MUD which all had 0, 0 as coordinates. Maybe this was intentional, as this was some kind of maze. Just wanted to inform you, so maybe using the coordinates isn't the best idea, don't know. But then, there are also room which have the same description in the header.

Really appreciate you looking into it, very kind of you.

Thanks,

Crular
Top

Posted by Nick Gammon   Australia  (23,072 posts)  Bio   Forum Administrator
Date Reply #196 on Sun 06 Nov 2011 08:44 AM (UTC)
Message
Crular said:


I have to add, that I saw rooms in the MUD which all had 0, 0 as coordinates. Maybe this was intentional, as this was some kind of maze.


This is a bit of a deal-breaker.

<sigh> With MMORPG games giving players all sorts of mini-maps, maps and other info, to make their life less confusing, it seems that MUDs that deliberately withhold, or make confusing, information are trying to deliberately become unpopular.

- Nick Gammon

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

Posted by Crular   (12 posts)  Bio
Date Reply #197 on Sun 06 Nov 2011 08:55 AM (UTC)
Message
Well, there were not many of those rooms around. Would it break the whole mapping, or would those rooms just not get mapped? I could live with that, as I said, those rooms aren't that common.
Top

Posted by Nick Gammon   Australia  (23,072 posts)  Bio   Forum Administrator
Date Reply #198 on Mon 07 Nov 2011 03:29 AM (UTC)

Amended on Mon 07 Nov 2011 04:21 AM (UTC) by Nick Gammon

Message
Well, I made a start on it.

I modified the Materia Magica one and added an extra couple of triggers to match both:


[Inside the Wanderer's Tavern.
][Exits: n, out, s, u][COORDS: 52.5n, 6e]


(two lines)

and:


[A large courtyard behind the Adventurer's Guild][Exits: w][COORDS: 52.5n, 6.5e]


(one line)

The modified version can be downloaded from GitHub here:

https://github.com/nickgammon/plugins/blob/xyllomer/Materia_Magica_Mapper.xml

RH-click on the "Raw" button near the top to get a raw copy (and do a "save as").

These are the sort of results I got so far:



It's not perfect, the use of lots of exits like this:


You can leave: east, west, post,stable.


... make it hard for a mapper designed for n, s, e, w and so on.

Also you have to walk back and forwards a bit to "link" rooms to each other. But it can be done, as you see.

[EDIT] I left some debugging "prints" in there. You may want to delete or comment them out if they are annoying you. They basically show when the mapper is "doing stuff".

- Nick Gammon

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

Posted by Crular   (12 posts)  Bio
Date Reply #199 on Mon 07 Nov 2011 12:16 PM (UTC)
Message
Thank you so much for looking into it and for adjusting the mapper to Xyllomer. I downloaded the raw version, renamed it to Xyllomer_Mapper, put it in \worlds\plugins and loaded it in MUSHclient.

When I start MUSHclient now I get the following error:

Error number: 0
Event: Run-time error
Description: [string "Plugin"]:729: table rooms has no column named description

stack traceback:

[C]: in function 'error'

[string "Plugin"]:664: in function 'dbcheck'

[string "Plugin"]:729: in function 'save_room_to_database'

[string "Plugin"]:240: in function <[string "Plugin"]:215>
Called by: Function/Sub: Xyllomer_Line called by trigger

Reason: processing trigger ""

Could you advise me what I missed and how I can fix it?

Thanks,

Crular
Top

Posted by Nick Gammon   Australia  (23,072 posts)  Bio   Forum Administrator
Date Reply #200 on Mon 07 Nov 2011 06:45 PM (UTC)
Message
Template:version Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,072 posts)  Bio   Forum Administrator
Date Reply #201 on Mon 07 Nov 2011 06:55 PM (UTC)
Message
I don't see why that is happening. I just deleted the database file and started again and it worked OK. Please make sure you have the latest version of MUSHclient. That is currently 4.79:

http://www.gammon.com.au/forum/?bbtopic_id=1

I deleted some stuff not relevant to Xyllomer and uploaded the changes to GitHub. Just re-download from:

https://github.com/nickgammon/plugins/blob/xyllomer/Materia_Magica_Mapper.xml


- Nick Gammon

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

Posted by Crular   (12 posts)  Bio
Date Reply #202 on Mon 07 Nov 2011 07:15 PM (UTC)
Message
Ok, I installed the latest version, before I had 4.73 installed and downloaded the newest version of the plugin.
I have only this one plugin installed, but it still does not work. I have to add, using the standard mapper plugin doesn't produce the error message, though the mapping of course does not work. The mapper also works in the Achaea MUD for example. This is the error I get now:
Run-time error
Plugin: Xyllomer_Mapper (called from world: Xyllomer)
Function/Sub: OnPluginInstall called by Plugin Xyllomer_Mapper
Reason: Executing plugin Xyllomer_Mapper sub OnPluginInstall
[string "Plugin"]:604: table rooms has no column named shop
stack traceback:
[C]: in function 'error'
[string "Plugin"]:492: in function 'dbcheck'
[string "Plugin"]:604: in function 'create_tables'
[string "Plugin"]:374: in function <[string "Plugin"]:344>
Error context in script:
600 :
601 :
602 : function create_tables ()
603 : -- create rooms table
604*: dbcheck (db:execute[[
605 :
606 : PRAGMA foreign_keys = ON;
607 : PRAGMA journal_mode = WAL;
608 :
Top

Posted by Crular   (12 posts)  Bio
Date Reply #203 on Mon 07 Nov 2011 07:20 PM (UTC)

Amended on Mon 07 Nov 2011 08:08 PM (UTC) by Crular

Message
Ok, I took your hint to delete the database files. So I tried and deleted the mud.xyllomer.de_3000.db file in the MUSHclient directory. And now the error is gone, the mapper seems to work, will test it in detail.

Thanks for all your work and help, much appreciated.

EDIT:
Some rooms don't get mapped, but that isn't the fault of the plugin, but due to bad coding of the MUD, i.e. multiple rooms with the same name and coordinates. I can live with that.

Walking with the mapper plugin seems to be much slower than without, i.e. the output seems to be slower, feels like lag. Is this normal, or can something be done about it?
Top

Posted by Nick Gammon   Australia  (23,072 posts)  Bio   Forum Administrator
Date Reply #204 on Mon 07 Nov 2011 07:45 PM (UTC)
Message
Probably by testing with another mapper you created a different database. I initially called the field "description" just "desc" but had to modify that because DESC is a SQL keyword.

Deleting and recreating appears to have done the trick.

As for speed, I noticed that too but wasn't sure. SQLite3 should be fast, I'll investigate that a bit more.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,072 posts)  Bio   Forum Administrator
Date Reply #205 on Mon 07 Nov 2011 08:02 PM (UTC)
Message
Well for timing I disabled the plugin, and then did 5 x "north" to see how long that took without the mapper:



Sent  packet: 110 (7 bytes) at Tuesday, November 08, 2011, 6:51:05 AM

north..            6e 6f 72 74 68 0d 0a

Sent  packet: 111 (7 bytes) at Tuesday, November 08, 2011, 6:51:05 AM

north..            6e 6f 72 74 68 0d 0a

Incoming packet: 234 (2 bytes) at Tuesday, November 08, 2011, 6:51:05 AM

>                  3e 20

Sent  packet: 112 (7 bytes) at Tuesday, November 08, 2011, 6:51:05 AM

north..            6e 6f 72 74 68 0d 0a

Sent  packet: 113 (7 bytes) at Tuesday, November 08, 2011, 6:51:06 AM

north..            6e 6f 72 74 68 0d 0a

Incoming packet: 235 (2 bytes) at Tuesday, November 08, 2011, 6:51:06 AM

>                  3e 20

Sent  packet: 114 (7 bytes) at Tuesday, November 08, 2011, 6:51:06 AM

north..            6e 6f 72 74 68 0d 0a

Incoming packet: 236 (2 bytes) at Tuesday, November 08, 2011, 6:51:06 AM

>                  3e 20

Incoming packet: 237 (4 bytes) at Tuesday, November 08, 2011, 6:51:06 AM

> >                3e 20 3e 20

Incoming packet: 238 (535 bytes) at Tuesday, November 08, 2011, 6:51:08 AM

<<description>>

Incoming packet: 239 (310 bytes) at Tuesday, November 08, 2011, 6:51:11 AM

<<description>>

Incoming packet: 240 (643 bytes) at Tuesday, November 08, 2011, 6:51:14 AM

<<description>>

Incoming packet: 241 (318 bytes) at Tuesday, November 08, 2011, 6:51:17 AM

<<description>>

Incoming packet: 242 (615 bytes) at Tuesday, November 08, 2011, 6:51:20 AM

<<description>>



Using packet debug we see 5 x "north" being sent at 6:51:05. Also the MUD seems to respond with 5 x "prompt" (the > symbol) by 6:51:06, one second later.

But then the descriptions trickle down at the rate of one every 3 seconds. So it looks like the MUD is "throttling" the rate of processing commands (which would be pretty normal).

With the mapper enabled again, I seem to get similar results.

- Nick Gammon

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

Posted by Crular   (12 posts)  Bio
Date Reply #206 on Mon 07 Nov 2011 08:19 PM (UTC)
Message
Yes, the MUD indeed throttles direction commands to simulate the "speed" of normal walking. But by entering multiple direction commands in quick succession should put you in run mode, meaning the throttling will be disabled. By running you will of course use more energy.

But I checked without the plugin and with the plugin and you are right, speed is the same. Must be a coincidence, that running doesn't work anymore. Maybe something in the MUD is messed up, will investigate this.
Top

Posted by Mm1mark   (24 posts)  Bio
Date Reply #207 on Mon 07 Nov 2011 10:01 PM (UTC)

Amended on Mon 07 Nov 2011 10:02 PM (UTC) by Mm1mark

Message
Ok i play a game called dartmud.
dartmud.com 2525
we don't have coordinates to help us determine where we are. but the description portion is farily simple. how would i adjust to work with out coordinates.

a brief look
The Souk: The center of the bazaar.
< n e s w ne se sw nw >.
a cedar trash barrel, and a bronze cresset.
a bulletin board.

a normal look
The Souk
This is an open area in the center of the Souk. The chaos of the bazaar is somewhat subdued here, the calm eye at the center of the storm. In the center of the area is a stone fountain. Brightly colored tiles are inlaid in the ground just in front of the fountain to form some sort of map. Vendors sell their wares from booths and tents scattered through the bazaar or even from blankets spread on the ground. The crowds are thinning as the sun sets and some of the vendors have closed up their booths. It is extremely bright here.
There are many exits: north, east, south, west, northeast, southeast,
southwest, and northwest.
a cedar trash barrel, and a bronze cresset.
a bulletin board.
Top

Posted by Nick Gammon   Australia  (23,072 posts)  Bio   Forum Administrator
Date Reply #208 on Wed 09 Nov 2011 07:43 PM (UTC)
Message
I just don't have time personally to adjust the mapper for every MUD around. But I hope that the examples here will inspire others to do something similar. From what you describe, an adapation of the Materia Magica one should work:

http://www.gammon.com.au/forum/?id=10667

That works by just hashing up the room description to get a "room ID".


- Nick Gammon

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

Posted by Mm1mark   (24 posts)  Bio
Date Reply #209 on Thu 10 Nov 2011 05:13 PM (UTC)
Message
thanks. i knew i'd seen one that was close, but couldn't remember where.
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.


748,819 views.

This is page 14, subject is 17 pages long:  [Previous page]  1  2  3  4  5  6  7  8  9  10  11  12  13  14 15  16  17  [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.