Call Of Duty 2

Informations

Creator Message
tef

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 163252
Wine: 1.6.2

Feedbacks

Source code

#!/bin/bash
# Date : (2009-09-11 13-00)
# Last revision : (2015-05-30 01-17)
# Wine version used : 1.6.2
# Author :
# updated: https://www.facebook.com/groups/LinuxandWindowsHelp
# Licence : Retail
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Call of Duty 2"
PREFIX="COD2"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Activision" "http://www.activision.com" "http://www.facebook.com/groups/LinuxandWindowsHelp" "$PREFIX"
 
POL_SetupWindow_message "$(eval_gettext 'Please insert $TITLE media into your disk drive.')"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
CHOSENWINEVERSION="1.6.2"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$CHOSENWINEVERSION"
 
#starting installation
POL_Wine_WaitBefore "$TITLE"
cd "$CDROM"
POL_Wine "setup.exe"
POL_Wine_WaitExit "$TITLE"

 
POL_Wine_Direct3D "Multisampling" "enabled"
POL_SetupWindow_VMS
 
cd  "$WINEPREFIX/drive_c/windows/temp/"
convert "$CDROM/Setup/rsrc/Art/cod4.ico" -geometry 32X32 "cod2.png"
cp "cod2-1.png" "$POL_USER_ROOT/icones/32/$TITLE Singleplayer"
cp "cod2-1.png" "$POL_USER_ROOT/icones/32/$TITLE Multiplayer"
 
#making shortcut
POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty 2/COD2SP_s.exe" "$TITLE Singleplayer"
POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty 2/CoD2MP_s.exe" "$TITLE Multiplayer"
 
POL_SetupWindow_message "$(eval_gettext 'Please note that this game has a copy protection system\nand sadly, it prevents Wine from running the game.\n\nPlayOnLinux will not provide any help concerning any illegal\nstuff.')" "Note about copy protection"
 
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dennis50300 Monday 21 September 2015 at 21:41
Dennis50300 Anonymous

Message

i have the DVD-Version.

The Installer copies all Data an then i have a black screen, the progress hang there up.

 

Ubuntu ist 15.04

 

Dennis

Replies

Danny-POL Saturday 30 May 2015 at 8:17
Danny-POL Anonymous

Information

This update has been approved by the team.

Message

The script you got does not work at all. below is a working script.  there is special installation instructions. this was done using Call Of Duty 2 6 disk set, if you have a DVD version it may be different. I did not know how to unmount and eject a drive from wine.  If using regular wine it is command # wine eject [-a]. Call of duty will not install using the disks. perhaps you guys can add an addition to your next playonlinux release. that enables you to unmount a disk from wine. I tried looking. I am new to playonlinux.

 

anyways here are the steps to follow. as i said this is for the 6 disk set, not the dvd version.

 

1-- load the script i provided, after the first disk has installed fully, and asks for disk 2. switch over to playonlinux console -> configure -> cod2 -> wine, and click kill processes, otherwise your system will lock up.

 

2-- open up each disk, and copy the contents in /Setup/Data/ into /Activison/Call Of Duty 2/, start with disk 6, and count back down to disk 1, copying all the files from the /Setup/Data

 

3-- Google search version 1.3 update patch that is in a zip file, not the original extractor, because it dont work. there may be ways of fixing it, i was unable too. and it may work good on the DVD version installer.

 

4-- you will need the no cd patch for single player, you will need to create your own shortcuts, click configure on the playonlinux console, click cod2, and then click create shortcut. set the video settings at 640x480. otherwise it will look like your playing in the matrix, try it, pretty trippy.  Enjoy!

 

 

Differences

@@ -21,8 +21,7 @@
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "setup.exe"
  
-LATESTVERSION="1.6.2"
-CHOSENWINEVERSION="$LATESTVERSION"
+CHOSENWINEVERSION="1.6.2"
  
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$CHOSENWINEVERSION"

New source code

#!/bin/bash
# Date : (2009-09-11 13-00)
# Last revision : (2015-05-30 01-17)
# Wine version used : 1.6.2
# Author :
# updated: https://www.facebook.com/groups/LinuxandWindowsHelp
# Licence : Retail
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Call of Duty 2"
PREFIX="COD2"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Activision" "http://www.activision.com" "http://www.facebook.com/groups/LinuxandWindowsHelp" "$PREFIX"
 
POL_SetupWindow_message "$(eval_gettext 'Please insert $TITLE media into your disk drive.')"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
CHOSENWINEVERSION="1.6.2"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$CHOSENWINEVERSION"
 
#starting installation
POL_Wine_WaitBefore "$TITLE"
cd "$CDROM"
POL_Wine "setup.exe"
POL_Wine_WaitExit "$TITLE"

 
POL_Wine_Direct3D "Multisampling" "enabled"
POL_SetupWindow_VMS
 
cd  "$WINEPREFIX/drive_c/windows/temp/"
convert "$CDROM/Setup/rsrc/Art/cod4.ico" -geometry 32X32 "cod2.png"
cp "cod2-1.png" "$POL_USER_ROOT/icones/32/$TITLE Singleplayer"
cp "cod2-1.png" "$POL_USER_ROOT/icones/32/$TITLE Multiplayer"
 
#making shortcut
POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty 2/COD2SP_s.exe" "$TITLE Singleplayer"
POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty 2/CoD2MP_s.exe" "$TITLE Multiplayer"
 
POL_SetupWindow_message "$(eval_gettext 'Please note that this game has a copy protection system\nand sadly, it prevents Wine from running the game.\n\nPlayOnLinux will not provide any help concerning any illegal\nstuff.')" "Note about copy protection"
 
POL_SetupWindow_Close
exit 0

Replies

Saturday 30 May 2015 at 12:51
I have accepted your script because the former one was _really_ up to date. Can you just avoid using convert please?
Saturday 30 May 2015 at 12:51
Thanks
Anonymous
Saturday 30 May 2015 at 14:24
Not following? Avoid using convert? Not sure what you mean.
Anonymous
Saturday 30 May 2015 at 14:26
oic for the logo? Yeah someone else did that, I was looking how someone else did it, I will stop using convert. On future scripts I write or redo, thank you.
Anonymous
Saturday 30 May 2015 at 14:29
Yes I will stop using convert, a logo is not that important anyways, even if it don't work. For multi disk installations I wish you guys would add a feature to unmount a cd drive with playonlinux from wine, during this installation wine smuggles the cd rom, and don't want to let go.
Anonymous
Saturday 30 May 2015 at 14:40
Thank you for approving it. It works great.
Anonymous
Wednesday 13 December 2017 at 7:40
don't work for me, setup makes Problems -.-
Anonymous
Thursday 14 December 2017 at 14:13
i got another way to install it :-)

Edited by Tinou