English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 22 October 2017, 16:47   #1
Dunny
Registered User
 
Dunny's Avatar
 
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,021
Extract game image filenames + path from FS-UAE Database?

Hi -

I've currently got a full batch of WHDLoad games, a complete TOSEC set of ADFs/IPFs and various other files culled from around the 'net - about 80GB in all.

FS-UAE is reporting a complete set (near enough), but I'm fairly certain it's not actually using all those files - a subset of them is more likely. I'd like to trim the filesystem down a bit to only include those files necessary for FS-UAE.

Is it possible to get a list of filenames that FS-UAE knows about? I've looked at the files.sqlite database, and although it does list most of them, some of the games have no path - they're also listed as the GameBase variant. Where do the files for those live? If they're downloaded on demand, is there a way to pull them all down? I'd like to get the complete game database onto a portable USB drive, and machines I run it on may not have 'net access.
Dunny is offline  
Old 25 October 2017, 22:37   #2
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Files.sqlite is the wrong database. This simply contains an index of files scanned by FS-UAE Launcher on your system.

Instead, you need to parse compressed JSON-blobs from platform-specific game databases (Amiga.sqlite, etc) and look at the "file_list" field in the JSON document (and do this for every game).

Btw: you'll end up with a list of file checksums (SHA-1) that FS-UAE Launcher is interested in, not a list of file names. FS-UAE Launcher could not care less about file names...
FrodeSolheim is offline  
Old 25 October 2017, 23:32   #3
Dunny
Registered User
 
Dunny's Avatar
 
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,021
Interesting, thanks. Getting the SHA-1 fields was surprisingly easy. So I just need to match those up to the stored SHA-1 fields in the files database?

Ok, time to fire up MySQL and get digging! Thanks
Dunny is offline  
Old 26 October 2017, 19:06   #4
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
Quote:
Originally Posted by Dunny View Post
So I just need to match those up to the stored SHA-1 fields in the files database?
For floppy based games: yes. For WHDLoad/zip/lha archives it is different. If you look closely to Files.sqlite, you'll find files from inside the archives (prefixed by #/). These files have a "parent"-value. If you query this value as an "id", you get the actual archive name.
Perhaps it's easier to change the launcher's code to write out the file names if a complete variants was found, than making somthing from scratch. :-)
jbl007 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Online Game Configuration Database for FS-UAE Launcher FrodeSolheim support.FS-UAE 129 08 October 2013 00:06
IPF image database alexh project.SPS (was CAPS) 128 15 April 2013 11:13
[FS-UAE] Optimized or corrected Amiga Game Database Entrys nexusle support.FS-UAE 3 24 August 2012 21:30
[FS-UAE] Amiga Game Database for FS-UAE Launcher nexusle support.FS-UAE 31 24 August 2012 20:24
[FS-UAE] Extract strings from FS-UAE memory starwindz support.FS-UAE 2 06 August 2012 19:49

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:45.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06415 seconds with 13 queries