Call of Duty: World at War

Informations

Creator Message
Danny-POL Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 4547
Wine: 3.0.3

Feedbacks

Description

First-person shooter video game (2008). Wikipedia.

To fix several issues with Wine, patching the game to v1.4 minimum is recommended (mainly for the sound).

Appdb.winehq.org  . PCGamingWiki

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2015-05-30 10-00)
# Last revision : see Changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 18.04 x64 (IGP: AMD Vega 11, driver: radeon)
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Media used: retail french DVD v1.0 (folders date: 2008-10-17)
#
# Middlewares used by this software : DirectX 9.0c
#
# CHANGELOG:
# [Danny-POL] (2015-05-30 10-00)
#   Initial script.
# [Dadu042] (2019-06-02 14-05)
#   Standardize.
#   Wine 1.7.7 -> 1.9.24
# [Dadu042] (2020-01-29)
#   Wine 1.9.24 -> 3.0.3
#   Fix POL_Shortcut
# [Dadu042] (2020-06-19)
#   Improvements (can install patch)
#
# KNOWN ISSUES :
#  - Wine x86 4.21, 5.0.1, 5.10 (without any DirectX 9 installed): crash as soon as launched (after the window 'Optimize settings' that appear after 'Do you want to start in safe mode ?'). Tried: d3dx9_43 + compiler, DXVK_161, d3dx9. Fix: patch game from v1.0 to v1.2
#  - Wine x86 5.0.1 (without: any DirectX 9 installed, Alsa): crash as soon as launched (after the game splash window, then the window asking 'safe mode' appears, then the game does crash). Fix: patch v1.2
#  - Wine x86 5.0.1 + patch v1.3: same crash as above. Tried: xact, dsound, directmusic, quartz
#  - Wine x86 5.0.1 + patch v1.3: same crash as above. Tried: NoCD. Fix: Wine 4.0.4 (but then the game run with only the background sound).

#  - Wine x86 4.0.4, 5.0.1 (without any DirectX 9 installed): no sound nor music. Tried: xact, quartz, patch 1.2, Alsa. Fix: game patch v1.4.
#  - Wine x86 4.0.4 + patch v1.3: game run fine, but the sound and music are missing, there is only the background sound (sea, insects, fire). Tried: registry patch, directx9, registry patch, xact. Tried (with a clean backup): Wine 4.11 (worse: crash), 4.14 (blinking), 5.10 (black window when launched), 3.20 (graphisms Ok, sounds missing).

#  - Wine x86 5.0.1 + Alsa + patch v1.2->1.4 (without any DirectX 9 installed): all the people become invisible ! (and the weapons), after ~30 seconds the game does crash. Same with patch v1.3, tried d3dx9_43 + compiler
#  - Wine x86 4.21 + patch v1.3: same issue as above (invisible people)

#
# KNOWN ISSUES (FIXED) :
#  - Wine x86 2.22, 3.0.3 (without any DirectX 9 installed): first mission (Semper Fi), some 3D polygons are blinking for some seconds then the game does crash (this issue does not occurs on a IGP Intel HD 4000. My IGP is AMD Vega 11). Fix: Wine 4.0.4, and Wine 5.0.1 + patch v1.2


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Call of Duty: World at War"
PREFIX="CoDWaW"
WORKING_WINE_VERSION="3.0.3"
AUTHOR="Danny-POL"
EDITOR="Activison"
GAME_URL="https://en.wikipedia.org/wiki/Call_of_Duty:_World_at_War"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Call POL_Function_NoCDWarning
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
 
Set_OS "win7"

#############################################
#  Sound problem fix - pulseaudio related   #
#############################################
# [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
# [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix
 
################
# GPU settings #
################

POL_SetupWindow_VMS "256"
 
POL_Install_VideoDriver
 
POL_Wine_Direct3D "Multisampling" "enabled"

###############
# Go          #
###############
 
