Hammer Crashes on compile of ANY map

Discussion in 'Mapping Questions & Discussion' started by BoxandRocks, Feb 4, 2016.

  1. BoxandRocks

    BoxandRocks L1: Registered

    Messages:
    6
    Positive Ratings:
    1
    Hello all! I've recently been developing for my Half-Life 2 mod, PUNT: Rebirth, and while livestreaming my mapping of a particular level, hammer crashed randomly. This was odd, as I wasn't doing anything out of the ordinary, and the map was fairly small. I restarted hammer and continued mapping without a problem. However, when I went to compile, hammer immediately crashed. I retried time and time again, even with different maps and games, but absolutely no map, even those that had successfully done so before (and which I hadn't edited since), would compile. The one exception to this Portal 2, which still allows me to compile maps. Unfortunately, as the portal 2 tools use a different .bsp format than Source 2013, I can't just use that.

    I've also tried using VBSP, but that crashed as well. To clarify, this happened out of nowhere. I've been a Source developer for 6 years now, and I've never run into anything like this. If anyone has a solution or suggestion, it would be greatly appreciated, as I'm lost as to what else I can so to fix the issue.

    Note: I've also attempted using Regedit to reset the hammer configs. Didn't work.

    Thanks,
    BoxandRocks
     
  2. Vel0city

    aa Vel0city func_fish

    Messages:
    1,938
    Positive Ratings:
    1,540
    Have you validated TF2's (or other games you've been mapping for) game cache? This can be done by going into Steam's sidebar with all the games, right-click on the game in question, then Properties->Local Files->Check integrity of game cache. Most likely something got either updated while Hammer was running or some random error corrupted files left and right.
     
    • Thanks Thanks x 1
  3. BoxandRocks

    BoxandRocks L1: Registered

    Messages:
    6
    Positive Ratings:
    1
    I'm technically running a custom branch of Source 2013 sp. Yeah, I reinstalled it and validated the cache, along with HL2, Portal, ect. but to no avail.
     
  4. radarhead

    aa radarhead Level 20 "Mapper"

    Messages:
    1,014
    Positive Ratings:
    562
    "Custom branch"? What do you mean by this?
     
    • Thanks Thanks x 1
  5. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,882
    Positive Ratings:
    5,123
    Haave you tried an external compiler such as compilepal?
     
    • Thanks Thanks x 1
  6. BoxandRocks

    BoxandRocks L1: Registered

    Messages:
    6
    Positive Ratings:
    1
    Yes, I used VBCT with no results. Both hammer and VBCT completely crash, they don't even freeze.

    I have a modified Source 2013 sp build with some custom launch wrappers and such. In other words, a bunch of code. However, I'm 100% positive that didn't contribute to the issue.
     
  7. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    If both Hammer and VBCT crash, perhaps there is an issue with VBSP, or VVIS? I'm not sure if '2013 SP has been updated recently but that won't matter if you're compiling it yourself. Only thing I can think of is there might be a system process that is interfering with either of those.
     
    • Thanks Thanks x 1
  8. BoxandRocks

    BoxandRocks L1: Registered

    Messages:
    6
    Positive Ratings:
    1
    Fixed! Turned out the 2013 sdk kept wiping my build program configs, resulting in the crashes. Launching it from a .bat of mine caused it not to display that they were wiped, but doing it directly seemed to do the trick, which is odd, as they should be the same.

    Thanks to everyone for their help!
     
  9. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    Nice work. Glad to hear you got it working again and thanks for the new knowledge.