JuicyStandoffishMan / WhiteAlbumRestorationPatch

Delocalizes some content in White Album (2023 PC version)
12 stars 0 forks source link

Cannot apply delta patch; Script.sdat checksum mismatch #8

Open zorael opened 7 months ago

zorael commented 7 months ago

Steam Deck, SteamOS 3.5.7. xdelta3 is version 3.1.0 from official repositories. I also tried xdelta and Delta Patcher.

The patch does not seem to apply anymore.

$ xdelta3 -vvds Script.sdat wa_honorifics-v0.2.xdelta Script.sdat.patched
xdelta3: input wa_honorifics-v0.2.xdelta window size 42.9 KiB
xdelta3: secondary compression: lzma
xdelta3: source Script.sdat source size 3.29 MiB [3452992] blksize 64.0 MiB window 64.0 MiB #bufs 1
xdelta3: target window checksum mismatch: XD3_INVALID_INPUT
xdelta3: normally this indicates that the source file is incorrect
xdelta3: please verify the source file with sha1sum or equivalent

There seems to have been a Steam patch to White Album on the 11th of October 2023, and Script.sdat is included in the list of modified files. From steamdb.info;

 Modified – Data/Game/ENG/Script.sdat (+640 B)
LastChalice commented 5 months ago

Similar issue is happening here.

zorael commented 5 months ago

For the time being, it's possible to download the original version of the game to which the patch still applies. Steam aggressively updates games as new versions come out however, so it will have to be redone (or replaced with a backup) upon future versions.

  1. Install White Album and start it, confirm that the titlebar says Version 1.01, then exit
  2. Go to the White Album page on SteamDB
  3. In the list of Depots, make note of the nameless base depot of the game (2432111), and the English part of it (2432112). We want to download the old version of both.
  4. Click the depot ID number to get to their respective pages, then click Manifests to the left
  5. Copy the manifest number of the old version of the game from August 2023, for each depot, and save them in a text file
  6. Spawn the Steam console by running steam://open/console (such as with Windows Win+R or Linux Alt+F2)
  7. Use the download_depot command to download each part. The syntax is download_depot <appID> <depotID> <manifestID>.
    download_depot 2432110 2432111 firstManifestID
    download_depot 2432110 2432112 secondManifestID
  8. Wait. It may take some time, depending on your Internet connection, and there is no progress indicator. If you lose connection you may have to start over. It will say when it's finished with a path to where the files were downloaded
  9. Copy the paths and open them in a file manager. If you're on Linux, you will have to replace backward slashes \ with forward slashes / in the path
  10. You should now have an app_2432110 directory containing subdirectories depot_2432111 and depot_2432112
  11. Open a separate file manager and navigate to your normal White Album installation, such as by going into the properties of the game in Steam, then Installed Files and Browse
  12. Copy the content of both depot_* directories into the Steam WHITE ALBUM directory. It should overwrite a bunch of files, otherwise you're copying it wrong
  13. Follow the instructions in the restoration patch readme

I did this on a Steam Deck. The titlebar now says v1.0 when run in desktop mode, and names have honorifics (screenshot). To apply the patch I used xdelta3, which had to be installed from the SteamOS repositories.

Patch notes of the patch we're working around (what we lose by doing this):

  • Added a new Video Mode setting in the Options to adjust the performance tradeoff of videos in order to alleviate slowdowns and crashes on certain systems.
  • Fixed an issue that could cause the game to freeze if certain operations occurred during video playback.
  • Fixed some typos in the text.
  • Various minor fixes and adjustments.