POL_SetupWindow_InstallMethod "LOCAL,DVD"
 
# POL_SetupWindow_message "Note: at the end of the installation, DO NOT install DirectX when asked."
 
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi
 
# making shortcut
POL_Shortcut "CoDWaW.exe" "$TITLE - Singleplayer" "" "" "Game;Shooter;"
POL_Shortcut_Document "$TITLE - Singleplayer" "help.htm"

POL_Shortcut "CoDWaWmp.exe" "$TITLE - Multiplayer" "" "" "Game;Shooter;"

################
# Patch update #
################

POL_SetupWindow_menu "$(eval_gettext 'Do you have a official patch-update to install ?')" "$TITLE" "$(eval_gettext 'No')~$(eval_gettext 'Yes')" "~"      
          
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .EXE file to run')" "$TITLE"
        PATCH_EXE="$APP_ANSWER"
        POL_Wine start /unix "$PATCH_EXE"
        POL_Wine_WaitExit "$PATCH_EXE"
fi

################################################
# Custom patch if user gets no sound nor music #
################################################

# See 'Notes' at: https://appdb.winehq.org/objectManager.php?sClass=version&iId=14475

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 21 June 2020 at 9:46
Dadu042

Information

This update has been approved by the team.

Differences

@@ -2,13 +2,15 @@
 # Date : (2015-05-30 10-00)
 # Last revision : see Changelog
 # Wine version used : see below
-# Distribution used to test : Ubuntu 18.04 x64
+# Distribution used to test : XUbuntu 18.04 x64 (IGP: AMD Vega 11, driver: radeon)
 # Script licence : GPL3
 # Program licence : Retail
 #
 # Playonlinux version used : 4.3.4
 #
-# Media used: ?
+# Media used: retail french DVD v1.0 (folders date: 2008-10-17)
+#
+# Middlewares used by this software : DirectX 9.0c
 #
 # CHANGELOG:
 # [Danny-POL] (2015-05-30 10-00)
@@ -19,53 +21,75 @@
 # [Dadu042] (2020-01-29)
 #   Wine 1.9.24 -> 3.0.3
 #   Fix POL_Shortcut
+# [Dadu042] (2020-06-19)
+#   Improvements (can install patch)
+#
+# KNOWN ISSUES :
+#  - Wine x86 4.21, 5.0.1, 5.10 (without any DirectX 9 installed): crash as soon as launched (after the window 'Optimize settings' that appear after 'Do you want to start in safe mode ?'). Tried: d3dx9_43 + compiler, DXVK_161, d3dx9. Fix: patch game from v1.0 to v1.2
+#  - Wine x86 5.0.1 (without: any DirectX 9 installed, Alsa): crash as soon as launched (after the game splash window, then the window asking 'safe mode' appears, then the game does crash). Fix: patch v1.2
+#  - Wine x86 5.0.1 + patch v1.3: same crash as above. Tried: xact, dsound, directmusic, quartz
+#  - Wine x86 5.0.1 + patch v1.3: same crash as above. Tried: NoCD. Fix: Wine 4.0.4 (but then the game run with only the background sound).
+
+#  - Wine x86 4.0.4, 5.0.1 (without any DirectX 9 installed): no sound nor music. Tried: xact, quartz, patch 1.2, Alsa. Fix: game patch v1.4.
+#  - Wine x86 4.0.4 + patch v1.3: game run fine, but the sound and music are missing, there is only the background sound (sea, insects, fire). Tried: registry patch, directx9, registry patch, xact. Tried (with a clean backup): Wine 4.11 (worse: crash), 4.14 (blinking), 5.10 (black window when launched), 3.20 (graphisms Ok, sounds missing).
+
+#  - Wine x86 5.0.1 + Alsa + patch v1.2->1.4 (without any DirectX 9 installed): all the people become invisible ! (and the weapons), after ~30 seconds the game does crash. Same with patch v1.3, tried d3dx9_43 + compiler
+#  - Wine x86 4.21 + patch v1.3: same issue as above (invisible people)
+
 #
