Installing Conquer Online 2.0 on Linux Ubuntu

04/14/2012 13:33 Angellinho#1
First of all get Conquer Online client : [Only registered and activated users can see links. Click Here To Register...]

Second thing, install Install Play On Linux (POL).
Open Terminal and write:
PHP Code:
sudo wget http://playonlinux.botux.net/playonlinux_hardy.list -O /etc/apt/sources.list.d/playonlinux.list
wget -q http://playonlinux.botux.net/pol.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt
-get install playonlinux 
Now copy the script below to your Documents folder:

PHP Code:
#!/bin/bash
if [ "$PLAYONLINUX"" ]
then
exit 0
fi
source 
"$PLAYONLINUX/lib/sources"

cfg_check

#Game and script presentation
presentation "Conquer Online" "TQ Digital" "http://co.91.com" "chain" "ConquerOnline"

# Preparing translations
en_co()
{
LNG_CO_PRES="Conquer Online is a Massive Multiplayer Online Role Playing Game (MMORPG). In Conquer, thousands of online players adventure together in an enormous, persistent game world, forming friendships, slaying monsters, engaging in quests, and role-playing their characters in the game world."
LNG_CO_PRES_TITLE="Game Announce"
LNG_CO_DOWNED="Choose already downloaded .exe or .zip installer"
LNG_CO_URL="Open link in default browser to download installer manually"
LNG_CO_HOWTO="Please, choose preferable mirror on the page that will be displayed and download the client.
Make sure its VERSION is NOT LOWER than v5022 or installation can FAIL"
LNG_CO_WAIT_END="Click on "Next" after downloading and then indicate where the installer has been stored"
LNG_CO_INSTALLER_QUESTION="Where is the installer?"
LNG_CO_INSTALLER_ERROR="You have to choose the proper file"
LNG_CO_DEFAULT="Please, use default directory 'C:\Program Files\Conquer 2.0' in windows installation dialog."
LNG_CO_WINE_DOWNLOAD="We have to download and prepare wine version 1.0~rc2
with the patch for animated cursor.
Thanx to H.Verbeet for patch"
LNG_WA_EXTRACT_WAIT="Please, wait for preparing wine installation"
LNG_CO_FONT_DOWNLOAD="We have to download Sim Sun font"
LNG_CO_WINE_EXISTS="Patched wine version installed successfully or already present"
LANG_CO_WINEFAILED="Sorry, patched wine installation not found or failed, you need to redownload wine package"
LANG_CO_LAST="Installation finished. Don't forget to register an account on site for playing.
ATTENTION:
You MUST hold ALT button during LOGIN and PASSWORD input or you'll be unable to connect.
To make your life easy you can check 'Remember' on logon screen"
LANG_CO_CANCEL="Script canceled"
LANG_CO_FIN="Finish"
}
fr_co()
{
LNG_CO_PRES="FRENCH! Conquer Online is a Massive Multiplayer Online Role Playing Game (MMORPG). In Conquer, thousands of online players adventure together in an enormous, persistent game world, forming friendships, slaying monsters, engaging in quests, and role-playing their characters in the game world."
LNG_CO_PRES_TITLE="Game Announce"
LNG_CO_DOWNED="Choose already downloaded .exe or .zip installer"
LNG_CO_URL="Open link in default browser to download installer manually"
LNG_CO_HOWTO="Please, choose preferable mirror on the page that will be displayed and download the client.
Make sure its VERSION is NOT LOWER than v5022 or installation can FAIL"
LNG_CO_WAIT_END="Click on "Next" after downloading and then indicate where the installer has been stored"
LNG_CO_INSTALLER_QUESTION="Where is the installer?"
LNG_CO_INSTALLER_ERROR="You have to choose the proper file"
LNG_CO_DEFAULT="Please, use default directory 'C:\Program Files\Conquer 2.0' in windows installation dialog."
LNG_CO_WINE_DOWNLOAD="We have to download and prepare wine version 1.0~rc2
with the patch for animated cursor.
Thanx to H.Verbeet for patch"
LNG_WA_EXTRACT_WAIT="Please, wait for preparing wine installation"
LNG_CO_FONT_DOWNLOAD="We have to download Sim Sun font"
LNG_CO_WINE_EXISTS="Patched wine version installed successfully or already present"
LANG_CO_WINEFAILED="Sorry, patched wine installation not found or failed, you need to redownload wine package"
LANG_CO_LAST="Installation finished. Don't forget to register an account on site for playing.
ATTENTION:
You MUST hold ALT button during LOGIN and PASSWORD input or you'll be unable to connect.
To make your life easy you can check 'Remember' on logon screen"
LANG_CO_CANCEL="Script canceled"
LANG_CO_FIN="Finish"
}

#define variables for wine version to easy change it later
# WINE_PACK_CO="1.0-rc2_ani.tar.gz"
# WINE_VER_CO="1.0-rc2_ani"
WINE_PACK_CO="wine-ani.tar.gz"
WINE_VER_CO="1.0~rc1.ani"
# define function to really cancel the script execution and remove tmp directories
cancel_co ()
{
if [ 
"$?" "1" ]
then
attention 
"$LANG_CO_CANCEL" "$LANG_CO_FIN0 0 0 "" "$LANG_CO_FIN"
rm $REPERTOIRE/tmp/ConquerOnline/ -r
rm $REPERTOIRE
/wineprefix/ConquerOnline -r
exit 0
fi
}

#define function to check proper installer
check_installer()
{
INSTALLER_PATH=$(select_file "$LNG_CO_INSTALLER_QUESTION" "" 3 11 1 )
cancel_co
#define variable for filename for easy script reading
FILE_NAME=$(basename "$INSTALLER_PATH")
#define variables that check picked filename for beginning string and for extension
GAME_NAME=$(expr "$FILE_NAME'\(Conquer\)')$(expr "$FILE_NAME'.*\(.exe\)')
ZIP_NAME=$(expr "$FILE_NAME'\(Conquer\)')$(expr "$FILE_NAME'.*\(.zip\)')
#message "$ZIP_NAME"
#first checking for .exe file, if not - call the function from the beginning,
#if .exe ok - check for zip, if ok - extract and change installer path for wine
if [ "$GAME_NAME!= "Conquer.exe" ]
then
if [ "$ZIP_NAME!= "Conquer.zip" ]
then
error 
"$LNG_CO_INSTALLER_ERROR" "" 0 0 1 "" ""
check_installer
else
run_and_wait "$LNG_EXTRACT_WAIT" "unzip $INSTALLER_PATH -d $REPERTOIRE/tmp/ConquerOnline/" "" 4 11 1
cancel_co
#so as we don't really know filename we will check temp directory for extracted .exe
INSTALLER_PATH="$(ls | grep .exe)"
fi
fi
}
# define function for checking if /WineVersions/1.0-rc2_ani exists in case of failed downloading
check_wine_co()
{
if [ ! -
"$REPERTOIRE/WineVersions/$WINE_VER_CO/usr/bin/wine" ]
then
message 
"$LANG_CO_WINEFAILED"
rm $REPERTOIRE/WineVersions/$WINE_VER_CO/ -r
download 
"$LNG_CO_WINE_DOWNLOAD" "http://switch.dl.sourceforge.net/sourceforge/djlrepository/$WINE_PACK_CO" "" 5 11 1
run_and_wait 
"$LNG_EXTRACT_WAIT" "tar -xvzf $WINE_PACK_CO" "" 6 11 1
cancel_co
cp 
-"$WINE_VER_CO$REPERTOIRE/WineVersions/
check_wine_co
else
message "$LNG_CO_WINE_EXISTS" "" 5 11
fi
}
#add fonts to registry
add_fonts()
{
echo 
"\"Arial\"=\"arial.ttf\"" >> $REPERTOIRE/tmp/ConquerOnline/fix.reg
echo "\"Courier New\"=\"cour.ttf\"" >> $REPERTOIRE/tmp/ConquerOnline/fix.reg
echo "\"Sim Sun\"=\"simsun.ttf\"" >> $REPERTOIRE/tmp/ConquerOnline/fix.reg
}

# change language
case "$POL_LANGin
"fr_FR.UTF-8")
fr_co
;;
"en_US.UTF-8")
en_co
;;
*)
en_co
;;
esac

