Battlefield 1942

Informations

Creator Message
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 22045
Wine: 2.22

Feedbacks

Description

FPS, 2002.

Wikipedia.

Source code

#!/bin/bash
# Distribution used to test : Fedora 12
# Depend : ImageMagick, unzip

# CHANGELOG
# [Quentin PÂRIS] (2014 ?)
#   First script.
# [Dadu042] (2019-11-14)
#   Wine 1.7.40 -> 2.22

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources" 

## Note : Try to install this patch ftp://largedownloads.ea.com/pub/patches/battlefield_1942_patch_v1.6.19.exe to fix no-cd problem

TITLE="Battlefield 1942"
PREFIX="Battlefield1942"
WINEVERSION="2.22"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.electronicarts.com" "Quentin PÂRIS" "$PREFIX" 

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
S
POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Wine_InstallCDROM "1" "w" "Setup.exe"
        SetupFile="$CDROM/Setup.exe"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then 
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SetupFile="$APP_ANSWER"
fi

POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$SetupFile"

if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Wine_InstallCDROM "2" "w" "data1.cab"
fi

POL_Wine_WaitExit

POL_Shortcut "BF1942.exe" "$TITLE" "" "" "Game;Shooter"
POL_SetupWindow_message "$(eval_gettext 'Be careful! To run $TITLE with $APPLICATION_TITLE, you must install a No-CD patch even if you have a legal version.\n\nPlease remember that $APPLICATION_TITLE is strongly against piracy, and will never support it.')" "$TITLE"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
0verk1ll Saturday 16 May 2020 at 2:50
0verk1ll Anonymous

Information

This update has been approved by the team.

Message

This will allow the game to show up in desktops that support Freedesktop naming.

Differences

@@ -46,7 +46,7 @@
 
 POL_Wine_WaitExit
 
-POL_Shortcut "BF1942.exe" "$TITLE"
+POL_Shortcut "BF1942.exe" "$TITLE" "" "" "Game;Shooter"
 POL_SetupWindow_message "$(eval_gettext 'Be careful! To run $TITLE with $APPLICATION_TITLE, you must install a No-CD patch even if you have a legal version.\n\nPlease remember that $APPLICATION_TITLE is strongly against piracy, and will never support it.')" "$TITLE"
 
 POL_SetupWindow_Close

New source code

#!/bin/bash
# Distribution used to test : Fedora 12
# Depend : ImageMagick, unzip

# CHANGELOG
# [Quentin PÂRIS] (2014 ?)
#   First script.
# [Dadu042] (2019-11-14)
#   Wine 1.7.40 -> 2.22

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources" 

## Note : Try to install this patch ftp://largedownloads.ea.com/pub/patches/battlefield_1942_patch_v1.6.19.exe to fix no-cd problem

TITLE="Battlefield 1942"
PREFIX="Battlefield1942"
WINEVERSION="2.22"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.electronicarts.com" "Quentin PÂRIS" "$PREFIX" 

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
S
POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Wine_InstallCDROM "1" "w" "Setup.exe"
        SetupFile="$CDROM/Setup.exe"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then 
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SetupFile="$APP_ANSWER"
fi

POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$SetupFile"

if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Wine_InstallCDROM "2" "w" "data1.cab"
fi

POL_Wine_WaitExit

POL_Shortcut "BF1942.exe" "$TITLE" "" "" "Game;Shooter"
POL_SetupWindow_message "$(eval_gettext 'Be careful! To run $TITLE with $APPLICATION_TITLE, you must install a No-CD patch even if you have a legal version.\n\nPlease remember that $APPLICATION_TITLE is strongly against piracy, and will never support it.')" "$TITLE"

POL_SetupWindow_Close
exit

Replies

Saturday 16 May 2020 at 8:24
Approved.
Dadu042 Thursday 14 November 2019 at 13:24
Dadu042

Warning

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

Differences

@@ -2,6 +2,12 @@
 # Distribution used to test : Fedora 12
 # Depend : ImageMagick, unzip
 
