| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:bsd:wine:warcraft_3 [2024/09/17 02:06] – external edit 127.0.0.1 | games:bsd:wine:warcraft_3 [2025/11/02 03:49] (current) – Sean Rhone |
|---|
| * Warcraft III: Reign of Chaos | * Warcraft III: Reign of Chaos |
| * Warcraft III: The Frozen Throne | * Warcraft III: The Frozen Throne |
| | * 32-bit |
| | |
| | * :!: WIP |
| |
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| |
| * [[bsd;freebsd_14.1_xfce|FreeBSD 14.1 (Xfce)]] | * [[bsd:freebsd_15.0_xfce|FreeBSD 15.0 (Xfce)]] |
| * [[bsd;notes;wine|Wine]] | * [[bsd:notes:wine|Wine]] (old WoW64) |
| |
| ===== Notes ===== | ===== Notes ===== |
| |
| * **The Frozen Throne** is not standalone and requires **Reign of Chaos** | * :!: This is classic Warcraft III with CD keys (not Reforged) |
| * This is legacy Warcraft III through CD-Keys and not Reforged with Battle.net client | |
| |
| ====== Install ====== | ====== Install ====== |
| |
| ===== Reign of Chaos ===== | ===== Sources ===== |
| |
| **** | * https://archive.org/details/warcraft-3-reign-of-chaos |
| | * https://archive.org/details/warcraft-3-the-frozen-throne |
| |
| mkdir -p ~/'.wine' && WINEPREFIX=~/'.wine/Warcraft III' WINEARCH='win32' winetricks 'winxp' && sync && WINEPREFIX=~/'.wine/Warcraft III' WINEARCH='win32' wine ~/'Downloads/Warcraft III/War3-1.27-Installer-enUS-ROC/Installer.exe' | ===== Mount ISOs ===== |
| |
| ===== The Frozen Throne ===== | su - |
| |
| **** | mdconfig -a -t 'vnode' -f '/home/espionage724/Downloads/Warcraft III/Warcraft 3 Reign of Chaos.iso' -u '/dev/md0' && mkdir -p '/mnt/RoC' && mount -t 'cd9660' '/dev/md0' '/mnt/RoC' |
| |
| sync && WINEPREFIX=~/'.wine/Warcraft III' wine ~/'Downloads/Warcraft III/War3-1.27-Installer-enUS-TFT/Installer.exe' | mdconfig -a -t 'vnode' -f '/home/espionage724/Downloads/Warcraft III/Warcraft 3 The Frozen Throne.iso' -u '/dev/md1' && mkdir -p '/mnt/TFT' && mount -t 'cd9660' '/dev/md1' '/mnt/TFT' |
| |
| ===== Patch ===== | exit |
| |
| ==== 1.27b Download ==== | ===== Reign of Chaos ===== |
| |
| * Uses [[https://ftp.blizzard.com/pub/war3x/patches/pc/War3TFT_127b_English.exe|War3TFT_127b_English.exe]] | * Default install directory ((''C:\Program Files\Warcraft III'')) |
| |
| wget --no-check-certificate -O ~/'Downloads/Warcraft III/War3TFT_127b_English.exe' 'https://ftp.blizzard.com/pub/war3x/patches/pc/War3TFT_127b_English.exe' && md5sum ~/'Downloads/Warcraft III/War3TFT_127b_English.exe' | grep '565cfe931dcdefd28a1026b6da4031f7' > '/dev/null' && sync && WINEPREFIX=~/'.wine/Warcraft III' wine ~/'Downloads/Warcraft III/War3TFT_127b_English.exe' | mkdir -p ~/'.wine' && WINEPREFIX=~/'.wine/Warcraft III' WINEARCH='win32' wine wineboot --init && WINEPREFIX=~/'.wine/Warcraft III' winecfg /v 'win98' && WINEPREFIX=~/'.wine/Warcraft III' wine REG ADD 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v 'winemenubuilder.exe' /t 'REG_SZ' /d '' /f |
| |
| ==== Local ==== | WINEPREFIX=~/'.wine/Warcraft III' wine '/mnt/RoC/install.exe' |
| |
| * See [[https://community.pcgamingwiki.com/files/file/1180-warcraft-3-standalone-patches-all-languages-windows/|Warcraft 3 standalone patches (all languages, Windows)]] for other languages | ===== The Frozen Throne ===== |
| | |
| sync && WINEPREFIX=~/'.wine/Warcraft III' wine ~/'Downloads/War3TFT_127b'*'.exe' | |
| | |
| ===== Custom Maps ===== | |
| |
| **** | **** |
| |
| mkdir -p ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Maps/Custom' && mv ~/'Downloads/Warcraft III/Maps/'*'.w3x' ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Maps/Custom/' | WINEPREFIX=~/'.wine/Warcraft III' wine '/mnt/TFT/install.exe' |
| |
| ===== Disable Intro Videos ===== | ==== Patches ==== |
| |
| * May require starting the game once in a virtual desktop | * End patch: ''1.26.0.6401'' |
| |
| WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Misc' /v 'seeintromovie' /t 'REG_DWORD' /d '1' /f | WINEPREFIX=~/'.wine/Warcraft III' wine explorer /desktop='WC3FT','1024x768' ~/'Downloads/Warcraft III/War3TFT_126a_English.exe' && sync |
| |
| cd ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III' && WINEDEBUG='' WINEPREFIX=~/'.wine/Warcraft III' wine explorer /desktop='WC3FT','1280x720' ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Frozen Throne.exe' -opengl -windowed | ===== Unmount ISOs ===== |
| |
| ===== Clean Up ===== | su - |
| |
| **** | umount '/dev/md0' '/dev/md1' |
| |
| rm -Rf ~/'Downloads/Warcraft III' ~/'Desktop/Warcraft III.desktop' ~/'Desktop/Warcraft III - The Frozen Throne.desktop' && sync | mdconfig -d -u '/dev/md0' |
| |
| ====== Settings ====== | mdconfig -d -u '/dev/md1' |
| |
| ===== Reset Gamma ===== | rm -Rf '/mnt/RoC' '/mnt/TFT' |
| |
| **** | exit |
| |
| WINEPREFIX=~/'.wine/Warcraft III' wine reg delete 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'gamma' /f | ====== Desktop Launcher ====== |
| |
| ===== 32-bit Color ===== | ===== 3.3.5 ===== |
| |
| **** | mkdir -p ~/'.local/share/applications/wine/Programs/World of Warcraft' && ee ~/'.local/share/applications/wine/Programs/World of Warcraft/World of Warcraft 3.3.5.desktop' && sed -i -e 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/World of Warcraft/World of Warcraft 3.3.5.desktop' && update-desktop-database --quiet ~/'.local/share/applications' |
| |
| WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'cinematicbpp' /t 'REG_DWORD' /d '32' /f && WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'colordepth' /t 'REG_DWORD' /d '32' /f && WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'texcolordepth' /t 'REG_DWORD' /d '32' /f | <code> |
| | [Desktop Entry] |
| | Name=World of Warcraft 3.3.5 |
| | Categories=Game; |
| | Exec='/bin/sh' -c "cd ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft' && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wine ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft/Wow.exe' -opengl" |
| | Type=Application |
| | StartupNotify=false |
| | Icon=/home/CHANGEME/.wine/Icons/WoW-335-256.png |
| | StartupWMClass=wow.exe |
| | Actions=Server;Saves;Update;Database-Stop;Database-Start;Window;Kill;Notes; |
| |
| ===== 1080p ===== | [Desktop Action Server] |
| | Exec='/bin/sh' -c "~/'Projects/TrinityCore-335/scripts/localhost-server-start.sh'" |
| | Name=Launch Local Server |
| |
| **** | [Desktop Action Saves] |
| | Exec='/bin/sh' -c "~/'Projects/TrinityCore-335/scripts/localhost-databases-backup.sh'" |
| | Name=Databases Back-up |
| |
| WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'cinematicheight' /t 'REG_DWORD' /d '1080' /f && WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'cinematicwidth' /t 'REG_DWORD' /d '1920' /f && WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'resheight' /t 'REG_DWORD' /d '1080' /f && WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'reswidth' /t 'REG_DWORD' /d '1920' /f | [Desktop Action Update] |
| | Exec='/bin/sh' -c "xfce4-terminal -T 'TC 3.3.5 [Updater]' -I ~/'.wine/Icons/WoW-335-256.png' -e ~/'Projects/TrinityCore-335/scripts/localhost-server-update.sh'" |
| | Name=Update Local Server |
| |
| ===== Refresh Rate ===== | [Desktop Action Database-Stop] |
| | Exec='/bin/sh' -c "mariadb-admin 'shutdown' --socket=$HOME/'Projects/TrinityCore-335/mariadb/mariadb.sock' --user=$USER" |
| | Name=Stop MariaDB |
| |
| * 75Hz | [Desktop Action Database-Start] |
| | Exec='/bin/sh' -c "~/'Projects/TrinityCore-335/scripts/localhost-database-start.sh'" |
| | Name=Start MariaDB (daemon) |
| |
| WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'cinematicrefresh' /t 'REG_DWORD' /d '75' /f && WINEPREFIX=~/'.wine/Warcraft III' wine reg add 'HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video' /v 'refreshrate' /t 'REG_DWORD' /d '75' /f | [Desktop Action Window] |
| | Exec='/bin/sh' -c "cd ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft' && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wine explorer /desktop='3.3.5','1280x720' ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft/Wow.exe' -opengl" |
| ====== Desktop Launchers ====== | Name=Start WoW (Windowed) |
| | |
| ===== Initial ===== | |
| | |
| **** | |
| | |
| rm -Rf ~/'.local/share/applications/wine/Programs/Warcraft III' ~/'.config/menus/applications-merged/wine-Programs-Warcraft III'*'.menu' && update-desktop-database --quiet ~/'.local/share/applications' && mkdir -p ~/'.local/share/applications/wine/Programs/Warcraft III' | |
| | |
| ===== Reign of Chaos ===== | |
| | |
| ee ~/'.local/share/applications/wine/Programs/Warcraft III/Warcraft III: Reign of Chaos.desktop' && update-desktop-database --quiet ~/'.local/share/applications' | |
| | |
| <code> | |
| [Desktop Entry] | |
| Name=Warcraft III: Reign of Chaos | |
| Categories=Game;AdventureGame;LogicGame;RolePlaying;StrategyGame | |
| Exec='/bin/sh' -c "cd ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III' && WINEPREFIX=~/'.wine/Warcraft III' wine ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Warcraft III.exe' -opengl" | |
| Type=Application | |
| StartupNotify=true | |
| Icon=3263_Warcraft III.0 | |
| StartupWMClass=war3.exe | |
| Actions=Kill;Notes; | |
| |
| [Desktop Action Kill] | [Desktop Action Kill] |
| Exec='/bin/sh' -c "WINEPREFIX=~/'.wine/Warcraft III' wineserver --kill" | Exec='/bin/sh' -c "WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wineserver -k" |
| Name=Force-close Warcraft III | Name=Force-close WoW |
| |
| [Desktop Action Notes] | [Desktop Action Notes] |
| StartupNotify=false | Exec='/bin/sh' -c "gio open 'https://wiki.realmofespionage.xyz/servers:bsd:games:trinitycore_3.3.5_localhost' 'https://wiki.realmofespionage.xyz/games:bsd:wine:world_of_warcraft_3.3.5'" |
| Exec=gio open 'https://wiki.realmofespionage.xyz/games;bsd;wine;warcraft_3' | Name=Install Notes |
| Name=Installation Notes | |
| |
| # End</code> | # End</code> |
| |
| ===== The Frozen Throne ===== | xfce4-panel -r |
| | |
| | ==== Icon ==== |
| |
| ee ~/'.local/share/applications/wine/Programs/Warcraft III/Warcraft III: The Frozen Throne.desktop' && update-desktop-database --quiet ~/'.local/share/applications' | * ''wrestool'' |
| |
| <code> | <code> |
| [Desktop Entry] | mkdir -p ~/'.wine/Icons' && wrestool --output=$HOME/'.wine/Icons/WoW-335-256.png' --extract --name='__GDF_THUMBNAIL' --raw ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft/Wow.exe'</code> |
| Name=Warcraft III: The Frozen Throne | |
| Categories=Game;AdventureGame;LogicGame;RolePlaying;StrategyGame | |
| Exec='/bin/sh' -c "cd ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III' && WINEPREFIX=~/'.wine/Warcraft III' wine ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Frozen Throne.exe' -opengl" | |
| Type=Application | |
| StartupNotify=true | |
| Icon=0128_Frozen Throne.0 | |
| StartupWMClass=war3.exe | |
| Actions=Kill;Notes; | |
| | |
| [Desktop Action Kill] | |
| Exec='/bin/sh' -c "WINEPREFIX=~/'.wine/Warcraft III' wineserver --kill" | |
| Name=Force-close Warcraft III | |
| | |
| [Desktop Action Notes] | |
| StartupNotify=false | |
| Exec=gio open 'https://wiki.realmofespionage.xyz/games;bsd;wine;warcraft_3' | |
| Name=Installation Notes | |
| | |
| # End</code> | |
| |
| ====== Quick Commands ====== | ====== Quick Commands ====== |
| **** | **** |
| |
| WINEPREFIX=~/'.wine/Warcraft III' winecfg | WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' winecfg |
| |
| ===== Winetricks ===== | ===== Winetricks ===== |
| **** | **** |
| |
| WINEPREFIX=~/'.wine/Warcraft III' winetricks | WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' winetricks |
| |
| ===== Registry Editor ===== | ===== Registry Editor ===== |
| **** | **** |
| |
| WINEPREFIX=~/'.wine/Warcraft III' regedit | WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' regedit |
| |
| ===== Kill ===== | ===== Kill ===== |
| |
| WINEPREFIX=~/'.wine/Warcraft III' wineserver --kill | **** |
| |
| killall -9 'wine.bin' | WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wineserver --kill |
| |
| ===== Execute ===== | ===== Execute ===== |
| |
| ==== Reign of Chaos ==== | * :!: Below WIP |
| |
| cd ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III' && WINEDEBUG='' WINEPREFIX=~/'.wine/Warcraft III' wine ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Warcraft III.exe' | ==== Wrath of the Lich King ==== |
| |
| <code>-opengl</code> | * ''-opengl'' |
| | * ''-console'' |
| |
| ==== The Frozen Throne ==== | cd ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft' && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wine ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft/Wow.exe' -opengl -console |
| |
| cd ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III' && WINEDEBUG='' WINEPREFIX=~/'.wine/Warcraft III' wine ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Frozen Throne.exe' | === Virtual Desktop === |
| |
| <code>-opengl</code> | * Virtual desktop window at 1280x720 |
| | * ''-opengl'' |
| | * ''-console'' |
| |
| ===== File Manager ===== | cd ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft' && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wine explorer /desktop='3.3.5','1280x720' ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft/Wow.exe' -console |
| |
| ==== Root ==== | ===== Root Folder ===== |
| |
| **** | **** |
| |
| gio open ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III' | gio open ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III' |
| |
| ==== Custom Maps ==== | |
| |
| **** | |
| |
| gio open ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Maps/Custom' | |
| |
| ==== Saved Games/Profiles ==== | |
| |
| **** | |
| |
| gio open ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Save' | |
| |
| ===== Move Downloaded Maps ===== | |
| |
| **** | |
| |
| mkdir -p ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Maps/Custom' && mv ~/'Downloads/'*'.w3m' ~/'Downloads/'*'.w3x' ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Maps/Custom' | |
| |
| ===== Copy Custom Maps ===== | |
| |
| **** | |
| |
| cp -R ~/'.wine/Warcraft III/drive_c/Program Files/Warcraft III/Maps/Custom' ~/'Downloads' | |
| |