I spend the last 4 hours looking for an apparent leak in my pretty small map, consisting of 3 rooms connected by 3 corridors. There are not many items in my map, just a few weapons for a bit of playtesting. I tried the Qoole leak function (thanks for that!), but it shows a straight line out of the map from a deathmatch spawn point that goes straight up, through the roof. The roof is made of a single solid brush with a regular metal texture. How can 1 brush have a hole in it? I didn't carve anything.
Desperately, I drew a huge box around all of my map, just to test whether the problem would be gone. The map still leaks! And again, Qoole's leak finder shows that the light is leaving the map straight through a 256 units thick solid wall.
What the heck? ;DD I really love this editor, but I cannot find out whats going wrong here. Of course I may have missed a hole, but with that giant box around the whole map - how can it still leak? Right through solid square brushes?
P.S. the map compiled correctly in an earlier stage, and did not start leaking untill I added the third room. I have checked each and every corner over and over again, sealed off the entire room with a new layer, etc etc. I used large brushes to block off certain areas of the map, moving it further inward untill it starts leaking, but when it does, I see absolutely no gaps at all. What can be wrong? Did i perhaps mess up with some entity, giving a brush some special property so it no longer blocks light?
Anyone who cares to check out the map to help, see the attachment.
Well, I am at a total loss. I deleted the entire map all the way back to to the very small room i started with (a 2box4 replica, maps dont get simpler than that) but even that is leaking now, while it has compiled correctly for at least 100 times over the past week.
What the heck !??!
If anyone knows, are there any other reasons for leaking maps other than the playing area not being entirely sealed? Did I accidentally put a light entity somewhere far away in the void where I cant see it?
There were three leaks actually, not just one. They occur because brushes 12, 19, and 20 are not strictly adjacent to each other (nor they are aligned to the grid). Here is the quick'n'dirty patch I had to make to avoid the leaks and let the map to compile (you'll still need to further clean these brushes up and get rid of fractional coordinates):
Wow thanks a lot!So there were leaks. Based on your findings I have simplified things up a great deal. Everything is there again, but much more simple. It had become a bit of a mess.
Right now, I got a map that does not leak and has 1 corridor running out of the lower lava area. It is a dead-simple 256 * 256 square tunnel with a square wall inside it to block it off. No leaks.
However, if i lengthen the tunnel a bit further, the map does start to leak. Its maddening, because the tunnel was created using a huge grid size. All I'm doing is moving a brush through the tunnel. Further away from my map it makes the thing leak, when I move it more towards the map, its all fine.
I have attached the map, and also an image of the tunnel. Camera is inside one of the walls. Remove the brush blocking the tunnel closest to your view, and the map starts leaking. Just because the light has to travel a little further. Can you figure out why?
Edit: i'm beginning to think that there is a maximum length that light may travel in a somewhat straight line. It seems to be simply the lengthening of the map along 1 axis that creates the problem. I am now building a similar tunnel, only larger, and have it not go in a straight line like I planned, but making a hard turn left, so not traveling so far away from the existing entities. So far, not a single problem.
Edit2: My previous hypothesis is supported by the fact that I spent the last 3 hours happily designing. I simply moved the room closer to the previous rooms, so that the distance -as the bird flies- from the starting point of the map does not get too high. I have made dozens of corridors - and no leaks whatsoever.