Live data from Hacker News

Running decade-old games in containers

misha.brukman.net

41–50 of 57 posts

Re: Running decade-old games in containers

#41

Hi HN, blog post author here. Rather than just posting the end result that worked, this is my trial-and-error "walthrough" of building a container from start to finish, in order to run several games from a while back. Hopefully, this can get you started with playing these and other games again, or discovering them for the first time! Let me know what you think and if you'd like to see more of this in the future.

I think this is an excellent post, because you demonstrate an applied use of a bunch of excellent *nix tools, combined with a presentation of the mental model that helped you put it all together.

I am largely self taught, and I didn't touch C/C++ for a long time, so there's a lot of stuff people might take for granted (like the use of ldd), which for a long time I had never encountered.

Re: Running decade-old games in containers

#44

Hi HN, blog post author here. Rather than just posting the end result that worked, this is my trial-and-error "walthrough" of building a container from start to finish, in order to run several games from a while back. Hopefully, this can get you started with playing these and other games again, or discovering them for the first time! Let me know what you think and if you'd like to see more of this in the future.

Your email is nowhere to be found, so it's impossible to email you about typos or bugs. Typos in this case.

Anyways search for:

Thus, it is imperative to avoid giving these containers running old software no access to the network

and remove the "no" I suppose? I might be wrong. Only one 'no' there, so it should be gone, afaik.

Re: Running decade-old games in containers

#45
post #6

Earlier quoted context omitted.

i was curious if i could run diablo2 on my kubernetes clusters.

That sounds lovely! Was it playable? I'd love to take a look at the manifests, if you could make them available somewhere.

It's kind of playable using XQuartz on mac. But i'm only using that for debugging the setup really. This is intended as a test bed for keras bot experiments, so controls are not important to me.

Main components are wine, ffmpeg, nginx+nginx-ts-module and xvfb. It runs diablo2 and livestreams the screen capture.

I'd love to push this to git or docker, but it's currently littered with blizzards game files. I'm most likely not allowed to share the current state.

I put some files together to get a rough look. I'll try to make it a bit more usefull when i'm done with actual work and not exhausted.

https://github.com/tuco86/docker-diablo2

Re: Running decade-old games in containers

#47

Hi HN, blog post author here. Rather than just posting the end result that worked, this is my trial-and-error "walthrough" of building a container from start to finish, in order to run several games from a while back. Hopefully, this can get you started with playing these and other games again, or discovering them for the first time! Let me know what you think and if you'd like to see more of this in the future.

I think this is an excellent post, because you demonstrate an applied use of a bunch of excellent *nix tools, combined with a presentation of the mental model that helped you put it all together. I am largely self taught, and I didn't touch C/C++ for a long time, so there's a lot of stuff people might take for granted (like the use of ldd), which for a long time I had never encountered.

Thank you for the kind words! Glad to hear you enjoyed it.

Re: Running decade-old games in containers

#48

Hi HN, blog post author here. Rather than just posting the end result that worked, this is my trial-and-error "walthrough" of building a container from start to finish, in order to run several games from a while back. Hopefully, this can get you started with playing these and other games again, or discovering them for the first time! Let me know what you think and if you'd like to see more of this in the future.

Your email is nowhere to be found, so it's impossible to email you about typos or bugs. Typos in this case. Anyways search for: Thus, it is imperative to avoid giving these containers running old software no access to the network and remove the "no" I suppose? I might be wrong. Only one 'no' there, so it should be gone, afaik.

> Your email is nowhere to be found, so it's impossible to email you about typos or bugs. Typos in this case.

You're right, I don't post my email address on my blog, and yet it's widely available and discoverable (which leads to spam, so...). That said, you can find me on Twitter and LinkedIn, and send me a private message there.

Public comments on HN also work. :-)

Back to your original point:

> Anyways search for:

> Thus, it is imperative to avoid giving these containers running old software no access to the network

> and remove the "no" I suppose? I might be wrong. Only one 'no' there, so it should be gone, afaik.

You're absolutely right; that's a double negative—that "no" should either be dropped or replaced with "any". I'll fix that in a bit.

Thanks again for your careful reading and letting me know!

Re: Running decade-old games in containers

#49

Earlier quoted context omitted.

Your email is nowhere to be found, so it's impossible to email you about typos or bugs. Typos in this case. Anyways search for: Thus, it is imperative to avoid giving these containers running old software no access to the network and remove the "no" I suppose? I might be wrong. Only one 'no' there, so it should be gone, afaik.

> Your email is nowhere to be found, so it's impossible to email you about typos or bugs. Typos in this case. You're right, I don't post my email address on my blog, and yet it's widely available and discoverable (which leads to spam, so...). That said, you can find me on Twitter and LinkedIn, and send me a private message there. Public comments on HN also work. :-) Back to your original point: > Anyways search for:…

:) glad to be of help. Keep on producing great things.

Re: Running decade-old games in containers

#50

Does Wine run well from a container? I always found bottles a bit annoying.

Blog post author here.

I haven't tried it myself (yet), but I don't see why Wine wouldn't work from a container, if you propagate access to the display into the container, as I have done in the Dockerfiles in my post.

Here are some quick references I found that suggest this works:

* https://github.com/scottyhardy/docker-wine

* https://blog.simos.info/how-to-run-wine-graphics-accelerated...

Post reply on HN