Map Editing Errors - A starting place

Post here for all aspects of map making and level design. Click here to visit the Keep's official map site, Diabolic Cartography.

Moderator: Paul Siramy

User avatar
I_only_pressed_Esc
Forum Regular
Angel
Posts: 630
Joined: Wed Jan 28, 2004 2:47 am
Location: In the darkest corners of your mind

Map Editing Errors - A starting place

Post by I_only_pressed_Esc » Tue Oct 18, 2005 12:26 am

I have started this thread to hopefully have a list of all known errors so that anyone and everyone can have a starting place to look instead of searching through hundreds of posts.
This forum doesn't have one. :(

Feel free to add anything. :)

Anyhoo a recent problem was:
Assertion Failure
Location : D2Client\UI\automap.cpp, line #913
Expression : nPixelX >= SHRT_MIN && nPixelX <= SHRT_MAX
Wrong offsets for the map in worldspace, so change the offsets.

Edit 18 oct 2005 by Paul Siramy : reformated the text. Made the topic a sticky.
Last edited by I_only_pressed_Esc on Tue Oct 18, 2005 7:41 am, edited 3 times in total.
Custom health-mana bubbles. Custom loading video's. Custom Hireling graphics.
'Do what thou wilt shall be the whole of the Law'

User avatar
Volf
Retired Admin
Dominion
Posts: 5396
Joined: Thu Jul 31, 2003 8:19 am
Finland

Hand-picked

Re: Map Editing Errors - A starting place

Post by Volf » Tue Oct 18, 2005 4:10 am

Here are some errors that were gathered from the forums by the staff :
Assertion Failure
Location : D2Common\DRLG\Preset.cpp, line #X
Expression : Level labeled as Preset, but no preset claims the level
Level is not properly assigned as a preset level, check drlgtype colun in levles.txt and make sure you have added the level to lvlprest.txt

Assertion Failure
Location : D2Common\UNITS\UnitRoom.cpp, line #X
Expression : DungeonTestRoomGame ( hRoom, nX, nY)
Usually Warp related, something might be too close to the Warp or perhaps the ground under the Warp is unwalkable

Warning
Location : D2Common\DRLG\Preset.cpp, line #X
Expression : ptRegion->ptFile->nSizeX == ptRegion->tCoords.nSizeTileX
The actual size of a .ds1 is different from what is claimed in levels.txt/lvlprest.txt. Remember that the sizes in the .txt are generally minus by 1 from the original .ds1 size.

Warning
Location : D2Common\DRLG\DrlgVer.cpp, line #X
Expression : FALSE
There is a Vis tile in the .ds1 that does not have a Warp assigned to it (missing entry in levels.txt).

Assertion Failure
Location : D2Common\DATATBLS\LvlTbls.cpp, line #X
Expression : Error in DRLG related to stairs that connect levels.
This is the general assertion error for incorrectly linked levels. Check if all your Vis settings in levels.txt are correct and that there are not intersections of warps (two Vis linking to the same destination and vice versa).

Assertion Failure
Location : D2Common\DRLG\DrlgRoom.cpp, line #X
Expression : hDungeonRoomOther
It also pops up occasionally when you have badly linked areas. Another cause are Vis tiles placed too close to the borders of a .ds1.

Halt
Location : D2Common\DRLG\Maze.cpp, line #X
Expression : MazeLevelGenerate() - Some really bad voodoo here!
Cause is unknown, but that one just has to be mentioned. icon_mrgreen.gif

Warning
Location : d2Common\drlg\roomtile.cpp, line #X
Expression : ptwarp
This warning comes up when a Vis tile in the .ds1 has no related entry in the Vis columns in levels.txt. Another common source is a new Vis tile, which isn´t set to be 'hidden'.

Assertion Failure
Location: D2Hell/SRC/Archive.cpp, line #X
Expression: hFile
The Dt1Mask in lvlprest.txt is invalid. Either it has been calculated wrong or lvltypes.txt has incorrect entries.

