Jump to content
LaunchBox Community Forums

Rob_G

Members
  • Posts

    169
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Rob_G

  1. I think the 'IsCasino' boolean in the mame xml data is being used wrong, or some games have wrong metadata Megatouch XL is one example identified as a casino game when it's just another version of a Megatouch game. Rob
  2. I've changed my approach a bit now. Instead of deleting items, I just hide them by changing the hidden element in the platform or gamelist xml. I don't have anything written for launchbox (yet), but I did write something for batocera already.. Same principle though. This keeps everything in place like bios and device files which are needed, but hides them since they aren't actually games to play. Rob
  3. Ok, one thing I had not counted on was that device roms are not included with the game roms. So for example, Arkanoid won't launch if mame cannot find m68705p3.zip which is a processor device rom. The solution is going to be to not touch device (or bios) zip files now. I have updated the script to leave these alone. Also, I have added a backup option to move files to another location instead of just deleting them if that is what you want. I updated the script in the first post. Rob
  4. I wrote a powershell script to cleanup a full (merged) mame romset and remove the following junk: Non working Non arcade No disk dump CHD Missing Casino Mahjong Playchoice 10 Mechanical Non Runnabl Uses Software lists Clones Filtering mame xml is NOT bulletproof. There are no explicit tags for language or genre so some filtering is tedious and/or may produce undesired results. So it's best to err on the side of caution. There will be casino/mahjong games that slip by for example and this even happens with Launchbox mame import. Final tally is that this reduces a mame merged set from 15000+ files to less than 4000 files. function deletefile($file) { #Comment next line if you don't want backup #$backupfolder = "d:\backupfolder" if (($backupfolder -ne $null) -and (($backupfolder | test-path) -eq $false)) { md $backupfolder } if ((Get-ChildItem $file -ErrorAction SilentlyContinue) -eq $null) {return} if ($backupfolder -ne $null) { write-host "Moving $file.name to $backupfolder" #$file | move-item -Destination $backupfolder } else { write-host "Deleting $file" $file | Remove-Item -Force } } if ($xml -eq $null) { #Changed to wherever your mame.exe is [xml]$xml = D:\Launchbox\Emulators\Mame\mame.exe -listxml } #Change to wherever your roms are stored $dir = "Z:\roms\mame" $xml.mame.machine | ForEach-Object { $name = $_.name $romfile = $dir + "\" + $name + ".zip" #Is a bios if ($_.isbios -eq "yes") {return} #Is a device if ($_.isdevice -eq "yes") {return} # Delete rom if it has no associated input or coins is null if ($_.input -eq $null) { deletefile $romfile return } $checkforcoin = $null $checkforcoin = ($_ | select -ExpandProperty input).coins if ($checkforcoin -eq $null) { deletefile $romfile return } #Unplayable if ($_.driver.status -eq "preliminary") {deletefile $romfile;return} #No disk dump if ($_.disk.status -eq "nodump") {deletefile $romfile;return} #Missing CHD if ($_.disk.status -eq "good") { $chdname = $dir + "\" + $_.name + "\" + $_.disk.name + ".chd" $checkdir = $null $checkdir = Get-ChildItem $chdname -ErrorAction SilentlyContinue if ($checkdir -eq $null) {deletefile $romfile;return} } #Not runnbable if ($_.runnable -eq "no") {deletefile $romfile;return} #Mechanical if ($_.ismechanical -eq "yes") {deletefile $romfile;return} #Description keywords #Playchoice isn't necessary #I think most rhythm games are unplayable as well if ($_.description -match "playchoice|mahjong|percussion|rhythm|beatmania") {deletefile $romfile;return} #Slot machine if ($_.manufacturer -match "Videos A A|QPS|IGT - International Game Technology|Aristocrat|Igrosoft") {deletefile $romfile;return} if ($_.description -match "casino|gamble|slot|fruit|mazooma|gaminator|poker") {deletefile $romfile;return} if ($_.sourcefile -match "barcrest|goldstar.cpp") {deletefile $romfile;return} #A few junk stragglers if ($_.sourcefile -match "nes_clone.cpp|att3b2.cpp|telercas|tvgames|skeleton|aristocrat|casio|yamaha|famibox") {deletefile $romfile;return} #Uses softwarelist if ($_.softwarelist -ne $null) {deletefile $romfile;return} #Is a clone. Not sure we keep or not. Disabled next line for now #if ($_.cloneof -ne $null) {deletefile $romfile;return} }
  5. I almost regret including the recent games listbox in my theme since there's just no control over what it shows or how it activates. Rob
  6. Rob_G

    Unified Lives!

    That might be your issue right there. Rob
  7. Rob_G

    Unified Lives!

    Is the drive formatted NTFS? Rob
  8. I roughed up a proof of concept for exporting launchbox style media to a batocera installation. It's just something to play around with I guess. This POC copied video files, renamed them appropriately and generated a new game list xml. There are going to be limitations, but it certainly beats downloading gigs of data again through very slow scrapers. $imgsourcedir = "D:\Launchbox\Images\Sammy Atomiswave" $vidsourcedir = "D:\Launchbox\Videos\Sammy Atomiswave" $destdir = "Z:\roms\atomiswave" [xml]$xml = Get-Content $destdir\gamelist.xml $xml.gameList.game | ForEach-Object { $name = $_.name write-host "Game: " $name $videos = dir $vidsourcedir -Recurse $firstvid = $null $firstvid = $videos | Where-Object {$_.name -match $name} | select -first 1 if ($firstvid -ne $null) { write-host "Video Found: " $firstvid.name $startchar = "/" $endchar = "." $pattern = @" (?<=\$StartChar).+?(?=\$EndChar) "@ $newvidname = [regex]::Matches($_.path, $pattern).Value + "-video" + $firstvid.Extension $firstvid | Copy-Item -Destination ($destdir + "\videos\$newvidname") $newvideoelement = $_.AppendChild($xml.CreateElement("video")) $newvideoelement.AppendChild($xml.CreateTextNode('./videos/' + $newvidname)) | Out-Null } } $xml.save("$destdir\gamelist.xml")
  9. I'm not a python guy, but I do powershell and am in the process of testing out Batocera. Media download is just ugly though. Rather than re-downloading gigs of data, I'm going to write a PS script to migrate my stuff over. I may even do this with workflows... It may just all be a wasted effort, but it's fun to play around. Rob
  10. Rob_G

    Unified Lives!

    Check this thread, something similar:
  11. Rob_G

    Unified Lives!

    13.1 is fine. When you say you installed a fresh copy, do you mean in a new folder or over top an existing installation? Try a brand new folder if you have not already. Then try importing a single game or small group of games as a test. What kind of monitor do you have? What resolution are you running? Thank you for the kind feedback Rob
  12. Sometimes box images have too much transparency padding which just makes them display improperly. There is an easy fix for this! https://imagemagick.org/script/download.php If you are running windows, download ImageMagick-7.1.0-58-Q16-x64-dll.exe I don't think this warranted creating a powershell workflow for running multiple jobs at once since it's already very quick. I just choose a folder of files I want to fix and run a small powershell script. Please don't run it against ALL your images, just ones where boxes have uneven cropping. I used it on 'Vectrex' and 'SNK Neo Geo CD' 3D boxes. $foldertofix = "D:\Launchbox\Images\GCE Vectrex\Box - 3D" $exe = "c:\Program Files\ImageMagick-7.1.0-Q16\magick.exe" $files = dir "$foldertofix\*.png" -Recurse $files | ForEach-Object { $file = $_.FullName Write-host "Fixing $file" & $exe $file -fuzz 1% -trim +repage $file } Results before and after below:
  13. Rob_G

    Unified Lives!

    Thanks for catching this right away. The selected item background was set to transparent. I changed it to grey like the game wheel. A new 4.4 was uploaded. Rob
  14. Platform views are now updated and I think they turned out pretty good. V4.4 is available now. Rob
  15. You shouldn't need too much to make your theme compatible across different aspect ratios. Put your elements into grids, set CTC to 'stretch' and set images to 'fill' as necessary. It's better to just live with the stretch/shrink as opposed to trying to account for different aspect ratios. Videos are the one thing I don't let stretch, but I have a black canvas behind the video to fill in gaps. Rob
  16. Rob_G

    Unified Lives!

    This is what I am working on for platform vertical wheels. When a device image isn't found, a random game screenshot will be shown from the platform/playlist. I don't like leaving big open spaces either. During all of this I noticed that the info frames had a drop shadow which shouldn't have been there. That is fixed too. I'm not touching game views, they are fine. Some of the description metadata text for gaming systems is far too long to the point you just don't even want to show that stuff.
  17. Rob_G

    Unified Lives!

    A quick mockup of alternate layout for vertical wheel platform.
  18. Rob_G

    Unified Lives!

    I am not 100% happy with the vertical platform wheels either and will be changing them for sure. Are you ok with the horizontal ones? It's really just the wasted space? Question: Is the recent game listbox useful? I like the concept, but I don't know if and how it can be customized. For now, just copy PlatformWheel3FiltersView.xaml and PlatformWheel4FiltersView.xaml from the older version into the views folder of the latest version. Then you have the best of both worlds. Rob
  19. Rob_G

    Unified Lives!

    Are you just overwriting the theme folder? That's your issue then. Judging by your screenshots, you have non-arcade images in the videoborder folder. When a videoborder image is present for a playlist or platform, the theme assumes it is an arcade cabinet image. That's all I have in there except for _default.png (and the older original default). The theme used to include the colored video frames that came with Refried, but I don't use those any more to keep the theme size down. I also replaced the default square border because I wanted to do something unique and not just keep relying on other peoples artwork. You can always change _deault.png to whatever you want as long as the size and opacity layers match identical. For arcade cabinets, the visibility priority goes likes this: Marquee Then fallback background with clear logo Then fallback background with text I am not sure what is up with the second image, but that's the recent games listbox. I have zero ability to control how it works, but it should be showing game boxes for recent games. Do you have image priorities changed in bigbox or launchbox settings? I also use the thumbnaillistboxview.xaml(?) from the default theme. Something is not right with your box images? Just use a clean 'Unified Lives' theme folder, don't overwrite what you have already. I will ponder the colored frames for now. It just makes visibility rules more a lot more tedious. They can't be in the same folder, that's for sure. I don't want to even go down the path of separate configs for different platforms.. Too much! Rob
  20. So, there's currently no way to change the listbox behaviour? It's dependent on wheel position? Vertical = right stick activation Horizontal = down stick activation. Rob
  21. Rob_G

    Unified Lives!

    Anyhow here is some of what is coming up in the next version to be released in the next day or two. And I'm finally getting over my cold... Or maybe it was covid.. I dunno, I was sick and in the house for a week! - Genre includes a secondary genre tag if it exists - Color conditioning on Arcade Emulation status. Green is good, orange is imperfect and red is preliminary (non working) - Color conditioning on ratings. 4+ is Gold, 2-5 is silver and below 2 is bronze. This applies to both community and your ratings - Last played date and count are also collapsed if you never played the game. - Game and platform counts will appear in the status bar along with selection number. - Corrected an unnecessary duplication of blur effect on wheels. - Created new box wheel template. It now moves the same as clear logo wheels. Before it was backwards! (HorizontalGameWheel3)
  22. Rob_G

    Unified Lives!

    Are you using the latest version of BigBox? Do images show in vertical platform wheels?
  23. Rob_G

    Unified Lives!

    It shouldn't be doing that and is a visibility condition bug. Thanks for letting me know and I will fix it shortly. I may have it fixed already since I reworked a few visibility conditions anyhow. Rob
  24. Not so final after all. I got a cold so instead of going outside on my long weekend, I spent time indoors doing some some research on XAML. I learned a few cool animation tricks which I will implement into my game wheels. I also have a few other fixes, improvements and changes implemented on game views. I noticed box wheel movement is backwards compared to my clear logo wheels and I'm not sure why. So I'll make another wheel template for boxes I guess and fix that. Rob
  25. Could we get more control of the recent games listbox if possible? - Number of days to show content - Activation direction The activation direction is backwards in my theme and I know of no way to fix that. I asked for assistance in another thread, but did not get a reply. In a perfect world, it would be nice to also have a 'random game listbox' (1 item) where you can also show details with the existing random meta tags. And also show gameplay video with a random game video tag instead of a repetitive platform video. Rob
×
×
  • Create New...