-# KNOWN ISSUES:
-# None.
+# KNOWN ISSUES (FIXED) :
+#  - Wine x86 2.22, 3.0.3 (without any DirectX 9 installed): first mission (Semper Fi), some 3D polygons are blinking for some seconds then the game does crash (this issue does not occurs on a IGP Intel HD 4000. My IGP is AMD Vega 11). Fix: Wine 4.0.4, and Wine 5.0.1 + patch v1.2
+
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-   
+    
 TITLE="Call of Duty: World at War"
 PREFIX="CoDWaW"
 WORKING_WINE_VERSION="3.0.3"
 AUTHOR="Danny-POL"
 EDITOR="Activison"
 GAME_URL="https://en.wikipedia.org/wiki/Call_of_Duty:_World_at_War"
-
+ 
 POL_SetupWindow_Init
 POL_Debug_Init
-
+ 
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+ 
 POL_Call POL_Function_NoCDWarning
-
+ 
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 POL_System_TmpCreate "$TITLE"
-
+ 
 Set_OS "win7"
 
+#############################################
+#  Sound problem fix - pulseaudio related   #
+#############################################
+# [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
+# [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
+## End Fix
+ 
 ################
 # GPU settings #
 ################
 
-# Really indispensable ? (Dadu042)
 POL_SetupWindow_VMS "256"
-
-POL_Call POL_Install_VideoDriver
-
+ 
+POL_Install_VideoDriver
+ 
 POL_Wine_Direct3D "Multisampling" "enabled"
 
 ###############
 # Go          #
 ###############
-
-POL_SetupWindow_InstallMethod "LOCAL,CD"
-
-# POL_SetupWindow_message "Note: at the end of the installation, DO NOT install DirectX when asked."
-
+ 
+POL_SetupWindow_InstallMethod "LOCAL,DVD"
+ 
+# POL_SetupWindow_message "Note: at the end of the installation, DO NOT install DirectX when asked."
+ 
 if [ "$INSTALL_METHOD" == "LOCAL" ]; then
         cd "$HOME"
         POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
@@ -80,10 +104,31 @@
         POL_Wine_WaitExit "setup.exe"
         cd "$POL_System_TmpDir"
 fi
+ 
+# making shortcut
+POL_Shortcut "CoDWaW.exe" "$TITLE - Singleplayer" "" "" "Game;Shooter;"
+POL_Shortcut_Document "$TITLE - Singleplayer" "help.htm"
+
+POL_Shortcut "CoDWaWmp.exe" "$TITLE - Multiplayer" "" "" "Game;Shooter;"
+
+################
+# Patch update #
+################
+
+POL_SetupWindow_menu "$(eval_gettext 'Do you have a official patch-update to install ?')" "$TITLE" "$(eval_gettext 'No')~$(eval_gettext 'Yes')" "~"      
+          
+if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the .EXE file to run')" "$TITLE"
+        PATCH_EXE="$APP_ANSWER"
+        POL_Wine start /unix "$PATCH_EXE"
+        POL_Wine_WaitExit "$PATCH_EXE"
+fi
+
+################################################
+# Custom patch if user gets no sound nor music #
+################################################
 
