Edit: Everyone is asking for the code, so here it is. Keep in mind, this code assumes a few things:
- You’d need to specify the virtual environment path for Python.
- You’d need to specify the directory for which the games are located.
- You’d have to put a “game_info” file in each game’s root directory.
- You’d need to have steamcmd installed.
- The format of the game_info file is like this (I use CS.RIN.RU):
build: 17601020
steamid: 548430
csrinru: https://cs.rin.ru/forum/viewtopic.php?f=10&t=81377
Hope I’m not breaking any rules. This is my first post on Lemmy. I tried to post on garbage-ass Reddit but apparently being a new user means you can’t do fuck-all. So, I’m gonna try to make Lemmy a home.
Anyway, I pirate games. Mostly because I’m broke, and somewhat because I hate spending money on a game and then hating it 15 minutes into it. But anyway…that’s neither here nor there.
The entire purpose of this post is just to share this neat little thing I created. I’m not promoting it – it isn’t released. I just wanna share nerdy shit with other people.
The issue that I was having is that I figured, over time, my pirated game collection will get quite big. It will become increasingly more time-intensive to check back to the piracy forums for updated pirated versions of the game.
So I came up with a solution. Whenever I download a new pirated game, I will create a file called “game_info” in the directory which will include three little bits of data.
- The build number of the pirated game
- The Steam App ID
- The link to the forum topic about that game from the piracy site I go to.
I wrote a script that will scan my games directory for each game_info file. It will then use steamcmd to check SteamDB for the latest patches released and compare that to the current build number in the game_info file. Obviously if they don’t match – there’s an update. And it will inform me. This way I can quickly check if there are any updates available for a game, then I can go to the piracy forum and check to see if anyone has released the updated version yet.
I thought it was cool. Anyway, just thought I’d share some nerdy shit.
Feel free to degrade me.
Hey man… We don’t degrade in these parts. We give constructive criticism or say dope that’s awesome!
Nice stuff. But one nitpick: with steam you can get a refund within two hours of playtime if you realize you bought a crap game.
Yeahhh I know about that, it still sucks to have to do that, but it’s great that it’s an option, at least. I’m just old now and it’s very hard for me to find a game that I enjoy. But 9 times out of 10, when I do, I go ahead and buy it.
Try a venv or miniconda and use the universal shebang:
#!/usr/bin/env python
Edit: you’ve activated my brain shrimp, so I’ll be back with an interactive setup script in a bit
Edit2:
Sorry I know it’s GitHub but codeberg doesn’t support gists yet and I can’t fully test this by myself. Seems to work fine on Linux mint. I’ll do some testing on Windows later
https://gist.github.com/pyr0ball/c6a608fbdd401903f1ff6faf14a065ce
The original pastebin does not exist anymore. Is this now the best code available for this solution to work? :)
Guess so