Battlefield 1942

Informations

Creator Message
Quentin PÂRIS
Admin

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 16825
Wine: 1.7.40

Feedbacks

Description

FPS, 2002.

Wikipedia.

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

Contributions

Filters:

Contribute
Member Message
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

Information

This update has been approved by the team.

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