-#making shortcut
-POL_Shortcut "CoDWaW.exe" "$TITLE - Singleplayer" "" "" "Game;"
-POL_Shortcut "CoDWaWmp.exe" "$TITLE - Multiplayer" "" "" "Game;"
+# See 'Notes' at: https://appdb.winehq.org/objectManager.php?sClass=version&iId=14475
 
 POL_System_TmpDelete
 POL_SetupWindow_Close

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2015-05-30 10-00)
# Last revision : see Changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 18.04 x64 (IGP: AMD Vega 11, driver: radeon)
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Media used: retail french DVD v1.0 (folders date: 2008-10-17)
#
# Middlewares used by this software : DirectX 9.0c
#
# CHANGELOG:
# [Danny-POL] (2015-05-30 10-00)
#   Initial script.
# [Dadu042] (2019-06-02 14-05)
#   Standardize.
#   Wine 1.7.7 -> 1.9.24
# [Dadu042] (2020-01-29)
#   Wine 1.9.24 -> 3.0.3
#   Fix POL_Shortcut
# [Dadu042] (2020-06-19)
#   Improvements (can install patch)
#
# KNOWN ISSUES :
#  - Wine x86 4.21, 5.0.1, 5.10 (without any DirectX 9 installed): crash as soon as launched (after the window 'Optimize settings' that appear after 'Do you want to start in safe mode ?'). Tried: d3dx9_43 + compiler, DXVK_161, d3dx9. Fix: patch game from v1.0 to v1.2
#  - Wine x86 5.0.1 (without: any DirectX 9 installed, Alsa): crash as soon as launched (after the game splash window, then the window asking 'safe mode' appears, then the game does crash). Fix: patch v1.2
#  - Wine x86 5.0.1 + patch v1.3: same crash as above. Tried: xact, dsound, directmusic, quartz
#  - Wine x86 5.0.1 + patch v1.3: same crash as above. Tried: NoCD. Fix: Wine 4.0.4 (but then the game run with only the background sound).

#  - Wine x86 4.0.4, 5.0.1 (without any DirectX 9 installed): no sound nor music. Tried: xact, quartz, patch 1.2, Alsa. Fix: game patch v1.4.
#  - Wine x86 4.0.4 + patch v1.3: game run fine, but the sound and music are missing, there is only the background sound (sea, insects, fire). Tried: registry patch, directx9, registry patch, xact. Tried (with a clean backup): Wine 4.11 (worse: crash), 4.14 (blinking), 5.10 (black window when launched), 3.20 (graphisms Ok, sounds missing).

#  - Wine x86 5.0.1 + Alsa + patch v1.2->1.4 (without any DirectX 9 installed): all the people become invisible ! (and the weapons), after ~30 seconds the game does crash. Same with patch v1.3, tried d3dx9_43 + compiler
#  - Wine x86 4.21 + patch v1.3: same issue as above (invisible people)

#
# KNOWN ISSUES (FIXED) :
#  - Wine x86 2.22, 3.0.3 (without any DirectX 9 installed): first mission (Semper Fi), some 3D polygons are blinking for some seconds then the game does crash (this issue does not occurs on a IGP Intel HD 4000. My IGP is AMD Vega 11). Fix: Wine 4.0.4, and Wine 5.0.1 + patch v1.2


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Call of Duty: World at War"
PREFIX="CoDWaW"
WORKING_WINE_VERSION="3.0.3"
AUTHOR="Danny-POL"
EDITOR="Activison"
GAME_URL="https://en.wikipedia.org/wiki/Call_of_Duty:_World_at_War"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Call POL_Function_NoCDWarning
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
 
Set_OS "win7"

#############################################
#  Sound problem fix - pulseaudio related   #
#############################################
# [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
# [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix
 
################
# GPU settings #
################

POL_SetupWindow_VMS "256"
 
POL_Install_VideoDriver
 
POL_Wine_Direct3D "Multisampling" "enabled"

###############
# Go          #
###############
 
POL_SetupWindow_InstallMethod "LOCAL,DVD"
 
# POL_SetupWindow_message "Note: at the end of the installation, DO NOT install DirectX when asked."
 
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi
 
# making shortcut
POL_Shortcut "CoDWaW.exe" "$TITLE - Singleplayer" "" "" "Game;Shooter;"
POL_Shortcut_Document "$TITLE - Singleplayer" "help.htm"

POL_Shortcut "CoDWaWmp.exe" "$TITLE - Multiplayer" "" "" "Game;Shooter;"

