Major Errors When Compiling
Posted May 13, 2012
Sorry if I've done something very noobish that has caused this. Not sure what it is, haven't seen it before.
When compiling I get 2 errors I've never seen:
Error! Variable "$envmap" is multiply defined in material "metal/underground_wall_metal004a_bottom!
When compiling I get 2 errors I've never seen:
Error! Variable "$envmap" is multiply defined in material "metal/underground_wall_metal004a_bottom!
And: Error loading studio model! ''''
When I actually load up the map, a section of it has about 3/4 of the brushes missing. Gone. No idea why.
There might be a reason for this, but here's what I did: I made a separate puzzle in another vmf, then went to Map Properties to select the entire thing, and pasted it into a map with another puzzle. The brushes are only missing from the pasted puzzle.
Some quick help would be appreciated...
Registered users don’t see ads!
Register now!
Posted May 13, 2012
Replied
12 minutes
later
Are you using custom materials? If so, make sure that none of them have 2 "$envmapmask" lines.
Posted May 13, 2012
Replied
2 minutes
later
Nope, no custom materials.
Posted May 13, 2012
Replied
12 minutes
later
Can you post (or attach) your maps .log file?
Posted May 13, 2012
Replied
23 minutes
later
Is the logs file located in sdk_content? Is it the text document?
Posted May 13, 2012
Replied
4 minutes
later
It will be located in the same place as your .vmf, and yes, it probably shows up as a Text Document but if you open the properties of the file you will see that is it a 'Text Document (.log)'.
Posted May 13, 2012
Replied
1 minutes
later
The .log file in sdk_content is your compile log.
The vmt for that texture is:
The vmt for that texture is:
LightMappedGeneric
{
$basetexture "metal/underground_wall_metal004a_bottom"
$surfaceprop default
$bumpmap "metal/underground_wall_metal004a_normal"
"%noportal" 1
"%keywords" "portal2 underground"
$envmap env_cubemap
$ssbump 1
$normalmapalphaenvmapmask 1
$envmapcontrast 1
$envmapsaturation .2
$envmaptint "[.2 .2 .2 ]"
$envmaplightscale .75
$envmap "metal/black_wall_envmap_002a"
hdr
{
$envmap "metal/black_wall_envmap_002a_hdr"
}
}
maybe hammer isn't really happy with the ldr and the hdr envmaps.
If you vmt is different you might want to replace it with mine 
Posted May 13, 2012
Replied
2 minutes
later
The extension .log is not allowed.
So, I just put it in a zip...
Posted May 13, 2012
Replied
5 minutes
later
Error loading studio model ""! = There is a "prop_" model in your map using no model or an incorrect model filename.
Registered users don’t see ads!
Register now!
Posted May 13, 2012
Replied
16 minutes
later
Ok, i think my problem with the missing brushes is fixed. I restarted hammer and all the brushes that were missing in the actual game, were now missing in Hammer... so i'm just redoing them. Hopefully it will work then. Thanks for the additional help guys