Assertion Failure
Location : D2Client\UNIT\CUnit.cpp, line #X
Expression : hFindRoom
[Unsure] Seems to come up when the game tries to spawn a monster or an object at a position, where it is not allowed to spawn. Could be related to general level design (e.g. too narrow passages).

Warning
Location : D2Client\UNIT\CUnit.cpp, line #X
Expression : Unable to find room for unit... hControlUnit: X hUnitRoom: Y
ghAct: <something>
[Unsure] Seems to be connected with the hFindRoom error, exact cause is unknown.


Edit 18 oct 2005 by Paul Siramy : reformated the text and corrected minor spelling errors.
Last edited by Volf on Tue Oct 18, 2005 7:38 am, edited 1 time in total.

User avatar
I_only_pressed_Esc
Forum Regular
Angel
Posts: 630
Joined: Wed Jan 28, 2004 2:47 am
Location: In the darkest corners of your mind

Re: Map Editing Errors - A starting place

Post by I_only_pressed_Esc » Tue Oct 18, 2005 11:44 am

ACCESS_VIOLATION (c0000005)
(Without any error shown)
Happens on entering a new level

Look for the following in the errorlog:
Error opening file: DATA\LOCAL\UI\ENG\EXPANSION\XXXX.dc6

Means the new level is missing its "Entering " DC6.
Last edited by I_only_pressed_Esc on Tue Oct 18, 2005 2:59 pm, edited 1 time in total.
Custom health-mana bubbles. Custom loading video's. Custom Hireling graphics.
'Do what thou wilt shall be the whole of the Law'

User avatar
onyx
Retired Admin
Throne
Posts: 9377
Joined: Fri Apr 18, 2003 12:38 pm
Location: Sofia, Bulgaria

Hand-picked

Re: Map Editing Errors - A starting place

Post by onyx » Tue Oct 18, 2005 11:54 am

Unhandled Exception also pops when you enter a level that is supposed to have a "Map Entry" special tile, but doesn't.
Last edited by onyx on Tue Oct 18, 2005 3:00 pm, edited 1 time in total.
ONYX
Read The Terms of Service before posting!

Back to Hellfire - Site | Forum
Also visit: Incandescence * Diabolic Cartography * Inventharia * Diablo Evolution

User avatar
Xenast
Retired staff
Angel
Posts: 765
Joined: Wed Nov 05, 2003 12:11 am
Location: Elliot Lake, Ontario

Post by Xenast » Wed Aug 16, 2006 8:07 pm

ACCESS_VIOLATION (c0000005)
(Without any error shown)
Also caused by altereing the number of files used in Lvlprest.txt for the Act 1 town. Presummably the game is hardcoded to look for the 4 files.

Also caused by adding a monster object to your map if the "populate" column in lvlprest.txt is set to 0.

Also caused by incorrect entry in "Def" column in lvlprest.txt
Last edited by Xenast on Sun Jan 14, 2007 3:38 am, edited 2 times in total.

User avatar
Nefarius
Retired Admin
Cherub
Posts: 11607
Joined: Sat Jun 15, 2002 8:13 pm
Location: Where the blood forever rains

Hand-picked

Re: Map Editing Errors - A starting place

Post by Nefarius » Wed Aug 16, 2006 10:57 pm

Unhandled Exceptions are caused by bad pointers to data/stack/functions, this looks like the game reads the four layouts from an internal table, and a fifth entry will screw up the math it uses to find the proper table entry.
''(...) The game can basically be considered unhackable. '' - Blizzard Entertainment (30th May 2000)
Black Omen Productions | MetalStorm: Progress Report | Screenshots

User avatar
mattay01307
Posts: 18
Joined: Sat Dec 16, 2006 2:13 am

Re: Map Editing Errors - A starting place

Post by mattay01307 » Sun Jan 07, 2007 6:44 am

I cant explain these but, I am sure someone can.

Warning
Location : D2Common\DRLG\Drlg.cpp, line #747
Expression : ptCoordsLevel->nSizeTileX >=nTileMaxX - nTileMinX



