Map compiles under SDK 2007, but won't compile under SDK 2013

    • Map compiles under SDK 2007, but won't compile under SDK 2013

      I've got an odd issue with one of my maps I'm working on. I'm running into an issue with trying to compile the loop mod version of bm_c2a2a with the new tools. Specifically, the map will compile with no errors under the 2007 SDK, but the EXACT SAME .vmf will fail under SDK 2013 with a max brushsides error. What's really baffling about this is that the limit seems to be significantly lower in the 2013 sdk, to the point where I've cut large portions of the map, and yet I'm still getting a max brushsides error.

      Anyone have any idea what might be going on? Corrupt geometry? Something else? Any help would be appreciated.
    • The deeper I dig into this issue, the weirder it gets. The uncut version of the map compiles fine in sdk 2007, but the heavily cut version throws a max brushsides error in both 2013 AND 2007. That's right, the version with huge pieces torn out of it hits the brush limit, yet the version not cut at all DOESN'T (at least, not in SDK 2007).
    • Another update. I figured out how to get the heavily cut version of the map to compile in the 2013 SDK. It turns out that hammer still counts brushes in deactivated visgroups towards the total (for some unknown reason), and when I deleted the contents of the hidden brush groups, the map would compile. So now here's the compilation results of the identical map in both 2007 and 2013.

      2007 SDK:

      Brainfuck Source Code

      1. Ready to Finish
      2. Object names Objects/Maxobjs Memory / Maxmem Fullness
      3. ------------ --------------- --------------- --------
      4. models 137/1024 6576/49152 (13.4%)
      5. brushes 6220/8192 74640/98304 (75.9%)
      6. brushsides 59958/65536 479664/524288 (91.5%) VERY FULL!
      7. planes 46414/65536 928280/1310720 (70.8%)
      8. vertexes 26928/65536 323136/786432 (41.1%)
      9. nodes 7185/65536 229920/2097152 (11.0%)
      10. texinfos 8879/12288 639288/884736 (72.3%)
      11. texdata 479/2048 15328/65536 (23.4%)
      12. dispinfos 32/0 5632/0 ( 0.0%)
      13. disp_verts 2720/0 54400/0 ( 0.0%)
      14. disp_tris 4480/0 8960/0 ( 0.0%)
      15. disp_lmsamples 27004/0 27004/0 ( 0.0%)
      16. faces 15032/65536 841792/3670016 (22.9%)
      17. hdr faces 15032/65536 841792/3670016 (22.9%)
      18. origfaces 11323/65536 634088/3670016 (17.3%)
      19. leaves 7323/65536 234336/2097152 (11.2%)
      20. leaffaces 20493/65536 40986/131072 (31.3%)
      21. leafbrushes 12080/65536 24160/131072 (18.4%)
      22. areas 26/256 208/2048 (10.2%)
      23. surfedges 115202/512000 460808/2048000 (22.5%)
      24. edges 73414/256000 293656/1024000 (28.7%)
      25. LDR worldlights 466/8192 41008/720896 ( 5.7%)
      26. HDR worldlights 466/8192 41008/720896 ( 5.7%)
      27. leafwaterdata 6/32768 72/393216 ( 0.0%)
      28. waterstrips 1854/32768 18540/327680 ( 5.7%)
      29. waterverts 0/65536 0/786432 ( 0.0%)
      30. waterindices 34929/65536 69858/131072 (53.3%)
      31. cubemapsamples 122/1024 1952/16384 (11.9%)
      32. overlays 161/512 56672/180224 (31.4%)
      33. LDR lightdata [variable] 11561692/0 ( 0.0%)
      34. HDR lightdata [variable] 11561692/0 ( 0.0%)
      35. visdata [variable] 91737/16777216 ( 0.5%)
      36. entdata [variable] 533660/393216 (135.7%) VERY FULL!
      37. LDR ambient table 7323/65536 29292/262144 (11.2%)
      38. HDR ambient table 7323/65536 29292/262144 (11.2%)
      39. LDR leaf ambient 33632/65536 941696/1835008 (51.3%)
      40. HDR leaf ambient 33556/65536 939568/1835008 (51.2%)
      41. occluders 0/0 0/0 ( 0.0%)
      42. occluder polygons 0/0 0/0 ( 0.0%)
      43. occluder vert ind 0/0 0/0 ( 0.0%)
      44. detail props [variable] 1/12 ( 8.3%)
      45. static props [variable] 1/147164 ( 0.0%)
      46. pakfile [variable] 13140781/0 ( 0.0%)
      47. physics [variable] 2071405/4194304 (49.4%)
      48. physics terrain [variable] 9344/1048576 ( 0.9%)
      49. Level flags = 0
      50. Total triangle count: 40910
      51. Writing d:\program files (x86)\steam\steamapps\common\black mesa\bms\mapsrc\loopmod\maps\bm_c2a2a_d7_t2.bsp
      52. 58 seconds elapsed
      Display All
      2013 SDK:

      Brainfuck Source Code

      1. Ready to Finish
      2. Object names Objects/Maxobjs Memory / Maxmem Fullness
      3. ------------ --------------- --------------- --------
      4. models 137/1024 6576/49152 (13.4%)
      5. brushes 6220/8192 74640/98304 (75.9%)
      6. brushsides 65490/65536 523920/524288 (99.9%) VERY FULL!
      7. planes 58082/65536 1161640/1310720 (88.6%) VERY FULL!
      8. vertexes 27169/65536 326028/786432 (41.5%)
      9. nodes 7411/65536 237152/2097152 (11.3%)
      10. texinfos 8893/12288 640296/884736 (72.4%)
      11. texdata 479/2048 15328/65536 (23.4%)
      12. dispinfos 32/0 5632/0 ( 0.0%)
      13. disp_verts 2720/0 54400/0 ( 0.0%)
      14. disp_tris 4480/0 8960/0 ( 0.0%)
      15. disp_multiblend 2720/0 217600/0 ( 0.0%)
      16. disp_lmsamples 27032/0 27032/0 ( 0.0%)
      17. faces 15096/65536 845376/3670016 (23.0%)
      18. hdr faces 15096/65536 845376/3670016 (23.0%)
      19. origfaces 11344/65536 635264/3670016 (17.3%)
      20. leaves 7549/65536 241568/2097152 (11.5%)
      21. leaffaces 20723/65536 41446/131072 (31.6%)
      22. leafbrushes 12191/65536 24382/131072 (18.6%)
      23. areas 26/256 208/2048 (10.2%)
      24. surfedges 115639/512000 462556/2048000 (22.6%)
      25. edges 73715/256000 294860/1024000 (28.8%)
      26. LDR worldlights 0/8192 0/819200 ( 0.0%)
      27. HDR worldlights 466/8192 46600/819200 ( 5.7%)
      28. leafwaterdata 6/32768 72/393216 ( 0.0%)
      29. waterstrips 1882/32768 18820/327680 ( 5.7%)
      30. waterverts 0/65536 0/786432 ( 0.0%)
      31. waterindices 35175/65536 70350/131072 (53.7%)
      32. cubemapsamples 122/1024 1952/16384 (11.9%)
      33. overlays 161/512 56672/180224 (31.4%)
      34. LDR lightdata [variable] 0/0 ( 0.0%)
      35. HDR lightdata [variable] 13090183/0 ( 0.0%)
      36. visdata [variable] 93043/16777216 ( 0.6%)
      37. entdata [variable] 533660/393216 (135.7%) VERY FULL!
      38. LDR ambient table 7549/65536 30196/262144 (11.5%)
      39. HDR ambient table 7549/65536 30196/262144 (11.5%)
      40. LDR leaf ambient 7549/65536 211372/1835008 (11.5%)
      41. HDR leaf ambient 32501/65536 910028/1835008 (49.6%)
      42. occluders 0/0 0/0 ( 0.0%)
      43. occluder polygons 0/0 0/0 ( 0.0%)
      44. occluder vert ind 0/0 0/0 ( 0.0%)
      45. detail props [variable] 1/12 ( 8.3%)
      46. static props [variable] 1/169786 ( 0.0%)
      47. pakfile [variable] 19195719/0 ( 0.0%)
      48. physics [variable] 2604765/4194304 (62.1%)
      49. physics terrain [variable] 0/1048576 ( 0.0%)
      50. Level flags = 6
      51. Total triangle count: 41140
      52. Writing d:\program files (x86)\steam\steamapps\common\black mesa\bms\mapsrc\loopmod\maps\bm_c2a2a_d7_t2.bsp
      53. 12 minutes, 29 seconds elapsed
      Display All
      There's a discrepancy of 5532 brush sides between the two compilers!

      I think I may have actually stumbled across a compiler glitch. I'll try and investigate further when I have the time. Until then, if anyone has any idea what might be causing this, please tell me.