I have a problem with my mapping function. We used an automapper like style to do our wilderness code. Thus my wilderness is one big hairy 5000 vnum area. Automapper generates the maps, and another function generates the room names and brief descriptions.
My problem is when I connect an area to my wilderness unless I connect it on the edge of the wilderness the automapper tries to map the sector types of the area that is connecting to the wilderness. Thus I end up with some crazy look maps where areas connect to wilderness.
I thought of 2 ways that may solve that one I know would, the other I'm not sure.
1) Make an enter exit command for wilderness and keep zones seperate from wilderness. Thus no sector type conflicts. I know that would work, but I think it doesn't look the greatest. Also, with my limited coding ability would be an ugly function like player uses enter command if in this room then send char to this room.
2) Not sure if this would solve it, but was thinking if I make my sectors extended bits, I could keep sector flags different from the wilderness sector flags, maybe putting a W in front of the names of my wilderness sector flags, and some how only having function look_map or draw_map only check wilderness sectors and ignore others? Or will the automapper end up putting blank spaces where it knows a room from another zone is there?
I tried doing this...
In draw_map...
with my define from mud.h
#define IN_WILDERNESS(ch) ((ch)->in_room->vnum >= WILDERNESS_MIN_VNUM && (ch)->in_room->vnum <= WILDERNESS_MAX_VNUM)
I placed this at top of draw_map function
if (!IN_WILDERNESS(ch))
{
return;
}
It didn't work still sector overlapping.
Vladaar
My problem is when I connect an area to my wilderness unless I connect it on the edge of the wilderness the automapper tries to map the sector types of the area that is connecting to the wilderness. Thus I end up with some crazy look maps where areas connect to wilderness.
I thought of 2 ways that may solve that one I know would, the other I'm not sure.
1) Make an enter exit command for wilderness and keep zones seperate from wilderness. Thus no sector type conflicts. I know that would work, but I think it doesn't look the greatest. Also, with my limited coding ability would be an ugly function like player uses enter command if in this room then send char to this room.
2) Not sure if this would solve it, but was thinking if I make my sectors extended bits, I could keep sector flags different from the wilderness sector flags, maybe putting a W in front of the names of my wilderness sector flags, and some how only having function look_map or draw_map only check wilderness sectors and ignore others? Or will the automapper end up putting blank spaces where it knows a room from another zone is there?
I tried doing this...
In draw_map...
with my define from mud.h
#define IN_WILDERNESS(ch) ((ch)->in_room->vnum >= WILDERNESS_MIN_VNUM && (ch)->in_room->vnum <= WILDERNESS_MAX_VNUM)
I placed this at top of draw_map function
if (!IN_WILDERNESS(ch))
{
return;
}
It didn't work still sector overlapping.
Vladaar