New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, there are some bugs in {installdir} of [edit game details\Action\Action types\script] #3738
Comments
Probably this issue. We just replace Try using |
hi
It doesn't look like this is the problem, the path in the registry is correct. |
Hmm looks like play scripts are not having that variable expanded. I don't think there will be any update soon to fix this. In the mean time you can use Instead of |
thank you very much. |
Bug Description
When I used 【edit game details\Action\Action types\Script】 to run the game, playnite prompted me 【unable to run this command due to the following error: the system could not find the specified file...】
But in 【edit game details\Script\test Script】, the Script works.
To Reproduce
Since the proper running of the game requires writing the game's path to the registry, I had to run it in script mode.
Set-ItemProperty -Path "HKCU:\SOFTWARE\Tennenouji\Install\LD1.exe" -Name "(default)" "{InstallDir}\CHI\LD1.exe"
Set-ItemProperty -Path "HKCU:\SOFTWARE\Tennenouji\Install\LD1.exe" -Name "FOLDER" "{InstallDir}\CHI"
Start-Process -FilePath "{InstallDir}\CHI\LD1.exe"
in 【edit game details\Action\Action types\Script】,This is the complete startup script, and after the startup failed I saw in the Registry Editor that the Set-ItemProperty command had been executed successfully.
File structure
ラッキードッグ1
├CHI
│ └LD1.exe
├JPN
│ └LD1.exe
in 【edit game details\Action\Action types\Script】
Start-Process -FilePath "{InstallDir}\CHI\LD1.exe"
This is the instruction that failed at runtime.
playnite prompted me 【unable to run this command due to the following error: the system could not find the specified file...】
Start-Process -FilePath "B:\ラッキードッグ1\CHI\LD1.exe"
This command sometimes starts and sometimes does not.
When startup fails, playnite prompted me 【unable to run this command due to the following error: the system could not find the specified file...】
Diagnostics ID
1ec88cee-ef89-4b1a-8c89-eb68e5b33d79
Screenshots
No response
The text was updated successfully, but these errors were encountered: