hexstr / UnityFPSUnlocker

为unity-il2cpp提供在手机上设置FPS的模块
MIT License
391 stars 45 forks source link

3.9.1 版本無法在模擬器上使用 #79

Closed Zhen-Bo closed 3 months ago

Zhen-Bo commented 3 months ago

[環境]

[操作步驟]

  1. 安裝 magsik 並 root
  2. 開啟 zygisk 後重啟模擬器
  3. 安裝 3.9.1 版 UnityFPSUnclocker
  4. 重啟模擬器
  5. 在 CMD 輸入 adb shell logcat -s UnityFPSUnlocker
  6. 開啟遊戲

[出現問題]

CMD 中顯示以下 log

--------- beginning of system
--------- beginning of main
08-10 16:04:18.110  3545  3553 E UnityFPSUnlocker: Failed to load library : dlopen failed: library "/data/local/tmp/gh@hexstr/UnityFPSUnlocker/arm64-v8a.so" needed or dlopened by "(unknown)" is not accessible for the namespace "(anonymous)"

[使用新版原因]

因為能正常使用的 3.7 module 版會發生 SetResolution not fount 同一環境下配合 Zygisk - LSPosed 與 3.7.2 app-debug.apk 也會發生 SetResolution not fount

hexstr commented 3 months ago

@Zhen-Bo 解压出zygisk_module.zip/gh@hexstr下的arm64-v8a.so/armeabi-v7a.so然后替换到xposed模块中的lib/arm64-v8a/libUnityFPSUnlocker.so/lib/armeabi-v7a/libUnityFPSUnlocker.so重新签名就能用最新版了

Zhen-Bo commented 3 months ago

照步驟使用後, 確定已經可以正常使用與 Set resolution 但是可能 FGO 的問題, 導致在 Set resolution 這條 log 出現後就會閃退 目前放棄修改分辨率, 先確保能正常使用高 fps 功能就好 😭 logs:

