====== Information ======
* World of Warcraft: Wrath of the Lich King ((https://web.archive.org/web/20200911184050/https://www.blizzard.com/en-us/games/wrath/))
* Patch 3.3.5a
===== Prerequisites =====
* [[bsd;freebsd_14.1_xfce|FreeBSD 14.1 (Xfce)]]
* [[bsd;notes;wine|Wine]]
===== Notes =====
* :!: This is for private server use
* See [[servers;bsd;games;trinitycore_3.3.5_localhost|TrinityCore 3.3.5 localhost]] to set-up a local server
====== Install ======
===== World of Warcraft =====
* [[https://wowdl.net/client/3.3.5a-win-us|World-of-Warcraft-3.3.5a.12340-enUS.zip]]
mkdir -p ~/'.wine' && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' WINEARCH='win32' wineboot && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' winetricks 'winxp' && sync
md5sum ~/'Downloads/World-of-Warcraft-3.3.5a.12340-enUS.zip' | grep 'ab8284d28a063e8594d03636fbe28dc7' && unzip -q -d ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files' ~/'Downloads/World-of-Warcraft-3.3.5a.12340-enUS.zip' && sync
====== Settings ======
===== Game =====
* :!: Start WoW at least once prior to editing
mousepad ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/WTF/Config.wtf'
SET environmentDetail "2"
SET violenceLevel "5"
SET SmallCull "0"
SET spellEffectLevel "250"
SET basemip "0"
SET SkyCloudLOD "3"
SET componentCompress "0"
===== realmlist.wtf =====
echo 'set realmlist localhost' | tee ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Data/'*'/realmlist.wtf'
ee ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Data/'*'/realmlist.wtf'
===== Macros =====
==== Hide Time/Clock ====
* https://us.forums.blizzard.com/en/wow/t/hide-clock-on-df-minimap/1685525/2
* Hides the time on the minimap along with the hiding the time being shown on Calendar-button hover
* :!: Interface -> Display -> [x] Show Clock needs to be enabled in order for this macro to hide both it and the Calendar hover ((it doesn't run/hide the calendar hover otherwise))
/run TimeManagerClockButton:Hide() TimeManagerClockButton:HookScript("OnShow", function(self) self:Hide() end) GameTimeFrame:HookScript("OnEnter", function() GameTooltip:SetOwner(UIParent) end)
====== Desktop Launcher ======
===== 3.3.5 =====
* Server and Saves actions requires [[servers;bsd;games;trinitycore_3.3.5_localhost|TrinityCore 3.3.5 localhost]]
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' && update-desktop-database --quiet ~/'.local/share/applications'
[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 3.3.5a.12340'*'/' && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wine ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Wow.exe' -opengl"
Type=Application
StartupNotify=true
StartupWMClass=wow.exe
Icon=WBE5_Wow.0
Actions=Kill;Server;Saves;Notes;
[Desktop Action Kill]
Exec='/bin/sh' -c "WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wineserver --kill"
Name=Force-close WoW 3.3.5
[Desktop Action Server]
StartupNotify=false
Exec='/bin/sh' -c "~/'Projects/trinity-335/scripts/tc-335-server-start.sh'"
Name=Launch Local Server
[Desktop Action Saves]
StartupNotify=false
Exec='/bin/sh' -c "xfce4-terminal --title='WoW 3.3.5 localhost Database Back-up' -e ~/'Projects/trinity-335/scripts/tc-335-save-backup.sh'"
Name=Local Server Databases Back-up
[Desktop Action Notes]
StartupNotify=false
Exec=gio open 'https://wiki.realmofespionage.xyz/games;bsd;wine;world_of_warcraft_3.3.5'
Name=Installation Notes
# End
==== Icon ====
* ''wrestool''
mkdir -p ~/'.local/share/icons/hicolor/48x48/apps' && cd ~/'.local/share/icons/hicolor/48x48/apps' && wrestool --output='WBE5_Wow.0.png' --extract --name='101' ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Wow.exe' && cd ~
====== Quick Commands ======
===== Winecfg =====
****
WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' winecfg
===== Winetricks =====
****
WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' winetricks
===== Registry Editor =====
****
WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' regedit
===== Kill =====
WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wineserver --kill
killall -9 'wine.bin'
===== Reset =====
****
rm -Rf ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Cache' ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Cameras' ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Logs' ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Interface' ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/WTF' && sync
===== Execute =====
==== Wrath of the Lich King ====
* ''-opengl''
cd ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/' && WINEDEBUG='' WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wine ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Wow.exe' -opengl
=== Virtual Desktop ===
* Virtual desktop window at 1280x720
* ''-opengl''
cd ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/' && 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 3.3.5a.12340'*'/Wow.exe' -opengl
==== Specific Graphics APIs ====
=== D3D9 ===
* Default when no API is specified on command-line nor ''Config.wtf''
-d3d9
cd ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/' && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wine ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Wow.exe' -d3d9
cat ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Logs/gx.log' | grep 'CGxDeviceD3d'
gio open ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Logs/gx.log'
=== D3D9Ex ===
* [[https://web.archive.org/web/20100212202408/http://forums.worldofwarcraft.com/thread.html?topicId=21723843232&sid=1|3.3.0 - d3d9ex mode, ATI, and 134 crashes]]
* :?: This may be more ideal for Vsync, certain compositors, G-SYNC/FreeSync, remote streaming, or ''gamescope''
-d3d9ex
cd ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/' && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wine ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Wow.exe' -d3d9ex
cat ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Logs/gx.log' | grep 'CGxDeviceD3d9Ex'
gio open ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Logs/gx.log'
=== OpenGL ===
* Disables the in-game Video -> ''Hardware Cursor'' option
* Limits ''Shadow Quality'' to blobs and no dynamic options
-opengl
cd ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/' && WINEPREFIX=~/'.wine/World of Warcraft 3.3.5' wine ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Wow.exe' -opengl
cat ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Logs/gx.log' | grep 'CGxDeviceOpenGl'
gio open ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Logs/gx.log'
===== File Manager =====
==== Root ====
****
gio open ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/'
==== Addons ====
****
gio open ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Interface/AddOns'
===== Copy Addons =====
****
cp -R ~/'.wine/World of Warcraft 3.3.5/drive_c/Program Files/World of Warcraft 3.3.5a.12340'*'/Interface/AddOns' ~/'Downloads'