You are not logged in.

#1 2025-03-20 14:45:02

okbzl
Member
Registered: 2024-08-03
Posts: 40

Can't run games which require firmware using RetroArch + Lutris

Title says all. I have all the firmware places in ~/.config/retroarch/system and I've pointed the BIOS files location in Lutris to that, but everytime I tried to boot up a game which require the firmware, say PC-98 game (Touhou 1), it give this error:

'np2kai/font.bmp'

Traceback (most recent call last):

  File "/usr/lib/python3.13/site-packages/lutris/exception_backstops.py", line 29, in wrapper
    result = function(*args, **kwargs)

  File "/usr/lib/python3.13/site-packages/lutris/game.py", line 769, in configure_game
    raise error

  File "/usr/lib/python3.13/site-packages/lutris/util/jobs.py", line 30, in target
    result = self.function(*a, **kw)

  File "/usr/lib/python3.13/site-packages/lutris/runners/libretro.py", line 257, in prelaunch
    required_firmware_checksum = checksums[required_firmware_filename]
                                 ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^

KeyError: 'np2kai/font.bmp'

Lutris log:
[INFO:2025-03-20 21:33:58,719:application]: Starting Lutris 0.5.19
[ERROR:2025-03-20 21:33:58,748:system]: ['vulkaninfo', '--summary'] command failed: Command '['vulkaninfo', '--summary']' returned non-zero exit status 1.
[INFO:2025-03-20 21:33:58,775:startup]: "card1" is Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (8086:0116 1043:13d7 i915) Driver 25.0.1
[WARNING:2025-03-20 21:33:58,792:game]: The Mednafen runner didn't provide a platform for Majin Tensei II - Spiral Nemesis (mednafen)
[ERROR:2025-03-20 21:42:40,760:jobs]: Error while completing task <bound method libretro.prelaunch of <lutris.runners.libretro.libretro object at 0x71bcc064c7d0>>: <class 'KeyError'> 'np2kai/font.bmp'
[ERROR:2025-03-20 21:42:40,766:exception_backstops]: Touhou 1: Rei'iden - The Highly Responsive to Prayers (libretro) has encountered an error: 'np2kai/font.bmp'
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/lutris/exception_backstops.py", line 29, in wrapper
    result = function(*args, **kwargs)
  File "/usr/lib/python3.13/site-packages/lutris/game.py", line 769, in configure_game
    raise error
  File "/usr/lib/python3.13/site-packages/lutris/util/jobs.py", line 30, in target
    result = self.function(*a, **kw)
  File "/usr/lib/python3.13/site-packages/lutris/runners/libretro.py", line 257, in prelaunch
    required_firmware_checksum = checksums[required_firmware_filename]
                                 ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'np2kai/font.bmp'
[WARNING:2025-03-20 21:42:40,771:game]: The game has run for a very short time, did it crash?

The firmware files are all in "~/.config/retroarch/system", and again, Lutris' BIOS file location is pointed there

Offline

#2 2025-03-20 14:47:49

okbzl
Member
Registered: 2024-08-03
Posts: 40

Re: Can't run games which require firmware using RetroArch + Lutris

Also, I've replaced the RetroArch from Lutris from 1.13 to 1.20 (recompiled)

Offline

#3 2025-03-20 17:41:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,301

Re: Can't run games which require firmware using RetroArch + Lutris

Why are you not just using retroarch from the repos? This looks like lutris being bugged up here. And it appears to try to use a font rather than an actual firmware file.

Offline

#4 2025-03-21 00:22:50

okbzl
Member
Registered: 2024-08-03
Posts: 40

Re: Can't run games which require firmware using RetroArch + Lutris

I was worried that the repo one might have some stupid quirk + prefer recompiled myself anyway. Btw, this isn't just PC-98 games acting up. Here's a list of system that are acting up
GBA: sgb_bios.bin
PC-Engine: syscard2.pce
Saturn: kronos/saturn_bios.bin
SNES: dsp1.data.rom
All firmware-related files are in ~/.config/retroarch/system

ls ~/.config/retroarch/system
 64DD_IPL.bin       dsp1b.data.rom      gamegenie.nes      mpr-19367-mx.ic1   scph5501.bin        st011.data.rom
 cgb_boot.bin       dsp1b.program.rom   gb_bios.bin        np2kai             scph5502.bin        st011.program.rom
 cx4.data.rom       dsp2.data.rom       gba_bios.bin       pcfx.rom           SGB1.sfc            st018.data.rom
 Databases          dsp2.program.rom    gbc_bios.bin       ps1_rom.bin        SGB2.sfc            st018.program.rom
 disksys.rom        dsp3.data.rom       gexpress.pce       PSXONPSP660.bin    sgb2_bios.bin       syscard1.pce
 dmg_boot.bin       dsp3.program.rom    kronos             psxonpsp660.bin    sgb_bios.bin        syscard2.pce
 dsp1.data.rom      dsp4.data.rom       Machines           rom.db             st010.data.rom      syscard3.pce
 dsp1.program.rom   dsp4.program.rom    mpr-18811-mx.ic1   scph5500.bin       st010.program.rom

Offline

#5 2025-03-21 00:28:23

okbzl
Member
Registered: 2024-08-03
Posts: 40

Re: Can't run games which require firmware using RetroArch + Lutris

So someone made an issue last week https://github.com/lutris/lutris/issues/5982

Offline

Board footer

Powered by FluxBB