08-10 17:43:33.277  5625  5648 D UnityFPSUnlocker: ***** begin *****
08-10 17:43:38.377  5672  5672 D UnityFPSUnlocker: [UnityFPSUnlocker][xposed] delay: 5 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:43:38.377  5672  5695 D UnityFPSUnlocker: [UnityFPSUnlocker][arm64] Starting...
08-10 17:43:38.377  5672  5695 D UnityFPSUnlocker:      delay: 5 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:43:43.378  5672  5695 D UnityFPSUnlocker: ***** begin *****
08-10 17:43:43.379  5672  5695 D UnityFPSUnlocker: Current resolution: 1920x1080 @240
08-10 17:43:43.385  5672  5695 D UnityFPSUnlocker: Set resolution: 1920 x 1080
08-10 17:43:43.446  5625  5648 E UnityFPSUnlocker: Failed to open libil2cpp.so
--------- beginning of crash
08-10 17:43:50.039  5872  5872 D UnityFPSUnlocker: [UnityFPSUnlocker][xposed] delay: 5 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:43:50.042  5872  5896 D UnityFPSUnlocker: [UnityFPSUnlocker][arm64] Starting...
08-10 17:43:50.042  5872  5896 D UnityFPSUnlocker:      delay: 5 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:43:55.046  5872  5896 D UnityFPSUnlocker: ***** begin *****
08-10 17:43:55.048  5872  5896 D UnityFPSUnlocker: Current resolution: 1920x1080 @240
08-10 17:43:55.053  5872  5896 D UnityFPSUnlocker: Set resolution: 1920 x 1080
08-10 17:44:12.997  6075  6075 D UnityFPSUnlocker: [UnityFPSUnlocker][xposed] delay: 1 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:44:12.999  6075  6097 D UnityFPSUnlocker: [UnityFPSUnlocker][arm64] Starting...
08-10 17:44:13.000  6075  6097 D UnityFPSUnlocker:      delay: 1 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:44:14.001  6075  6097 D UnityFPSUnlocker: ***** begin *****
08-10 17:44:14.002  6075  6097 E UnityFPSUnlocker: set_targetFrameRate not fount
08-10 17:44:14.004  6075  6097 E UnityFPSUnlocker: get_currentResolution not fount
08-10 17:44:14.004  6075  6097 E UnityFPSUnlocker: SetResolution not fount
08-10 17:44:14.004  6075  6097 E UnityFPSUnlocker: GetSystemExtImpl not fount
08-10 17:44:14.004  6075  6097 D UnityFPSUnlocker: ***** finished *****
08-10 17:44:26.065  6261  6261 D UnityFPSUnlocker: [UnityFPSUnlocker][xposed] delay: 2 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:44:26.075  6261  6284 D UnityFPSUnlocker: [UnityFPSUnlocker][arm64] Starting...
08-10 17:44:26.076  6261  6284 D UnityFPSUnlocker:      delay: 2 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:44:28.077  6261  6284 D UnityFPSUnlocker: ***** begin *****
08-10 17:44:28.077  6261  6284 D UnityFPSUnlocker: Current resolution: 1920x1080 @240
08-10 17:44:28.077  6261  6284 D UnityFPSUnlocker: Set resolution: 1920 x 1080
08-10 17:44:39.081  6408  6408 D UnityFPSUnlocker: [UnityFPSUnlocker][xposed] delay: 2 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:44:39.085  6408  6434 D UnityFPSUnlocker: [UnityFPSUnlocker][arm64] Starting...
08-10 17:44:39.086  6408  6434 D UnityFPSUnlocker:      delay: 2 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:44:41.086  6408  6434 D UnityFPSUnlocker: ***** begin *****
08-10 17:44:41.087  6408  6434 D UnityFPSUnlocker: Current resolution: 1920x1080 @240
08-10 17:44:41.087  6408  6434 D UnityFPSUnlocker: Set resolution: 1920 x 1080
08-10 17:45:06.080  6576  6576 D UnityFPSUnlocker: [UnityFPSUnlocker][xposed] delay: 3 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:45:06.084  6576  6598 D UnityFPSUnlocker: [UnityFPSUnlocker][arm64] Starting...
08-10 17:45:06.084  6576  6598 D UnityFPSUnlocker:      delay: 3 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:45:09.085  6576  6598 D UnityFPSUnlocker: ***** begin *****
08-10 17:45:09.086  6576  6598 D UnityFPSUnlocker: Current resolution: 1920x1080 @240
08-10 17:45:09.086  6576  6598 D UnityFPSUnlocker: Set resolution: 1920 x 1080
08-10 17:45:19.488  6754  6754 D UnityFPSUnlocker: [UnityFPSUnlocker][xposed] delay: 4 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:45:19.502  6754  6776 D UnityFPSUnlocker: [UnityFPSUnlocker][arm64] Starting...
08-10 17:45:19.502  6754  6776 D UnityFPSUnlocker:      delay: 4 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:45:23.503  6754  6776 D UnityFPSUnlocker: ***** begin *****
08-10 17:45:23.503  6754  6776 D UnityFPSUnlocker: Current resolution: 1920x1080 @240
08-10 17:45:23.503  6754  6776 D UnityFPSUnlocker: Set resolution: 1920 x 1080
08-10 17:45:34.749  6936  6936 D UnityFPSUnlocker: [UnityFPSUnlocker][xposed] delay: 10 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:45:34.758  6936  6957 D UnityFPSUnlocker: [UnityFPSUnlocker][arm64] Starting...
08-10 17:45:34.758  6936  6957 D UnityFPSUnlocker:      delay: 10 | fps: 120 | mod_opcode: 1 | scale: 1.000000
08-10 17:45:44.760  6936  6957 D UnityFPSUnlocker: ***** begin *****
08-10 17:45:44.761  6936  6957 D UnityFPSUnlocker: Current resolution: 1920x1080 @240
08-10 17:45:44.811  6936  6957 D UnityFPSUnlocker: Set resolution: 1920 x 1080