Top
Best
New

Posted by panza 13 hours ago

Half-Life 2 in a Browser(hl2.slqnt.dev)
583 points | 235 commentspage 3
Artoooooor 9 hours ago|
What a time to be alive. My suggestion: progress bars instead of throbbers during loading data.
fuzzy2 10 hours ago||
Very cool. The download progress bar is broken though, it receives values 0-1 but the max is set to 300.
schappim 11 hours ago||
If they have halflife 2 in the browser, I wonder if this means they can do original CS in the browser too!
panza 11 hours ago|
Yep! http://play-cs.com
Yizahi 5 hours ago||
If anyone is nostalgic about HL2 and want's revisit it, I highly recommend Black Mesa remake, it's mind blowing in a good way.
kllrnohj 4 hours ago||
While you got the Black Mesa remake confused, HL2 did get a free 20th Anniversay Update a couple years ago: https://www.half-life.com/en/halflife2/20th

So it's still worth a revisit :)

omni 5 hours ago|||
Isn't Black Mesa Half-Life 1?
jjice 5 hours ago|||
I believe you're correct, and the Half-Life wiki seems to support that: https://half-life.fandom.com/wiki/Black_Mesa_(game)
Yizahi 4 hours ago||||
Oh, sorry, you are correct. My brain melted a bit in a heat :)
otikik 5 hours ago|||
Yes, but with several asterisks.

* Graphics are better (this should not be a surprise)

* Some maps have been made shorter (the underground railway tunnels, if my memory serves)

* The last part of the game (Xen) was pretty much completely overhauled, and in my opinion, improved.

This is from memory so I might be getting one or two details wrong.

wilkystyle 5 hours ago||
What did you like about it?
Yizahi 4 hours ago||
Very competent rework with good graphics.
bozdemir 12 hours ago||
What a time to be alive :D
Beijinger 12 hours ago||
play-cs.com
GL26 10 hours ago||
Is there a repo for this ? Can we mod it ?
othmanosx 10 hours ago||
What about gaming on a mac?
AzzyHN 12 hours ago||
[flagged]
crote 11 hours ago||
Valve already gave Half-Life 2 away for free, and released the source code of the HL1 engine.

Is it technically illegal? Yeah, but Valve isn't losing out on any money, and there's no way they're going to risk the negative PR blowback they'd get for a takedown.

Besides, IP law is dead. The rise of AI made it pretty clear that you can steal literally anything without consequences.

Cthulhu_ 9 hours ago|||
Giving things away for free (at one point) is not the same as making it public domain or relinquishing your (copy)rights. Source available is not the same as open source. Open source code does not mean open source assets/product. I find it weird that this needs to be explained in this community.
crote 8 hours ago||
> Giving things away for free is not the same as making it public domain or relinquishing your (copy)rights.

Obviously. But it does kill the usual "piracy is bad because companies lose money" argument - especially for a 22-year-old game.

> Source available is not the same as open source.

Obviously. But it does show that Valve is more interested in preserving old genre-defying games for the general public, rather than milking every last cent of revenue out of it.

nba456_ 9 hours ago||||
>Besides, IP law is dead. The rise of AI made it pretty clear that you can steal literally anything without consequences.

God, AI keeps making life better than I could've ever imagined!

zombot 9 hours ago||
It only works like that for the Big Thieves. Us regular folks get screwed over just like before.
dminik 11 hours ago||||
GoldSrc (HL1 engine) is very much not open source (or even source available). There's at least one open source remake (which is possibly illegal due to using the SDK) but no official release.
crote 8 hours ago||
https://github.com/ValveSoftware/halflife is the HL1 engine, is it not?
bpye 8 hours ago||
That's just the SDK - which does include the game code but not the engine. Xash3D is the reverse engineered engine alluded to above.
flordaman 10 hours ago||||
No no, you can't steal anything without consequences, only big corperations who are making slop machines(tm) can.
account42 9 hours ago||
Turns out "too big to fail" doesn't just apply to reckless financial behavior.
foldr 9 hours ago||||
HL2 is not free: https://store.steampowered.com/app/220/HalfLife_2/
crote 8 hours ago||
It was available for free as part of its 20th anniversary update: https://overclock3d.net/news/software/half-life-2-is-availab...
foldr 8 hours ago||
That was a special promotion with a defined end date. The game is not free. The only legitimate way to obtain it currently is to pay for it. Together with the false claim about HL1 being open source, you're really adding a lot of misinformation to this thread.
rvz 7 hours ago|||
> Yeah, but Valve isn't losing out on any money, and there's no way they're going to risk the negative PR blowback they'd get for a takedown.

So that makes it okay to pirate and steal games developed by your fellow indie game developers as well?

> Besides, IP law is dead. The rise of AI made it pretty clear that you can steal literally anything without consequences.

Try doing the same thing to Nintendo.

Even large companies like Anthropic were not going to risk going to trial and getting bankrupted of over $120B+ in damages in using pirated copyrighted eBooks for training. The best case was a settlement for $1.5B which that is a record settlement in copyright law.

