Jump to content
LaunchBox Community Forums

Dynizzle

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Dynizzle

  1. 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.
  2. 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 }
  3. 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.
  4. 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"
  5. 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.
  6. 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 -
  7. 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.
  8. 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.
×
×
  • Create New...