insideone / pagywosg

Tool for "Play a game you won on SG" events. All progress of these events is being tracked here
8 stars 1 forks source link

Possibility to add removed games #27

Closed Melchioriss closed 4 years ago

Melchioriss commented 4 years ago
  1. The true removed games which never were in the database (for example 748530) - this game is not even shown in my recent activity, but the script retrieves the correct playtime.

  2. Some games are already in the database, but they can't be found in game search (by name) because they are not marked as standalone (it was done to prevent tons of DLCs showing up) - maybe, they were removed from Steam somewhen between the initial DB load and that 'standalone' thingie change. They can still be added to the event if searched via ID (example 398630)

Melchioriss commented 4 years ago

The command is steam:removedgame:add Example docker-compose exec backend console steam:removedgame:add -i 748530

This scripts tries to get information from SteamSpy (for example https://steamspy.com/api.php?request=appdetails&appid=748530) - it gets the title and ID. Then it adds the game to the DB and makes it standalone - it means that this app is treated as a game, not a DLC or whatever else. If the game is already in the DB, but it's not standalone for some reason; then the script makes it standalone.