Please or Register to create posts and topics.

Problem Building Cubemaps

OK, so I'm ready to release my map but before I do, I have to build my cube maps. I compiled in "expert" mode with the "HDR Full Compile -final (slow!)" configuration. When I use the "buildcubemaps" command I get the following error:
Current mod isn't in a subdirectory of "game"!
No cubemaps get built.

Any idea what's going on?

Image

Hmm. I've seen that before. If you moved your map file bsp before building cubemaps I think that may be the problem but I'm not sure. Try compiling then running the map through the console to build cubemaps and then move it to your folder.

Lets us know what happens

Tried launching the map through Portal and not Hammer, same result.

I deleted all files associated with this map (except for the vmf obviously), recompiled and re-ran the buildcubemaps. The same error message appears but the cubemaps are built. Imported the bsp into my bmz package (after clearing the bsp in portal/portal/maps) and played the map twice with no problems.

Hopefully this issue didn't fubar this map because I would very much like to wrap this one up and move on to my next project.

Still, if anyone knows why this error appears please share.

For the record I use the following commands to build the cube maps in bpth LDR and HDR:

Code: Select all
mat_specular 0
buildcubemaps
mat_hdr_level 0 (to go to LDR)
map mapname (to reload map)
buildcubemaps
mat_hdr_level 2 (to go back to HDR)
map mapname (to reload map)
mat_specular 1
Image

The map should be fine. If you see the cubemaps then they should always be there. btw does it go through the cubemap process and then show the error or what?

mazk1985 wrote:
does it go through the cubemap process and then show the error or what?

It goes through the process then the error message appears.

Image

When you build the cubemaps in Portal, is Portal set as your current game or mod in Hammer? Looking at the error message it may be linked to that.

I look forward to your map when you fix this problem.

Fusion wrote:
When you build the cubemaps in Portal, is Portal set as your current game or mod in Hammer? Looking at the error message it may be linked to that.

I look forward to your map when you fix this problem.

I thought of that after I made the first post and said to myself "if this is the problem I'm gonna smack myself". Portal is set as the current game.
Good thinking though.

It looks like the map is running fine though so check it out.

Image

I've seen this "error" every time i've ever run buildcubemaps. I thought it was normal.

The cubemaps always work fine, so I guess it's no big deal.