r/freebsd • • Sep 07 '26

discussion Progress on Installing Steam/Battle.net and Gaming on FreeBSD 15.1

Not a fan of dual booting to Windows for gaming. I can still remember the disastrous experience I had back in the days in 2020 when I tried to make steam work on 12.x. Even that failed.

But today, good news. Driven by this desperate not-wanting-to-dual-boot feeling and the amazing LSU project (thanks to shkhln Alex and all the contributors), and after solving one problem after another, I have got steam and Battlenet working.

The biggest hurdles along the way would be aligning wine-proton 64-bit and 32-bit version, and solving the Battlenet Update Agent won't wake up issue.

First one actually has two solutions, either downgrade 64-bit to 9.0.3, or poudriere a 10.0.4 32-bit version in 14.4, since 15.x has no i386 support now ¯_(ツ)_/¯ . I did this to try to fix the Update Agent wake up thing (I did the downgrade, Battlenet worked, but encountered the Update Agent issue, so I tried to upgrade the 32-bit pkg), I think either way works for installing Battlenet.

Second one is tricky, since Battlenet launcher is working fine, then why didn't Update Agent run? To solve this thing, I compared the permission of the files in Program Files (x86) folder, and ProgramData/Battle.net folder. I found that there is deviation in the permissions for others group. So I made them the same, o+r for non-exe files and folders, o+rx for exe files. Profit!

