inflation / paradox-patch

A utility to replace libsteam_api.dylib and generate DLC list for Paradox games
3 stars 0 forks source link

position of file "libsteam_api" err in ck3 and DLC.txt lost the last dlc #2

Open hq2333 opened 1 year ago

hq2333 commented 1 year ago

First of all, thank you very much for sharing. I am using this tool to generate ck3 patches, but I found the following two problems 1, ck3 libsteam_api .dylib file path is /path/to/game/binaries, but the actual read file is /path/to/game/ image

  1. When reading the dlc of ck3, the last dlc seems to be lost. The log shows that 8 dlcs have been read, but only 7 are in DLC.txt, and the last one is lost image
inflation commented 1 year ago

Could you try to run the command with -vvv and show any logs?

hq2333 commented 1 year ago

for dlc option

2023-08-01T13:19:43.058625Z  INFO paradox_patch::dlc: DLC folder: /Users/bytedance/Library/Application Support/Steam/steamapps/common/Crusader Kings III/game/dlc
2023-08-01T13:19:43.058718Z  INFO paradox_patch::dlc: Output file: /Users/bytedance/Library/Application Support/Steam/steamapps/common/Crusader Kings III/steam_settings/DLC.txt
2023-08-01T13:19:43.060840Z  INFO paradox_patch::dlc: DLC: id=1296730 name=Garments of the Holy Roman Empire
2023-08-01T13:19:43.061060Z  INFO paradox_patch::dlc: DLC: id=1296731 name=Fashion of the Abbasid Court
2023-08-01T13:19:43.061240Z  INFO paradox_patch::dlc: DLC: id=1303183 name=The Northern Lords
2023-08-01T13:19:43.061444Z  INFO paradox_patch::dlc: DLC: id=1303182 name=The Royal Court
2023-08-01T13:19:43.061651Z  INFO paradox_patch::dlc: DLC: id=1303184 name=The Fate of Iberia
2023-08-01T13:19:43.061834Z  INFO paradox_patch::dlc: DLC: id=2114760 name=Friends and Foes
2023-08-01T13:19:43.062023Z  INFO paradox_patch::dlc: DLC: id=2311920 name=Tours and Tournaments
Found 8 DLCs, write to '/Users/bytedance/Library/Application Support/Steam/steamapps/common/Crusader Kings III/steam_settings/DLC.txt'

for patches option

2023-08-01T13:21:12.302607Z  INFO paradox_patch::patch: Patching '/Users/bytedance/Library/Application Support/Steam/steamapps/common/Crusader Kings III/libsteam_api.dylib'...
2023-08-01T13:21:12.304189Z DEBUG reqwest::connect: starting new connection: https://github.com/    
2023-08-01T13:21:12.304411Z DEBUG hyper::client::connect::dns: resolving host="github.com"
2023-08-01T13:21:12.416901Z DEBUG hyper::client::connect::http: connecting to 20.205.243.166:443
2023-08-01T13:21:12.614771Z DEBUG hyper::client::connect::http: connected to 20.205.243.166:443
2023-08-01T13:21:13.373500Z DEBUG hyper::proto::h1::io: flushed 121 bytes
2023-08-01T13:21:13.821463Z DEBUG hyper::proto::h1::io: parsed 14 headers
2023-08-01T13:21:13.821535Z DEBUG hyper::proto::h1::conn: incoming body is empty
2023-08-01T13:21:13.821622Z DEBUG hyper::client::pool: pooling idle connection for ("https", github.com)
2023-08-01T13:21:13.821702Z DEBUG reqwest::async_impl::client: redirecting 'https://github.com/inflation/goldberg_emulator/releases/download/8b9ce58/libsteam_api.dylib' to 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/501289685/3a1475fb-44c4-4096-9156-43333fee2b9e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230801%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230801T132113Z&X-Amz-Expires=300&X-Amz-Signature=e848a054cbb01286de53f63d30d26a6b8dec44d6d0c5f4bcc4d50d78e2dde86a&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=501289685&response-content-disposition=attachment%3B%20filename%3Dlibsteam_api.dylib&response-content-type=application%2Foctet-stream'    
2023-08-01T13:21:13.821736Z DEBUG reqwest::connect: starting new connection: https://objects.githubusercontent.com/    
2023-08-01T13:21:13.821784Z DEBUG hyper::client::connect::dns: resolving host="objects.githubusercontent.com"
2023-08-01T13:21:13.875867Z DEBUG hyper::client::connect::http: connecting to 185.199.109.133:443
2023-08-01T13:21:14.075180Z DEBUG hyper::client::connect::http: connected to 185.199.109.133:443
2023-08-01T13:21:14.686847Z DEBUG hyper::proto::h1::io: flushed 683 bytes
2023-08-01T13:21:15.316232Z DEBUG hyper::proto::h1::io: parsed 24 headers
2023-08-01T13:21:15.316307Z DEBUG hyper::proto::h1::conn: incoming body is content-length (6421183 bytes)
2023-08-01T13:21:17.197041Z DEBUG hyper::proto::h1::conn: incoming body completed
2023-08-01T13:21:17.197214Z DEBUG hyper::client::pool: pooling idle connection for ("https", objects.githubusercontent.com)
inflation commented 1 year ago

Ahh, I forgot that I changed the code and added more logging after the release. Could you try from master branch?

hq2333 commented 1 year ago

Ahh, I forgot that I changed the code and added more logging after the release. Could you try from master branch?

Since I don't have a rust environment, can you plz make the latest release?

inflation commented 1 year ago

paradox-patch.zip