tutorials, sites and other goodies. Fining leaks

Started by FBG, May 04, 2003, 06:25:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FBG

http://www.47hassocks.freeserve.co.uk/faq.htm

What is a "leak" and how can I fix it?
If you see the message "LEAK LEAK LEAK" anytime during the QBSP compile, you have a leak. A leak is simply an error where the level can see anywhere into the "void" (not to be confused with the sky.) This typically occurs when you have small gaps between the brushes that make up the outer walls. Additionally, entities that are completely or partially outside those walls can also cause leaks
To help find leaks, you can use the pointfile command in the HL game itself:
-Run half_life with the -dev and -console parameters
(right click on your short cut and add them to the command line)
it should look something like this:
c:SIERRAHalf-Lifehl.exe -console -dev -particles 10000 +sv_cheats 1
-Run the map in Half-Life and go to the console
(hit the ~ key)
-Type pointfile then hit enter.
A yellow and black line will be drawn that defines a path for you to follow to the leak
However if it says that you have a leak and the console says that there are 0 points in the pointfile, it must mean you have an entity outside the level or an outer wall as an error. In this case, use the Map, Check Map for Problems command in WC.
-=[dMw]=- Flibber Meister

SLoWHaND

[SIGPIC][/SIGPIC]

A Twig

For the really lazy people, just put a big hollow box around the map as a clip entity. People can't see it, but it is there, and therefore easily stops leaks. Also as it is invisible, no extra time is lost in compiling the map as obviously no lights etc reflects off it!!!
[N~@] - Ninja Association
Although we may fade from life, life does not fade from our memories


smite


FBG

Note: Some people would point out - if placing a box around your level gets rid of the leak, why not stop there? Well, it gets rid of the leak, but it doesn't get rid of the main bad effect of the leak - VIS still cannot properly optimize the level because it doesn't know what is inside or outside the level. You will still see the high polygon counts and poor framerate. This is not a solution.
-=[dMw]=- Flibber Meister

A Twig

lol, tis a solution for me, as my map is only small, but yeah, point taken...  :D
Oh and how do you run the map in HL for your error thing, as it can't compile??????  8O
[N~@] - Ninja Association
Although we may fade from life, life does not fade from our memories


A Twig

[N~@] - Ninja Association
Although we may fade from life, life does not fade from our memories


FBG

mine does compile and runs. it just doesn't work very well.
-=[dMw]=- Flibber Meister

suicidal_monkey

A pretty good forum on mapping here if you get stuck on something, but be warned you will be treated as a mapping noob if you get on their bad side. Oh, and you want your map to look good before they see it ;)

http://countermap.counter-strike.net/
[SIGPIC].[/SIGPIC]

OldBloke

"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

A Twig

Yeah I posted that link in a different topic. That is a really good article on basic mapping guidelines and how to make your map believeable. Top Notch  :D
[N~@] - Ninja Association
Although we may fade from life, life does not fade from our memories


FBG

having trouble with invalid shapes? i was while trying to build my cliff sides. Got it all sorted from a tutorial i read. The trick is this, and you have to be pretty good with the old vertex manipulation tool.

Basically to avoid invalid brushes its best to build irregular walls, shapes with pyramids. This is because a pyramid can never be an invalid shape. So you just build your walls with the triangular sides of the pyramid.

To make this shape, create a standard brush and vertex manipulate all the top vertexs to the center. Select join vertices when it asks you. Finally take one of the 4 bottom vertices and join it with it neighbour and hey presto instant pyramid.
-=[dMw]=- Flibber Meister

FBG

having trouble with invalid shapes? i was while trying to build my cliff sides. Got it all sorted from a tutorial i read. The trick is this, and you have to be pretty good with the old vertex manipulation tool.

Basically to avoid invalid brushes its best to build irregular walls, shapes with pyramids. This is because a pyramid can never be an invalid shape. So you just build your walls with the triangular sides of the pyramid.

To make this shape, create a standard brush and vertex manipulate all the top vertexs to the center. Select join vertices when it asks you. Finally take one of the 4 bottom vertices and join it with it neighbour and hey presto instant pyramid.
-=[dMw]=- Flibber Meister

A Twig

Alright alright, I get the point, no need to put it twice!  :D
[N~@] - Ninja Association
Although we may fade from life, life does not fade from our memories


SLoWHaND

Quotehaving trouble with invalid shapes? i was while trying to build my cliff sides. Got it all sorted from a tutorial i read. The trick is this, and you have to be pretty good with the old vertex manipulation tool.

Basically to avoid invalid brushes its best to build irregular walls, shapes with pyramids. This is because a pyramid can never be an invalid shape. So you just build your walls with the triangular sides of the pyramid.

To make this shape, create a standard brush and vertex manipulate all the top vertexs to the center. Select join vertices when it asks you. Finally take one of the 4 bottom vertices and join it with it neighbour and hey presto instant pyramid.

Or you could do the following

SELECT BLOCK TOOL
SELECT PRIMITIVE CATEGORIES
SELECT SPIKE

You can select as many faces on your Spike "PYRAMID" as you like.
Cos a spike is a pyramid  :wink:
[SIGPIC][/SIGPIC]