Comments (4)
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 $Game.InstallDirectory
instead of InstallDir variable.
Instead of Start-Process -FilePath "{InstallDir}\CHI\LD1.exe"
use Start-Process -FilePath (Join-Path $Game.InstallDirectory "CHI\LD1.exe")
from playnite.
Probably this issue. We just replace {InstallDir}
with whatever string is assigned to installation folder in Playnite, what happens next is up to PowerShell itself.
Try using [System.Diagnostics.Process]::Start
from .NET instead of Start-Process cmdlet.
from playnite.
Probably this issue. We just replace
{InstallDir}
with whatever string is assigned to installation folder in Playnite, what happens next is up to PowerShell itself.可能是这期。我们只需将{InstallDir}
替换为分配给 Playnite 中的安装文件夹的任何字符串,接下来的操作就取决于 PowerShell 本身了。Try using
[System.Diagnostics.Process]::Start
from .NET instead of Start-Process cmdlet.尝试使用.NET 中的[System.Diagnostics.Process]::Start
代替 Start-Processcmdlet。
hi
I just tried this command in 【edit game details\Action\Action types\Script】,The problem remains.
But in 【edit game details\Script\test Script】, the Script works.
[System.Diagnostics.Process]::Start("{InstallDir}\JPN\LD1.exe")
This is the command I used
It doesn't look like this is the problem, the path in the registry is correct.
from playnite.
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
$Game.InstallDirectory
instead of InstallDir variable.Instead of
Start-Process -FilePath "{InstallDir}\CHI\LD1.exe"
useStart-Process -FilePath (Join-Path $Game.InstallDirectory "CHI\LD1.exe")
thank you very much.
from playnite.
Related Issues (20)
- Background image not showing when third monitor isn't on HOT 3
- Possibility to export one's data HOT 1
- Force reinstall extensions HOT 4
- install size not detected properly cxbx-reloaded HOT 6
- Buzzing Sound Caused by Animated Background Image Transitions HOT 1
- Windows Startup HOT 1
- Modifying Sorting Name on games only sometimes refreshes the display/re-sorts HOT 2
- Encountered a strange bug where Playnite was unable to launch a game due to name of the executable file had no spaces. HOT 1
- Plugin OpenSettingsView method opens the window uncentered and offscreen
- Could we get a global variable for game tags? HOT 1
- Images not loading when searching HOT 1
- Library file corruption has been detected HOT 2
- custom music in playnite fullscreen that replaces the ambience HOT 1
- doesn't respect touchpad scroll direction
- Visual Boy Advance's emulator executable cannot be found HOT 1
- Move game option like steam HOT 3
- Enable HDR doesnt work with two monitors connected to different GPUs HOT 6
- Game library audit HOT 6
- Add ’display name’ fields HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playnite.