Battlefield 1942

Informations

Créateur Messages
Quentin PÂRIS Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 21743
Wine: 2.22

Retours d'expérience

Description

FPS, 2002.

Wikipedia.

Code source

#!/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:

Contribuer
Membre Messages
0verk1ll Samedi 16 Mai 2020 à 2:50
0verk1ll Anonymous

Information

Cette mise à jour a été acceptée par l'équipe

Messages

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

Nouveau code source

#!/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

Réponses

Samedi 16 Mai 2020 à 8:24
Approved.
Dadu042 Jeudi 14 Novembre 2019 à 13:24
Dadu042

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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

Nouveau code source

#!/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

Réponses

Falconet Mercredi 1 Juillet 2015 à 20:19
Falconet Anonymous

Messages

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)

Réponses

Sapein Samedi 4 Avril 2015 à 5:34
Sapein Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

#!/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

Réponses