#prepare clean directory
if [ -"$REPERTOIRE/tmp/ConquerOnline/" ]
then
rm $REPERTOIRE
/tmp/ConquerOnline/ -R
fi
mkdir 
-p $REPERTOIRE/tmp/ConquerOnline
cd $REPERTOIRE
/tmp/ConquerOnline/
#tell user about download options or proceed to downloading
message "$LNG_CO_PRES" "$LNG_CO_PRES_TITLE"
down=$(menu "" "$LNG_CO_DOWNED"~"$LNG_CO_URL" "" 1 11 1 "" "~")
cancel_co
if [ "$down== "$LNG_CO_URL]
then
message 
"$LNG_CO_HOWTO" "" 2 11
browser http
://co.91.com/downloads/client.shtml
message "$LNG_CO_WAIT_END"
fi
check_installer

#Downloading and installing wine with patch for animated cursors
#mkdir -p $REPERTOIRE/tmp/ConquerOnline
cd $REPERTOIRE/tmp/ConquerOnline/

#prepare patched wine
check_wine_co

#Prefix's creation
mkdir -p $REPERTOIRE/wineprefix/ConquerOnline/
select_prefix "$REPERTOIRE/wineprefix/ConquerOnline/"
polprefixcreate 7 11

#install game with patched wine
attention "$LNG_CO_DEFAULT" "" 8 11
Set_WineVersion_Session 
"$WINE_VER_CO"
cd $REPERTOIRE/tmp/ConquerOnline/
wine "$INSTALLER_PATH"