account42 9 hours ago|||
This project seems perfectly congruent with current year industry standards regarding copyright, which are to move fast and lobby for permission later.
londons_explore 12 hours ago||
That is up for the copyright owner to enforce or not to enforce.

Until they decide, we can't know if it's illegal or not - who knows, this site might have a license.

KeplerBoy 11 hours ago|||
It's not legal just because the copyright owner doesn't immediately sue you.
simondotau 10 hours ago|||
If a copyright infringement falls in a forest and nobody is around to hear it, did it make a sound?
account42 9 hours ago|||
Technically it isn't illegal until the copyright holder decides not to grant (retroactive) permission.
Cthulhu_ 9 hours ago||||
A crime is a crime even before a judge rules over it. Sure, innocent until proven guilty, but most people know when they're doing something wrong and then don't do it.

Of course, this is a lot more grey area for copyright violations etc because it's a civil matter.

__alexs 8 hours ago||
What happened to innocent until proven guilty?
zygentoma 6 hours ago||
"Innocent until proven guilty" concerns whether someone did a crime, not whether something is a crime.

An action can clearly be a crime, but it might be unclear if you did that action.

__alexs 41 minutes ago||
Only our legal institutions and the frameworks they create can decide if any specific act is a crime.
rvz 11 hours ago|||
It's quite dangerous to make unsubstantiated comments and assumptions on US copyright law without the proper research.

Valve still owns the copyright to the game and just because they won't do anything now does not mean it is legal to redistribute it without their consent, especially when we know that the game is still being sold. [0]

They (Valve) reserve the right to enforce that and this site clearly does not have such a "license" and haven't disclosed as such. Why would you expect Valve to be in discussions with a 15 year old to redistribute the game for free?

So just say you do not know.

[0] https://store.steampowered.com/app/220/HalfLife_2/

Ukv 10 hours ago|||
> just because they won't do anything now does not mean it is legal to redistribute it without their consent

I don't think the parent comment is claiming it's legal, other than the (unlikely) chance that this is licensed, just that it's up to Valve to enforce and not really our concern. A lot of cool things (like the similar https://noclip.website/) are prima facie copyright infringement.

nhinck2 10 hours ago||
> we can't know if it's illegal or not

I think we can.

Ukv 10 hours ago|||
We can guess this is unlicensed, and likely be right, but whether it gets taken down is up to Valve.
xeyownt 10 hours ago|||
And I think we don't care.
account42 9 hours ago|||
> Why would you expect Valve to be in discussions with a 15 year old to redistribute the game for free?

Because projects like this are free publicity and don't actually compete with the product sold on Steam.

naikrovek 7 hours ago|
How is it that this came to my Apple-Silicon Mac before Valve could do it natively? How could it possibly be easier to create a complete-enough virtual machine that runs in a browser and the compiler for it than it is to port the native application?

I wish we could spend as much time on native application development as we do on horribly crippled and slow browser application development.

Web technology is so non-sensical to me. "you can run an application without installing it!" Well, friend, installation is not required either, and we can deliver applications on demand, and we've done it before. "You just visit a page and you can program the macros on your keyboard!" Again, it's not like those applications are large; they could be delivered on demand if we wanted.

But we don't want that, do we? We want people to remain online under any circumstance, we desparately want their time, so we require that people be online if they want to program their microcontroller and they don't know how to do it without visiting the very convenient webpage.

If people spent 10% of the effort on native applications that they spent on web applications, we would be so much further advanced than we are now. If you're a developer, targeting the web is so seductive, so easy in comparison, that we all have to be online to do anything, now. We all have to run two dozen Electron apps because developers want to have an easy time at the expense of every user.

0x6c6f6c 1 hour ago||
That's a somewhat reaching use of the word "natively".

It's being run through the equivalent of a virtual machine. So it's really quite similar to the layers used to abstract away platform specifics like Wine / Proton does for Windows compatibility. Instead of DXVK you have WebGL.

astlouis44 1 hour ago||
So this port isn't a straight WASM port, you're saying they're running the Windows binary and translating the DirectX8 graphic commands over to WebGL..? Am I understanding correctly?
Rohansi 5 hours ago|||
> How is it that this came to my Apple-Silicon Mac before Valve could do it natively?

Why should Valve update their old games to work on Apple Silicon? They're old and only 2% of Steam users (clients?) are on macOS.

Also, this port works offline in your browser. If you've loaded it up before the assets are cached and you can play with no internet. Yes, even if you've closed the tab and open it again later without internet.

DANmode 6 hours ago||
> I wish we could spend as much time on native application development as we do on horribly crippled and slow browser application development.

But native to what?

Windows is no longer the commonality between all users.

The browser has that role, now.

> We want people to remain online under any circumstance

Webapps often have offline-first functionality,

which is one of the biggest strengths of a progressive web app.

hwillis 6 hours ago||
browsers aren't common either. Standards, formats, and interfaces are, which is exactly what WASM is and what this demonstrates. Native apps don't need a common operating system or even a common core like nix. They just need to support a common interface, like browsers do.
More comments...