Batocera.linux (その4:BIOS とゲーム追加)

レトロゲーム専用 Batocera.linux

2024年12月28日、巷の最先端ピープルの間で Batocera.linux (バトセラ・リナックス、以後 Batocera と記載) が流行っているらしい。

前回 で使いかたの概要を説明しました。 今回は BIOS を実装してゲームを入れる方法をレポートします。

ここで掲載したキャプチャ画像は激安の AE USB3.0 Video Capture でスクリーンショットしたものです。



BIOS を実装

  1. 概要

  2. もっと簡単に BIOS 導入できないだろうか???

  3. やっとこさダウンロードでき、解凍して [bios] フォルダを取り出しました



試しにゲームを追加

  1. 追加するゲーム

  2. [Mahjong Haou Den.zip] を単純追加

  3. でも画面右側にサムネイル画像などが表示されておらず寂しいので情報追加

    1. Batocera のスクリーンショット機能を使ってサムネイルに使う画像を取得

      • Batocera ではゲーム中に [ホットキー]+[L1] でスクリーンショットが取得できます。

      • この機能を使ってゲーム画像を取得し、/userdata/screenshots フォルダから画像を取得し、ファイル名を [Mahjong Haou Den.png] に変更して /userdata/roms/pcengine/image に入れました。

    2. /userdata/roms/pcengine/gamelist.xml をエディタで開くと下の記述になっていました

      • gamelist.xml は [ゲーム ROM] [サムネイル画像] などを紐付ける xml です。

      • <game>~</game> に囲まれた部分がゲーム情報で、一番下のものが [Mahjong Haou Den] のゲーム情報です。

          <?xml version="1.0"?>
          <gameList>
          	<game>
          		<path>./Reflectron (aetherbyte).pce</path>
          		<name>Reflectron</name>
          		<desc>You are a Biological Entity Remover Node And Repair Droid (or B.E.R.N.A.R.D. for short), working for the evil robot overlord on his deadly mobile space station. Charged with maintaining the primary laser cannon, B.E.R.N.A.R.D has, however, developed something of a conscience. Instead, he has chosen to defy his master and do his best to stop the cannon's DELTA CRYSTAL from charging up by destroying the MEGA PROTONS with his cranial gun. Will he be able to stop the cannon from decimating another innocent world?</desc>
          		<image>./images/Reflectron (aetherbyte)-image.png</image>
          		<video>./videos/Reflectron (aetherbyte)-video.mp4</video>
          		<marquee>./images/Reflectron (aetherbyte)-marquee.png</marquee>
          		<thumbnail>./images/Reflectron (aetherbyte)-thumb.png</thumbnail>
          		<developer>Andrew Darovich</developer>
          		<publisher>Aetherbyte</publisher>
          		<genre>Action</genre>
          		<players>1</players>
          		<crc32>6A3727E2</crc32>
          		<md5>40540be45e4f802344cfcb9f43b527b0</md5>
          		<lang>jp</lang>
          		<region>jp</region>
          		<cheevosHash>40540BE45E4F802344CFCB9F43B527B0</cheevosHash>
          	</game>
          	<game>
          		<path>./Santatlantean (aetherbyte).pce</path>
          		<name>Santatlantean</name>
          		<desc>Jealous of all the time her husband spends drinking sherry and eating biscuits in other people's houses, Mrs Claus decides the only way to be rid of her overweight husband is to put an evil spell on the Christmas decorations and let them do the dirty work for her. As Santa, you must destroy these festive fiends, but beware; evil baubles are lying in wait, candy canes attack without warning and scented candles are out to burn your beard off!
          
          Santatlantean is a festive high-score action shoot 'em up (based on Aetherbyte's Atlantean) which is free to download and play on a PC Engine emulator of your choice (such as Magic Engine, Mednafen or Ootake) or flash card.</desc>
          		<image>./images/Santatlantean (aetherbyte)-image.png</image>
          		<video>./videos/Santatlantean (aetherbyte)-video.mp4</video>
          		<marquee>./images/Santatlantean (aetherbyte)-marquee.png</marquee>
          		<thumbnail>./images/Santatlantean (aetherbyte)-thumb.png</thumbnail>
          		<developer>Andrew Darovich</developer>
          		<publisher>Aetherbyte</publisher>
          		<genre>Shoot'em up / Horizontal</genre>
          		<players>1</players>
          		<crc32>E6B38AF1</crc32>
          		<md5>37f4ae5a1c9d4b02b441d075c6474a5b</md5>
          		<lang>jp</lang>
          		<region>jp</region>
          		<cheevosHash>12C9CB92855185A15B315435EC8EADF7</cheevosHash>
          	</game>
          	<game>
          		<path>./Mahjong Haou Den.zip</path>
          		<name>Mahjong Haou Den</name>
          		<playcount>1</playcount>
          		<lastplayed>20241216T154912</lastplayed>
          		<gametime>247</gametime>
          		<lang>jp</lang>
          		<region>jp</region>
          	</game>
          </gameList>
          

    3. <game>~</game> の書式は下のようになっています

      • 青色部分が記述内容説明です。 もっと詳細な説明は Gamelists にあります。

      • 全てを満たす必要はありません。 記述しなかった部分は表示されないだけで、ゲームの実行には何ら影響しません。

        	<game>
        		<path>ROMへの相対パスとファイル名</path>
        		<name>クラス画面への表示名</name>
        		<desc>ゲームの説明</desc>
        		<image>サムネイル画像への相対パスとファイル名</image>
        		<video>サムネイル動画への相対パスとファイル名</video>
        		<developer>開発者</developer>
        		<publisher>発行元</publisher>
        		<genre>ジャンル</genre>
        		<players>プレイ人数</players>
        		<releasedate>発売日 yyyymmddThhmmss</releasedate>
        		<rating>ゲームの評価 0~1 (小数設定可能)</rating>
        		<lang>言語</lang>
        		<region>リージョン</region>
        	</game>
        

      • [Mahjong Haou Den] の部分を以下のように変更しました。

        	<game>
        		<path>./Mahjong Haou Den.zip</path>
        		<name>Mahjong Haou Den (Japan)</name>
        		<desc>PC Engine no Game dayo</desc>
        		<image>./images/Mahjong Haou Den.png</image>
        		<developer>NEC</developer>
        		<publisher>NEC</publisher>
        		<genre>Table Game</genre>
        		<players>1</players>
        		<releasedate>19800101T000000</releasedate>
        		<lang>jp</lang>
        		<region>jp</region>
        	</game>
        

    4. Batocera の [メインメニュー]→[ゲーム(エミュレータ)設定]→[ゲームリストを更新] してゲームリストを再読み込みしました。

      • 見事!追加した情報が表示されました!!!