Warning
Location : D2Common\DRLG\Drlg.cpp, line #747
Expression : ptCoordsLevel->nSizeTileY >=nTileMaxY - nTileMinY


Assertion Failure
Location : D2Common\DATATBLS\LvlTbls.cpp, line #876
Expression : ii<sgnMazeDefs


Anyone, anyone ??? :deal:
Last edited by mattay01307 on Sun Jan 07, 2007 7:47 am, edited 1 time in total.

User avatar
onyx
Retired Admin
Throne
Posts: 9377
Joined: Fri Apr 18, 2003 12:38 pm
Location: Sofia, Bulgaria

Hand-picked

Re: Map Editing Errors - A starting place

Post by onyx » Sun Jan 07, 2007 10:01 am

[quote=mattay01307";p="303244"]
Warning
Location : D2Common\DRLG\Drlg.cpp, line #747
Expression : ptCoordsLevel-&nSizeTileX &=nTileMaxX - nTileMinX

Warning
Location : D2Common\DRLG\Drlg.cpp, line #747
Expression : ptCoordsLevel-&nSizeTileY &=nTileMaxY - nTileMinY
[/quote]

Warnings related to room size or room quantity in a maze level. Generally, it's a bad idea to change the size of rooms. The warnings will also pop up if you set their quantity too high.

[quote=mattay01307";p="303244"]
Assertion Failure
Location : D2Common\DATATBLS\LvlTbls.cpp, line #876
Expression : ii&sgnMazeDefs
[/quote]

A level that is set as a maze in levels.txt lacks a lvlmaze.txt entry.
ONYX
Read The Terms of Service before posting!

Back to Hellfire - Site | Forum
Also visit: Incandescence * Diabolic Cartography * Inventharia * Diablo Evolution

User avatar
mattay01307
Posts: 18
Joined: Sat Dec 16, 2006 2:13 am

Re: Map Editing Errors - A starting place

Post by mattay01307 » Mon Jan 08, 2007 6:21 am

Thanks ONYX :) beginning to think I am better off altering dt1's to start off with but I cant seem to get Paul's dt1-tools program to allow me to alter or view tiles. I can work his ds1_editor fine. I will have to check my .bat files. Much appreciation to you Mr. Siryami, for creating programs that even the "modest ;) ;)" modders can toy with in hopes to someday complete and share they're own ideas. And to the list of others that lend knowledge and experience to pests like me. You and I know who you are :)

User avatar
Xenast
Retired staff
Angel
Posts: 765
Joined: Wed Nov 05, 2003 12:11 am
Location: Elliot Lake, Ontario

Re: Map Editing Errors - A starting place

Post by Xenast » Sun Jan 14, 2007 7:35 am

Warning
Location : d2Common\drlg\roomtile.cpp, line #X
Expression : ptwarp
Also can be caused by having scan set to 0 in lvlprest.txt
Note: Usually for me no error occors from having scan set to 0 (other then the warp being unselectable), but when adding a warp to a unique ds1 in Crypt maze this error was caused by having scan set to 0.
Last edited by Xenast on Mon Jan 15, 2007 1:06 am, edited 3 times in total.

User avatar
Hellfire
Posts: 38
Joined: Thu Apr 29, 2004 7:10 am

Post by Hellfire » Mon Apr 09, 2007 5:18 pm

Assertion Failure
Location: d2common\DUNGEON\Dungeon.cpp, line #x
Expression: ptAct

[quote=Volf";p="196939"] ptAct means you are trying to conect levels from different acts,, this is not possible,, most common reason for this is a typo in levels.txt for the new level in act column[/quote]

Another cause is not having the extended levels plugin correctly installed (pops up when trying to access a new level)
Last edited by Hellfire on Tue Apr 10, 2007 5:06 am, edited 2 times in total.

User avatar
CrazyLimon
Posts: 65
Joined: Wed Oct 25, 2006 3:52 am

Re: Map Editing Errors - A starting place

Post by CrazyLimon » Mon Apr 09, 2007 6:54 pm

Two Legions [closed]
Astral Project [closed]

User avatar
Hellfire
Posts: 38
Joined: Thu Apr 29, 2004 7:10 am

Re: Map Editing Errors - A starting place

Post by Hellfire » Tue Apr 10, 2007 2:34 am

:oops: soooorry

turns out id gotten rid of extended levels to play on bnet last night and forgot to put it back on! I also seem to be incapable of using the search button at 4 in the morning :OI:

User avatar
Hellfire
Posts: 38
Joined: Thu Apr 29, 2004 7:10 am

Re: Map Editing Errors - A starting place

Post by Hellfire » Tue Apr 10, 2007 2:36 am

edit: double post, sorry again ><
Last edited by Hellfire on Tue Apr 10, 2007 4:56 am, edited 1 time in total.

User avatar
Myhrginoc
Retired Admin
Cherub
Posts: 12100
Joined: Sat May 25, 2002 7:28 am
Location: Percussion U
United States of America

Hand-picked

Re: Map Editing Errors - A starting place

Post by Myhrginoc » Tue Apr 10, 2007 2:53 am

Please avoid hitting the Submit button more than once when entering a post. It might take a long-ish time for the board to update, but 99 times out of 100 the update is still being processed.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening

User avatar
brappy
Forum Regular
Angel
Posts: 658
Joined: Fri Oct 28, 2005 11:27 pm
Location: Oswego, NY

Post by brappy » Sun Jun 03, 2007 7:32 pm

I just came across a strange error.

D2Game\MONSTER\MonsterSpawn.cpp, line #1210
ptLevelData->bMonTot

I have no idea what could cause this, it was in one of my new levels. It doesn't crash the game (you can hit enter on the error popup to continue), but I'd still rather not have it, especially since it's during the final battle!
Currently working on Tricet of Apocalypse (Latest patch: Beta 0.9) | Mod thread
A=B, A²=AB, A²-B²=AB-B², (A+B)(A-B)=B(A-B), A+B=B, A+A=A, 2A=A, 2=1

User avatar
Nefarius
Retired Admin
Cherub
Posts: 11607
Joined: Sat Jun 15, 2002 8:13 pm
Location: Where the blood forever rains

Hand-picked

Re: Map Editing Errors - A starting place

Post by Nefarius » Sun Jun 03, 2007 7:39 pm

This is related to level population, the game uses that structure to control which 13 monsters can spawn in an area at a given time (even if you've set it to 25 in levels.txt, the cap for any given time is 13), look at your monster related settings in levels.txt
''(...) The game can basically be considered unhackable. '' - Blizzard Entertainment (30th May 2000)
Black Omen Productions | MetalStorm: Progress Report | Screenshots

User avatar
Myhrginoc
Retired Admin
Cherub
Posts: 12100
Joined: Sat May 25, 2002 7:28 am
Location: Percussion U
United States of America

Hand-picked

Re: Map Editing Errors - A starting place

Post by Myhrginoc » Sun Jun 03, 2007 8:45 pm

Specifically Levels.NumMon must be 13 or less, whether you have the same number or more monsters defined in monXX/nmonXX/umonXX fields.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening

justblue1990
Posts: 14
Joined: Sun Sep 23, 2007 10:41 am

Post by justblue1990 » Tue Oct 09, 2007 4:43 am

Look this,what's mean?

Warning
Location : D2Common\DRLG\Drlg.cpp, line #766
Expression : ptDrlgLevel->ptRoomFirst

Who can help me?
Last edited by justblue1990 on Tue Oct 09, 2007 4:45 am, edited 1 time in total.

User avatar
Nefarius
Retired Admin
Cherub
Posts: 11607
Joined: Sat Jun 15, 2002 8:13 pm
Location: Where the blood forever rains

Hand-picked

Re: Map Editing Errors - A starting place

Post by Nefarius » Tue Oct 09, 2007 7:13 am

That the game failed to create the first room in the level
''(...) The game can basically be considered unhackable. '' - Blizzard Entertainment (30th May 2000)
Black Omen Productions | MetalStorm: Progress Report | Screenshots

justblue1990
Posts: 14
Joined: Sun Sep 23, 2007 10:41 am

Post by justblue1990 » Wed Oct 10, 2007 10:56 am

Thank You,Once my level.txt beyond 255 lines,it will be the error.I don't know wether the error is because 256 lines aready beyond the scale be ruled by hard code.
I checked up the level.txt and lvlprest.txt ,but I didn't find any problem.
Could you help me find where the error is ?

User avatar
Nefarius
Retired Admin
Cherub
Posts: 11607
Joined: Sat Jun 15, 2002 8:13 pm
Location: Where the blood forever rains

Hand-picked

Re: Map Editing Errors - A starting place

Post by Nefarius » Wed Oct 10, 2007 11:30 am

Its because the internal architecture only supports 255 levels.
''(...) The game can basically be considered unhackable. '' - Blizzard Entertainment (30th May 2000)
Black Omen Productions | MetalStorm: Progress Report | Screenshots

User avatar
Dreu
Posts: 6
Joined: Fri Nov 09, 2007 6:44 am

Re: Map Editing Errors - A starting place

Post by Dreu » Fri Nov 09, 2007 6:48 am

Alright so I really hate asking for help because I was excited at how quickly I was picking up on this, and thought I was comprehending it quite nicely. However, I wouldn't be in this particular forum If I didn't have a problem.

So here's my Error:

Code: Select all

Assertion Failure
Location: D2Common\DATATBLS\LvlTbles.cpp, line #193
Expression: NUM_LEVEL_IDS==nSize
Any help is greatly appreciated. I've been fighting to solve this myself for two days now, going so far as completely restarting everything... twice... and I just can't seem to catch it. Luckily I don't give up very easily. Thank you in advance.

*Dreu[/code]
Last edited by Dreu on Fri Nov 09, 2007 8:12 am, edited 1 time in total.

User avatar
onyx
Retired Admin
Throne
Posts: 9377
Joined: Fri Apr 18, 2003 12:38 pm
Location: Sofia, Bulgaria

Hand-picked

Re: Map Editing Errors - A starting place

Post by onyx » Fri Nov 09, 2007 9:15 am

When reporting an error, it's generally a good idea to explain in detail what you did before it started appearing, instead of making us guess. It's not always easy to find the cause only by listing the error message, especially when the error is not a common one ;)
ONYX
Read The Terms of Service before posting!

Back to Hellfire - Site | Forum
Also visit: Incandescence * Diabolic Cartography * Inventharia * Diablo Evolution

User avatar
Dreu
Posts: 6
Joined: Fri Nov 09, 2007 6:44 am

Re: Map Editing Errors - A starting place

Post by Dreu » Fri Nov 09, 2007 10:29 pm

Oh I'm sorry. I guess that would help out lol. Well, I'm following this Tutorial for creating a new level:

[EDIT- Alright so I'm not allowed to post links yet, but the tutorial is called "Making A New Preset Level , by Xenast , category: Map Editing"

---------------------

EDIT: Alright so my assumption was wrong. With Onyx's help, I learned how to resize without the aid of the loader. But by following the steps of that tutorial, I'm getting this error. ( Still. )

Code: Select all

Assertion Failure
Location: D2Common\DATATBLS\LvlTbles.cpp, line #193
Expression: NUM_LEVEL_IDS==nSize

---------------------

EDIT: Alright So I found a similar looking error somewhere else.

Code: Select all

Assertion Failure
Location : D2Common\DATATBLS\LvlTbls.cpp, line #1047
Expression : Error in DRLG related to stairs that connect levels
-Cause-(Solution)
If this assert appear, check carefully all your ds1, write down the Vis numbers they're using, and in Levels.txt check that all of these Vis are linked to the correct level, using the correct Vis.
The locations are the same. However, different reason. Being the locations are in fact the same, I was thinking maybe these are somewhat related being why I posted them here.
Last edited by Dreu on Sun Nov 11, 2007 12:40 am, edited 4 times in total.

Return to “Map Editing”