El Foro

[script] EverQuest II

Autor Respuestas
Benj Sunday 27 June 2010 at 0:12
BenjAnonymous

Could somebody please look over this script that installs EverQuest II?
#!/bin/bash
# Date : (2010-06-25 16-00)
# Last Revision : (2010-06-26 18-00)
# Wine version used : 1.1.18
# Distribution used to test : Ubuntu 10.04
# Author : Benj
# License : Retail
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"

cd "$REPERTOIRE/tmp/eq2"
wget "$SITE/setups/eq2/*.jpg"
cp "$REPERTOIRE/tmp/eq2/top.jpg" "$HOME/.local/share/icons/eq2.jpg"

POL_SetupWindow_Init "$REPERTOIRE/tmp/eq2/top.jpg" "$REPERTOIRE/tmp/eq2/left.jpg"
POL_SetupWindow_presentation "EverQuest II" "Sony Online Entertainment" "http://everquest2.com/" "Benj" "everquest2"

select_prefix "$REPERTOIRE/wineprefix/everquest2"
POL_SetupWindow_prefixcreate

POL_SetupWindow_install_wine "1.1.18"

POL_SetupWindow_menu "Which version of EverQuest II would you like to install?" "Select a version" "Trial~Full (Existing Players Only)~Full Disc Installation (DVD/CD)" "~"
	
if [ "$APP_ANSWER" == "Trial" ]then
	URL="http://download.station.sony.com/patch/download/eq2/EQ2trialinstaller.exe"
	APPLICATION="$REPERTOIRE/tmp/eq2/EQ2trialinstaller.exe"
	DOWNLOAD="TRUE"
elif [ "$APP_ANSWER" == "Full (Existing Players Only)" ]
then
	URL="http://download.station.sony.com/patch/download/eq2/eq2-us.zip"
	EXTRACT="TRUE"
	APPLICATION="$REPERTOIRE/tmp/eq2/EQ2.exe"
	DOWNLOAD="TRUE"
else
	POL_SetupWindow_cdrom
	POL_SetupWindow_check_cdrom "eq2.ico"
	APPLICATION="$CDROM/setup.exe"
fi

if [ "$DOWNLOAD" == "TRUE" ]
then	
	cd "$REPERTOIRE/tmp/eq2"	
	POL_SetupWindow_download "Downloading EverQuest II..." "Downloading" "$URL"
fi

if [ "$EXTRACT" == "TRUE" ]
then
	POL_SetupWindow_wait_next_signal "Extracting EverQuest II..." "Extracting"
	cd "$REPERTOIRE/tmp/eq2"		
	unzip "eq2-us.zip"
	POL_SetupWindow_detect_exit
fi

# Warns user about possible errors that break shortcuts.
POL_SetupWindow_message_image "Do not have the installer set up the shortcuts!\\nThis will cause EverQuest II to break when launched.\\nProper shortcuts will be set up later.\\n\\nPlease install EverQuest II into C:\\Program Files\\Sony\\EverQuest II.\\nOther directories will remove the shortcuts to EverQuest II.\\n\\nDo not install DirectX through the installer.\\nInstead, use the premade PlayOnLinux script after installation." "Warning!" "$PLAYONLINUX/themes/tango/warning.png"

POL_SetupWindow_wait_next_signal "Installing EverQuest II..." "Installation"
wine "$APPLICATION"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "Press Forward when installation is complete." "Installation Complete"

POL_SetupWindow_make_shortcut "everquest2" "Program Files/Sony/EverQuest II" "eq2.exe" "$HOME/.local/share/icons/eq2.jpg" "EverQuest II"

POL_SetupWindow_wait_next_signal "Configuring Wine..." "Configuration"
Set_Managed "On"
Set_Iexplore
Set_GLSL "On"
Set_WineVersion_Assign "1.1.18" "EverQuest II"

cd "$REPERTOIRE/tmp/eq2"
cat << _EOF_ > eq2.reg
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
\\"DirectDrawRenderer\\"=\\"opengl\\"
\\"OffScreenRenderingMode\\"=\\"fbo\\"
\\"PixelShaderMode\\"=\\"enabled\\"
\\"RenderTargetLockMode\\"=\\"texdraw\\"
_EOF_
regedit "$REPERTOIRE/tmp/eq2/eq2.reg"

POL_SetupWindow_detect_exit

POL_SetupWindow_message "EverQuest II is successfully installed.\\nIf the game doesn't work correctly, please follow the howto at\\nhttp://appdb.winehq.org/objectManager.php?sClass=version&iId=20511" "Congratulations!"

POL_SetupWindow_Close
exit
kdriden Wednesday 11 January 2012 at 3:04
kdridenAnonymous

This is no longer useful as is.
Current Wine app db is http://appdb.winehq.org/objectManager.php?sClass=version&iId=20873
Respectfully request that someone rework to functional.
Best Regards, dede
Benj Thursday 23 May 2013 at 21:44
BenjAnonymous

I'm in the process of rewriting this script as it is indeed very old. Is there any preference between the Streaming Client or the Full Install? The Streaming Client only downloads what is immediately needed, which creates longer zoning times but a faster install. The Full Install downloads everything before allowing you to play the game, which speeds up loading times in game.

The official link on their homepage is the Streaming Client but the Full Install is still offered and supported at the URL on the AppDB page.
Ronin DUSETTE Thursday 23 May 2013 at 21:48
Ronin DUSETTE

I would say that a Full Install is the best way. Streaming could open up a whole can of worms.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts