Skip to content

Instantly share code, notes, and snippets.

@ErezBinyamin
Last active November 27, 2024 20:39
Show Gist options
  • Save ErezBinyamin/6199e8fe1388c0521d6398e380641cdf to your computer and use it in GitHub Desktop.
Save ErezBinyamin/6199e8fe1388c0521d6398e380641cdf to your computer and use it in GitHub Desktop.
Play Empire Earth in docker using wine
                                                                                                              .88888888:.
                                                                                                             88888888.88888.
                                                                                                           .8888888888888888.
                                                                                                           888888888888888888
                                                                                                           88' _`88'_  `88888
                                                                                                           88 88 88 88  88888
                                                                                                           88_88_::_88_:88888
                                                                                                           88:::,::,:::::8888
                                                                                                           88`:::::::::'`8888
                           EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 222222222222222                   .88  `::::'    8:88.
                           E::::::::::::::::::::EE::::::::::::::::::::E2:::::::::::::::22                8888            `8:888.
                           E::::::::::::::::::::EE::::::::::::::::::::E2::::::222222:::::2             .8888'             `888888.
                           EE::::::EEEEEEEEE::::EEE::::::EEEEEEEEE::::E2222222     2:::::2            .8888:..  .::.  ...:'8888888:.
                             E:::::E       EEEEEE  E:::::E       EEEEEE            2:::::2           .8888.'     :'     `'::`88:88888
                             E:::::E               E:::::E                         2:::::2          .8888        '         `.888:8888.
                             E::::::EEEEEEEEEE     E::::::EEEEEEEEEE            2222::::2          888:8         .           888:88888
                             E:::::::::::::::E     E:::::::::::::::E       22222::::::22         .888:88        .:           888:88888:
                             E:::::::::::::::E     E:::::::::::::::E     22::::::::222           8888888.       ::           88:888888
                             E::::::EEEEEEEEEE     E::::::EEEEEEEEEE    2:::::22222              `.::.888.      ::          .88888888
                             E:::::E               E:::::E             2:::::2                  .::::::.888.    ::         :::`8888'.:.
                             E:::::E       EEEEEE  E:::::E       EEEEEE2:::::2                 ::::::::::.888   '         .::::::::::::
                           EE::::::EEEEEEEE:::::EEE::::::EEEEEEEE:::::E2:::::2       222222    ::::::::::::.8    '      .:8::::::::::::.
                           E::::::::::::::::::::EE::::::::::::::::::::E2::::::2222222:::::2   .::::::::::::::.        .:888:::::::::::::
                           E::::::::::::::::::::EE::::::::::::::::::::E2::::::::::::::::::2   :::::::::::::::88:.__..:88888:::::::::::'
                           EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE22222222222222222222    `'.:::::::::::88888888888.88:::::::::'
                                                                                                     `':::_:' -- '' -'-' `':_::::'`
                                  INFO: Please answer all Questions correctly and enter  Password when asked! Press [ENTER]..

INFO: Please answer all Questions correctly and enter Password when asked! Press [ENTER].. press ENTER
Q: Is the newest "wine-staging" alredy installed? (y/n) Y
Q: Is it "/opt/wine-staging/bin/wine"? (y/n) Y
Q: Should EE2 run in default Wine-Prefix (NOT recommended)? (y/n) N
Q: Should Script use "/root/.PlayOnLinux/wineprefix/Games/" as Path (recommended)? (y/n) Y
GUI window install
Q: Is Empire Earth II alredy installed? (y/n) N
foo
Enter Path to Empire Earth II Setup (setup.exe): ./EE_Setup.exe GUI window Install for all users (reccomended) GUI window yes Q: Do you want to install Empire Earth II AOS now too? (y/n) Y Enter Path to Empire Earth II Setup (setup.exe): ./EE_Setup.exe

Play Empire Earth in docker using wine

Get docker-wine

# Download docker-wine script
wget 'https://raw.githubusercontent.com/scottyhardy/docker-wine/master/docker-wine'
chmod +x ./docker-wine

# Run docker-wine as root
./docker-wine --as-root bash

From inside the container

# Update container
apt-get update
apt-get install --install-recommends -y wine-staging winetricks

# Download EE_Setup.exe and EE2-Linux-Install script
wget "https://file5.gofile.io/download/direct/6ecaf080-a673-475e-ab57-cae6ddfcc272/EE_Setup.exe"
wget -N "https://patch.ee2.eu/patch15/linux/EE2-Linux-Install.bash"
chmod +x EE2-Linux-Install.bash
sed -i "s/sudo//g; s/-fR//g" ./EE2-Linux-Install.bash

# Run EE2-Linux-Install script
./EE2-Linux-Install.bash

