an-anime-team / an-anime-game-launcher

An Anime Game launcher for Linux with telemetry disabling
https://discord.gg/ck37X6UWBp
GNU General Public License v3.0
1.58k stars 66 forks source link

fps-unlocker path not found #364

Open Jlov0 opened 6 months ago

Jlov0 commented 6 months ago

As mentioned in the title, the fps unlocker cannot start because the path is not found. I double checked the pathing and found no issues. Everything seems to be correct, permissions are correct. I did change the installation of the game into my /data/ directory if that maybe messed up the path. fpsunlock.exe is also within the directory path.

I am running on Arch with KDE de

These are the terminal logs.

F:\>start GenshinImpact.exe -screen-fullscreen 0 -popupwindow

F:\>Z:

Z:\>cd "/data/genshin/fps-unlocker"
Path not found.

Z:\>start fpsunlock.exe 200 5000
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
014c:fixme:exec:SHELL_execute flags ignored: 0x00000100
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found. `

Might as well add my debug logs

2024-04-28T15:14:55.519910Z DEBUG anime_launcher_sdk::games::genshin::fps_unlocker: Downloading FPS unlocker
    at /var/home/observer/.cargo/git/checkouts/anime-launcher-sdk-72c1eacede3fc588/f4133c0/src/games/genshin/fps_unlocker.rs:39
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:55.520011Z TRACE minreq::connection: Setting up TLS parameters for codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:164

  2024-04-28T15:14:55.520114Z TRACE minreq::connection: Establishing TCP connection to codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:172

  2024-04-28T15:14:55.568215Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(7.951707701s))
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:151

  2024-04-28T15:14:55.672946Z TRACE minreq::connection: Establishing TLS session to codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:176

  2024-04-28T15:14:55.672971Z TRACE minreq::connection: Writing HTTPS request to codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:178

  2024-04-28T15:14:55.672976Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(7.846941264s))
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:151

  2024-04-28T15:14:55.784312Z TRACE minreq::connection: Reading HTTPS response from codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:183

  2024-04-28T15:14:56.023857Z DEBUG anime_game_core::installer::downloader: Creating output file
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/55dd60f/src/installer/downloader.rs:180
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.023929Z DEBUG anime_game_core::installer::downloader: Checking free space availability
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/55dd60f/src/installer/downloader.rs:195
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.024245Z TRACE minreq::connection: Setting up TLS parameters for codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:164
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.024380Z TRACE minreq::connection: Establishing TCP connection to codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:172
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.063586Z TRACE minreq::connection: Timeout requested, it is currently: Ok(None)
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:151
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.169900Z TRACE minreq::connection: Establishing TLS session to codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:176
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.169931Z TRACE minreq::connection: Writing HTTPS request to codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:178
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.169938Z TRACE minreq::connection: Timeout requested, it is currently: Ok(None)
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:151
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.277710Z TRACE minreq::connection: Reading HTTPS response from codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:183
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.507670Z TRACE minreq::connection: Setting up TLS parameters for codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:164
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.507780Z TRACE minreq::connection: Establishing TCP connection to codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:172
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.537362Z TRACE minreq::connection: Timeout requested, it is currently: Ok(None)
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:151
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.644512Z TRACE minreq::connection: Establishing TLS session to codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:176
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.644540Z TRACE minreq::connection: Writing HTTPS request to codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:178
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.644543Z TRACE minreq::connection: Timeout requested, it is currently: Ok(None)
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:151
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:56.755907Z TRACE minreq::connection: Reading HTTPS response from codeberg.org.
    at /var/home/observer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/minreq-2.11.0/src/connection.rs:183
    in anime_launcher_sdk::games::genshin::fps_unlocker::download with dir: "/data/genshin/fps-unlocker"
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:57.108291Z DEBUG anime_game_core::games::genshin::game: Trying to get installed game version
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/55dd60f/src/games/genshin/game.rs:53
    in anime_game_core::games::genshin::game::get_version with self: Game { path: "/data/genshin/Genshin Impact", edition: Global }
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:57.118447Z DEBUG anime_game_core::games::genshin::game: return: Ok(4.6.0)
    at /var/home/observer/.cargo/git/checkouts/anime-game-core-31370ac61699cd7f/55dd60f/src/games/genshin/game.rs:51
    in anime_game_core::games::genshin::game::get_version with self: Game { path: "/data/genshin/Genshin Impact", edition: Global }
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:57.121678Z  INFO anime_launcher_sdk::games::genshin::sessions: Applying session 'jlov' to prefix: "/data/genshin/prefix"
    at /var/home/observer/.cargo/git/checkouts/anime-launcher-sdk-72c1eacede3fc588/f4133c0/src/games/genshin/sessions.rs:82
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:14:57.122357Z  INFO anime_launcher_sdk::games::genshin::game: Running the game with command:  DXVK_ASYNC="1" DXVK_HUD="fps,frametimes,version,gpuload" GST_PLUGIN_PATH="" LD_LIBRARY_PATH="/data/genshin/runners/wine-9.5-staging-tkg-amd64/lib:/data/genshin/runners/wine-9.5-staging-tkg-amd64/lib/wine/x86_64-unix:/data/genshin/runners/wine-9.5-staging-tkg-amd64/lib/wine/i386-unix" WINEARCH="win64" WINEFSYNC="1" WINEPREFIX="/data/genshin/prefix" WINE_FULLSCREEN_FSR="0" bash -c "gamemoderun '/data/genshin/runners/wine-9.5-staging-tkg-amd64/bin/wine64'  fps_unlocker.bat  -screen-fullscreen 0 -popupwindow "
    at /var/home/observer/.cargo/git/checkouts/anime-launcher-sdk-72c1eacede3fc588/f4133c0/src/games/genshin/game.rs:300
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:17:13.838779Z  INFO anime_launcher_sdk::games::genshin::sessions: Updating session 'jlov' from prefix: "/data/genshin/prefix"
    at /var/home/observer/.cargo/git/checkouts/anime-launcher-sdk-72c1eacede3fc588/f4133c0/src/games/genshin/sessions.rs:53
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:17:13.839472Z  INFO anime_launcher_sdk::games::genshin::game: return: Ok(())
    at /var/home/observer/.cargo/git/checkouts/anime-launcher-sdk-72c1eacede3fc588/f4133c0/src/games/genshin/game.rs:52
    in anime_launcher_sdk::games::genshin::game::run

  2024-04-28T15:17:13.839586Z DEBUG anime_game_launcher::ui::main: Called main window event: ShowWindow
    at src/ui/main/mod.rs:930
    in relm4::component::sync::builder::update_with_view with input: ShowWindow, component: "anime_game_launcher::ui::main::App", id: "0x7ffedc314e30" 

config file

{
  "launcher": {
    "language": "en-us",
    "edition": "Global",
    "style": "Classic",
    "temp": "/data/genshin",
    "repairer": {
      "threads": 4,
      "fast": false
    },
    "discord_rpc": {
      "app_id": 901534333360304168,
      "enabled": true,
      "title": "Researching the world",
      "subtitle": "of Teyvat",
      "icon": "launcher"
    },
    "environment": "PC",
    "behavior": "Hide"
  },
  "game": {
    "path": {
      "global": "/data/genshin/Genshin Impact",
      "china": "/data/genshin/YuanShen"
    },
    "voices": [
      "ja-jp"
    ],
    "wine": {
      "prefix": "/data/genshin/prefix",
      "builds": "/data/genshin/runners",
      "selected": "wine-9.5-staging-tkg-amd64",
      "sync": "FSync",
      "language": "System",
      "borderless": true,
      "drives": {
        "drive_c": true,
        "game_folder": "G",
        "map_folders": {}
      },
      "virtual_desktop": {
        "enabled": false,
        "width": 1920,
        "height": 1080
      },
      "shared_libraries": {
        "wine": true,
        "gstreamer": true
      }
    },
    "dxvk": {
      "builds": "/data/genshin/dxvks"
    },
    "enhancements": {
      "fsr": {
        "strength": 2,
        "quality": "Ultra",
        "enabled": false
      },
      "gamemode": true,
      "hud": "DXVK",
      "fps_unlocker": {
        "path": "/data/genshin/fps-unlocker",
        "enabled": true,
        "config": {
          "fps": 200,
          "interval": 5000
        }
      },
      "gamescope": {
        "enabled": false,
        "game": {
          "width": 0,
          "height": 0
        },
        "gamescope": {
          "width": 0,
          "height": 0
        },
        "framerate": {
          "focused": 0,
          "unfocused": 0
        },
        "integer_scaling": true,
        "fsr": false,
        "nis": false,
        "window_type": "Borderless",
        "force_grab_cursor": false
      }
    },
    "environment": {},
    "command": null
  },
  "sandbox": {
    "enabled": false,
    "isolate_home": true,
    "hostname": null,
    "args": null,
    "private": [],
    "mounts": {
      "read_only": {},
      "bind": {},
      "symlinks": {}
    }
  },
  "components": {
    "path": "/data/genshin/components",
    "servers": [
      "https://github.com/an-anime-team/components"
    ]
  }
}
krypt0nn commented 5 months ago

Try adding drive Z to /. This can be done in the launcher's settings. If it didn't help - add a symlink to the prefix/dosdevices folder which will be pointing to /

Jlov0 commented 5 months ago

I tried both methods but same issue persists

here is the current error log I am getting after applying those changes.

Z:\>start GenshinImpact.exe -screen-fullscreen 0 -popupwindow

Z:\>Z:

Z:\>cd "/data/genshin/fps-unlocker"
Path not found.

Z:\>start fpsunlock.exe 144 5000
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
0130:fixme:heap:GetNumaHighestNodeNumber semi-stub: 000000000011E960
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
0130:fixme:heap:EnumSystemFirmwareTables (0x4649524d, 0000000000000000, 0)
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
0138:fixme:exec:SHELL_execute flags ignored: 0x00000100
013c:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 000000000138FF50
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.

Here is what I did according to what you said for the symlink. I am a newbie to wine so I might have done something not accordingly

[justin@archlinux dosdevices]$ rm z:
[justin@archlinux dosdevices]$ ls
c:  d::  e::
[justin@archlinux dosdevices]$ ln -s / z:
[justin@archlinux dosdevices]$ ls
c:  d::  e::  z:
[justin@archlinux dosdevices]$ ls -l
total 0
lrwxrwxrwx 1 justin users 28 Jun  2 00:41 c: -> /data/genshin/prefix/drive_c
lrwxrwxrwx 1 justin users  8 Jun  1 23:51 d:: -> /dev/sda
lrwxrwxrwx 1 justin users  9 Jun  1 23:51 e:: -> /dev/sda1
lrwxrwxrwx 1 justin users  1 Jun  2 00:49 z: -> /
[justin@archlinux dosdevices]$ 

I had also tried to point the fps unlocker .bat file in the z: drive like this

cd "/prefix/dosdevices/z:/fps-unlocker"

but it had just reverted back to the default path of

cd "/data/genshin/fps-unlocker"

I'll keep messing around with it but I am not too sure what is really going on. I assume if I reinstall everything it will probably function but thats a couple hour install. Its not that deep, i can live without 144 fps but interesting to see if i can fix it.