Jump to content
LaunchBox Community Forums

How Long To Beat - Game Length Plugin 1.0.3

   (5 reviews)

5 Screenshots

About This File

About

Plugin that scrapes information from HowLongToBeat.com and adds custom fields with game lengths information.

I made this plugin to add length information for certain games, mostly rpgs. This adds 3 custom fields for Main Story, Main + Extra and Completionist length. You can configure which ones you want to add by editing the file HLTBPlugin.xml.

Because there's no oficial API from HLTB, I had to parse the HTML, which means that as soon as they change something on the HTML this plugin probably will stop working...

Install

Extract files (dll + xml) to : Launchbox/Plugins/HLTBPlugin.

Config (HLTBPlugin.xml)

  • MainStoryLength: Enable/disable main story length update. Default: true.
  • MainExtraLength: Enable/disable main story + extra length update. Default: true.
  • CompletionistLength: Enable/disable completionist length update. Default: true.
  • MainStoryFieldName: Change main story length custom field name. Default: Main Story Length
  • MainExtraFieldName: Change main story + extra length custom field name. Default: Main + Extra Length
  • CompletionistFieldName: Change completionist length custom field name. Default: Completionist Length

Note: If you change the fields names it will not update the games that already have information, so you will end up with duplicated fields with different names and you will have to manually delete them (edit game -> custom fields tab). So config the first time and stick with that.

Usage

Access the option by right-click a game (only one game, no massive update yet). A window will popup with all the games found and you can choose which one correspond to your game. If there's no results you can manually change the search words (e.g. Metal Gear Ac!d will get no results but you can then change the search to Metal Gear Acid).

You can use the "Arrange By" option to order the games by length. Lengths are shown with leading zeroes because is the only way to properly order the games since custom fields are strings and not integers.

Tested on version 8.9. I think you need a premium license because custom fields are not supported in free license (not sure).

1.thumb.jpg.af7728582cdeb302ebbf4caad33defea.jpg2.thumb.jpg.eb1de3e8a8247fc22eefaa30f6f487de.jpg3.jpg.e0b5d1c12c72bcb131952b6d41877453.jpg4.thumb.jpg.ad5d22bab6344ddc943ce6e3b34eac89.jpg

I have no relation with HowLongToBeat.com, if you like their work please go and support them.

 

Public Repository

https://github.com/matiasponsml/HLTBPlugin

 


What's New in Version 1.0.3   See changelog

Released

Small fix to make it work again.

  • Like 4
  • Thanks 4
  • Unusual Gem 3

User Feedback

Recommended Comments



On 11/8/2023 at 1:12 AM, PeeWii said:

All hope is not lost !

So I basterdized the source code to get it done (this is my first time fiddling with c# and the tools) but the result is good.

Have fun.

HLTBPlugin.zip 11.39 kB · 111 downloads

This was working great but as of today it's no longer working for me. Launchbox hasn't updated for me since it last worked so I assume something changed on howlongtobeat's end

Link to comment
Share on other sites

Yep, same here. Plugin crashes LB, presumably because HLTB changed their setup.

Edited by Cineaste
Link to comment
Share on other sites

And it had to happen while I was away with the kids for the holidays.

Thanks for the heads up, I'll see what I can do.

Link to comment
Share on other sites

3 minutes ago, PeeWii said:

And it had to happen while I was away with the kids for the holidays.

Thanks for the heads up, I'll see what I can do.

Don't bother, mate. Another addon has since been released that works perfectly.

Link to comment
Share on other sites

14 minutes ago, Cineaste said:

Don't bother, mate. Another addon has since been released that works perfectly.

Oh, nice.

Could you link me to that, please ?

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...