Game marked as silver on
winehq.org.
Eve Online is a video game by CCP games. It is a player-driven, persistent-world MMORPG set in a science fiction space setting.
I posted code in simple code tag because "language=playonlinux" broke layout. I have no idea why.
[code language=playonlinux]#!/bin/bash
# Date : (2013-03-20)
# Last revision : (2013-03-20)
# Wine version used : 1.5.26
# Distribution used to test : Arch x86_64
# Licence : GPLv3
# PlayOnLinux : 4.1.9
# Author : l0ser140
POL_Wine_DelOverrideDLL()
{
# Delete override DLLs
cat << EOF > "$POL_USER_ROOT/tmp/del-override-dll.reg"
REGEDIT4
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]
EOF
while test "$1" != ""
do
echo "\\"$1\\"=-" >> "$POL_USER_ROOT/tmp/del-override-dll.reg"
shift
done
POL_Debug_Message "Deleting overrides DLLs"
POL_SetupWindow_wait_next_signal "Please wait" "$TITLE"
POL_Wine regedit "$POL_USER_ROOT/tmp/del-override-dll.reg"
}
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
PREFIX="EVEonline"
WINEVERSION="1.5.26"
TITLE="EVE online"
EDITOR="CCP games"
GAME_URL="http://www.eveonline.com"
AUTHOR="l0ser140"
GAME_VMS="128"
# Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
# Create Prefix
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
# Dependencies
POL_Call POL_Install_vcrun2008
# Overriding dlls
POL_Wine_DelOverrideDLL "*msvcr90"
POL_Wine_OverrideDLL "" "d3d11"
POL_Wine_OverrideDLL_App "launcher.exe" "native,builtin" "msvcr90"
POL_Wine_OverrideDLL_App "repair.exe" "native,builtin" "msvcr90"
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
POL_SetupWindow_message "$(eval_gettext 'Requires about 18Gb free space.\\n\\n
As well, an additional 5Gb in your /home/ folder if you will use online installer.\\n
Recommend using offline installer.')" "$TITLE"
# Installation
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
POL_SetupWindow_question "$(eval_gettext 'You want to open $TITLE download page in your browser?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]
then
POL_Browser "http://community.eveonline.com/download/?fallback=1&"
fi
POL_SetupWindow_browse "$(eval_gettext 'Please select $TITLE install file:')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
# Check latest EVE version to download it
POL_SetupWindow_wait "$(eval_gettext 'Checking latest version...')" "$TITLE"
check_one "wget" "wget"
check_one "sed" "sed"
POL_SetupWindow_missing
version=`wget -q -O - http://community.eveonline.com/download/ | sed -n 's;.*<a class="win" href="http://content\\.eveonline\\.com/\\([0-9]*\\)/.*">.*</a>.*;\\1;p'`
if [ -n "$version" ]
then
# Create temp folder
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
# Download online installer
POL_Download "http://content.eveonline.com/${version}/EVE_Online_Installer_${version}.exe"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/EVE_Online_Installer_${version}.exe"
POL_Wine_WaitExit "$TITLE"
POL_System_TmpDelete
else
POL_Debug_Fatal "Error while checking $TITLE version."
fi
fi
# Create symbolic link for settings
POL_SetupWindow_question "$(eval_gettext 'You want to create symbolic link for $TITLE settings in your /home/ folder?\\n(Recommend yes.)')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]
then
POL_SetupWindow_wait "$(eval_gettext 'Creating symlinks...')" "$TITLE"
ccp_path="${WINEPREFIX}/drive_c/users/${USER}/Local Settings/Application Data/CCP"
if [ ! -d "$HOME/EVE/settings" ]; then
mkdir -p "$HOME/EVE/settings"
fi
if [ -d "${ccp_path}/EVE" ]; then
mv "${ccp_path}/EVE" "${ccp_path}/EVE_old"
else
mkdir -p "$ccp_path"
fi
ln -s "$HOME/EVE/settings" "${ccp_path}/EVE"
fi
# Create Shortcuts
POL_Shortcut "eve.exe" "$TITLE"
POL_SetupWindow_message "$(eval_gettext "Known issues:\\n\\n1) Loading EULA on the first run can take a long (5min) time.\\n\\n2) The Captain's Quarters feature is broken for most (all?) users.\\nIf you crash after selecting a character try hitting escape at the login screen and disabling Captain's Quarters under the graphics selection.\\n(This feature is considered useless by most Eve Players.)")" "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')" "$TITLE"
POL_SetupWindow_Close
exit 0
[/code]
Edité par l0ser140