日本語表示できるか実験

  1. [Mahjong Haou Den] の部分を以下のように変更しました。

    	<game>
    		<path>./Mahjong Haou Den.zip</path>
    		<name>麻雀覇王伝カイザーズクエスト (日本)</name>
    		<desc>PCエンジンのゲームです。日本語表示できるか実験してみました。</desc>
    		<image>./images/Mahjong Haou Den.png</image>
    		<developer>NEC</developer>
    		<publisher>NEC</publisher>
    		<genre>Table Game</genre>
    		<players>1</players>
    		<releasedate>19800101T000000</releasedate>
    		<lang>jp</lang>
    		<region>jp</region>
    	</game>
    

  2. 変更後にゲームリストを更新して確認

  3. 原因を推測→リベンジ

  4. 変更後にゲームリストを更新して確認



少しゲームを入れてみた

  1. やったこと

  2. 結果



Batocera システムを構築した感想

  1. 自分専用の素晴らしいゲームコレクションが作成できる

  2. ゲーム ROM さえ適切に保存しておけば、例え PC が故障しても大丈夫

  3. ゲームメディアの交換不要で遊びたいゲームを選択するだけですから取り扱いが楽

  4. ゲームの途中経過状態保存機能 (ステート保存・回復) が便利

  5. Batocera はドキュメントがしっかりしている



やり方がわかれば、あとは努力あるのみ



ドキュメントなど

  1. ドキュメント

  2. レビュー記事