Upgrade instructions
0.1 to 0.1.1
just replace your LevelPlugin.dll with the new one from the zip, nothing more.
0.1.1 to 0.1.2
just replace your LevelPlugin.dll

What's this?
This is a plugin which replaces a lot of map code. It is exposing some of it's functionality to you by some txts which allow you currently to add completly new mazes and to edit most act1 mazes.
This plugin replaces general and outdoor code too, to do some stability testing. If you've problems in this area, which don't exist without this plugin, please contact me so we're able to resolve the problem. Hopefully there are none, though :P
It is 1.10 only, using d2mod.
It is replacing the ExtLvl-system by AFJ, so be sure to uninstall it first!
There may be problems with other d2mod plugins, please report if you find a plugin which crashes together with this one!

Install
Add
LevelPlugin=LevelPlugin.dll
to your D2Mod-Section of your D2Mod.ini.
Copy directions.txt, mazeAdditions.txt and LvlMazeExt.txt to your data/global/excel folder
Read the whole readme, this stuff is a bit complicated!
New Txt Files:
directions.txt - just a lookup table, don't edit!! just include the bin in your mpq.
mazeAdditions.txt - A list of 'additions', that means special things which are appearing in your maps.
LvlMazeExt.txt - defines which additions are added to which level+ some other general stuff.

Fileguides
mazeAdditions.txt
name - Name of your addition
direction1-4 - The direction of the 4 different lvlprest-ids
base1-4 - The base lvlprest id for a given direction
replace1-4 The lvlprest to replace the given base-id with
*eol - add a 0 here

LvlMazeExt.txt
*Level Name - commment  only, add the levelname here
lvlId - Level Id of your maze here
Addition1-6 - names of the additions defined in mazeAdditions.txt you want to be included in your maze
startPrest - first lvlPrest in a Chain of lvlPrests in the order as you can see eg since lvlprest 53, the directions given there have to be maintained!
check - some weird vanilla-stuff, leave it empty and don't bother with it :)
extraRooms - add extraRooms-1 rooms in each direction, best is probably to leave it as is or experiment with it. maybe useful when facing problem 1.
*eol - add a 0 here

HOWTO add new mazes
create entries as needed in mazeAditions.txt
create a new levels.txt entry, with drlgtype=1 and the right vis/warp entries
create an entry in LvlMaze.txt
create an entry in LvlMazeExt.txt
you should be done, if you get errors have a look at the Troubleshooting section

Troubleshooting
1. My new maze-additions don't show up, or Den of Evil is missing stuff?
Increase the rooms in LvlMaze.txt, especially for DoE you should set this to at least 3 to maintain the vanilla behauvior.
For other Levels you've to experiment to get the roght value, depending on how much additions you have.

2. I just get an ASSERT that ii < sgnMazeDefs
You forgot to add a line to LvlMaze.txt/misspelled the lvl number

3. I've added a maze addition to another level, but it doesn't show up even after increasing the rooms by a great number.
Check if you did the vis links right, especially if you chose the _right_ vis field, have a look again at the ds1-file which you added to the previous level.

4. I'm getting an Assert isInAct(lvlNo,actNo)
Maphack doesn't work in the new levels...

Hardcodes in the Maze system:
The Catacombs Level 1 will always contain a 290 map as entry with 4 surrounding rooms
The Catacombs Level 2&3 will always have either prest 289 and a South and North room or prest 288 with East and West room attached.

Leveltypes
The old leveltype/maze binding is nonexistant for _new_ mazes and the fully supported, aka act1 mazes (excluding catacombs).
But beware, if you change the leveltype of maze, you've to adjust it's size, and you've to adjust the additions's size too, else you'll get a C0000005. Also you want to change the warp id's and maybe the vis according to the new additions.

Reporting Bugs
Please include your Diablo Log and the file Log.txt in your report. The file Log.txt gets rewritten at every start of D2, so after a crash copy it to a safe location before restarting Diablo!
Todo
Add acts 2-5 as possible to LvlMazeExt.txt, currently only the startPrest, check and extraRooms are parsed for these. Their lines in mazeAdditions.txt are ignored!
Reverse more parts of the outdoor code and maybe softcode it at least partially alllowing simple levels to be added (will take a long time!).

History
0.1 - 19.12.2008 - supporting new mazes and act1 mazes - actual build
0.1.1 - 1.1.2009 - fixing a bug (some testcode for A2 Outdoor remained, sorry!) and replacing another function
0.1.2 - 1.1.2009 - fixing a bug preventing the transistion bloody foothills <=> frigid highlands being built
Credits:
The whole Keep
Myhrginoc
kingpin
SVR
Necrolis
Nefarius
AFJ666
Paul Simarey
Seltsamuel