Leaking maps

From The DarkMod Wiki
Revision as of 02:30, 27 October 2007 by Tels (talk | contribs) (first version (thanx greebo :-)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

What is a leak?

A leak occures when the geometry of a map is not completely sealed.

In Doom/Radiant editing, the world is an infinite big empty space and your map is a small world placed inside this vacuum. The inner world must be completely sealed against this vacuum, or a leak occurs.

Maps with a leak will not compile and do thus not work at all.

How to detect leaks

The easiest way is to watch the console during dmap yourmapname. When a leak occurs, a red warning will be printed.

Other warning signs:

  • Newly added geometry is not showing up
  • You're colliding with invisible things, as the .cm file is still stemming from the most recent compiling version.
  • Textures are not updated (they didn't get saved into the .proc file)
  • Lights/shadows precalculation doesn't take effect.
  • AAS is no longer valid - this will break pathfinding.
  • The map won't run at all if the .cm/.proc files aren't available from a previous version.

How to fix leaks

In the editor, open your map, and then select File -> Pointfile. This will insert a few red lines pointing from the inner world to the outside, hopefully helping you to pinpoint the leak.

Another option is using Edit -> Undo or going back to a previously saved map version.