################
# Patch update #
################

POL_SetupWindow_menu "$(eval_gettext 'Do you have a official patch-update to install ?')" "$TITLE" "$(eval_gettext 'No')~$(eval_gettext 'Yes')" "~"      
          
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .EXE file to run')" "$TITLE"
        PATCH_EXE="$APP_ANSWER"
        POL_Wine start /unix "$PATCH_EXE"
        POL_Wine_WaitExit "$PATCH_EXE"
fi

################################################
# Custom patch if user gets no sound nor music #
################################################

# See 'Notes' at: https://appdb.winehq.org/objectManager.php?sClass=version&iId=14475

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042

Dadu042 Wednesday 29 January 2020 at 11:09
Dadu042

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -11,10 +11,14 @@
 # Media used: ?
 #
 # CHANGELOG:
-# [Dadu042] (2019-06-02 14-05)
-#   Standardize. Wine 1.7.7 -> 1.9.24
 # [Danny-POL] (2015-05-30 10-00)
-#   Initial script.
+#   Initial script.
+# [Dadu042] (2019-06-02 14-05)
+#   Standardize.
+#   Wine 1.7.7 -> 1.9.24
+# [Dadu042] (2020-01-29)
+#   Wine 1.9.24 -> 3.0.3
+#   Fix POL_Shortcut
 #
 # KNOWN ISSUES:
 # None.
@@ -24,7 +28,7 @@
    
 TITLE="Call of Duty: World at War"
 PREFIX="CoDWaW"
-WORKING_WINE_VERSION="1.9.24"
+WORKING_WINE_VERSION="3.0.3"
 AUTHOR="Danny-POL"
 EDITOR="Activison"
 GAME_URL="https://en.wikipedia.org/wiki/Call_of_Duty:_World_at_War"
@@ -70,7 +74,6 @@
         POL_Wine_WaitExit "$TITLE"
         cd "$POL_System_TmpDir"
 else
-
         POL_SetupWindow_cdrom
         POL_SetupWindow_check_cdrom "setup.exe"
         POL_Wine start /unix "$CDROM/setup.exe"
@@ -79,8 +82,8 @@
 fi
 
 #making shortcut
-POL_Shortcut "CoDWaW.exe" "$TITLE - Singleplayer" "" "Game;"
-POL_Shortcut "CoDWaWmp.exe" "$TITLE - Multiplayer" "" "Game;"
+POL_Shortcut "CoDWaW.exe" "$TITLE - Singleplayer" "" "" "Game;"
+POL_Shortcut "CoDWaWmp.exe" "$TITLE - Multiplayer" "" "" "Game;"
 
 POL_System_TmpDelete
 POL_SetupWindow_Close

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2015-05-30 10-00)
# Last revision : see Changelog
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Media used: ?
#
# CHANGELOG:
# [Danny-POL] (2015-05-30 10-00)
#   Initial script.
# [Dadu042] (2019-06-02 14-05)
#   Standardize.
#   Wine 1.7.7 -> 1.9.24
# [Dadu042] (2020-01-29)
#   Wine 1.9.24 -> 3.0.3
#   Fix POL_Shortcut
#
# KNOWN ISSUES:
# None.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Call of Duty: World at War"
PREFIX="CoDWaW"
WORKING_WINE_VERSION="3.0.3"
AUTHOR="Danny-POL"
EDITOR="Activison"
GAME_URL="https://en.wikipedia.org/wiki/Call_of_Duty:_World_at_War"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Call POL_Function_NoCDWarning

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "win7"

################
# GPU settings #
################

# Really indispensable ? (Dadu042)
POL_SetupWindow_VMS "256"

POL_Call POL_Install_VideoDriver

POL_Wine_Direct3D "Multisampling" "enabled"

###############
# Go          #
###############

POL_SetupWindow_InstallMethod "LOCAL,CD"

# POL_SetupWindow_message "Note: at the end of the installation, DO NOT install DirectX when asked."

if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi

#making shortcut
POL_Shortcut "CoDWaW.exe" "$TITLE - Singleplayer" "" "" "Game;"
POL_Shortcut "CoDWaWmp.exe" "$TITLE - Multiplayer" "" "" "Game;"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Sunday 2 June 2019 at 14:20
Dadu042

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Script standardized. See changelog.

Differences

@@ -0,0 +1,87 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2015-05-30 10-00)
+# Last revision : see Changelog
+# Wine version used : see below
+# Distribution used to test : Ubuntu 18.04 x64
+# Script licence : GPL3
+# Program licence : Retail
+#
+# Playonlinux version used : 4.3.4
+#
+# Media used: ?
+#
+# CHANGELOG:
+# [Dadu042] (2019-06-02 14-05)
+#   Standardize. Wine 1.7.7 -> 1.9.24
+# [Danny-POL] (2015-05-30 10-00)
+#   Initial script.
+#
+# KNOWN ISSUES:
+# None.
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+   
+TITLE="Call of Duty: World at War"
+PREFIX="CoDWaW"
+WORKING_WINE_VERSION="1.9.24"
+AUTHOR="Danny-POL"
+EDITOR="Activison"
+GAME_URL="https://en.wikipedia.org/wiki/Call_of_Duty:_World_at_War"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+POL_Call POL_Function_NoCDWarning
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_System_TmpCreate "$TITLE"
+
+Set_OS "win7"
+
+################
+# GPU settings #
+################
+
+# Really indispensable ? (Dadu042)
+POL_SetupWindow_VMS "256"
+
+POL_Call POL_Install_VideoDriver
+
+POL_Wine_Direct3D "Multisampling" "enabled"
+
+###############
+# Go          #
+###############
+
+POL_SetupWindow_InstallMethod "LOCAL,CD"
+
+# POL_SetupWindow_message "Note: at the end of the installation, DO NOT install DirectX when asked."
+
+if [ "$INSTALL_METHOD" == "LOCAL" ]; then
+        cd "$HOME"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+        SETUP_EXE="$APP_ANSWER"
+        POL_Wine start /unix "$SETUP_EXE"
+        POL_Wine_WaitExit "$TITLE"
+        cd "$POL_System_TmpDir"
+else
+
+        POL_SetupWindow_cdrom
+        POL_SetupWindow_check_cdrom "setup.exe"
+        POL_Wine start /unix "$CDROM/setup.exe"
+        POL_Wine_WaitExit "setup.exe"
+        cd "$POL_System_TmpDir"
+fi
+
+#making shortcut
+POL_Shortcut "CoDWaW.exe" "$TITLE - Singleplayer" "" "Game;"
+POL_Shortcut "CoDWaWmp.exe" "$TITLE - Multiplayer" "" "Game;"
+
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2015-05-30 10-00)
# Last revision : see Changelog
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Media used: ?
#
# CHANGELOG:
# [Dadu042] (2019-06-02 14-05)
#   Standardize. Wine 1.7.7 -> 1.9.24
# [Danny-POL] (2015-05-30 10-00)
#   Initial script.
#
# KNOWN ISSUES:
# None.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Call of Duty: World at War"
PREFIX="CoDWaW"
WORKING_WINE_VERSION="1.9.24"
AUTHOR="Danny-POL"
EDITOR="Activison"
GAME_URL="https://en.wikipedia.org/wiki/Call_of_Duty:_World_at_War"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Call POL_Function_NoCDWarning

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "win7"

################
# GPU settings #
################

# Really indispensable ? (Dadu042)
POL_SetupWindow_VMS "256"

POL_Call POL_Install_VideoDriver

POL_Wine_Direct3D "Multisampling" "enabled"

###############
# Go          #
###############

POL_SetupWindow_InstallMethod "LOCAL,CD"

