Login
User Name:

Password:



Register

Forgot your password?
AFKMud 2.2.4
Dec 10, 2024 4:09 pm
By Samson
I3 and IMC
Dec 8, 2024 6:35 pm
By Remcon
Hi - Clean SmaugFuss map/description issue..
Dec 6, 2024 11:54 am
By Remcon
Ubuntu 22.04.5 LTS
Dec 5, 2024 5:10 pm
By Remcon
SmaugFUSS 1.8/1.9
Nov 29, 2024 11:46 am
By Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
AFKMud 2.2.4
Author: AFKMud Team
Submitted by: Samson
LOP 1.5
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, AhrefsBot, Bing

Members: 0
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
494
3,808
19,706
589
Grover9624

Today's Birthdays
There are no member birthdays today.
Files
Upload Rules | File Index | Search | Recent Uploads
» Root » AFKMud » AFKMud Snippets
Mapout Fix
Author Submitted by Version D/L File Size Date Added Last Updated

Khonsu Khonsu 2.2.3 30 30.32 KB Sep 21, 2024

Description
Updated mapout.cpp file to make this neat little feature work. It perhaps didn't work because of writing buffer changes I made in my game, but going back to other versions of Smaug that I could easily check, none of these mapout functions seemed to work, going back decades. I really think this is a cool way to build indoor areas, and supports something like a 28x28 grid of rooms.

It seemed to be an error with the way that map_stats, and functions that used the same logic, counted the rooms. It was getting bad column data. Also, the directions for making exists seemed to be reversed. So it was making a north or south exit the wrong way, but west and east might work. This was causing rooms to not connect. I also added support for X (crisscrossing NW-SW exits) for the map.

help mapout
Help level: 101
Syntax: mapout

mapout write: create a map in edit buffer.
mapout stat: get information about a written, but not yet created map.
mapout clear: clear a written, but not yet created map.
mapout show: show a written, but not yet created map.
mapout create: turn a written map into rooms in your assigned room vnum
range.

Example of a map:
[i]-[D]-[f]     [j]
 |   | X       /
[I]-[f]-[i]-[i]
 | \       /
[j]-[G]-[F] [I]
           \ ^
            [j]

This would create several linked rooms. Just paste the info into the
editor and it will map out all the rooms and exits.

[Letter to use] [Sector type given to room]
I SECT_INDOORS
C SECT_CITY
f SECT_FIELD
F SECT_FOREST
H SECT_HILLS
M SECT_MOUNTAIN
s SECT_WATER_SWIM
S SECT_WATER_NOSWIM
A SECT_AIR
U SECT_UNDERWATER
D SECT_DESERT
R SECT_RIVER
O SECT_OCEANFLOOR
u SECT_UNDERGROUND
J SECT_JUNGLE
W SECT_SWAMP
T SECT_TUNDRA
i SECT_ICE
o SECT_OCEAN
L SECT_LAVA
t SECT_TRAIL
G SECT_GRASSLAND
c SECT_SCRUB
[ELSE] SECT_INDOORS

[Exits to use] [Direction it gives]
^ UP or DOWN
= : Used in all directions except UP and DOWN
Makes a closed door in the direction its used in.
/ NORTHEAST or SOUTHWEST
\ NORTHWEST or SOUTHEAST
| NORTH or SOUTH
- EAST or WEST



Revisions: 0
Rating: | Download | Comments(0)