A plugin to show you game lengths according to How Long To Beat. Built with Decky Loader.
Currently this is an actively maintained fork of original HLTB for Deck plugin. hulkrelax is the original author of the plugin. Cheers and huge thanks to safijari / SDH-Stewardship for maintaining the plugin for a long time before this fork.
Important
Please note that HLTB does not have an official public API. This plugin (and this fork in particular) is heavily depending on the API changes discovered and implemented in HowLongToBeat-PythonAPI repository. Every change done to API by HLTB might break this plugin workability. Unfortunately, there may and will be delays in restoring the plugin workability. However, recent changes were implemented to mitigate changes in the HLTB API and try to get the API name dynamically, bypassing the need for manual changes and a new version if possible.
- On an app page, shows four main stats offered by How Long to Beat
- Clicking View Details will take you to their site for the game
- Results are cached for two hours (cache can be cleared from QAM page for HLTB for Deck)
- Proceed to Decky Settings → General.
- Enable Developer Mode.
- Then go to newly appeared Developer tab → Install Plugin from ZIP File and click Browse. Or you can try directly installing from via link by entering it to Install Plugin from URL text field.
- Select the ZIP archive or enter following link: https://github.com/morwy/hltb-for-deck/releases/latest/download/hltb-for-deck.zip.
- After installing go to Plugins.
- Select HLTB for Deck settings and then click Reload.
- HLTB for Deck plugin should change its version to latest one, indicating successful installation.
-
Download and install Node.js from https://nodejs.org/en/download.
-
Verify that installation was successful by running following command in terminal:
node --version
-
Clone this repository and navigate to the project folder.
-
Install pnpm:
npm install -g pnpm
-
Install project dependencies:
pnpm install
-
Build the project:
pnpm run build
A batch script build.bat that builds and packs the project into a ZIP archive for manual installation was created and located in the project root folder.
-
Create a fork of Decky Plugin Database repository.
-
Checkout it locally. I suggest skipping the recursive checkout of submodules, because it may take forever.
git clone https://github.com/morwy/decky-plugin-database.git
-
Verify that you are on the
mainbranch.git checkout main
-
Create a new branch that contains the latest update from the plugin.
git checkout -b update/hltb-2.0.10
-
Initialize the plugin submodule if it is a fresh clone of the repository and there are no files in the folder.
git submodule update --init plugins\hltb-for-deck -
Update the plugin submodule to the latest commit.
cd plugins/hltb-for-deck && git checkout main && git pull && cd ../..
-
Add and commit your changes to the Git.
git add plugins/hltb-for-deck && git commit -m "Updated hltb-for-deck to 2.0.10" && git push --set-upstream origin update/hltb-2.0.10
-
After new changes have landed on the GitHub, click on Compare & pull request button in your forked repository. It will automatically open a form for filling in the PR to the original repository.
-
Use correct form template and continue according to the provided instructions.
