Skip to content

travbp/Playnite-Nucleus-Co-op-Game-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Prequisites

  • Playnite
  • Python
  • Bash
  • Powershell

Get list of supported games in Nucleus Coop

# Bash
# Run this to remove empty lines
tmp=$(mktemp) && sed '/./!d' nucleus_games.txt > "$tmp" && mv "$tmp" nucleus_games.txt

Get list of game names in Playnite Library

  • In Playnite app -> main menu dropdown -> Extensions, click Interactive SDK PowerShell. This will open PowerShell console connected to Playnite process and initialize new runspace for this interactive session.

  • Run the following in the opened PowerShell terminal:

# initialize basic Playnite SDK variables
$PlayniteRunspace = Get-Runspace -Name 'PSInteractive'
$PlayniteApi = $PlayniteRunspace.SessionStateProxy.GetVariable('PlayniteApi')

# get names of all games in playnite library
$games = $PlayniteApi.Database.Games.Name

# writes list of game names to a text file in user root directory
Set-Content -Path '~\games.txt' -Value $games -Encoding UTF8

Make virtual environment for python script

# Bash

# create and activate venv
python -m venv .venv && source .venv/Scripts/activate

# install dependencies
pip install -r requirements.txt

Usage

# Bash

# activate venv
source .venv/Scripts/activate

# run python script
python main.py

About

Simple python script to fuzzy-match game names from Nucleus Co-op's supported games list to games in your Playnite library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages