Very true. I understand your explaination of Diku, and I think it may also lead to odd coding when it comes to things like "soandso enters from the north" or somesuch, but I haven't looked into Diku very deeply yet.
Storing coordinates for each room would leave a table that can be fairly large, but HD space isn't really an issue, speed would be the issue.. Indexes aside, I don't want to turn into a full time DBA for it.
I have the two tables (room and room coord) you mentioned, they're key'd on room_id, with room coord containing x,y,z locations that I planed to draw a square on.. or fill in the blank on a HTML table that I don't really want to resort too..
It's not an object based system in that I really only want to map when viewing things online. Such as where "so and so" is, or for admin purposes. I would love the ability to have each room exit that is not leading to another exit be a link (think: image map?) to an app that will create a new room.. so there can be a fairly high level way to generate new rooms.. other than the simple commands a citizen can use to make them.. but that's in the future.
There is a room_exit table that will allow for things like leaving south to room 2, but you have to go up to get back to room 1 or somesuch. That's up to the question "why", which is better answered in the context of the game itself. There is a table called room_inventory which is key'd again, on room_id and key'd out to the inventory table(for descriptions,etc) too..
I guess my questions all boil down to how it's possible to take x,y,z coords and draw something there..I'm going to look into how other muds do this a bit more.
One4k4 -
perlmonks@poorheart.com (
www.poorheart.com)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.