Please or Register to create posts and topics.

VRAD crashes on second pass, no error message

Hi everyone,

I've been working on a map (as a mapper is wont to do), and I've run into a strange error that I'm having a lot of difficulty overcoming.

When I do a full compile [the -both -final (slow!) one], VRAD decides to be unresponsive on the second pass - it gets to BuildVisLeafs, counts all the way up to
"9...", then stops for a very long time. Then, Windows pops up saying "vrad.exe has stopped working". It only happens on full compile.

I've tried cordoning off certain areas, it only happens when I compile the whole map.
VVIS runs like a charm, 0 seconds elapse, 648 numportals.

Can anybody suggest why this might be happening? I've attached a .vmf for your troubleshooting pleasure.

ImageImage

I can has instances/custom/mp_coop_x^2/coop_endlevel_room_x^2.vmf? =3

I've experienced some issues with the -both switch. I don't know if they are resolved. Please use 2 compile lines in the advanced compile. Have one use -LDR and the other use -HDR. Let me know if it still crashes on you.

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)
TopHATTwaffle wrote:
I've experienced some issues with the -both switch. I don't know if they are resolved. Please use 2 compile lines in the advanced compile. Have one use -LDR and the other use -HDR. Let me know if it still crashes on you.

By that do you mean duplicate the lighting line, and put -ldr in one and -hdr in the other? Sounds reasonable. I'll give it a crack.

ImageImage
srs bsnss wrote:
By that do you mean duplicate the lighting line, and put -ldr in one and -hdr in the other? Sounds reasonable. I'll give it a crack.

Yup, do that!

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)
TopHATTwaffle wrote:
srs bsnss wrote:
By that do you mean duplicate the lighting line, and put -ldr in one and -hdr in the other? Sounds reasonable. I'll give it a crack.

Yup, do that!

Yay :lol: It worked! Thanks heaps, TopHATT :notworthy:

(p.s. I'll take this moment to mention that your tutorials were super helpful for me when I started using Hammer :thumbup: )

ImageImage

Glad it's working. I was pulling my hair out when that was happening to me about 2 years ago. Happy mapping!

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)

Hey Doug, but should one have the following lines:

-textureshadows -ldr -StaticPropLighting -StaticPropPolys -game $gamedir $path$file
-textureshadows -hdr -StaticPropLighting -StaticPropPolys -game $gamedir $path$file

... or the following ones:

-ldr -final -textureshadows -StaticPropLighting -StaticPropPolys -game $gamedir $path$file
-hdr -final -textureshadows -StaticPropLighting -StaticPropPolys -game $gamedir $path$file

I mean, should the "-final" switch be substituted too or not? :D

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
josepezdj wrote:
Hey Doug, but should one have the following lines:

-textureshadows -ldr -StaticPropLighting -StaticPropPolys -game $gamedir $path$file
-textureshadows -hdr -StaticPropLighting -StaticPropPolys -game $gamedir $path$file

... or the following ones:

-ldr -final -textureshadows -StaticPropLighting -StaticPropPolys -game $gamedir $path$file
-hdr -final -textureshadows -StaticPropLighting -StaticPropPolys -game $gamedir $path$file

I mean, should the "-final" switch be substituted too or not? :D

The order does not matter. As for "-final" That will ONLY improve lighting emitted from a light_enviroment. In my experiences, it does not matter if you have it on when you compile a level without a light_enviroment. So I always keep it in my compile settings, just in case I do happen to have a light_enviroment in my level.

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)