Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 05-16-2002, 03:47 PM   #1
Emit
New Member
 
Join Date: May 2002
Location: Kentucky
Posts: 14
Emit is on a distinguished road
Send a message via AIM to Emit
Unhappy

Emit is offline   Reply With Quote
Old 05-16-2002, 04:20 PM   #2
visko
Member
 
Join Date: May 2002
Posts: 98
visko is on a distinguished road
Send a message via ICQ to visko Send a message via AIM to visko
A while ago, a good friend of mine decided that he was going to allow for tracking based on a map created in-game of the entire world. This map would basically assign grid points to every room in the game radiating out from recall, and then calculate where a mob/char was in relation to the char trying to track.

Bounds weren't the problem; non-Cartesian rooms were. What you're going to find is that if you have any place in the game where a room goes back to itself, or goes to one room, then another, and back, the game is going to cycle into an infinite loop. I'm actually interested in getting something like this going because track is a nice feature in a mud, so if anyone has suggestions, I'd love to hear them.

-Visko
visko is offline   Reply With Quote
Old 05-17-2002, 11:13 AM   #3
cronel
New Member
 
Join Date: Apr 2002
Posts: 17
cronel is on a distinguished road
Angry

What you need to do to avoid loops is to remember the rooms you've visited so far. But yes, "non-cartesian" arrangements of rooms will always screw you as they are unmappable.

A basic approach would be to not only remember that you've visited a room, but remember where in the "grid" you found it. So if you find it again in a different position or find a different room for the same position, you have a problem. And when you are about to visit one such room, you add some mark to your ascii map, or such, and move on.

What I wonder is, what would happen if you stop assuming all exits are the same length. For instance an exit east, could mean the next room is not just one unit to the right, but two, three... Making a mapper that does this, however, seems a daunting task. I'm thinking it might be able to digest some non-cartesian areas but might produce maps you'd never expect.

By the way, some clients have automap, like Zmud and Kmud. Kmud is open source... may be worth a look. Also look at the SMAUG "track" code for a related problem.
--cronel
cronel is offline   Reply With Quote
Old 05-20-2002, 11:23 AM   #4
mhc
Member
 
Join Date: May 2002
Location: Linköping, Sweden
Posts: 31
mhc is on a distinguished road
cronel> "non-cartesian" arrangements of rooms will always
cronel> screw you as they are unmappable.

I'm not sure if I understand what you mean here. 'unmappable' in what respect?
mhc is offline   Reply With Quote
Old 05-20-2002, 01:12 PM   #5
cronel
New Member
 
Join Date: Apr 2002
Posts: 17
cronel is on a distinguished road
In that they can't be mapped to a 2d grid. I thought this was clear from the context of the thread.
cronel is offline   Reply With Quote
Old 05-22-2002, 03:39 PM   #6
mhc
Member
 
Join Date: May 2002
Location: Linköping, Sweden
Posts: 31
mhc is on a distinguished road
Toplogically speaking, everything can be mapped on 2D, especially if it's on a regular grid in N dimensions.
mhc is offline   Reply With Quote
Old 05-22-2002, 10:34 PM   #7
Emit
New Member
 
Join Date: May 2002
Location: Kentucky
Posts: 14
Emit is on a distinguished road
Send a message via AIM to Emit
Emit is offline   Reply With Quote
Old 05-23-2002, 05:34 PM   #8
Eddy
New Member
 
Join Date: May 2002
Posts: 5
Eddy is on a distinguished road
Eddy is offline   Reply With Quote
Old 05-23-2002, 06:32 PM   #9
cronel
New Member
 
Join Date: Apr 2002
Posts: 17
cronel is on a distinguished road
I admit I don't fully understand that, mhc... what is "N" if the map is 2D?

The point of the exercise (for me) is to make a map, not a drawing of the nodes. I.e. This node here has two connections to two other nodes, one labelled "east", the other labeled "closet", and sure, it can easily be drawn. But is it a map?

For example, there's a room with the eight standard exits n,ne,e,etc, and they all point to the same room. Or, room A northeast exit points to room B, and its southwest exit points to C. But B's southwest exit also points to C. The nodes aren't hard to visualize. But the maps?

Basically I agree with Eddy's point; the rooms model space, but very weirdly as we all know. Maps can easily be drawn of Real Space, say the plans to a house, for example. Groups of rooms can easily be drawn as nodes, since that's what they are. But as they deviate from a "realistic" model of some piece of space, it will be harder to draw them as a map. Perhaps even impossible in some cases, or at least I don't see how.

What I said above and now Eddy I think concurs is that you can drop some of the assumptions for a map and make it approach a node drawing a little, but still come up with something with some semblance of a map. For instance,some assumptions are:

* All rooms are the same size and shape
* All exits have the same length and shape
* All exit "directions" (east) translate to
 the same map direction (to the right)

--cronel
cronel is offline   Reply With Quote
Reply


Thread Tools


auto maps - Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphic Maps Molly Advanced MUD Concepts 51 01-16-2008 11:18 AM
nethack style overhead maps surfdaddy Advertising for Players 5 01-14-2007 07:56 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 12:33 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2022