# Run EE_Setup.exe
WINEPREFIX="$HOME/.PlayOnLinux/wineprefix/Games/" WINEARCH=win32 WINE="/opt/wine-staging/bin/wine" LIBGL_ALWAYS_SOFTWARE=1 /opt/wine-staging/bin/wine EE_Setup.exe

# Play the game
cd "/root/.PlayOnLinux/wineprefix/Games/drive_c/Program Files/Empire Earth/Empire Earth"
WINEPREFIX="$HOME/.PlayOnLinux/wineprefix/Games/" WINEARCH=win32 WINE="/opt/wine-staging/bin/wine" LIBGL_ALWAYS_SOFTWARE=1 wine "./Empire Earth.exe"
@ErezBinyamin
Copy link
Author

Game settings

I've found that performance optimized game-play settings along with no autosaving helps wine to crash less

EE_Settings_Interface
EE_Settings_Video

@ErezBinyamin
Copy link
Author

ErezBinyamin commented Mar 26, 2024

Installation instructions for the interactive running of EE2-Linux-Install script

./EE2-Linux-Install.bash

                                                                                   .88888888:.
                                                                                  88888888.88888.
                                                                                .8888888888888888.
                                                                                888888888888888888
                                                                                88' _`88'_  `88888
                                                                                88 88 88 88  88888
                                                                                88_88_::_88_:88888
                                                                                88:::,::,:::::8888
                                                                                88`:::::::::'`8888
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 222222222222222                   .88  `::::'    8:88.
E::::::::::::::::::::EE::::::::::::::::::::E2:::::::::::::::22                8888            `8:888.
E::::::::::::::::::::EE::::::::::::::::::::E2::::::222222:::::2             .8888'             `888888.
EE::::::EEEEEEEEE::::EEE::::::EEEEEEEEE::::E2222222     2:::::2            .8888:..  .::.  ...:'8888888:.
  E:::::E       EEEEEE  E:::::E       EEEEEE            2:::::2           .8888.'     :'     `'::`88:88888
  E:::::E               E:::::E                         2:::::2          .8888        '         `.888:8888.
  E::::::EEEEEEEEEE     E::::::EEEEEEEEEE            2222::::2          888:8         .           888:88888
  E:::::::::::::::E     E:::::::::::::::E       22222::::::22         .888:88        .:           888:88888:
  E:::::::::::::::E     E:::::::::::::::E     22::::::::222           8888888.       ::           88:888888
  E::::::EEEEEEEEEE     E::::::EEEEEEEEEE    2:::::22222              `.::.888.      ::          .88888888
  E:::::E               E:::::E             2:::::2                  .::::::.888.    ::         :::`8888'.:.
  E:::::E       EEEEEE  E:::::E       EEEEEE2:::::2                 ::::::::::.888   '         .::::::::::::
EE::::::EEEEEEEE:::::EEE::::::EEEEEEEE:::::E2:::::2       222222    ::::::::::::.8    '      .:8::::::::::::.
E::::::::::::::::::::EE::::::::::::::::::::E2::::::2222222:::::2   .::::::::::::::.        .:888:::::::::::::
E::::::::::::::::::::EE::::::::::::::::::::E2::::::::::::::::::2   :::::::::::::::88:.__..:88888:::::::::::'
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE22222222222222222222    `'.:::::::::::88888888888.88:::::::::'
                                                                          `':::_:' -- '' -'-' `':_::::'`

PROMPT: INFO: Please answer all Questions correctly and enter Password when asked! Press [ENTER]..
USER: ENTER
PROMPT: Q: Is the newest "wine-staging" alredy installed? (y/n) n
USER: n
PROMPT: Then let's install it! (enter)
USER: ENTER

PROMPT: INFO: 'wine-staging' is installed now!
Q: Should EE2 run in default Wine-Prefix (NOT recommended)? (y/n) n
USER: n
PROMPT: Q: Should Script use "/root/.PlayOnLinux/wineprefix/Games/" as Path (recommended)? (y/n) y
USER: y

See Wine Mono Installer image below

USER: Click install on the Wine Mono Installer window

PROMPT: Q: Is Empire Earth II alredy installed? (y/n) n
USER: n
PROMPT: Q: Do you want to install Empire Earth II now? (y/n) y
USER: y
PROMPT: Enter Path to Empire Earth II Setup (setup.exe): EE_Setup.exe
USER: EE_Setup.exe

See EE_Setup.exe Installer image below

Click Install for all users (recommended)

Q: Do you want to install Empire Earth II AOS now too? (y/n) n
USER: n
Q: Install DirectX 9 libraries which are required for experimental DirectX 9 Support in Unofficial Patch 1.5? (y/n) y
USER: y

@ErezBinyamin
Copy link
Author

Wine Mono Installer image

WineMonoInstaller

EE_Setup.exe Installer image

EE_Setup_Install

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