#download simsun font and fix Fonts prefix problem
if [ -"$REPERTOIRE/wineprefix/ConquerOnline/drive_c/windows/Fonts/" ]
then
rm $REPERTOIRE
/wineprefix/ConquerOnline/drive_c/windows/Fonts/ -R
fi
cd $REPERTOIRE
/wineprefix/ConquerOnline/drive_c/windows/
ln -s fonts Fonts

cd $REPERTOIRE
/tmp/ConquerOnline/
download "$LNG_CO_FONT_DOWNLOAD" "http://www.vietnamtourism.com/c_pages/font/simsun.ttf" "" 9 11 0
cp 
-f simsun.ttf $REPERTOIRE/wineprefix/ConquerOnline/drive_c/windows/Fonts/

#copy needed dll's from game directory
cp -f $REPERTOIRE/wineprefix/ConquerOnline/drive_c/ProgramFiles/Conquer2.0/mfc42.dll $REPERTOIRE/wineprefix/ConquerOnline/drive_c/windows/system32/
cp -f $REPERTOIRE/wineprefix/ConquerOnline/drive_c/ProgramFiles/Conquer2.0/msvcp60.dll $REPERTOIRE/wineprefix/ConquerOnline/drive_c/windows/system32/

# Apply Fix with dll's and fonts in menu
echo "[HKEY_CURRENT_USER\Software\Wine\DllOverrides]" $REPERTOIRE/tmp/ConquerOnline/fix.reg
echo "\"mfc42\"=\"native\"" >> $REPERTOIRE/tmp/ConquerOnline/fix.reg
echo "\"msvcp60\"=\"native\"" >> $REPERTOIRE/tmp/ConquerOnline/fix.reg
echo "[HKEY_CURRENT_CONFIG\Software\Fonts]" >> $REPERTOIRE/tmp/ConquerOnline/fix.reg
echo "\"LogPixels\"=dword:00000051" >> $REPERTOIRE/tmp/ConquerOnline/fix.reg
echo "[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Fonts]" >> $REPERTOIRE/tmp/ConquerOnline/fix.reg
add_fonts
echo "[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]" >> $REPERTOIRE/tmp/ConquerOnline/fix.reg
add_fonts
regedit $REPERTOIRE
/tmp/ConquerOnline/fix.reg

