lights.rad not working

Mar 23, 2013
1,013
347
So I wanted that lights can go through the alpha-texture of a fence prop with the -lights lights.rad -textureshadow parameter for VVIS. But it seems hammer ignores the lights.rad. When I name the parameter -lights lamplights.rad -textureshadow the compile log said
"Warning: couldn't find textlight file lamplights.rad"
even if I name my light file <mapname>.rad it dosn't work.
The rad textfile was always in my tf folder.

help me :>
 

henke37

aa
Sep 23, 2011
2,075
515
The tool must be looking in another folder.
 
Mar 23, 2013
1,013
347
The tool must be looking in another folder.

I took a look at my settings to check which folder the file should eventually go.

7o30.jpg


$SteamUserDir...?
not common? lol everythign works fine for me though...
So in which fodler should I put the file now?
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
$SteamUserDir is common. Now that literally everything belongs there and the named-after-your-account-handle folder is just an appendix, Hammer defaults to common as the standard directory.
 
Mar 23, 2013
1,013
347
So common/team fortress 2/tf is actually the right folder for the lights.rad? Then why can't hammer find it?
 
Mar 23, 2013
1,013
347
Ok, Looks like I could fix it. I had to copy a lights.rad from another game to my tf folder.
I thought creating a text file and naming it lamplight.rad would be enough. How do I create a RAD file if I cant copy one? well this actually dosn't matter as long I can always get a new one from other source games.

But the light still won't go through the alpha texture of the fence :( see?

VRAD is using this commands:
-lights lamplight.rad -staticproppolys -textureshadows -staticproplighting -game $gamedir $path\$file

in the compile it does mention that it finds the file

Valve Radiosity Simulator
4 threads
[Reading texlights from 'lights.rad']
[34 texlights parsed from 'lights.rad']

[Reading texlights from 'lamplight.rad']
[0 texlights parsed from 'lamplight.rad']

And my lamplight.rad file contains this two lines:

forcetextureshadow models/props_construction/construction_fence128_corner.mdl
forcetextureshadow props_construction/construction_fence128_corner.mdl


I pasted the path from hammer. I wasn't sure if I have to include the model/ at the beginning :3 people told be different stuff.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
Well, try removing the line without models\, because you do need that (just look at the default one).
You could also try added a texture light (just use something you aren't using) to your rad file and see if that makes it "see" the texture shadow lines.