# POL_SetupWindow_message "Note: at the end of the installation, DO NOT install DirectX when asked."

if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else

        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi

#making shortcut
POL_Shortcut "CoDWaW.exe" "$TITLE - Singleplayer" "" "Game;"
POL_Shortcut "CoDWaWmp.exe" "$TITLE - Multiplayer" "" "Game;"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Danny-POL Monday 1 June 2015 at 5:46
Danny-POL Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

script attached

Differences

@@ -0,0 +1,46 @@
+#!/bin/bash
+# Date : (2015-05-30 10-00)
+# Last revision :
+# Wine version used : 1.7.7
+# Author : http://www.facebook.com/groups/LinuxandWindowsHelp
+# updated:
+# Licence : Retail
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Call of Duty World at War"
+PREFIX="CoDWaW"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "activison" "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"
+ 
+LATESTVERSION="1.7.7"
+CHOSENWINEVERSION="$LATESTVERSION"
+ 
+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
+
+#making shortcut
+POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty World at War/CoDWaW.exe" "$TITLE Singleplayer"
+POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty World at War/CoDWaWmp.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
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-05-30 10-00)
# Last revision :
# Wine version used : 1.7.7
# Author : http://www.facebook.com/groups/LinuxandWindowsHelp
# updated:
# Licence : Retail
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Call of Duty World at War"
PREFIX="CoDWaW"

POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "activison" "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"
 
LATESTVERSION="1.7.7"
CHOSENWINEVERSION="$LATESTVERSION"
 
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

#making shortcut
POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty World at War/CoDWaW.exe" "$TITLE Singleplayer"
POL_Shortcut "$PROGRAMFILES/Activision/Call of Duty World at War/CoDWaWmp.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

Anonymous
Monday 1 June 2015 at 5:57
inside of wine config, it says its using alsa, and it dont have any sound, inside of the game it says no mixer is installed, please configure your default mixer. when I change it to wine version 1.3.23 the graphics is horrible but the sound works sometimes. and inside of wine config it says it has winealsa.drv, and the game has sound, but graphics is horrible, the drive keeps corrupting anything I try. I will try again working on it later, but this is all I got at this time. play it with the radio turned up =D.
Wednesday 3 June 2015 at 17:44
Might want to look into this: http://wiki.playonlinux.com/index.php/Troubleshooting_Common_Problems#No_sound_.28err:module:load_builtin_dll..._libasound.so.2....29

You don't have to add a note about the crack. We just mark it in with a flag that only holds games that require cracks, which gives the user a disclaimer. That can be removed. You should really try a WAY newer version of Wine. Like, the newest on (1.7.40). That version is very old, and 1.3 is far, far older. You are also declaring too many variables that just bleed into each other:

LATESTVERSION="1.7.7"

CHOSENWINEVERSION="$LATESTVERSION"

POL_Wine_SelectPrefix "$PREFIX"

POL_Wine_PrefixCreate "$CHOSENWINEVERSION"

would be better written as:

WINEVERSION="1.7.40"

POL_Wine_SelectPrefix "$PREFIX"

POL_Wine_PrefixCreate "$WINEVERSION"

As standard practice, you also want to declare all variables at the top of the script, not in the code itself, unless it is a local variable inside of a function or conditional statement. Global variables should always be declared at the top when possible. It makes it easier to maintain.

I also do not see the GetSetupImages statement, and I think it is is missing some other things, but I may just be missing something. Look at a few other well-maintained scripts and see how they are declaring variables and where, as well as which statements are used and where. It will make your code cleaner and just better in general. :)
Wednesday 3 June 2015 at 17:49
In the future, if a script does not work, you shouldn't submit it for approval. You would be better off posting the Manual Install forums until you can get the script working, then submit it for approval here.

http://wiki.playonlinux.com/index.php/How_to_Contribute_a_Script

