Problem Building Cubemaps

Avatar
bizob
186 Posts
Posted May 12, 2008
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?

Advertisement
Registered users don't see ads! Register now!
Avatar
mazk1985
135 Posts
Posted May 12, 2008
Replied 1 hour later
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

Avatar
bizob
186 Posts
Posted May 12, 2008
Replied 3 hours later

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:

 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
Avatar
mazk1985
135 Posts
Posted May 12, 2008
Replied 25 minutes later
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?
Avatar
bizob
186 Posts
Posted May 13, 2008
Replied 2 hours later

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.

Avatar
Fusion
77 Posts
Posted May 13, 2008
Replied 2 hours later
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.

Avatar
bizob
186 Posts
Posted May 13, 2008
Replied 19 hours later

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.

Advertisement
Registered users don't see ads! Register now!
Avatar
NocturnalGhost
200 Posts
Posted May 14, 2008
Replied 2 hours later
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.