I made this python script that will make a playlist for the FBA games using the names from the database.
To get the database you need to download the FBA emulator for the version of the romset you have, run it and go to Misc -> Generate dat file -> Generate dat (Arcade only)… Save it as “fba.dat” Copy the code below and save it as “dat2lpl.py” in the same folder as the dat you saved earlier. You can run it simply with “python dat2lpl.py” The playlist generated is for the complete romset and it will ignore bios roms.
import sys, codecs
path = '/storage/roms/FBA/'
playlist = 'FB Alpha - Arcade Games.lpl'
out = codecs.open(playlist, 'w', 'utf-8')
dat = open('fba.dat', 'r')
lines = dat.readlines()
for i in range(0,len(lines)):
line = lines[i].strip()
if line.startswith('<game') and not 'isbios="yes"' in line:
name = line.split('"')[1]
i = i + 1
line = lines[i].strip()
description = line[13:-14]
out.write(path + name + '.zip' + '
')
out.write(description + '
')
out.write('/tmp/cores/fba_libretro.so' + '
')
out.write('Arcade (FB Alpha - SVN)' + '
')
out.write('DETECT' + '
')
out.write(playlist + '
')
dat.close()
out.close()
You should change the line that says path = ‘/storage/roms/FBA/’ with the path where you have your FBA roms in lakka
The result looks like this (not the complete playlist):
/storage/roms/FBA/stratvoxb.zip
Stratovox (bootleg)
/tmp/cores/fba_libretro.so
Arcade (FB Alpha - SVN)
DETECT
FB Alpha - Arcade Games.lpl
/storage/roms/FBA/streakng.zip
Streaking (set 1) [Bad Colours]
/tmp/cores/fba_libretro.so
Arcade (FB Alpha - SVN)
DETECT
FB Alpha - Arcade Games.lpl
/storage/roms/FBA/streaknga.zip
Streaking (set 2) [Bad Colours]
/tmp/cores/fba_libretro.so
Arcade (FB Alpha - SVN)
DETECT
FB Alpha - Arcade Games.lpl
/storage/roms/FBA/sfj.zip
Street Fighter (Japan)
/tmp/cores/fba_libretro.so
Arcade (FB Alpha - SVN)
DETECT
FB Alpha - Arcade Games.lpl
/storage/roms/FBA/sfp.zip
Street Fighter (Prototype) [Prototype]
/tmp/cores/fba_libretro.so
Arcade (FB Alpha - SVN)
DETECT
In lakka it will show the full name of the game instead of the name of the zip file.