Skip to content

Instantly share code, notes, and snippets.

@eggplants
Last active May 6, 2024 20:55
Show Gist options
  • Save eggplants/14140b6553cc000bf9a91de0c68a4929 to your computer and use it in GitHub Desktop.
Save eggplants/14140b6553cc000bf9a91de0c68a4929 to your computer and use it in GitHub Desktop.
RPGツクール2000ゲーム ドラ子の出稼ぎ物語 をWine 8とUbuntu 22.04で動かすまで

RPGツクール2000ゲーム ドラ子の出稼ぎ物語 をWine 8とUbuntu 22.04で動かすまで

検証環境

$ lsb_release -a
LSB Version:	core-11.1.0ubuntu4-noarch:printing-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy

$ lscpu | grep "CPU op-mode"
CPU op-mode(s):                  32-bit, 64-bit

Wine の導入

Wineの導入方法は公式のインストールガイドを見る。

UBUNTU_DIST_VERSION="$(lsb_release -a | tail -1 | cut -f2)"
sudo dpkg --add-architecture i386 

sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/ubuntu/dists/${UBUNTU_DIST_VERSION}/winehq-${UBUNTU_DIST_VERSION}.sources"
sudo apt update
sudo apt install winehq-devel -y

# winetricks も導入
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
sudo install -m 0755 winetricks /usr/local/bin/winetricks
rm winetricks

Wineのセットアップ

# ref:
# https://marmooo.blogspot.com/2019/10/winehq-linux.html
# https://lingoto.blogspot.com/2017/03/wine.html
# https://kakurasan.tk/winenotes/apps/rm2k2k3/
# https://qiita.com/kerorinfather/items/7af537ba65693015fdc8
# https://siras.seesaa.net/article/202109article_2.html

# 32 bitでセットアップする
WINEARCH=win32 wineboot

# fontを全部インストール
winetricks fonts allfonts

# https://qiita.com/kerorinfather/items/7af537ba65693015fdc8

# そのままだとMIDI関係で音楽が出ない問題があるが `timidity -iAD` を実行してtimidityをデーモンとして起動すればOK
# `.profile` とかに書いて起動時実行するようにすると楽

sudo apt install timidity alsa-utils -y
echo 'timidity -iAD' >> ~/.profile
eval "winetricks "{quartz,gmdls,dmsynth,directmusic,dsound,devenum}";"

# アンチエイリアスをオフにする
WINEPREFIX=~/.wine wine reg add "HKEY_CURRENT_USER\Software\Wine\AppDefaults\RPG_RT.exe\X11 Driver" /v "ClientSideWithRender" /t REG_SZ /d "N"

# umefont_670.tar.xzのダウンロード
wget https://web.archive.org/web/20220515023936if_/https://free.nchc.org.tw/osdn//ume-font/22212/umefont_670.tar.xz
tar Jxfv umefont_670.tar.xz
rm umefont_670.tar.xz
sudo mv umefont_670 /usr/share/fonts/truetype/

# NotoSansCJKjp-hinted.zipのダウンロード
mkdir NotoSansCJKjp
cd NotoSansCJKjp
wget https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKjp-hinted.zip
unzip NotoSansCJKjp-hinted.zip
rm NotoSansCJKjp-hinted.zip
cd ../
sudo mv NotoSansCJKjp /usr/share/fonts/opentype/

# NotoSerifCJKjp-hinted.zipのダウンロード
mkdir NotoSerifCJKjp
cd NotoSerifCJKjp
wget https://noto-website-2.storage.googleapis.com/pkgs/NotoSerifCJKjp-hinted.zip
unzip NotoSerifCJKjp-hinted.zip
rm NotoSerifCJKjp-hinted.zip
cd ../
sudo mv NotoSerifCJKjp /usr/share/fonts/opentype/

wget https://gist.githubusercontent.com/nogajun/6095ed8488ef9449e63dc1ce578ae55e/raw/85ced2a3dd8a8ed960e3de96b2127f960cfc1de6/wine-japanese.reg
regedit wine-japanese.reg
rm wine-japanese.reg

RPGツクール2000のランタイムをインストールする

wget https://tkool.jp/products/rtp/2000rtp.zip
unzip -Ocp932 2000rtp.zip
rm 2000rtp.zip
cd RTPセットアップ
LANG="ja_JP.UTF-8" wine RPG2000RTP.exe
# cd .. && rm RTPセットアップ

ドラ子の出稼ぎ物語をダウンロードして起動する

https://ux.getuploader.com/vipkohaku2010_1b/download/25

unar VIPRPG2010No91_verLast.zip
cd VIPRPG紅白2010No91作品/
LANG="ja_JP.UTF-8" wine GameStart.exe

起動すると全画面表示になるので alt + Enter でウィンドウ表示に変更

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment