I got steam fully working on arch linux, no multilib repo. only 64 bit.

Here is the issue I learned about this from, and here is the maintainers stance on why they won’t change it.
tl;dr: 32 bit linux native games stop working, as they need 32 bit libs. But, they can still be run through proton wow64 and the windows version of the game. The kernel also still needs to support running 32 bit applications. The devs don’t like this approach because apparently not all 32 bit games are supported via this method.

Workaround

I installed steam on Arch linux with the multilib repo disabled, skipping all 32 bit dependencies. Everything essentially works, but launching a game doesn’t work. Turns out the only thing stopping it is a single 32 bit binary called reaper. It’s essentially a process-supervisor helper used for every game launch. Note: It could/should be a 64 bit binary, but here is the maintainer’s reason why it isn’t

I chose a stupid workaround that was in the thread. I got the 64 bit reaper from this repo, and used binfmt_misc to run the 64 bit reaper anytime the 32 bit one is called. Compiled with the reaper32’s file size and checksum constants to get past steam’s integrity check.

Tested so far

  • Terraria: native linux 64 bit game. works.
  • TF2: same thing
  • Half Life 2 (32 bit, windows build): Launched with Proton Experimental with launch flags PROTON_USE_WOW64=1 %command% No issues.

Tbf i haven’t extensively tested everything, but it all seems to work. And IMO, it’s worth it. Especially for finally dropping 32 bit libs. Like half a gigabyte of useless updates and dependencies gone.

What do you think? Would you deal with potential compatibility issues with some older 32 bit games for the sake of finally dropping 32 bit libs on your desktop?

Edit: this is not meant to be a guide. This is just a showcase of what can be done, and what steam could do, but just doesn’t. You should expect online games with anticheats to flag you as a cheater, as you’re tampering with the integrity of the files. I personally dont play much online games, at least on steam. If you want to do it yourself, go to the 64 bit reaper repo, and use the PKGBUILD. There is no performance improvement.

Valve doing this would finally drop 32 bit support on basically every modern distro/software as the standard. Finally reducing maintainers workload compiling old, useless 32 bit libs. This is an update they could push tomorrow. I only made the post because they maintainers seem to be against it?

    • KickMeElmo@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      36
      ·
      1 day ago

      Steam is 64-bit. It still has some 32-bit dependencies for compatibility with older games. He’s referring to a system that excludes -all- 32-bit dependencies.

    • Aatube@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      It is, but according to OP, there’s a single infinitesimal 32-bit part that seemingly exists solely to ensure you have 32-bit dependencies installed for compatibility with older games.

      • fatAristocat@piefed.zipOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 hours ago

        Firstly it isn’t. Only the client is. It’s a maintenance burden and it should die. There’s almost no reason to keep 32 bit support alive anymore, even wine dropped 32 bit deps on arch. wine = proton. If steam can, they should. it’s the only 32 bit app left atp. I worded it the way i did because the maintainers are very against it? you have many people downvoting their comments in the issue tracker lmao. This literally affects every distro and software like flatpak. Also it’s like 0.5 Gb of installed deps…

        Do you think Steam just randomly made their client 64 bit for no reason? They did it to improve the maintenance!

  • db2@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    2
    ·
    1 day ago

    What do you think? Would you deal with potential compatibility issues with some older 32 bit games for the sake of finally dropping 32 bit libs on your desktop?

    No, as long as self-righteous neckbeards don’t decide to stop maintaining the 32 bit bits for no valid reason. If someones machine can’t handle running 64 and 32 to the point that they’re needing to choose one or the other then they should have upgraded it two decades ago.

    If someone wants all 64 bit just because they can that’s awesome and it’s interesting (your post for example). If they start being a dick about it that’s something else entirely and unfortunately there are more than a handful of those.

    • fatAristocat@piefed.zipOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      7 hours ago

      Lmao yea ik, it’s just exciting cause steam is essentially the only hold out for dropping 32 bit support on like every distro? Years of maintainers lifespan regained.

      Edit: also i phrased it this way because the maintainers for steam seem very against the idea? Even though other projects like wine went from multilib -> extra on arch because of the same WOW64 comp layer. And Steam has dropped it on both Windows and Mac. I get some older games like portal might suffer (emphasis on might) but imo it should happen.

    • Billegh@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 day ago

      This is actually more useful than you think. The self-righteous neckbeards are redhat have been trying with removing 32but from upstream, affecting fedora, which is the basis for bazzite. That alone is the only reason I don’t use or recommend bazzite.

      If this can insulate bazzite from redhat’s poor decisions (and IBM, who now owns redhat), I’m all for it.

      • Aatube@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 day ago

        I mean, OP’s question implies the premise of you having the agency over whether to drop 32-bit libraries. You don’t if Red Hat’s forcing that.

  • wizzim@infosec.pub
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 day ago

    Compiled with the reaper32’s file size and checksum constants to get past steam’s integrity check.

    Out of curiosity, how do you achieve that the 64 bit reaper has the same checksum as the 32 bits one ?

    • fatAristocat@piefed.zipOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 hours ago

      python to compute CRC32 from the file, change <your-user>

      #!/usr/bin/env python3
      import zlib
      
      path = "/home/<your-user>/.local/share/Steam/steamrt64/reaper"
      with open(path, "rb") as f:
          print(zlib.crc32(f.read()))
      

      compile reaper using gcc with the value it returned. where {$CRC} is

      gcc -O2 -DSTEAM_REAPER_SIZE="$SIZE" -DSTEAM_REAPER_CRC32="{$CRC}u" -o reaper64 reaper64.c -lz
      

      You could also click the link that has the reaper64, it has the PKGBUILD that does all the instructions for you. I just did it manually because i didn’t realise it was there lmao.

    • FauxLiving@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      I believe the checksum is CRC32.

      It’s not cryptographic and I think the transformation is linear so you could just calculate a few bytes of padding which would cause the CRC32 checksums to match.

      I’d be a bit careful of using this in anticheat games, they could be checking the cryptographic signatures of the running executables and the CRC32 collision won’t fool that.

  • Aatube@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    edit-2
    1 day ago

    32 bit linux native games stop working, as they need 32 bit libs. But, they can still be run through proton wow64 and the windows version of the game. The kernel also still needs to support running 32 bit applications. The devs don’t like this approach because apparently not all 32 bit games are supported via this method.

    I will add that I personally will always prefer running native instead of emulation using a translation layer.

    I have the disk space (since I am gaming, after all) so I’m completely fine with installing 32-bit libraries. I do agree though that the Reaper executable should be 64-bit regardless.

    • Zarobi@aussie.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      17 hours ago

      I’m the opposite and always run via Proton. In my experience, games either don’t have any sound, or controllers don’t work for Linux native games. Even in a fresh CachyOS install so I’m not sure what the problem is.

        • thingsiplay@lemmy.ml
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          2
          ·
          1 day ago

          I see. This is usually not what we call emulation, as the games run native by rerouting the api calls. I know the term “emulation” is sometimes used in different context, so let’s not tangle up in definitions.

          • lime!@feddit.nu
            link
            fedilink
            English
            arrow-up
            5
            arrow-down
            1
            ·
            1 day ago

            it is emulating the windows api. that’s the correct term.

            • barnacles@lemmy.zip
              link
              fedilink
              English
              arrow-up
              5
              ·
              1 day ago

              I don’t know how far this hair needs to be split - but isn’t it a translation layer in this case?

              I don’t know enough about emulation so take this with a grain of salt, but I figure there’s an element of virtualisation or an intermediary application when “emulating”

              • lime!@feddit.nu
                link
                fedilink
                English
                arrow-up
                3
                ·
                1 day ago

                it is absolutely hair-splitting, but the term is broad. it’s just a system behaving as another system.

                • barnacles@lemmy.zip
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  1 day ago

                  Yeah fair enough. The dictionary definition would certainly support proton being called an emulator.

              • thingsiplay@lemmy.ml
                link
                fedilink
                English
                arrow-up
                1
                arrow-down
                1
                ·
                1 day ago

                In computing, usually “emulation” means when emulating the CPU instructions. That’s why we have other terms to distinguish that, like Virtualization will not emulate the CPU and possibly the GPU itself. And you are right, WINE and Proton are translation layers that re-route the api calls directly to local api calls, to run games native. Nothing is “emulated” in the way of the word is used in this space. But off course the broader sense of the word “emulation” can be confusing. But we are not talking in broader sense here.

                Famously WINE even stands for Wine Is Not an Emulator (Proton is based on WINE).

            • thingsiplay@lemmy.ml
              link
              fedilink
              English
              arrow-up
              4
              arrow-down
              3
              ·
              1 day ago

              Alright whatever. I’m not here to start another definition war. So let’s move on.

  • Victor@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    I install Steam via Flatpak. 😅

    Feels good somehow to keep it contained, but, of course, can’t really do workarounds like this very easily.

  • thingsiplay@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    1 day ago

    I would be careful to play anticheat games. They could flag you for trying to cheat, because you altered some files, not knowing your true intention. What does even the 64 bit reaper tool do? The Git repository has no explanation. I wouldn’t risk anything, there is little benefit in my opinion.

    • fatAristocat@piefed.zipOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 hours ago

      Yes. It’s a proof of concept anyways. I mean i did play TF2 that uses VAC and didn’t get flagged? It’s up to steam to implement the 64 bit reaper binary. (which they refuse to do for some reason?) I heard the client was 64 bit and wanted to try to see what wouldn’t work. AFAIK it’s just this one binary.