cleverest Posted June 20, 2019 Share Posted June 20, 2019 (edited) I'm gifting a FREE (unregistered) COPY of my LB collection to my nephew, and I want the MOST played count to be reset on his collection...I see a last played to clear, but not MOST... Edited June 20, 2019 by cleverest Quote Link to comment Share on other sites More sharing options...
cleverest Posted June 20, 2019 Author Share Posted June 20, 2019 @Jason Carr - would this be easy to implement? Even like LAST PLAYED is, where you can clear them out via EDIT ALL, etc... Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted June 20, 2019 Share Posted June 20, 2019 The field is called Play Count, but unfortunately you can't modify it currently without going directly into the XML. I'll put that on my list. 1 Quote Link to comment Share on other sites More sharing options...
cleverest Posted June 20, 2019 Author Share Posted June 20, 2019 1 hour ago, Jason Carr said: The field is called Play Count, but unfortunately you can't modify it currently without going directly into the XML. I'll put that on my list. Thanks! In the meantime, which XML can I edit this number to 0 on a specific game/list at? I see a lot in the LB folder but I can't see to find PLAY COUNT in any of them. Quote Link to comment Share on other sites More sharing options...
Retro808 Posted June 20, 2019 Share Posted June 20, 2019 47 minutes ago, cleverest said: Thanks! In the meantime, which XML can I edit this number to 0 on a specific game/list at? I see a lot in the LB folder but I can't see to find PLAY COUNT in any of them. \Launchbox\Data\Platforms\ Then edit the platform name xaml for the game you want to edit. 1 Quote Link to comment Share on other sites More sharing options...
cleverest Posted June 20, 2019 Author Share Posted June 20, 2019 Oh wow, that is such a pain, LOL...I'll wait for an update to do this via LB, thanks anyways!! Quote Link to comment Share on other sites More sharing options...
DOS76 Posted June 21, 2019 Share Posted June 21, 2019 Pretty Easy actually in Notepad++ there is probably even a way to use a variable and have it just change any value between <Playcount>#</Playcount> to 0 but I don't know how to do that but if someone could show you you could then use NP++ to open all your platforms xmls at one time and then search your text with the variable and replace the value with 0 for all entries in all open documents. This might explain it better. Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted June 21, 2019 Share Posted June 21, 2019 Manually reset all PlayCounts in all Platforms to 0 (zero) using Notepad++: In windows Explorer, go to your "..\LaunchBox\Data\Platforms" directory. MAKE A BACKUP OF YOUR xml Documents FILES FIRST! Select all files (Ctrl+A). Right click and select "Edit with Notepad++" Click "Search" "Replace" (or hit Crtl+H) In "Find what:", insert <PlayCount>\d+</PlayCount> In "Replace with:", insert <PlayCount>0</PlayCount> Under "Search Mode", select "Regular expression" Then click "Replace All in All Opened Documents" Save all and exit. \d means any digit(s). + means.... well.... plus. So... look for "<PlayCount>" followed by any number(s), followed by "<\PlayCount>" 1 1 Quote Link to comment Share on other sites More sharing options...
cleverest Posted June 21, 2019 Author Share Posted June 21, 2019 That's awesome, thanks...will be nice when the user friendlier version is updated in LB, but this is a great work-around in the meantime! Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted June 22, 2019 Share Posted June 22, 2019 @cleverest How about a LaucnhBox plugin that'll do that? ? I recently watched one of @Jason Carr's videos (made 2 yrs ago) about building plugins... ..and thought how cool is that! I've worked with various programming languages (self taught, just geeking around) but never specifically C# or using Visual Studio. After watching the video (rewind-watch, rewind-watch again) and taking notes I was able to recreate the sample plugins he was going over AND get them to work . After going over the Notepad++ resolution (above) and your "user friendlier" comment I started to write an AutoHotKey script. After a while I got to thinking I should probably try to do it the right way. Grabbed my notes for the video, started VS, a little copy/paste, some adjustments, a quick C# search or 2. Build/test/refine a couple times and "Oh Wow! It works!" ...short story long...... It's not 'built-in' per se , but at least plugin-able. 2 1 Quote Link to comment Share on other sites More sharing options...
cleverest Posted June 22, 2019 Author Share Posted June 22, 2019 (edited) Wow man that is AWESOME! Thanks for doing that! Any chance you can do something about the lack of genre/publisher mass editing? Especially genre... For example, being able to add a genre to all games in a playlist without replacing the entire field each time? Ex: let's say I want to add "2D fighting" to various fighting games through ctrl+A selecting, edit....but without having to typing my entire genre list of Action; Fighting; 2D fighting each time...? The reverse to, being able to remove one of those entries for multiple games (Ex some have "2D", or other genres I don't want from importing them), but don't want to clear it all, etc... ? Edited June 22, 2019 by cleverest Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted June 22, 2019 Share Posted June 22, 2019 1 hour ago, JoeViking245 said: @cleverest How about a LaucnhBox plugin that'll do that? ? I recently watched one of @Jason Carr's videos (made 2 yrs ago) about building plugins... ..and thought how cool is that! I've worked with various programming languages (self taught, just geeking around) but never specifically C# or using Visual Studio. After watching the video (rewind-watch, rewind-watch again) and taking notes I was able to recreate the sample plugins he was going over AND get them to work . After going over the Notepad++ resolution (above) and your "user friendlier" comment I started to write an AutoHotKey script. After a while I got to thinking I should probably try to do it the right way. Grabbed my notes for the video, started VS, a little copy/paste, some adjustments, a quick C# search or 2. Build/test/refine a couple times and "Oh Wow! It works!" ...short story long...... It's not 'built-in' per se , but at least plugin-able. Thank you for this @JoeViking245. I gotta say, I love success stories like this, and I love being part of them (even if only in a very small way). 1 1 Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted June 22, 2019 Share Posted June 22, 2019 I could probably make it so they all change to 0 (zero). ? So, do you mean something like your ctrl+A selecting, edit thing to get to the Bulk Edit Wizard. Then select the "Field" Genre: and under "Value", check Action and also Fighter / 2D and click 'Next', 'Next'? Now I can't attest that it works for "Playlists" though. Quote Link to comment Share on other sites More sharing options...
cleverest Posted June 23, 2019 Author Share Posted June 23, 2019 Yes, that would likely work way better...just anything that makes it possible to not have to REPLACE the entire line for all selected games everything I want to add or remove 1 or more genres...my genre lists are pretty details, like: Action; Platform; 2D Platform, etc... So I won't have to keep notepad open on the side anymore with my entire Genre strings copy/pasted there, lol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.