I marked the script as needing a crack, so that is taken care of. I also removed the install notes that was in the description. It should be a description of the program being installed, not reasons why it doesn't work. lol. ;)
Wednesday 3 June 2015 at 17:55
One more thing; this is the place to go if you want to know if and how something works through Wine, and therefor through POL. Looks like this game has a gold rating, which is what I figured. It shouldn't need too much to get working:

https://appdb.winehq.org/objectManager.php?sClass=version&iId=14475

Hope this helps. Sorry for the back to back posts.
Anonymous
Thursday 4 June 2015 at 9:51
Sorry, I don't mean to be rude, but it seems fitting here, the games I have been updating are old games, they are not brand new off the shelf games. They should already be done, and updated. Cod 4 mw was not updated since 2009, before I joined this project. So either your all lazy, or people just finds POL a joke? I however think POL is needed. automation = compatibility for general users. Thanks for the tips though, I will implement your techniques in next scriots
Anonymous
Thursday 4 June 2015 at 9:55
I think I have figured it out, audio wise been researching. Installing or enabling winealsa.drv. Have not tested it out yet. And the reason for my last comment, is to not talk down on people that's actually taking their time to improve your scripts. Reason for using the version of wine I did, because others crashed. I will try the version you posted on here.
Anonymous
Thursday 4 June 2015 at 10:05
If every version of wine worked, wine would not have multiple versions to choose from, they would just have "The Version"
Anonymous
Thursday 4 June 2015 at 10:10
This script I posted here works better then 99% of the scripts I have tried that you have up that's out dated. Just because it has something simple as figuring out how to install sound. I am a truck driver so I can only work on scripts when I was home. I was hoping someone else would see it and know a quick fix. But I think I got it on my own. Wine cfg and enabling winealsa.drv because some versions of wine has different things disabled. Not sure why, but they must have their reasons.
Anonymous
Thursday 4 June 2015 at 10:45
@Danny-POL

You are totally right. A large part of the script are outdated and we are working hard to try to maintain them. They are hundred of scripts so believe me, it is not easy task. The tips we are giving to you are precisely just coming from errors we've made in the past that led us to these kind of problems. Don't be offended.

So no we are not lazy. Sometimes, your guys tend to forget that we are doing all that in our spare time. And we do not own those 500+ games that we would need to test every two week. If you want to help us, we really appreciate.

Things will be a lot improved in POLv5 also.
Anonymous
Thursday 4 June 2015 at 13:36
I'm not offended, it just seemed like I was being talked down to like I am an idiot, thank you for your response, I have many games and I would like to help make scripts. I will change the way I do things, so the coding looks and works better. I think the pol is a great idea. It is automation for the wine environment, Wine is easier to write script for. And find help for. But with the front end of pol, it can bring linux out of the Stone Age. And even general new users can install games and programs easily. I just found out about playonlinux fairly recently. I was however very disapointed when I went to install my games. I almost installed virtualbox and installed windows just to play my games. I decided to help with the playonlinux. I have many games, just doing my call of duty titles first. I will try the version of wine you suggested. But the game either crashed or did not even load. That is the only version of wine I found to work with this title.
Anonymous
Thursday 4 June 2015 at 14:09
Well I'm pretty sure that the intention was not to talk you down. Sorry if you have been offended. In any case, feel free to send scripts here, we're going to review them :) Many thanks!
Thursday 4 June 2015 at 18:03
Lol. Yeah. I was absolutely not talking down to you. I don't know how you inferred that. I was only trying to help. I

I went back through and read everything that I said to you and it was all advice and help. Again, I was really only trying to help you do what you are trying to do, but better. How is an experienced hand giving advice talking down? 

 So either your all lazy, or people just finds POL a joke?

Myself and others dedicate hours and hours and hours of our free time to this project, don't get paid, but still have a desire to see the project move forward... No one is lazy here. :) I'll leave it at that. 

Cheers.

Edited by Dadu042

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com