Z1ni / XGP-save-extractor

Python script to extract savefiles out of Xbox Game Pass for PC games
MIT License
538 stars 34 forks source link

Support for [Gotham Knights] #50

Open Romanec-23 opened 10 months ago

Romanec-23 commented 10 months ago

Game name: Gotham Knights

Game package name: WarnerBros.Interactive.ea2bab08-46b7-40e4-bdd5-590_ktmk1xygcecda

wgs.zip

Z1ni commented 10 months ago

Please read the issue template before creating a new request. Copy-pasted from the template:

Game saves from the Xbox Game Pass / Microsoft Store version are needed to add support for the game. Here's how to obtain the saves:

  1. Open up the Windows Run dialog by pressing Win+R
  2. Type in "%LOCALAPPDATA%\Packages" (without quotes)
  3. Search for a folder name that possibly includes the name of the game or the name of the game developer or publisher. The name format should be something like "DeveloperOrPublisherName.PossibleGameName_RandomLettersAndNumbers", e.g. "BethesdaSoftworks.ProjectGold_3275kfvn8vcwc" for Starfield.

If you found a suitable folder name:

  1. Copy and paste the folder name below in this text field. That's the package name for the game.
  2. Open up the folder and the "SystemAppData" folder inside it.
  3. Zip up the "wgs" folder.

If you didn't find any folder related to the game, check if the PCGamingWiki (https://www.pcgamingwiki.com/wiki/Home) has a page for the game. If so, check under "Save game data location" -> "Windows / XGP / Microsoft Store" section in the game wiki page. The name format should be something like "DeveloperOrPublisherName.PossibleGameName_RandomLettersAndNumbers", e.g. "BethesdaSoftworks.ProjectGold_3275kfvn8vcwc" for Starfield. If you still didn't find any save folder, make sure that the game is still installed. If you uninstall the game, the save files also get deleted and won't reappear in your computer until you install the game again. You can always open this issue and include details about what you did and didn't find.

If you have the Steam / Epic version of the game installed, and have save files for it, please also include those in the zip. You can check the PCGamingWiki page for the save file location. This is not required, but it would save some time and it should make adding the game support faster.

Romanec-23 commented 10 months ago

Steam save: 76561198033023951.zip

rabauke80 commented 6 months ago

XGP save (New Game Plus): wgs.zip

Steam save (Fresh start): 76561198000202645.zip

Both with the latest game version of the respective platform

happy to test the XGP -> Steam export anytime

Bultom commented 1 month ago

Hello,

I was able to make the script porting Xbox save to Steam format by adding into "// 1 container, 1 file " category

{ "name": "Gotham Knights", "package": "WarnerBros.Interactive.ea2bab08-46b7-40e4-bdd5-590_ktmk1xygcecda", "handler": "1c1f", "handler_args": { "suffix": ".sav" } },

In games.json, but steam doesn't want to read the save that script creates, it start the game like if there were no save game (tryed with and without cloud activated)

wgs.zip 76561198002431145.zip

Path for Xbox save : AppData\Local\Packages\WarnerBros.Interactive.ea2bab08-46b7-40e4-bdd5-590_ktmk1xygcecda\SystemAppData

Path for Steam : AppData\Local\WB Games\Gotham Knights\Steam\Saved\SaveGames

Hope it helps :)