Code Monkey home page Code Monkey logo

Comments (4)

JosefNemec avatar JosefNemec commented on June 15, 2024 1

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.

JosefNemec avatar JosefNemec commented on June 15, 2024

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.

FErDaiif avatar FErDaiif commented on June 15, 2024

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.

FErDaiif avatar FErDaiif commented on June 15, 2024

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")

thank you very much.

from playnite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.