Batocera 新增 N64 大盜五右衛門道中記原生 Linux 版

《大盜五右衛門道中記》(日文原名:がんばれゴエモン ネオ桃山幕府のおどり)是由 Konami 開發,於 1997 年在任天堂 64(N64)平台上推出的動作冒險遊戲。在歐美地區稱為《Mystical Ninja Starring Goemon》。而本篇是要教你怎樣在 Batocera 上裝上大盜五右衛門道中記的原生 Linux 版

事先要求

  • 下載 Goemon64Recomp 原生已編譯好的 Linux x64 原生程式
  • Batocera 系統。建議是最新 v41 版。其它版未測。
  • 合法取得的 Mystical Ninja Starring Goemon (USA) rom.

安裝

ssh 進 batocera 系統後執行下列指令

mkdir -p /userdata/roms/ports/.data/n64goemon

把 Goemon64Recompiled-v0.0.5-dev-Linux-x64-AppImage.zip 檔案解開來,裡頭會有 1 個 Goemon64Recompiled-x86_64.AppImage 的檔案。之後再用 winscp 或檔案總管連線 batocera share 目錄的方式把 Goemon64Recompiled-x86_64.AppImage copy 到 /userdata/roms/ports/.data/n64goemon 裡頭。之後執行下方指令龻更權限

chmod 755  /userdata/roms/ports/.data/n64goemon/Goemon64Recompiled-x86_64.AppImage

下一步用把下方程式貼到 windows 記事本並存成你要的檔名。如 N64Goemon.sh

# These events will be executed before the game begins.
# Read the current directory this script is being executed from and save to variable DIR.
DIR="$(dirname "$(readlink -f "$0")")"

# Change the current directory to that of the game's data folder.
cd "${DIR}/.data/n64goemon"

# Show the mouse cursor. It's a good idea to first show it when setting up the game, in case it's needed. 
unclutter-remote -s
./Goemon64Recompiled-x86_64.AppImage

# These events will be executed once the game terminates.
# Hide the mouse cursor as we are going back to ES.
unclutter-remote -h

把 N64Goemon.sh 用 winscp 或檔案總管連線 batocera share 目錄的方式把它 copy 至 /userdata/roms/ports/ 並執行下方程式。如果你有換檔名記得把程式指令的 N64Goemon.sh 也換成你的自定檔名

dos2unix /userdata/roms/ports/N64Goemon.sh;
chmod 755 /userdata/roms/ports/N64Goemon.sh;

之後再把 Mystical Ninja Starring Goemon (USA) rom 拷貝到 /userdata/roms/ports/.data/n64goemon/ 裡頭

執行

在 ES 更新一下遊戲列表或重開 Batocera . 之後可以 Ports 看到 N64Goemon 的遊戲選項。點選執行。看到主畫面後選擇 Select Game . 並選擇 Mystical Ninja Starring Goemon (USA).z64

Goemon64Recompiled_main_menu

實際畫面

延伸閱讀

blog.ocam.live
blog.ocam.live

關注科技新聞、SEO、人工智慧、電玩模擬器、程式設言、與 IT 日常等議題,深入簡出文章的說明並持續追蹤相關新聞的發展與報導。