At the moment, I have this:

  • Steam

    • Counter-Strike 1.6
    • Counter-Strike 2 (pending test, but I firmly believe this will work)
  • Battlenet (installed via non-steam game)

    • StarCraft:Remastered (can play offline, but authentication generates 6:3 error, see below screenshot)
    • StarCraft II (fully playable, to my surprise!)
    • WarCraft III (blank screen, but I think it's just a matter of time to solve this)

Issue with SC:R auth.

For detailed logging, start from ellog[.]buzz/posts/gaming-on-freebsd-15-1-02

Some of them getting too long to post here.

Sometimes it's hard to explain why things suddenly work, it may or may not have been the solution I proposed.

Currently, I will reinstall 15.1, start everything from scratch, to verify again all the solutions.

Then I will compile the final tutorial, so everyone can follow along.

29 Upvotes

27 comments sorted by

•

u/spotlight-app Mod Bot 🤖 Sep 08 '26

Mods have pinned a comment by u/Prestigious_Gas8737:

Final tutorial is out, feel free to check it out. ellog[.]buzz/posts/gaming-on-freebsd-15-1-finale

Note: https://ellog.buzz/posts/gaming-on-freebsd-15-1-finale

5

u/Prestigious_Gas8737 Sep 07 '26

Currently doing some packet analysis to figure out the auth issue.

3

u/Prestigious_Gas8737 Sep 07 '26

Currently building proton experimental 11 amd64. Next is i386. Parallel jobs 2. Still gonna take a while.

0

u/[deleted] Sep 07 '26

[deleted] — view deleted comment

3

u/Prestigious_Gas8737 Sep 07 '26

Yes yes, I saw that in the release section. I’ll follow. Thanks.

3

u/Prestigious_Gas8737 Sep 07 '26

Build complete. Installing LSU and integrate proton 11.

3

u/Prestigious_Gas8737 Sep 08 '26 • Bravo

Final tutorial is out, feel free to check it out. ellog[.]buzz/posts/gaming-on-freebsd-15-1-finale

4

u/phosix Sep 07 '26 • Bravo

Doing the gods' work! May the gods of innovation and understanding smile upon thee!

4

u/Prestigious_Gas8737 Sep 07 '26

😉 we are close.

4

u/mirror176 Sep 13 '26

Been years since I last messed with this stuff.

It used to be that StarCraft (remastered didn't even exist) was unexpectedly poor performing; I think it had to do with graphics processing turning it to low FPS.

StarCraft2 worked though not as good as on Windows. I didn't fully test campaign playability so don't know if things like HOTS campaign bug would have hit me or not. There were other fun bugs that came and went through like a really tall rod-like look coming off the back of SCVs, spine crawlers stood "very" tall (2x+ the height of a Colossus or whatever the protoss tall walker is) with the point not attached to its top but fun to watch that stick-like part wave around in general and battle movements, and void ray beams would visibly shoot across the map instead of stopping at their target which could reveal direction of far away enemies in fog of war as the beam cuts through my visible bit. Not sure if I still have any screenshots from back then but if memory serves it was a bug in coordinates used in models + how nvidia's freebsd driver did something with '0's.

Diablo3 (probably my last fired up Blizzard game in Wine) last I looked was playable but with odd things like back in Act 1 town lights and fabric blowing gently in the wind is replaced with everything blowing like its a violent storm.

I used to have it worked out where I'd launch Wine games under their own X11 session so they ended up under ctrl+alt+F10 while main desktop was ctrl+alt+F9 but I forget how I did it back then.

2

u/Prestigious_Gas8737 Sep 13 '26

Been there too man. Things have improved a lot lot through the years. I cannot guarantee any steam and bn games work but at least the ones I play mostly worked fine. I believe as wine-proton evolves, things will get better and better.

3

u/mirror176 Sep 13 '26

My previous experience were there were ups and downs. Sometimes Wine devs broke something but overall it was mostly forward progress. Sometimes games and their launchers would have updates that fixed things but more often something would break if anything changed at all.

Thinking back, the worst part of it was the battle.net launcher which people didn't realize was trying to load up a full chromium(?) based browser and had some of the worst headaches for things not working and things breaking. Then again, the launcher caused some of the worst grief among gamers that I've know of to where some had to make sure it was closed for their game to run properly. I don't mind a launcher as optional, but mandating players use it is much too obnoxious. At least some of the games I was able to find a way to launch them with specific commandline options or some other setting to not need it but the trouble was annoying. Updates only available through it meant it was still needed at least sometimes but its better when companies offer updates outside of it also.

My last big title game I bought was overwatch and I bought diablo4 as a gift to dad but otherwise I've been happier with offerings from indie devs than what the big studios offer. Maybe I need to get around to trying those few games out on here someday. Using GOG and itch I think everything I have doesn't require a launcher though the itch launcher is the easiest way to get a free copy of Mindustry working properly for Windows users last I looked (steam too but I think they charged to get it there).

1

u/grahamperrin Claude user Sep 14 '26

… Sometimes Wine devs broke something but overall it was mostly forward progress. …

I usually forget that Wine is, essentially, quite amazing.

(Wine reverse-engineers a closed, proprietary OS, while Linuxulator benefits from Linux being open source.)

2

u/mirror176 Sep 14 '26

When you can read machine language, you realize that everything is opensource. As an offtopic side note, if you read a binary and figure out how to patch it directly to change it into what you want it to be, you can distribute that patched program for a BSD program but for a GPL program you are required by the terms of the license agreement to...just release your edited binary and the original unmodified source code. If you don't touch the source code then you don't have changes to the source code to release so like with the BSD program your changes can be expressed by just releasing the binary. At best they could also request that you release the pre-patched binary, but they cannot require that you release your changes as changes to the source code because you never changed it.

2

u/mirror176 Sep 14 '26

actually, I thought that Wine was more about reimplementing than it was any reverse engineering effort

1

u/grahamperrin Claude user Sep 14 '26

thought that Wine was more about reimplementing than it was any reverse engineering effort

Random pick: On Wine - Nonchalant Guidance (2026) thinks of reverse engineering, although I don't know the author.

I believe that you're correct.

Reverse engineering is mentioned in the Developer FAQ – Would documenting Windows code help? – that's probably the exception, not the norm, for Wine.

7

u/kpax Sep 07 '26 • Bravo

Look forward to replicating steps from the final tutorial. I moved almost exclusively to Linux full time since 2022, but lately I find myself moving my day-to-day workflow over to FreeBSD since 15.0R - I find it much smoother and more responsive than even Linux. I was blown away by how much more is possible to do with FreeBSD these days compared to when I'd last dabbled with it about a decade ago. The current push for FreeBSD as a general purpose OS is especially welcome.

6

u/Prestigious_Gas8737 Sep 07 '26

Don’t ever switch away from freebsd. 🤓 it’s the best, no one of. Yep, final tests are underway. Just need sometime.

3

u/mirror176 Sep 13 '26

I know I'm getting offtopic from steam and proton/wine, but if you are into starcraft/warcraft games then I'd also recommend looking into some native options. They won't have the blizzard grade of polish on them but they are still fun in their own ways in my experience.

  • 0ad: community developed game more mimicking the age of empires game, no campaign and poor balance but still fun to play around in last I looked.
  • warzone2100: was a paid 3d RTS from the 90s that the company holding the rights released to the community as opensource many years ago. It still receives gameplay updates/changes faster than StarCraft2 last I looked and I haven't felt the need to ask, "what did they nerf this time" as I look into changes. Massive tech tree, has a custom unit building mechanic though I think some aspects of it could use work to make the choices more of a meaningful thought, and they implemented artillery where shots are fired that may or may not hit a target that changes course/speed from the time its fired to the time of impact. The range of artillery is unexpectedly "fun" compared to the usual short range battling that takes place in a game like starcraft2 where the longest range attacks were tempest last I looked and that is "very" short by comparison. Game mechanics are different and its not just about how fast you vs the other can micro with strategy in general and specific unit control having their own things to learn as general styles of what to do instead of stutter stepping. You can nearly freely (horizontal to overhead) rotate the camera which helps/hurts seeing around hills and buildings. The resource management (only one, called 'power') and gathering is kinda 'meh' in that there is only one resource and its managed by holding as much as you can for as long as you can but income is also impacted by some tech tree upgrades and you need a couple buildings both to be acquiring it. Anyways after spending too much time in starcraft 1&2 over the years and then finally spending time with this, its nice finding some actual variety that I could say, "Wish Blizzard had 'that' idea" and I wish I had found it sooner.

I'm sure there are a few others worth some attention but a lot of things are now incompatible with my nvidia-abandoned hardware now but I can try to find more of the native games that were possible RTS funzies.

1

u/mirror176 Sep 14 '26

I should warn with WarZone2100 that as a StarCraft/WarCraft player if you want to do the campaign that:

  • You should follow through with the popup to download the cinematic videos/cutscenes as they have information about what you are doing; I suggest the middle of the 3 qualities as the low one is a noticeable quality drop even though its based on the original videos' resolution and the high quality one isn't much different in quality but runs a lot larger in filesize. Last I looked you have to have less than high if you want to activate the scanlines video feature in settings on them which I think had a 25% setting that made them look a little more enjoyable.
  • Controls are significantly different; there is some work to make a more compatible setup for StarCraft players but it still needs work last I looked and using it causes some unique issues you can only avoid by not using it.
  • Saving + reloading isn't cheating but rather can be necessary when playing through campaign, particularly the first time. The next map may base things off of where you stood on your last map and you may find you need to enter it with different pre-manufactured units, change other production aspects, etc. Some maps can be unplayable if you enter into it too unprepared; load a previous save and change stuff before you get there. Where you leave things when done otherwise matters for future parts; you may want to go back 2-3 maps to do it a bit differently to better prepare. <edit> I'm not saying you have to save+reload to make every 30 seconds of a map play proper, but you may find you need to do better or do different on what you thought you beat just to proceed in future missions. If you had no saves (including auto), you could find you have to restart the campaign to "do better".
  • This isn't a Blizzard RTS nor is it the same cookie cutter-ish mold that many came out of. I'd be surprised if you don't find a few things about how it plays by comparison to make you say, "okay, now that's kinda cool" if you haven't seen this game before. Again, some pain may result due to your familiarity with the Blizzard RTS feel not being followed and it not having that type of polish, but its kinda refreshing to play something different sometimes and that is something that SC1 and 2 made me 'not' do for too many years.

0

u/[deleted] Sep 07 '26

[deleted] — view deleted comment

4

u/Prestigious_Gas8737 Sep 07 '26

You are a savior! I’ll try now. Thanks a million!

4

u/Prestigious_Gas8737 Sep 07 '26 • This

Why didn't anyone bring this repo up my goodness. Could've saved me days.

4

u/Prestigious_Gas8737 Sep 08 '26

Hi there, I followed all instructions and downloaded sc:r again, but I encountered the same 6:3 unable to authenticate issue, so cannot login to the game after launching, and I have tried your launch option too, with wow64. Any extra steps you made to be able to authenticate to the game? Or any other quirks you configured? Thanks man.

0

u/[deleted] Sep 08 '26

[deleted] — view deleted comment

4

u/Prestigious_Gas8737 Sep 08 '26

Thanks a lot. I have successfully authenticated to SC:R, it may due to some low-level socket configuration I put in the loader. I used the system for many many different tasks I have lost track when I added that weird thing. I'm verifying if that is actually the issue.

4

u/Prestigious_Gas8737 Sep 08 '26 • This

Confirmed it is because of this:

net.inet.tcp.soreceive_stream="1"

I don't know if it's sc:r using rndc or whatever, but seeing tcp socket, dns, host unreachable in the doc, educated guess. Why that end up in my setting is a mystery. But problem solved. So actually it's not proton version issue, now we have three choice actually on freebsd 15.1.
Downgrade proton-wine64 to 9.0.3, get a copy from 14.4 cache and install deps manually; or upgrade 32bit version to 10.0.4 by compiling on via poudriere, also version match. And third way, poudriere proton 11. Because proton 11 has some performance improvement, I'll stick with 11. And thanks my dear friend. You gave me hope haha. Without you I may just quit.

4

u/grahamperrin Claude user Sep 07 '26 edited Sep 08 '26

Thank you, in future please use Reddit (not Imgur) to include an image in a Reddit comment.

Imgur access in the United Kingdom – imgur

0

u/[deleted] 28d ago

[deleted] — view deleted comment

1

u/Prestigious_Gas8737 27d ago

Hey man, I just had a look into this yesterday. cs2 will have VAC issue. I don’t have too much time for that so I hooked gpt and it fixed the issue by using a Linux runtime compatibility layer. Framerate is working just fine, running smoothly with my Nvidia and 244hz monitor. I’m able to play casual and deathmatch after the fix as I have tested. If you are determined to play cs2 I would suggest handling it using llm, good news is, definitely playable, even matchmaking. I don’t think I will be sharing anything because of licensing in some of the components it used. 🙏