Page 1 of 1

Couldn't Read Empty File

Posted: Sun Jan 27, 2008 5:53 am
by mffpetergriffin
I've searched for this and haven't found anything. I was editing my map just like I always did, saved it, did the bsp, vis, light thing, compiled with mbuilder, loaded game, started game with that map and the game promptly crashed with the empty file error. I don't know why it is doing that now because I didn't change anything major and anything I added, I removed and tried again. I noticed that mbuilder isn't producing the .MIN file anymore. What's going on with this?
Thanks!

Min file

Posted: Sun Jan 27, 2008 9:21 am
by tltrude
The Min file is made by the game itself. If your map crashed, it wouldn't of made a Min file. But, that's not your problem. Most likely there was an error during the compile and only a shell of the bsp was made. Add pauses after each step of the compile and watch for errors.

Posted: Sun Jan 27, 2008 2:27 pm
by mffpetergriffin
Okay, I am doing it again. I noticed now that a .MIN file is in there. I tried several times last night and it was never there so that's good. As I compile, I will share some of the errors I get, whether they are pertinent or not I don't know. My map name is testroom.

1. What does it mean when light entities leak?
2. LoadPortals: Couldn't read .....\testroom.prt
--I don't think I have any portals. What exactly is a portal anyway?

It start to load for a second or two and then crashes and doesn't give anything in console.

Posted: Sun Jan 27, 2008 7:31 pm
by neillomax
that one is easy to find here

/forum/viewtopic.php?t=2406

Also, when I make maps, I remove all custom maps and pk3 files before I start. They create problems sometimes.

Posted: Sun Jan 27, 2008 9:28 pm
by *GCC*Nigel
1. An entity will leak if it can reach the infinite void of not your map. Make a big box around your map and it won't leak. Texure it with a sky and you have what is affectionately known as a "sky box"

2. A .prt will be made when you don't have a leak.

Leak

Posted: Sun Jan 27, 2008 10:49 pm
by tltrude
Nigel is talking about a "vis" leak where the skybox is not sealing the world from the outside (void). If that's the case, the editor will create a ".lin" file (red Line) which can be viewed by clicking on File > Pointfile in the editor.

However, light leaks are not always caused by leaky skyboxes. And, light leaks are common and don't cause the game to crash. The bright part of a light entity should not stick through a wall brush. But, if it doesn't look bad in the game, you can live with the errors.