XanderXAJ / docker-planetary-annihilation-server

A rootless container/Docker image for running the Planetary Annihilation: Titans dedicated server
MIT License
0 stars 0 forks source link

Longterm, work with steamcmd #6

Open obiwantoby opened 9 months ago

obiwantoby commented 9 months ago

While this works, and the patched GO updater works fine, it appears steamcmd is the path forward.

I was working on this but came across this project which is already more mature ;). I think the challenge we present is a runtime that would provide persistence for a steamcmd login (since anon is not possible) then a runtime environment that has the dependencies.

RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y in a Dockerfile with a an appropriate base and instructions to provide persistence for a steamcmd token. Of course disabling steam guard probably makes that easier, as easy as the GO Updater.

Example, interactive login to store the token https://github.com/CM2Walki/CS2/

Until then this is awesome. But on the official discord it appears that the GO updater is 'unsupported'.

XanderXAJ commented 9 months ago

Thanks for reaching out -- and for the heads up about the Go updater!

It doesn't particularly surprise me that it's considered unsupported. It's a pleasant surprise it still works at all! Since I'd based my work off of other efforts I'd seen online, it hadn't even occurred to me to try steamcmd!

I might take a look at this at some point. But sadly no promises as to when/if though! Got a few other projects on at the moment, but never say never. I originally made this image so I could host games with friends on a separate machine with less slowdown (it worked great!), but we haven't had much opportunity to play lately. If I'm too slow, anyone is welcome to fork/take a look, though. 🙂

Thanks for the example! That's extremely helpful. While steamcmd has not been my favourite tool to work with in Docker, I like the look of how they're using it there. It's given me some ideas which might apply here too. 😄

obiwantoby commented 9 months ago

Indeed, the dedicated server setup works so well. As folks get the Ryzen 7000 series or Intel's Raptor 14xxxx series, the performance for 11k units with the right maps is great. Always a fan of RTS games and those who appreciate them!

I actually took inspiration from your setup and created a SteamCMD based image of my own and published it. Issue with the Go Launcher right now is it is stuck on build 116400.

https://github.com/obiwantoby/PlanetaryAnnihilationDedicated/pkgs/container/pa-dedicated-server