+# CHANGELOG
+# [Quentin PÂRIS] (2014 ?)
+#   First script.
+# [Dadu042] (2019-11-14)
+#   Wine 1.7.40 -> 2.22
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources" 
 
@@ -9,7 +15,7 @@
 
 TITLE="Battlefield 1942"
 PREFIX="Battlefield1942"
-WINEVERSION="1.7.40"
+WINEVERSION="2.22"
 
 POL_SetupWindow_Init
 POL_Debug_Init

New source code

#!/bin/bash
# Distribution used to test : Fedora 12
# Depend : ImageMagick, unzip

# CHANGELOG
# [Quentin PÂRIS] (2014 ?)
#   First script.
# [Dadu042] (2019-11-14)
#   Wine 1.7.40 -> 2.22

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources" 

## Note : Try to install this patch ftp://largedownloads.ea.com/pub/patches/battlefield_1942_patch_v1.6.19.exe to fix no-cd problem

TITLE="Battlefield 1942"
PREFIX="Battlefield1942"
WINEVERSION="2.22"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.electronicarts.com" "Quentin PÂRIS" "$PREFIX" 

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
S
POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Wine_InstallCDROM "1" "w" "Setup.exe"
        SetupFile="$CDROM/Setup.exe"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then 
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SetupFile="$APP_ANSWER"
fi

POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$SetupFile"

if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Wine_InstallCDROM "2" "w" "data1.cab"
fi

POL_Wine_WaitExit

POL_Shortcut "BF1942.exe" "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'Be careful! To run $TITLE with $APPLICATION_TITLE, you must install a No-CD patch even if you have a legal version.\n\nPlease remember that $APPLICATION_TITLE is strongly against piracy, and will never support it.')" "$TITLE"

POL_SetupWindow_Close
exit

Replies

Falconet Wednesday 1 July 2015 at 20:19
Falconet Anonymous

Message

Working good for me.

The 1.7 version someone proposed doesn't for me. Sound crackles a lot.

 

AMD A8-6500 3.5 Ghz/ HD8570D 256 MB

4 GB RAM DDR3 1600mhz (3.5 Available)

ChaletOS 64-Bit (Xubuntu based)

Replies

Sapein Saturday 4 April 2015 at 5:34
Sapein Anonymous

Warning

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

Message

The main issue I have is the fact that the Wine version used, 1.4, seems to have an issue with installing Battlefield 1942 when installing off of the CD's. The error occurs when entering in the code on my CD's. I did a 'test install' of it with Wine 1.7.40 in which I did NOT encounter the issue.

 

As such I have submitted a patch to use Wine 1.7.40 in the installer, as opposed to 1.4. However it might work with earlier versions of Wine as well.
 

Differences

@@ -9,7 +9,7 @@
 
 TITLE="Battlefield 1942"
 PREFIX="Battlefield1942"
-WINEVERSION="1.4"
+WINEVERSION="1.7.40"
 
 POL_SetupWindow_Init
 POL_Debug_Init

New source code

#!/bin/bash
# Distribution used to test : Fedora 12
# Depend : ImageMagick, unzip

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources" 

## Note : Try to install this patch ftp://largedownloads.ea.com/pub/patches/battlefield_1942_patch_v1.6.19.exe to fix no-cd problem

TITLE="Battlefield 1942"
PREFIX="Battlefield1942"
WINEVERSION="1.7.40"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.electronicarts.com" "Quentin PÂRIS" "$PREFIX" 

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
S
POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Wine_InstallCDROM "1" "w" "Setup.exe"
        SetupFile="$CDROM/Setup.exe"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then 
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SetupFile="$APP_ANSWER"
fi

POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$SetupFile"

if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Wine_InstallCDROM "2" "w" "data1.cab"
fi

POL_Wine_WaitExit

POL_Shortcut "BF1942.exe" "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'Be careful! To run $TITLE with $APPLICATION_TITLE, you must install a No-CD patch even if you have a legal version.\n\nPlease remember that $APPLICATION_TITLE is strongly against piracy, and will never support it.')" "$TITLE"

POL_SetupWindow_Close
exit

Replies

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