Please or Register to create posts and topics.

Major Errors When Compiling

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!

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...

My Hammer Maps
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal

Are you using custom materials? If so, make sure that none of them have 2 "$envmapmask" lines.

Nope, no custom materials.

My Hammer Maps
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal

Can you post (or attach) your maps .log file?

Is the logs file located in sdk_content? Is it the text document?

My Hammer Maps
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal

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)'.

The .log file in sdk_content is your compile log.
The vmt for that texture is:

Code: Select all
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 :P

The extension .log is not allowed.

So, I just put it in a zip...

My Hammer Maps
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal

Error loading studio model ""! = There is a "prop_" model in your map using no model or an incorrect model filename.

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

My Hammer Maps
[Released] Power Interference
[Released] Rust and Dust (Spotlight Map!)
[Released] Multiportal