.:`=-~rANdOm~`-=:. Game Servers

Technology (Read Only) => Mapping => Topic started by: Travelsonic on August 28, 2012, 02:25:47 PM

Title: Custom Skybox Issues
Post by: Travelsonic on August 28, 2012, 02:25:47 PM
So I am working on a map that uses custom 2D skyboxes.  Simple.

Well... not so.

When I compile the map, I get the following error:

material "skybox/mhzskyftrt" not found.
Can't load skybox file skybox/mhzskyft to build the default cubemap!
Can't load skybox file skybox/mhzskyft to build the default cubemap!

Problem is, there is no material called "mhzskyftrt" - just mhzskyft, mhzskybk, mhzskrt, mhzskylf, mhzskyup, and mhzskydn, all with vmt files that match what I read in tutorials on doing custom skyboxes regarding what they should have.

Ugh, what the fuck?


Title: Re: Custom Skybox Issues
Post by: Alkaline on August 28, 2012, 05:53:02 PM
So does the skybox work? That error spits out all the time and you can ignore it.

It's just when you create your map, materials using an env_cubemap for it's $envmap parameter will appear shiny. You have to build cubemaps manually after each time you compile your map:

mat_specular 0
buildcubmaps
mat_specular 0
buildcubemaps
mat_specular 1
Title: Re: Custom Skybox Issues
Post by: Mehis on August 29, 2012, 08:50:36 AM
material "skybox/mhzskyftrt" not found.

Looks like naming issue.
Have you looked inside the .VMT files that they have the names written correctly?

skynamebk (Back)
skynamert (Right)

Should look something like this:

"UnlitGeneric"
{
"$basetexture" "skybox/skynamert"
"$nofog" "1"
"$ignorez" "1"
}

Also, if your skybox has sub-folder like skybox/folder/, you have to add the folders to Hammer skybox option too, example:

materials/skybox/folder/skyname

In Hammer folder/skyname
Title: Re: Custom Skybox Issues
Post by: Travelsonic on August 29, 2012, 09:07:12 AM
Looks like naming issue.
Have you looked inside the .VMT files that they have the names written correctly?

skynamebk (Back)
skynamert (Right)

Should look something like this:

"UnlitGeneric"
{
"$basetexture" "skybox/skynamert"
"$nofog" "1"
"$ignorez" "1"
}

Also, if your skybox has sub-folder like skybox/folder/, you have to add the folders to Hammer skybox option too, example:

materials/skybox/folder/skyname

In Hammer folder/skyname

Yup, as I said in the OP, there is no file with the name the error threw - not referenced in the VMTs, nor are any other files named that.  The VMTs match what you posted there too.



Title: Re: Custom Skybox Issues
Post by: Travelsonic on August 31, 2012, 09:01:37 AM
bumpaddendum:  And hammer is having trouble finding them too - I put the textures in cstrike/materials/skybox too.