HammerPatch - No more precision loss for brush vertices!

Discussion in 'Tutorials & Resources' started by 404UNF, Jun 5, 2017.

  1. 404UNF

    404UNF No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    228
    Positive Ratings:
    58
    Didn't see this posted anywhere, so I'm assuming the fella didn't post it here (yet), but I saw this on Facepunch just now;

    https://facepunch.com/showthread.php?t=1563348


    There's pictures on the FP thread and right in the Github README. All glory to CRASHFORT for fixing the precision loss :D
     
    • Like Like x 1
  2. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,217
    Oh wow. I'd love to see an explanation of how it works, because Hammer isn't exactly open source so modding it must have been quite the feat of reverse engineering.
     
  3. 404UNF

    404UNF No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    228
    Positive Ratings:
    58
    Eh, it's pretty open source though the legality is debatable.

    https://github.com/LestaD/SourceEngine2007/tree/master/src_main

    There's probably other Hammer things, but here's two main ones:

    https://github.com/LestaD/SourceEngine2007/tree/master/src_main/hammer
    https://github.com/LestaD/SourceEngine2007/tree/master/src_main/hammer_launcher

    There's also the source code for HLMV among many other things. It's all dated around 2008 IIRC.
     
  4. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,217
    Ah. So they really did just literally modify the source code and recompile it. I approve, and I would like to see more such endeavors in the future. I'm sure there's tons more they can improve if they're willing to put in the effort.
     
  5. 404UNF

    404UNF No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    228
    Positive Ratings:
    58
    Did they really? I didn't actually get a chance to look at it yet, work and all.

    Edit: Got word from CRASH FORT regarding the program's development;

     
  6. Asd417

    aa Asd417 L1: Registered

    Messages:
    801
    Positive Ratings:
    557
    Can I have Forge tool added to tf2 for this Chirstmas?
    Edit: Or can I have 3d Lighting Preview?
     
    Last edited: Jun 6, 2017
  7. 404UNF

    404UNF No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    228
    Positive Ratings:
    58
    Oh god, I'd love a realtime lighting preview for TF2. It'd make map lighting 100x easier.
     
  8. Hyperion

    aa Hyperion L16: Grid Member

    Messages:
    810
    Positive Ratings:
    617
    This breaks decompiled maps, most of the stuff turns into invalid solids
     
  9. 404UNF

    404UNF No longer a "TF2 Beta/Cut Content Historian".

    Messages:
    228
    Positive Ratings:
    58
    I've submitted an issue on the Git in regards to that problem. Part of me wants to say it's because Hammer and HammerPatch are two different programs, and HammerPatch may read things differently...but I'm not 100% certain.

    EDIT: Response from Crashfort

    And my reply:

     
    Last edited: Jun 12, 2017
  10. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,217
    On that note, if I did have access to Hammer's source code and knew what I was doing, priority #1 would be fixing the bug where confirming the "Do you want to re-save the map with the invalid solids removed?" does not actually remove any invalid solids and also removes all entities for no reason.
     
    • Thanks Thanks x 1
  11. BigfootBeto

    aa BigfootBeto Too obsessed with perfection

    Messages:
    368
    Positive Ratings:
    561
    I feel like I just dodged a bullet by reading that.