So there are multiple sites&groups that pirate video games especially on PC. I was wondering if there are places on the internet where you find source code for games especially the highly modifiable ones like Half Life 2/Portal and Skyrim. Or groups that crack into the source code of games (or even software in general), not only for PC maybe PS, XBox or mobile too, and share it. I just wanted to see some code samples of games or their engines, maybe I get hooked into video game design. Shout out to Valve for sharing a lot about the creation of Half Life 1

  • Draconic NEO@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 months ago

    Only if they wrote why in it though, plenty of people (unfortunately myself included) fail or forget to add meaningful comments or they let their comments go stale when making changes by forgetting to update them (I do it a lot too), and some people also use horrible function names that don’t make any sense.

    So it only really applies to source code intended to be released where care was made to ensure it would be readable, it might not apply for source code never intended to be public, such as stolen, leaked, or posthumously released. In this case the only real benefit is that it can be recompiled on different architectures provided there isn’t a dependency issue preventing that.

    • lud@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      Source code without comments is still way easier to read than machine code.

      And there are very likely comments anyways.

      Multiple Devs will work on the same code for years and of course they need or at least appreciate comments.