Really weird Compile Error

Discussion in 'Mapping Questions & Discussion' started by cadeonehalf, Jan 21, 2010.

  1. cadeonehalf

    cadeonehalf L1: Registered

    Messages:
    32
    Positive Ratings:
    6
    Hey everyone,
    So I'm putting the finishing touches on the initial release for my contest submission ctf_gullywasher, but every time I try to build cubemaps I get the following error:
    Code:
    current mod isn't in a subdirectory of "game"!
    bounce: 1/1 sample: 1/1
    ***ERROR skybox vtf files for sky_alpinestorm_01 weren't compiled with the same size texture and/or same flags! Can't load skybox file sky_alpinestorm_01 to build the default cubemap!
    After scouring the internet for most of the past three days (Error showed up during early compiles to test lighting) I learned that the bottom error is just inherent to Team Fortress 2 and has no effect once you build your own cubemaps. However, the mod error isn't letting me build cubemaps! Here's what it looks like in-game:
    [​IMG]

    But the water itself renders underneath, like this:
    [​IMG]

    Any help would be IMMENSELY appreciated! Thanks in advance.
     
  2. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,682
    The skybox error is normal. Just ignore it. Go to map ---> load point-file, you might have a leak.
     
    • Thanks Thanks x 1
  3. Lancey

    aa Lancey Currently On: ?????

    Messages:
    3,076
    Positive Ratings:
    1,314
    In fact, that is most definitely caused by a leak. As TPG said, load your pointfile. Follow the red line to where it escapes the map and stop it from doing that by putting brushes in its way. The red line can pass through entities, displacements, models, and water, so keep that in mind.
     
    • Thanks Thanks x 1
  4. cadeonehalf

    cadeonehalf L1: Registered

    Messages:
    32
    Positive Ratings:
    6
    Wow thanks so much for the quick replies!
    I managed to load the pointfile once for the map and now the water looks like this:

    [​IMG]
    But I still get the same error when I try to build cubemaps. Even worse, now the pointfile is missing for the map. I tried recompiling to maybe establish a new pointfile but that obviously hasn't worked either.
    I'm really hoping there's some incredibly obvious solution that's embarrassing for me but really simple for you guys.
     
  5. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    748
    A pointfile is when the map leaks. It should be missing. And while there is no leak it wont ever show up again. If its there then you do have a leak in the map which you have to fix.

    For the cubemaps i dont know but im having the same issue
     
    • Thanks Thanks x 1
  6. Boylee

    aa Boylee pew pew pew

    Messages:
    1,068
    Positive Ratings:
    630
    If hammer doesn't create a pointfile after compile then you're most likely ok for leaks.

    I remember coming across this error a while back. I know it was something simple but not immediately obvious that solved it, but it did get solved.

    hmmmm... I'll start with some basic "is it plugged in and switched on" type questions.
    • Are you setting mat_specular to 0 before inputting buildcubemaps?
    • Do you have env_cubemap entities in the map?
    • Have you changed the name of the bsp after compiling it? durrrrr
     
    Last edited: Jan 22, 2010
  7. Nutomic

    Nutomic L11: Posh Member

    Messages:
    888
    Positive Ratings:
    177
    This doesnt make any difference, the only thing it has to do with cubemaps is, that cubemaps that were already built dont work after renaming a map.
     
  8. Boylee

    aa Boylee pew pew pew

    Messages:
    1,068
    Positive Ratings:
    630
    Man, I knew that too. :facepalm:

    I feel stoopid nao.
     
  9. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    Are you building with sv_cheats 1? That's important.
     
  10. cadeonehalf

    cadeonehalf L1: Registered

    Messages:
    32
    Positive Ratings:
    6
    mat_specular is set to 0 every time. I also turn off hdr. I have 1 env_cubemap in the map, tied to the water. Apart from gameplay signs, I don't think I have any other reflective items in the map yet.

    I'm glad to know a lack of a pointfile is a good thing. I tried compiling with cheats enabled, still got the same error.
     
  11. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    Do you turn mat_specular to 1 after u've built them?
     
  12. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    748
    Oh, now i remember how i fixed it for older versions in my map. I used a custom compile config (expert compile mode) and added -LDR in the vrad step. For some reason the cubemaps dont allways get added as they should here and therefor building them doesnt work.

    Could be worth to try? I dont know any other option that can fix it.
     
  13. cadeonehalf

    cadeonehalf L1: Registered

    Messages:
    32
    Positive Ratings:
    6
    I'm fairly new to mapping (I started this past October), so there's a substantial chance I messed up using the expert mode, but you meant add -LDR as a parameter for the light build program right? I did that, and although it found some invalid point_spotlights I had made, I still get the same error when trying to build cubemaps.

    *Later*
    I thought maybe I was trying to cover too much of an area with my 1 env_cubemap, so tried to reorganized things a little and got this error upon compile:
    Code:
    Current mod isn't in a subdirectory of "game"!
    Cube map buffer size 1024 x 1024 is bigger than screen!
    Run at a higher resolution! or reduce your cubemap resolution (needs 4X)
    
     
    Last edited: Jan 23, 2010
  14. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    Not sure about the first line, but check all your env_cubemap entities are set to the default resolution. (Cubemaps involve taking six mini-screenshots as the faces of a cube to use for reflections, and it's complaining that you want really big ones.)
     
  15. absurdistof

    aa absurdistof

    Messages:
    1,242
    Positive Ratings:
    393
    Maybe this has been answered, but it says the map isn't in the directory of game, I assume it is, or....

    Also, quick btw make your water .5 by .5, not .25 by .25. Also, the game should auto-place an env_cubemap on the water, just in case. And, for whatever it's worth look this up in the interlopers compile log checker if you haven't already. Go to www.interlopers.net > tutorials > compile log checker.
     
  16. Boylee

    aa Boylee pew pew pew

    Messages:
    1,068
    Positive Ratings:
    630
    the compile log checker doesn't seem to have anything about
    Code:
    Current mod isn't in a subdirectory of "game"!
    Is it actually stopping you from building cubemaps?

    This is the sequence I use to build cubemaps. Don't know if it'll help you or not.
    Code:
    disconnect
    mat_specular 0
    mat_hdr_level 0
    map MAP_NAME
    sv_cheats 1
    buildcubemaps
    disconnect
    mat_hdr_level 2
    map MAP_NAME
    sv_cheats 1
    buildcubemaps
    disconnect
    mat_specular 1
    map MAP_NAME
    sv_cheats 1
    reloadallmaterials
     
  17. VelvetFistIronGlove

    aa VelvetFistIronGlove

    Messages:
    567
    Positive Ratings:
    437
    You can safely ignore this message when building cubemaps.
     
  18. cadeonehalf

    cadeonehalf L1: Registered

    Messages:
    32
    Positive Ratings:
    6
    Hey sorry to bump this post, but I just wanted to thank everyone for the help :).
    BoyLee's cubemap building sequence and VFIG's advice worked. Thanks again!