Jump to content
LaunchBox Community Forums

Game Details not in Audit Tool


Dynizzle

Recommended Posts

So I'm not sure if anyone else had issues with this, but I had trouble finding missing game info fields that were not one of the columns in the audit tool. As an example, I use Rocketlauncher for Fades when booting up games from BigBox and a part of the fade shows the logo for the game rating. If the Launchbox console XML is missing that, then it won't show anything. I couldn't find a way to add additional columns to the audit tool and I really didn't want to go through each game at a time checking for missing Ratings and Notes. I was originally trying to do a simple search in the file for <Rating></Rating>, but it looks like if the field is blank, the field in the XML won't exist. For the first time ever, Powershell has helped me outside of work! I ended up throwing the XML into a variable and running a few filters on it and was able to find what games were missing the field info! Not sure if there is an easier way of doing this.powershellSS.thumb.PNG.7971acc8996e990706349b78deab3837.PNG

  • Like 1
Link to comment
Share on other sites

For clear logos, it looks like RL looks in the LB's clear logo folder for the console (ex. \LaunchBox\Images\Nintendo GameCube\Clear Logo). I believe if the image name does not match Rocketlauncher's name of the game (so under the games tab run an audit for RL) then it won't show up. I ran into that issue and just copied all my old Hyperspin clear logos (that were the same name as my roms) and they all popped up in my fades all of a sudden. For the Ratings, RL looks for the same name as what the LB's console XML shows for a games rating and then checks the \RocketLauncher\Media\Rating\_Default folder and if the rating name doesn't match the image name in that folder it won't show up. I just renamed all the rating images in that folder to match what LB calls them (ex. LB calls E games 'E - Everyone' where RL image is called ESRB - E (Everyone).png which doesn't match. So now my Fade shows everything.fade.thumb.png.75ab0ef14c99fdba495097f47a627bc3.png

  • Thanks 1
Link to comment
Share on other sites

It took me a while to figure out how to align and constrain the clear logo size in RL, and I can't seem to get data like Last Time Played and Play Count to show up, but here's what I've got so far. I wish there was a way to show cartridge/disc art. I feel those don't get displayed enough in BigBox, unless you're using certain themes like NoshOnThis and CriticalZone.Untitled-1.thumb.png.a981de15fa2484c5a604522a7706a155.png

Edited by Omen
Link to comment
Share on other sites

3 hours ago, Omen said:

It took me a while to figure out how to align and constrain the clear logo size in RL, and I can't seem to get data like Last Time Played and Play Count to show up, but here's what I've got so far. I wish there was a way to show cartridge/disc art. I feel those don't get displayed enough in BigBox, unless you're using certain themes like NoshOnThis and CriticalZone.

What settings do you have for the statistics in RL? If you want to use cartridges/discs instead just swap the images out with those in the LB clear logo folder media folder. Here's an example -

fade.thumb.png.27da08cb126f00569314d44130f6acb4.png

Link to comment
Share on other sites

That definitely would. I was considering it since I don't use game clear logos with how I have my theme layout. I mostly use box art for games. I'll take a look tonight and see if I can edit one of the RL .ahk files to point at a different directory.

Link to comment
Share on other sites

So I think I figured it out. I ended up just changing the Launchbox plugin found here \RocketLauncher\Plugins. On line 36 and 37 I changed it from 'Clear Logo' to a new folder I made in \LaunchBox\Images\TheConsoleYoureUsing\ and put all my carts in there just to test. After restarting RL and trying to run a fade, it uses any images found in there. So you could change that to be any of Launchbox's folders or a new folder.

So this...

logoPath := frontendPath . "\Images\" . gameInfo["Platform"].Value . "\Clear Logo"
systemLogoPath := frontendPath . "\Images\Platforms\" . gameInfo["Platform"].Value . "\Clear Logo"

To this...

logoPath := frontendPath . "\Images\" . gameInfo["Platform"].Value . "\NewFolder"
systemLogoPath := frontendPath . "\Images\Platforms\" . gameInfo["Platform"].Value . "\NewFolder"

 

  • Thanks 1
Link to comment
Share on other sites

I've noticed that if a game in LB has either  an & or colon in it, RL won't find the assets for that game. Not too big of an issue, I just have to rename the offending games, but you'd think the RL team would have thought of that lol.

Link to comment
Share on other sites

Yeah RL looks for media using the LB game's library title and if it can't find it will check for media using the ROM's filename. I wish there was an option for the Launchbox scraper to just name media the same name as the ROM file instead of the library name.

Link to comment
Share on other sites

So I edited the Launchbox plugin for RL and put in a RegexReplace to look for the files with special characters as underscores. I only had it look for the ones windows complains about as invalid characters so it should be good enough. I would backup the whole plugin file just to be safe but here is the changed launchboxProcessExtraFiles function in the RL Launchbox plugin. It should pull in all the Launchbox media correctly. There's definitely a cleaner way of doing this, but today was my first time learning AutoHotKey so I was just trying to get it to work lol

launchboxProcessExtraFiles(list,label,AssetType,extensions){
	Global gameInfo, romName
	obj := {}
	StringSplit, labelArray, label, |,
	StringSplit, AssetTypeArray, AssetType, |,
	Loop, Parse, list,|
	{ 	currentLabel := A_Index
		If !(labelArray%currentLabel% = "#disabled#"){	
			If (AssetTypeArray%currentLabel% = "game"){
				;adding dbnamed assets
				gameName:={}
				gameName := RegexReplace(gameInfo["Name"].Value, "[\\/:\*\?<>\|]" , "_")
				obj := BuildAssetsTable(A_loopfield . "\" . gameName . ".*",labelArray%currentLabel%,AssetTypeArray%currentLabel%,extensions, obj)
				Loop, 9
					obj := BuildAssetsTable(A_loopfield . "\" . gameName . "-0" . a_index . ".*",labelArray%currentLabel% . "-0" . a_index,AssetTypeArray%currentLabel%,extensions, obj)
				if (parentDbName){
					obj := BuildAssetsTable(A_loopfield . "\" . gameInfo["CloneOf"].Value . ".*","Parent " . labelArray%currentLabel%,AssetTypeArray%currentLabel%,extensions, obj)
					Loop, 9
						obj := BuildAssetsTable(A_loopfield . "\" . gameInfo["CloneOf"].Value . "-0" . a_index . ".*","Parent " . labelArray%currentLabel% . "-0" . a_index,AssetTypeArray%currentLabel%,extensions, obj)
				}
				;adding rom named assets
				obj := BuildAssetsTable(A_loopfield . "\" . romName . ".*","Rom " . labelArray%currentLabel%,AssetTypeArray%currentLabel%,extensions, obj)
				Loop, 9
					obj := BuildAssetsTable(A_loopfield . "\" . romName . "-0" . a_index . ".*","Rom " . labelArray%currentLabel% . "-0" . a_index,AssetTypeArray%currentLabel%,extensions, obj)
			} else { ;system assets
				obj := BuildAssetsTable(A_loopfield . "\" . gameInfo["Platform"].Value . ".*",labelArray%currentLabel%,AssetTypeArray%currentLabel%,extensions, obj)
				Loop, 9
					obj := BuildAssetsTable(A_loopfield . "\" . gameInfo["Platform"].Value . "-0" . a_index . ".*",labelArray%currentLabel% . "-0" . a_index,AssetTypeArray%currentLabel%,extensions, obj)
			}
		}
	}
	Return obj
}

 

  • Like 1
Link to comment
Share on other sites

That works great! I noticed there was still an issue with games that have an apostrophe in them like "Conker's Bad Fur Day", but adding an apostrophe to the RegexReplace list of special characters, fixes the problem :)

I noticed this on line 45

;Acquiring Disc artwork (not available or location unknown on LaunchBox folders)

But I don't see an option under RL's Fade settings for showing disc art. I'm gonna play around with the plugin and see if I can get that working. It would be cool to have both logos and carts.

Also, do you know if it's possible to have RL search more than one location for images, like have it search both "Cart - Front" and "Disc" directories?

Edited by Omen
  • Thanks 1
Link to comment
Share on other sites

Good catch! I forgot about apostrophes. I believe its definitely possible since it sort of already does that as it checks for the ROM name once it can't find it in the media folder. So if you throw in another IF ELSE statement it should work. You probably would have to re-purpose one of the current fields like Genre in the Fade Info tab and have it set as 'Image' and then have the plugin point at the disc art. 

I found one other issue I can't figure out. For games that use more uncommon characters like accented characters and specifically the degree character like in "1080° Snowboarding", it should find the media files for it since Windows accepts them in the file names, but RL doesn't seem to find them when loading the fade. I am assuming it has to do with the text encoding maybe of how AHK handles them and might not use UTF-8.

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