Skip to content

Instantly share code, notes, and snippets.

@axzxc1236
Last active December 29, 2022 14:13
Show Gist options
  • Select an option

  • Save axzxc1236/bad0a27699521a49038c4c1be380b1d6 to your computer and use it in GitHub Desktop.

Select an option

Save axzxc1236/bad0a27699521a49038c4c1be380b1d6 to your computer and use it in GitHub Desktop.
A script to install rtp programs in wine.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\ASCII]
[HKEY_LOCAL_MACHINE\SOFTWARE\ASCII\RPGツクール2000 ランタイムパッケージ]
[HKEY_LOCAL_MACHINE\SOFTWARE\ASCII\RPGツクール2000 ランタイムパッケージ\1.00.000]
[HKEY_LOCAL_MACHINE\SOFTWARE\Enterbrain]
[HKEY_LOCAL_MACHINE\SOFTWARE\Enterbrain\RPGツクール2003 ランタイムパッケージ]
[HKEY_LOCAL_MACHINE\SOFTWARE\Enterbrain\RPGツクール2003 ランタイムパッケージ\1.00.000]
[HKEY_CURRENT_USER\Software\ASCII]
[HKEY_CURRENT_USER\Software\ASCII\RPG2000]
"RuntimePackagePath"="C:\\Program Files (x86)\\ASCII\\RPG2000\\RTP\\"
[HKEY_CURRENT_USER\Software\Enterbrain]
[HKEY_CURRENT_USER\Software\Enterbrain\RPG2003]
"RUNTIMEPACKAGEPATH"="C:\\Program Files (x86)\\Enterbrain\\RPG2003\\RTP\\"
#! /bin/bash
sudo apt install wget unar convmv libc-bin unshield --no-install-recommends -y
if [ -z "$WINEPREFIX" ]; then
WINEPREFIX=$HOME/.wine
fi
mkdir -p /tmp/rtp
cd /tmp/rtp
download_rtp() {
wget -nc https://tkool.jp/products/rtp/vxace_rtp100.zip https://tkool.jp/products/rtp/vx_rtp202.zip https://tkool.jp/products/rtp/xp_rtp103.zip https://tkool.jp/products/rtp/2003rtp.zip https://tkool.jp/products/rtp/2000rtp.zip https://tkool.jp/products/rtp/RTP_patchk_190612.zip https://gist.githubusercontent.com/axzxc1236/bad0a27699521a49038c4c1be380b1d6/raw/f874b56efd052a262c927acfbb97c8205b8dea18/rtp.reg
unar -s -q -e shift-jis 2000rtp.zip
unar -s -q -e shift-jis RTP_patchk_190612.zip
unar -s -q -e shift-jis 2003rtp.zip
unar -s -q -e shift-jis xp_rtp103.zip
unar -s -q -e shift-jis vx_rtp202.zip
unar -s -q -e shift-jis vxace_rtp100.zip
}
setup_2000() {
mkdir -p "$WINEPREFIX/drive_c/Program Files (x86)/ASCII/"
cd "RTPセットアップ"
unar RPG2000RTP.exe
cd RPG2000RTP
unshield -R -d . x data1.cab
rm -rf _*
convmv -f SHIFT-JIS -t UTF-8 -r --qfrom --notest RPG*
iconv -f SHIFT-JIS -t UTF-8 ../使用規約.txt > "RPGツクール2000_ランタイムパッケージ/TOS.txt"
rm -rf "$WINEPREFIX/drive_c/Program Files (x86)/ASCII/"
mv "RPGツクール2000_ランタイムパッケージ" "$WINEPREFIX/drive_c/Program Files (x86)/ASCII/"
cd ../../
#Install patch
cd RTP_patchk_190612
mv "モンスター.png" "$WINEPREFIX/drive_c/Program Files (x86)/ASCII/RTP/FaceSet/"
mv "主人公3.png" "$WINEPREFIX/drive_c/Program Files (x86)/ASCII/RTP/CharSet/"
mv {"基本","ダンジョン","船","内装","外観"}.png "$WINEPREFIX/drive_c/Program Files (x86)/ASCII/RTP/ChipSet/"
cd ..
}
setup_2003() {
mkdir -p "$WINEPREFIX/drive_c/Program Files/Enterbrain/"
cd "2003RTPセットアップ"
unar RPG2003RTP.exe
cd RPG2003RTP
unshield -R -d . x data1.cab
rm -rf _*
convmv -f SHIFT-JIS -t UTF-8 -r --qfrom --notest RPG*
iconv -f SHIFT-JIS -t UTF-8 ../使用規約.txt > "RPGツクール2003_ランタイムパッケージ/TOS.txt"
rm -rf "$WINEPREFIX/drive_c/Program Files/Enterbrain/RPG2003"
mv "RPGツクール2003_ランタイムパッケージ" "$WINEPREFIX/drive_c/Program Files/Enterbrain/RPG2003"
cd ../../
}
setup_others() {
wine RPGXP_RTP103/Setup.exe
wine RPGVX_RTP202/setup.exe
wine RPGVXAce_RTP100/Setup.exe
}
download_rtp
setup_2000
setup_2003
wine reg import rtp.reg
setup_others
cd ..
rm -rf rtp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment