Jump to content
LaunchBox Community Forums

Recommended Posts

Posted (edited)

I created my first plugin that allows for me to list the "Game Size" in the Custom Fields area, as well as tiers, so they can be arranged by size.

I have an enormous collection and Windows isn't great with paging folder sizes and such, so I built a tool that either grabs the ROM size, or if it's an MS-DOS or Windows game, it finds the parent folder and gets the size of the entire directory. For games that are installed in your system, this works a lot better than I thought it would. I created an optional game size tier system for easy numerical arranging.

I am currently working on scraping "Required Space" for storefront games using a RAWG API. (which when I finish this part, the user will have to add their own API and could be subjected to rate limits, but it's free and pretty good, just sign up) -- WIP -- not finished yet, and I might abandon this feature completely, not sure yet.

Realistically, we can always just offload the storefront games and see how large they are using their launchers, but the "portable" or directly installed Windows games WE ALL HAVE (let's be real) get accurate directory sizes and lists them well. So it's basically good to go.

Anyway, I found this extremely helpful in cleaning up my drives, and I wanted to know if anyone else actually cares about something like this. If so, ill polish it up and release it.


You can do entire platforms using the Tools dropdown

image.thumb.png.82b71b7a76d4ee92d5560c373f70700f.png

image.png.5fef611e617343cae623d7656d75bcb0.png

image.thumb.png.0267941484f9ed959591e739b309875e.png

Or you can select one or multiple files to only get the sizes for what you want using the right click menu

image.thumb.png.2939687c6bc41141d7e3d273a9437b2f.png

THEN, youll see this that allows you to choose which Custom Fields to actually print (the RAWG fetch is still in development)

image.png.a91adcd4cf4ba817f1daf968b0da681a.png

It scrubs in the background, then a popup will let you know when it's finished. (listing errors if any) You can continue to use LaunchBox while the scrape is happening, Once finished, refresh, and it's updated.

image.png.645b44f00aab5a47748d263ae7a2c292.png

As you can see here ^ it doesn't just get the EXE size, it gets the directory (most of the time) 
I just wanted game size here, but I could also get Game Size Tier, Game Size Last Scanned (date) & hopefully soon the "Est. Required Space" from RAWG.
If anyone wants this, let me know and ill finish it and release it.
If you guys have any questions, ideas or critiques, LMK! 

Edited by RegularRegs
typo
Posted

So I polished it up and zipped it to Github if anyone wants to check it out. I made it so that the RAWG scrapes for ANY game selected, rather than just storefront games. I also put some clearer directions on the actual scan popup. (im not able to upload the screenshot here though, not sure why)

https://github.com/reg0lino/LaunchBoxGameSizeManager.Plugin/releases

Check it out. Let me know what might need tweaking if interested. 

Posted (edited)

xbe files aren't configured in this version of the plugin. I will make sure that I do the best i can with the disc based games, as they are the ones that take up the most space. Right now, if you scan an XBOX 1 game that uses xbe files, it will only read the xbe file. Ill work on that and try to find other issues....

Also. bin.ecms aren't being recognized properly, and being that there are many collections that still use condensed bins, I will write something that parses the ecm files correctly as well.

But other than that, it's functional and useful in v1.0 -- particularly for Windows games, which I have entirely too many of and I'm going to start using these new custom values to clean out some games that take up too much space. 

Edited by RegularRegs

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.
Reply to this topic...

×   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...