#change wine options, reboot and create launcher
Set_Desktop On 1024 768
simulate_reboot 10 11
cd $DESKTOP 
&& rm -"Conquer 2.0.lnk" "Conquer 2.0.desktop"
creer_lanceur "ConquerOnline" "Program Files/Conquer 2.0/" "play.exe" "ConquerOnline" "Conquer Online"
Set_WineVersion_Assign "$WINE_VER_CO" "Conquer Online"

#tell user about sign-in specific issues, clear temp and finish.
attention "$LANG_CO_LAST" "$LANG_CO_FIN11 11 0 "" "$LANG_CO_FIN"
rm $REPERTOIRE/tmp/ConquerOnline/ -R
exit 
Fourth thing, Run POL from Application>Games>Play On Linux
From Tools Menu > Run a Non-Official Script and paste the script below.

Fifth, browse for the script that u just saved from your Documents Folder.

NOTE: After installation, go to Tools Menu and install Direct X.

Chain2k credits.
Good Luck.
04/14/2012 13:38 Korvacs#2
This really needs putting in the guide section, not the private server guide section...
04/14/2012 13:51 Angellinho#3
Aren`t here Guides and Releases?
I tought it`s ok but if I think better it`s more related to Conquer Online 2.0 than Conquer Online private servers.
Yep, should be moved.
05/04/2012 17:20 claudiodj#4
Thanks :P
07/15/2012 01:36 kryptoniteX#5
wget -q [Only registered and activated users can see links. Click Here To Register...] -O- | sudo apt-key add -
gpg: no valid OpenPGP data found.
01/09/2014 14:52 Dark-Zero#6
it still works? any1 using?
03/23/2014 15:12 majick#7
Seems to be easier to get going on a pure debian system from my experience. Good luck
06/03/2014 11:10 allizzel777#8
Quote:
Originally Posted by Dark-Zero View Post
it still works? any1 using?
I am trying right now. I will update with info. How did your install go?

Didn't work for me. I am about to try Wine
06/04/2014 07:18 justmadeit96#9
thanks :) it works
07/04/2014 10:15 nevermind4o4#10
Quote:
Originally Posted by justmadeit96 View Post
thanks :) it works
How did u make it work? [Only registered and activated users can see links. Click Here To Register...] doesnt exist o.0
07/06/2014 16:36 variuseven#11
nice
08/10/2014 03:58 Silent-Death#12
right.. so..

In the PlayOnLinux gui from the ubuntu repositories, under Tools you say we should find an Install DirectX thing, but it`s not there, and after trying in both wine and POL to install some directx packages, and even all of them, I still get the "Your direct3d is not compatible with your blahblah" .. so.. any suggestions?
08/10/2014 06:25 Spirited#13
Have you tried Wine?
08/10/2014 15:12 Silent-Death#14
Quote:
Originally Posted by Spirited View Post
Have you tried Wine?
Quote:
Originally Posted by Silent-Death View Post
(..) and after trying in both wine and POL (...)
Yeah, I just feel like I`m missing something simple here. The game installs just fine in both wine and POL, and then I have to install the set of updates 5910-5935 manually (that also works fine) but when the Conquer interface wants to start I get that retarded picture in the middle of the screen that pops up right before the client and right there I get that Direct3D incompatibility error.

I tried running it as win xp/7/8 with dx 9/10/11 and even all dx installed in the same time, I get the same error.

I'm running a nvidia card and the intel graphic card, and I have this feeling that wine is using the intel one, specially because nvidia-prime works like crap so I`m using bumblebee for my Optimus needs.

I`ll just dig more into the man pages and see where that takes me.

Let me know if anyone else is experiencing anything of the sorts.
08/10/2014 19:33 Spirited#15
Do you have adobe flash installed? I mean, not exactly related to the issue, but that's the only other thing I can possibly think of at this moment.