Freelancer

Informations

Créateur Messages
lahtis Anonymous

Attention

This installer is a beta script. It means that it might not work as expected

Informations

Plate-formes :
Téléchargements : 15441
Wine: 4.0

Retours d'expérience

Description

The setting for this "space opera" game is the 23rd Century, which in a galactic time-frame can be roughly described as just before the insanity that was Buck Rogers and just after the Space Odyssey. A civil war has ripped Earth and our Solar System apart, with the losing faction, the Alliance, escaping to deep space to start over again.

Captures d'écran

MiniatureMiniatureMiniatureMiniature

Code source

#!/usr/bin/env playonlinux-bash
# Date : (2013-03-01 17-00)
# Last revision : (2019-03-02 16-07)
# Wine version used : 4.0
# Distribution used to test : Ubuntu 12.10 with Nvidia Geforce 9800 GT 512MB using nvidia-experimental-310 driver Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2 (lathis), Ubuntu 18.04 x64 with Nvidia Geforce GTX 1070, Intel Core i7-7700K @ 4.20GHz (LinuxScripter)
# Author : lahtis lahtis@gmail.com, LinuxScripter
# Script licence : GPLv.2
# Program licence : Retail
# Support France and English CD/DVD-version.
   
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-13)
#   Update gettext messages
#   Clean code
#   Fix POL_Install_directplay call (missing POL_Call)
#   Fix $PLAYONLINUX variable check presence
# [LinuxScripter] (2018-05-02 21-15)
#   Reorganized the script to make it look cleaner and more uniform
#   Added MD5 sum to the patch file
#   Removed the unnecesseary mv command
# [LinuxScripter] (2019-03-02 16-07)
#   Using newer wine version
#   Changed the download links sicne the old ones expired
   
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
   
TITLE="Freelancer"
PREFIX="Freelancer"
WORKING_WINE_VERSION="4.0"
EDITOR="Microsoft game studios"
GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
AUTHOR="lahtis, LinuxScripter"
   
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1600
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
Set_OS "winxp"
 
POL_SetupWindow_VMS "128"
POL_Call POL_Function_SetResolution
POL_Call POL_Install_directplay
 
 
POL_SetupWindow_menu "What is your language version?" "Languages" "english|french" "|"
LANGUAGEVERSION="$APP_ANSWER"
    if [ "$APP_ANSWER" == "english" ]; then
        SETUPFILE="SETUP.EXE"
            LANG="Install Freelancer."
        elif [ "$APP_ANSWER" == "french" ]; then
        SETUPFILE="install.exe"
            LANG="Programme d'installation Freelancer."    
    fi
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "00000000.016"
POL_Wine start /unix "$CDROM/$SETUPFILE"
POL_Wine_WaitExit "$(eval_gettext '$LANG')"
#Patching the game to add support for more resolutions, first time the game will run at 1024x458 but now you can change it to match the virtual desktop
rm --force "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE/d3d8.dll"
cd "$POL_System_TmpDir"
POL_Download "http://download.fileplanet.com/ftp1/062004/UnofficialFLSPPatch1.4.zip?st=hnULf7zeAqFzZz3vBBtAow&e=1551549858"
unzip "UnofficialFLSPPatch1.4.zip"
cd "./Fl"
cp --recursive -f "Data/*.*" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/DATA"
cp -f "Exe/nameresources.dll" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE"
cd "$POL_System_TmpDir"
POL_Download "http://adoxa.altervista.org/freelancer/jflp.exe"
POL_Wine start /unix "jflp.exe"
POL_Wine_WaitExit "jflp.exe"
        
POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
  
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
LinuxScripter Samedi 2 Mars 2019 à 16:16
LinuxScripter Anonymous

Information

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

Messages

I've updated the script but right now I dont have time to test it.

Differences

@@ -1,70 +1,84 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
 # Date : (2013-03-01 17-00)
-# Last revision : (2013-07-24 09-13)
-# Wine version used : 1.5.24
-# Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
-# nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
-# Author : lahtis lahtis@gmail.com
-# Script licence : GPL v.2
+# Last revision : (2019-03-02 16-07)
+# Wine version used : 4.0
+# Distribution used to test : Ubuntu 12.10 with Nvidia Geforce 9800 GT 512MB using nvidia-experimental-310 driver Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2 (lathis), Ubuntu 18.04 x64 with Nvidia Geforce GTX 1070, Intel Core i7-7700K @ 4.20GHz (LinuxScripter)
+# Author : lahtis lahtis@gmail.com, LinuxScripter
+# Script licence : GPLv.2
 # Program licence : Retail
-# Freelancer installer and 1.1 offical patching.
-
+# Support France and English CD/DVD-version.
+   
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-13)
 #   Update gettext messages
 #   Clean code
 #   Fix POL_Install_directplay call (missing POL_Call)
 #   Fix $PLAYONLINUX variable check presence
-
+# [LinuxScripter] (2018-05-02 21-15)
+#   Reorganized the script to make it look cleaner and more uniform
+#   Added MD5 sum to the patch file
+#   Removed the unnecesseary mv command
+# [LinuxScripter] (2019-03-02 16-07)
+#   Using newer wine version
+#   Changed the download links sicne the old ones expired
+   
 [ -z "$PLAYONLINUX" ] && exit
 source "$PLAYONLINUX/lib/sources"
-
+   
 TITLE="Freelancer"
 PREFIX="Freelancer"
-WORKING_WINE_VERSION="1.5.24"
-SERVERTITLE="FreelanceServer"
+WORKING_WINE_VERSION="4.0"
 EDITOR="Microsoft game studios"
 GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
-AUTHOR="lahtis"
-GAME_VMS="512"
-
+AUTHOR="lahtis, LinuxScripter"
+   
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
+POL_SetupWindow_SetID 1600
 POL_Debug_Init
-
+   
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+   
 POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
 POL_System_TmpCreate "$PREFIX"
-
-POL_SetupWindow_VMS $GAME_VMS
-
 Set_OS "winxp"
-Set_Desktop "On" "800" "600"
-
+ 
+POL_SetupWindow_VMS "128"
+POL_Call POL_Function_SetResolution
 POL_Call POL_Install_directplay
-
+ 
+ 
+POL_SetupWindow_menu "What is your language version?" "Languages" "english|french" "|"
+LANGUAGEVERSION="$APP_ANSWER"
+    if [ "$APP_ANSWER" == "english" ]; then
+        SETUPFILE="SETUP.EXE"
+            LANG="Install Freelancer."
+        elif [ "$APP_ANSWER" == "french" ]; then
+        SETUPFILE="install.exe"
+            LANG="Programme d'installation Freelancer."    
+    fi
+ 
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "00000000.016"
-POL_Wine start /unix "$CDROM/SETUP.EXE"
-POL_Wine_WaitExit "$TITLE"
-
-POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
-
-# Install patch 1.1
+POL_Wine start /unix "$CDROM/$SETUPFILE"
+POL_Wine_WaitExit "$(eval_gettext '$LANG')"
+#Patching the game to add support for more resolutions, first time the game will run at 1024x458 but now you can change it to match the virtual desktop
+rm --force "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE/d3d8.dll"
+cd "$POL_System_TmpDir"
+POL_Download "http://download.fileplanet.com/ftp1/062004/UnofficialFLSPPatch1.4.zip?st=hnULf7zeAqFzZz3vBBtAow&e=1551549858"
+unzip "UnofficialFLSPPatch1.4.zip"
+cd "./Fl"
+cp --recursive -f "Data/*.*" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/DATA"
+cp -f "Exe/nameresources.dll" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE"
 cd "$POL_System_TmpDir"
-POL_Download "http://download.microsoft.com/download/5/4/2/542a372f-d540-468d-a653-2cdced8d1d0d/flpatch.exe" "b2621b2a33c519d8b599cb3579be4c02"
-POL_Wine_WaitBefore "$TITLE - Patch 1.1"
-POL_Wine "$POL_System_TmpDir/flpatch.exe"
-POL_Wine_WaitExit "$TITLE - Patch 1.1"
-
-POL_Shortcut "FLServer.exe" "$TITLE server" "$SERVERTITLE.png"
-# End install patch 1.1
-
+POL_Download "http://adoxa.altervista.org/freelancer/jflp.exe"
+POL_Wine start /unix "jflp.exe"
+POL_Wine_WaitExit "jflp.exe"
+        
+POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
+  
 POL_System_TmpDelete
-
 POL_SetupWindow_Close
-
 exit 0
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2013-03-01 17-00)
# Last revision : (2019-03-02 16-07)
# Wine version used : 4.0
# Distribution used to test : Ubuntu 12.10 with Nvidia Geforce 9800 GT 512MB using nvidia-experimental-310 driver Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2 (lathis), Ubuntu 18.04 x64 with Nvidia Geforce GTX 1070, Intel Core i7-7700K @ 4.20GHz (LinuxScripter)
# Author : lahtis lahtis@gmail.com, LinuxScripter
# Script licence : GPLv.2
# Program licence : Retail
# Support France and English CD/DVD-version.
   
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-13)
#   Update gettext messages
#   Clean code
#   Fix POL_Install_directplay call (missing POL_Call)
#   Fix $PLAYONLINUX variable check presence
# [LinuxScripter] (2018-05-02 21-15)
#   Reorganized the script to make it look cleaner and more uniform
#   Added MD5 sum to the patch file
#   Removed the unnecesseary mv command
# [LinuxScripter] (2019-03-02 16-07)
#   Using newer wine version
#   Changed the download links sicne the old ones expired
   
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
   
TITLE="Freelancer"
PREFIX="Freelancer"
WORKING_WINE_VERSION="4.0"
EDITOR="Microsoft game studios"
GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
AUTHOR="lahtis, LinuxScripter"
   
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1600
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
Set_OS "winxp"
 
POL_SetupWindow_VMS "128"
POL_Call POL_Function_SetResolution
POL_Call POL_Install_directplay
 
 
POL_SetupWindow_menu "What is your language version?" "Languages" "english|french" "|"
LANGUAGEVERSION="$APP_ANSWER"
    if [ "$APP_ANSWER" == "english" ]; then
        SETUPFILE="SETUP.EXE"
            LANG="Install Freelancer."
        elif [ "$APP_ANSWER" == "french" ]; then
        SETUPFILE="install.exe"
            LANG="Programme d'installation Freelancer."    
    fi
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "00000000.016"
POL_Wine start /unix "$CDROM/$SETUPFILE"
POL_Wine_WaitExit "$(eval_gettext '$LANG')"
#Patching the game to add support for more resolutions, first time the game will run at 1024x458 but now you can change it to match the virtual desktop
rm --force "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE/d3d8.dll"
cd "$POL_System_TmpDir"
POL_Download "http://download.fileplanet.com/ftp1/062004/UnofficialFLSPPatch1.4.zip?st=hnULf7zeAqFzZz3vBBtAow&e=1551549858"
unzip "UnofficialFLSPPatch1.4.zip"
cd "./Fl"
cp --recursive -f "Data/*.*" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/DATA"
cp -f "Exe/nameresources.dll" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE"
cd "$POL_System_TmpDir"
POL_Download "http://adoxa.altervista.org/freelancer/jflp.exe"
POL_Wine start /unix "jflp.exe"
POL_Wine_WaitExit "jflp.exe"
        
POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
  
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

D_Zanna Dimanche 24 Février 2019 à 13:25
D_Zanna Anonymous

Messages

Hello,

Got the game installed and working fine, but missing the dialogs when in space.

Réponses

Anonymous
Lundi 25 Février 2019 à 12:32
Were you using the script by lathis or the one from me?
Anonymous
Samedi 2 Mars 2019 à 13:45
Thanks for getting back. Installed yours.
Anonymous
Samedi 2 Mars 2019 à 16:03
I see the link for 1.4 patch have expired.
LinuxScripter Mardi 1 Mai 2018 à 22:55
LinuxScripter Anonymous

Warning

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

Messages

Reworked the script. Now uses diffirent patches to make sure it will scale to the virtual desktop's resolution. Even if it wont do it automaticly you can set it in game's options.

Differences

@@ -1,70 +1,81 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
 # Date : (2013-03-01 17-00)
-# Last revision : (2013-07-24 09-13)
-# Wine version used : 1.5.24
-# Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
-# nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
-# Author : lahtis lahtis@gmail.com
-# Script licence : GPL v.2
+# Last revision : (2018-05-02 21-15)
+# Wine version used : 3.1
+# Distribution used to test : Ubuntu 12.10 with Nvidia Geforce 9800 GT 512MB using nvidia-experimental-310 driver Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2 (lathis), Ubuntu 18.04 x64 with Nvidia Geforce GTX 1070, Intel Core i7-7700K @ 4.20GHz (LinuxScripter)
+# Author : lahtis lahtis@gmail.com, LinuxScripter
+# Script licence : GPLv.2
 # Program licence : Retail
-# Freelancer installer and 1.1 offical patching.
-
+# Support France and English CD/DVD-version.
+   
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-13)
 #   Update gettext messages
 #   Clean code
 #   Fix POL_Install_directplay call (missing POL_Call)
 #   Fix $PLAYONLINUX variable check presence
-
+# [LinuxScripter] (2018-05-02 21-15)
+#   Reorganized the script to make it look cleaner and more uniform
+#   Added MD5 sum to the patch file
+#   Removed the unnecesseary mv command
+   
 [ -z "$PLAYONLINUX" ] && exit
 source "$PLAYONLINUX/lib/sources"
-
+   
 TITLE="Freelancer"
 PREFIX="Freelancer"
-WORKING_WINE_VERSION="1.5.24"
-SERVERTITLE="FreelanceServer"
+WORKING_WINE_VERSION="3.1"
 EDITOR="Microsoft game studios"
 GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
-AUTHOR="lahtis"
-GAME_VMS="512"
-
+AUTHOR="lahtis, LinuxScripter"
+   
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
+POL_SetupWindow_SetID 1600
 POL_Debug_Init
-
+   
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+   
 POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
 POL_System_TmpCreate "$PREFIX"
-
-POL_SetupWindow_VMS $GAME_VMS
-
 Set_OS "winxp"
-Set_Desktop "On" "800" "600"
-
+ 
+POL_SetupWindow_VMS "128"
+POL_Call POL_Function_SetResolution
 POL_Call POL_Install_directplay
-
+ 
+ 
+POL_SetupWindow_menu "What is your language version?" "Languages" "english|french" "|"
+LANGUAGEVERSION="$APP_ANSWER"
+    if [ "$APP_ANSWER" == "english" ]; then
+        SETUPFILE="SETUP.EXE"
+            LANG="Install Freelancer."
+        elif [ "$APP_ANSWER" == "french" ]; then
+        SETUPFILE="install.exe"
+            LANG="Programme d'installation Freelancer."    
+    fi
+ 
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "00000000.016"
-POL_Wine start /unix "$CDROM/SETUP.EXE"
-POL_Wine_WaitExit "$TITLE"
-
-POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
-
-# Install patch 1.1
+POL_Wine start /unix "$CDROM/$SETUPFILE"
+POL_Wine_WaitExit "$(eval_gettext '$LANG')"
+#Patching the game to add support for more resolutions, first time the game will run at 1024x458 but now you can change it to match the virtual desktop
+rm --force "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE/d3d8.dll"
+cd "$POL_System_TmpDir"
+POL_Download "http://sjc5.dl.dbolical.com/dl/2008/01/28/flsp14unofficial.zip?st=2-Evcp2pbXBC1fT8P4Efuw==&e=1525206833"
+unzip "flsp14unofficial.zip"
+cd "./Fl"
+cp --recursive -f "Data/*.*" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/DATA"
+cp -f "Exe/nameresources.dll" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE"
 cd "$POL_System_TmpDir"
-POL_Download "http://download.microsoft.com/download/5/4/2/542a372f-d540-468d-a653-2cdced8d1d0d/flpatch.exe" "b2621b2a33c519d8b599cb3579be4c02"
-POL_Wine_WaitBefore "$TITLE - Patch 1.1"
-POL_Wine "$POL_System_TmpDir/flpatch.exe"
-POL_Wine_WaitExit "$TITLE - Patch 1.1"
-
-POL_Shortcut "FLServer.exe" "$TITLE server" "$SERVERTITLE.png"
-# End install patch 1.1
-
+POL_Download "http://adoxa.altervista.org/freelancer/jflp.exe.bin"
+POL_Wine start /unix "jflp.exe.bin"
+POL_Wine_WaitExit "jflp.ex.bin"
+        
+POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
+  
 POL_System_TmpDelete
-
 POL_SetupWindow_Close
-
 exit 0
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2013-03-01 17-00)
# Last revision : (2018-05-02 21-15)
# Wine version used : 3.1
# Distribution used to test : Ubuntu 12.10 with Nvidia Geforce 9800 GT 512MB using nvidia-experimental-310 driver Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2 (lathis), Ubuntu 18.04 x64 with Nvidia Geforce GTX 1070, Intel Core i7-7700K @ 4.20GHz (LinuxScripter)
# Author : lahtis lahtis@gmail.com, LinuxScripter
# Script licence : GPLv.2
# Program licence : Retail
# Support France and English CD/DVD-version.
   
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-13)
#   Update gettext messages
#   Clean code
#   Fix POL_Install_directplay call (missing POL_Call)
#   Fix $PLAYONLINUX variable check presence
# [LinuxScripter] (2018-05-02 21-15)
#   Reorganized the script to make it look cleaner and more uniform
#   Added MD5 sum to the patch file
#   Removed the unnecesseary mv command
   
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
   
TITLE="Freelancer"
PREFIX="Freelancer"
WORKING_WINE_VERSION="3.1"
EDITOR="Microsoft game studios"
GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
AUTHOR="lahtis, LinuxScripter"
   
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1600
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
Set_OS "winxp"
 
POL_SetupWindow_VMS "128"
POL_Call POL_Function_SetResolution
POL_Call POL_Install_directplay
 
 
POL_SetupWindow_menu "What is your language version?" "Languages" "english|french" "|"
LANGUAGEVERSION="$APP_ANSWER"
    if [ "$APP_ANSWER" == "english" ]; then
        SETUPFILE="SETUP.EXE"
            LANG="Install Freelancer."
        elif [ "$APP_ANSWER" == "french" ]; then
        SETUPFILE="install.exe"
            LANG="Programme d'installation Freelancer."    
    fi
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "00000000.016"
POL_Wine start /unix "$CDROM/$SETUPFILE"
POL_Wine_WaitExit "$(eval_gettext '$LANG')"
#Patching the game to add support for more resolutions, first time the game will run at 1024x458 but now you can change it to match the virtual desktop
rm --force "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE/d3d8.dll"
cd "$POL_System_TmpDir"
POL_Download "http://sjc5.dl.dbolical.com/dl/2008/01/28/flsp14unofficial.zip?st=2-Evcp2pbXBC1fT8P4Efuw==&e=1525206833"
unzip "flsp14unofficial.zip"
cd "./Fl"
cp --recursive -f "Data/*.*" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/DATA"
cp -f "Exe/nameresources.dll" "$WINEPREFIX/drive_c/Program Files/Microsoft Games/Freelancer/EXE"
cd "$POL_System_TmpDir"
POL_Download "http://adoxa.altervista.org/freelancer/jflp.exe.bin"
POL_Wine start /unix "jflp.exe.bin"
POL_Wine_WaitExit "jflp.ex.bin"
        
POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
  
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

lahtis Jeudi 8 Février 2018 à 23:08
lahtis Anonymous

Warning

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

Messages

  • maybe needed virtual desktop.
  • english and french installer support.

Differences

@@ -1,70 +1,99 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
 # Date : (2013-03-01 17-00)
-# Last revision : (2013-07-24 09-13)
+# Last revision : (2017-02-08 23-54)
 # Wine version used : 1.5.24
 # Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
 # nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
 # Author : lahtis lahtis@gmail.com
-# Script licence : GPL v.2
+# Script licence : GPLv.2
 # Program licence : Retail
-# Freelancer installer and 1.1 offical patching.
-
+# Support France and English CD/DVD-version.
+  
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-13)
 #   Update gettext messages
 #   Clean code
 #   Fix POL_Install_directplay call (missing POL_Call)
 #   Fix $PLAYONLINUX variable check presence
-
+  
 [ -z "$PLAYONLINUX" ] && exit
 source "$PLAYONLINUX/lib/sources"
-
+  
 TITLE="Freelancer"
 PREFIX="Freelancer"
-WORKING_WINE_VERSION="1.5.24"
-SERVERTITLE="FreelanceServer"
+WORKING_WINE_VERSION="3.1"
 EDITOR="Microsoft game studios"
 GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
 AUTHOR="lahtis"
-GAME_VMS="512"
-
+  
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
+POL_SetupWindow_SetID 1600
 POL_Debug_Init
-
+  
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+  
 POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
 POL_System_TmpCreate "$PREFIX"
-
-POL_SetupWindow_VMS $GAME_VMS
-
 Set_OS "winxp"
-Set_Desktop "On" "800" "600"
 
+POL_SetupWindow_VMS "128"
+POL_Call POL_Function_SetResolution
 POL_Call POL_Install_directplay
 
+
+POL_SetupWindow_menu "What is your language version?" "Languages" "english|french" "|"
+LANGUAGEVERSION="$APP_ANSWER"
+    if [ "$APP_ANSWER" == "english" ]; then
+        SETUPFILE="SETUP.EXE"
+	    LANG="Install Freelancer."
+        elif [ "$APP_ANSWER" == "french" ]; then
+        SETUPFILE="install.exe"
+	    LANG="Programme d'installation Freelancer."     
+    fi
+
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "00000000.016"
-POL_Wine start /unix "$CDROM/SETUP.EXE"
-POL_Wine_WaitExit "$TITLE"
-
+POL_Wine start /unix "$CDROM/$SETUPFILE"
+POL_Wine_WaitExit "$(eval_gettext '$LANG')"
+       
 POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
-
-# Install patch 1.1
-cd "$POL_System_TmpDir"
-POL_Download "http://download.microsoft.com/download/5/4/2/542a372f-d540-468d-a653-2cdced8d1d0d/flpatch.exe" "b2621b2a33c519d8b599cb3579be4c02"
-POL_Wine_WaitBefore "$TITLE - Patch 1.1"
-POL_Wine "$POL_System_TmpDir/flpatch.exe"
-POL_Wine_WaitExit "$TITLE - Patch 1.1"
-
-POL_Shortcut "FLServer.exe" "$TITLE server" "$SERVERTITLE.png"
-# End install patch 1.1
-
-POL_System_TmpDelete
-
+ 
+POL_SetupWindow_question "$(eval_gettext 'Do you want to install patch?')" "$TITLE"
+if [ "$APP_ANSWER" = "TRUE" ]; then
+ 
+        POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+  
+        if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+        # Download patch 1.1
+        cd "$POL_System_TmpDir"
+        POL_Download "http://the-starport.net/freelancer/download/visit.php?cid=1&lid=2639"
+  
+        # Move file to correct filename
+        mv "visit.php?cid=1&lid=2639" "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+          
+        # Unzip patch
+        unzip "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error unzip the file!')"
+        POL_Wine_WaitBefore "$TITLE"
+          
+        # Install 1.1 patch
+        POL_Wine "$POL_System_TmpDir/flpatch.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
+        POL_Wine_WaitExit "$TITLE"
+	    POL_System_TmpDelete
+        fi
+         
+        if [ "$INSTALL_METHOD" = "LOCAL" ]; then
+        cd "$HOME"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+        SetupFile="$APP_ANSWER"
+        POL_Wine_WaitBefore "$TITLE"
+        POL_Wine start /unix "$SetupFile"
+    	fi
+         
+fi
+ 
+POL_Wine_WaitExit
 POL_SetupWindow_Close
-
 exit 0
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2013-03-01 17-00)
# Last revision : (2017-02-08 23-54)
# Wine version used : 1.5.24
# Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
# nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
# Author : lahtis lahtis@gmail.com
# Script licence : GPLv.2
# Program licence : Retail
# Support France and English CD/DVD-version.
  
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-13)
#   Update gettext messages
#   Clean code
#   Fix POL_Install_directplay call (missing POL_Call)
#   Fix $PLAYONLINUX variable check presence
  
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
  
TITLE="Freelancer"
PREFIX="Freelancer"
WORKING_WINE_VERSION="3.1"
EDITOR="Microsoft game studios"
GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
AUTHOR="lahtis"
  
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1600
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
Set_OS "winxp"

POL_SetupWindow_VMS "128"
POL_Call POL_Function_SetResolution
POL_Call POL_Install_directplay


POL_SetupWindow_menu "What is your language version?" "Languages" "english|french" "|"
LANGUAGEVERSION="$APP_ANSWER"
    if [ "$APP_ANSWER" == "english" ]; then
        SETUPFILE="SETUP.EXE"
            LANG="Install Freelancer."
        elif [ "$APP_ANSWER" == "french" ]; then
        SETUPFILE="install.exe"
            LANG="Programme d'installation Freelancer."     
    fi

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "00000000.016"
POL_Wine start /unix "$CDROM/$SETUPFILE"
POL_Wine_WaitExit "$(eval_gettext '$LANG')"
       
POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
 
POL_SetupWindow_question "$(eval_gettext 'Do you want to install patch?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then
 
        POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
  
        if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
        # Download patch 1.1
        cd "$POL_System_TmpDir"
        POL_Download "http://the-starport.net/freelancer/download/visit.php?cid=1&lid=2639"
  
        # Move file to correct filename
        mv "visit.php?cid=1&lid=2639" "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
          
        # Unzip patch
        unzip "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error unzip the file!')"
        POL_Wine_WaitBefore "$TITLE"
          
        # Install 1.1 patch
        POL_Wine "$POL_System_TmpDir/flpatch.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
        POL_Wine_WaitExit "$TITLE"
            POL_System_TmpDelete
        fi
         
        if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SetupFile="$APP_ANSWER"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine start /unix "$SetupFile"
            fi
         
fi
 
POL_Wine_WaitExit
POL_SetupWindow_Close
exit 0

Réponses

Anonymous
Mardi 1 Mai 2018 à 21:09
I dont see the point of using the mv command to rename the downloaded patch file. It's already the right name.
lahtis Jeudi 8 Février 2018 à 17:49
lahtis Anonymous

Warning

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

Messages

Testing language selector for cd-rom installer.  The previous one did not work for Ubuntu.

Differences

@@ -1,70 +1,99 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
 # Date : (2013-03-01 17-00)
-# Last revision : (2013-07-24 09-13)
+# Last revision : (2017-02-08 18-43)
 # Wine version used : 1.5.24
 # Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
 # nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
 # Author : lahtis lahtis@gmail.com
-# Script licence : GPL v.2
+# Script licence : GPLv.2
 # Program licence : Retail
-# Freelancer installer and 1.1 offical patching.
-
+# Support France and English CD-version.
+ 
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-13)
 #   Update gettext messages
 #   Clean code
 #   Fix POL_Install_directplay call (missing POL_Call)
 #   Fix $PLAYONLINUX variable check presence
-
+ 
 [ -z "$PLAYONLINUX" ] && exit
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Freelancer"
 PREFIX="Freelancer"
-WORKING_WINE_VERSION="1.5.24"
-SERVERTITLE="FreelanceServer"
+WORKING_WINE_VERSION="3.1"
 EDITOR="Microsoft game studios"
 GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
 AUTHOR="lahtis"
-GAME_VMS="512"
-
+ 
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
+POL_SetupWindow_SetID 1600
 POL_Debug_Init
-
+ 
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+ 
 POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
 POL_System_TmpCreate "$PREFIX"
-
-POL_SetupWindow_VMS $GAME_VMS
-
 Set_OS "winxp"
-Set_Desktop "On" "800" "600"
 
 POL_Call POL_Install_directplay
+POL_SetupWindow_VMS "128"
 
+POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "00000000.016"
-POL_Wine start /unix "$CDROM/SETUP.EXE"
-POL_Wine_WaitExit "$TITLE"
 
-POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
+POL_SetupWindow_InstallMethod "ENGLISH,FRANCE"
 
-# Install patch 1.1
-cd "$POL_System_TmpDir"
-POL_Download "http://download.microsoft.com/download/5/4/2/542a372f-d540-468d-a653-2cdced8d1d0d/flpatch.exe" "b2621b2a33c519d8b599cb3579be4c02"
-POL_Wine_WaitBefore "$TITLE - Patch 1.1"
-POL_Wine "$POL_System_TmpDir/flpatch.exe"
-POL_Wine_WaitExit "$TITLE - Patch 1.1"
+if [ "$INSTALL_METHOD" = "ENGLISH" ]; then
+    POL_Wine start /unix "$CDROM/SETUP.EXE"
+    POL_Wine_WaitExit "$TITLE"
+fi
+
+if [ "$INSTALL_METHOD" = "FRANCE" ]; then
+    POL_Wine start /unix "$CDROM/install.exe"
+    POL_Wine_WaitExit "$(eval_gettext 'Programme d'installation Freelancer')"
+fi
 
-POL_Shortcut "FLServer.exe" "$TITLE server" "$SERVERTITLE.png"
-# End install patch 1.1
+POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
 
-POL_System_TmpDelete
+POL_SetupWindow_question "$(eval_gettext 'Do you want to install patch?')" "$TITLE"
+if [ "$APP_ANSWER" = "TRUE" ]; then
 
-POL_SetupWindow_Close
+        POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+ 
+        if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+        
+        # Download patch 1.1
+        cd "$POL_System_TmpDir"
+        POL_Download "http://the-starport.net/freelancer/download/visit.php?cid=1&lid=2639"
+ 
+        # Move file to correct filename
+        mv "visit.php?cid=1&lid=2639" "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+         
+        # Unzip patch
+        unzip "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error unzip the file!')"
+        POL_Wine_WaitBefore "$TITLE"
+         
+        # Install 1.1 patch
+        POL_Wine "$POL_System_TmpDir/flpatch.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
+        POL_Wine_WaitExit "$TITLE"
+        fi
+        
+        if [ "$INSTALL_METHOD" = "LOCAL" ]; then
+        
+        cd "$HOME"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+        SetupFile="$APP_ANSWER"
+        POL_Wine_WaitBefore "$TITLE"
+        POL_Wine start /unix "$SetupFile"
+    fi
+        
+fi
 
+POL_Wine_WaitExit
+POL_SetupWindow_Close
 exit 0
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2013-03-01 17-00)
# Last revision : (2017-02-08 18-43)
# Wine version used : 1.5.24
# Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
# nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
# Author : lahtis lahtis@gmail.com
# Script licence : GPLv.2
# Program licence : Retail
# Support France and English CD-version.
 
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-13)
#   Update gettext messages
#   Clean code
#   Fix POL_Install_directplay call (missing POL_Call)
#   Fix $PLAYONLINUX variable check presence
 
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
 
TITLE="Freelancer"
PREFIX="Freelancer"
WORKING_WINE_VERSION="3.1"
EDITOR="Microsoft game studios"
GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
AUTHOR="lahtis"
 
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1600
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
Set_OS "winxp"

POL_Call POL_Install_directplay
POL_SetupWindow_VMS "128"

POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "00000000.016"

POL_SetupWindow_InstallMethod "ENGLISH,FRANCE"

if [ "$INSTALL_METHOD" = "ENGLISH" ]; then
    POL_Wine start /unix "$CDROM/SETUP.EXE"
    POL_Wine_WaitExit "$TITLE"
fi

if [ "$INSTALL_METHOD" = "FRANCE" ]; then
    POL_Wine start /unix "$CDROM/install.exe"
    POL_Wine_WaitExit "$(eval_gettext 'Programme d'installation Freelancer')"
fi

POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"

POL_SetupWindow_question "$(eval_gettext 'Do you want to install patch?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then

        POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
 
        if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
        
        # Download patch 1.1
        cd "$POL_System_TmpDir"
        POL_Download "http://the-starport.net/freelancer/download/visit.php?cid=1&lid=2639"
 
        # Move file to correct filename
        mv "visit.php?cid=1&lid=2639" "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
         
        # Unzip patch
        unzip "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error unzip the file!')"
        POL_Wine_WaitBefore "$TITLE"
         
        # Install 1.1 patch
        POL_Wine "$POL_System_TmpDir/flpatch.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
        POL_Wine_WaitExit "$TITLE"
        fi
        
        if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SetupFile="$APP_ANSWER"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine start /unix "$SetupFile"
    fi
        
fi

POL_Wine_WaitExit
POL_SetupWindow_Close
exit 0

Réponses

lahtis Mardi 6 Février 2018 à 1:03
lahtis Anonymous

Warning

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

Messages

  • Update gettext messages
  • Add support France and English CD-version.
  • Clean code. Microsoft has removed official patches from the server.
  • Update code.

 

Differences

@@ -1,13 +1,13 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash 
 # Date : (2013-03-01 17-00)
-# Last revision : (2013-07-24 09-13)
+# Last revision : (2017-02-06 02-02)
 # Wine version used : 1.5.24
 # Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
 # nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
 # Author : lahtis lahtis@gmail.com
 # Script licence : GPL v.2
 # Program licence : Retail
-# Freelancer installer and 1.1 offical patching.
+# Support France and English CD-version.
 
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-13)
@@ -26,45 +26,35 @@
 EDITOR="Microsoft game studios"
 GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
 AUTHOR="lahtis"
-GAME_VMS="512"
 
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
+POL_SetupWindow_SetID 1600
 POL_Debug_Init
 
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
 POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
 POL_System_TmpCreate "$PREFIX"
-
-POL_SetupWindow_VMS $GAME_VMS
-
 Set_OS "winxp"
-Set_Desktop "On" "800" "600"
+Set_Desktop "On" "1024" "768"
 
 POL_Call POL_Install_directplay
+POL_SetupWindow_VMS "512"
 
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "00000000.016"
-POL_Wine start /unix "$CDROM/SETUP.EXE"
-POL_Wine_WaitExit "$TITLE"
-
+if [ -f "$CDROM/install.exe" ]; then
+    POL_Wine start /unix "$CDROM/install.exe"
+    POL_Wine_WaitExit "$(eval_gettext 'Programme d'installation Freelancer')"
+else
+    POL_Wine start /unix "$CDROM/SETUP.EXE"
+    POL_Wine_WaitExit "$TITLE"
+fi
+ 
 POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
 
-# Install patch 1.1
-cd "$POL_System_TmpDir"
-POL_Download "http://download.microsoft.com/download/5/4/2/542a372f-d540-468d-a653-2cdced8d1d0d/flpatch.exe" "b2621b2a33c519d8b599cb3579be4c02"
-POL_Wine_WaitBefore "$TITLE - Patch 1.1"
-POL_Wine "$POL_System_TmpDir/flpatch.exe"
-POL_Wine_WaitExit "$TITLE - Patch 1.1"
-
-POL_Shortcut "FLServer.exe" "$TITLE server" "$SERVERTITLE.png"
-# End install patch 1.1
-
-POL_System_TmpDelete
-
 POL_SetupWindow_Close
-
 exit 0
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash 
# Date : (2013-03-01 17-00)
# Last revision : (2017-02-06 02-02)
# Wine version used : 1.5.24
# Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
# nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
# Author : lahtis lahtis@gmail.com
# Script licence : GPL v.2
# Program licence : Retail
# Support France and English CD-version.

# CHANGELOG
# [SuperPlumus] (2013-07-24 09-13)
#   Update gettext messages
#   Clean code
#   Fix POL_Install_directplay call (missing POL_Call)
#   Fix $PLAYONLINUX variable check presence

[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"

TITLE="Freelancer"
PREFIX="Freelancer"
WORKING_WINE_VERSION="1.5.24"
SERVERTITLE="FreelanceServer"
EDITOR="Microsoft game studios"
GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
AUTHOR="lahtis"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1600
POL_Debug_Init

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

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
Set_OS "winxp"
Set_Desktop "On" "1024" "768"

POL_Call POL_Install_directplay
POL_SetupWindow_VMS "512"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "00000000.016"
if [ -f "$CDROM/install.exe" ]; then
    POL_Wine start /unix "$CDROM/install.exe"
    POL_Wine_WaitExit "$(eval_gettext 'Programme d'installation Freelancer')"
else
    POL_Wine start /unix "$CDROM/SETUP.EXE"
    POL_Wine_WaitExit "$TITLE"
fi
 
POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"

POL_SetupWindow_Close
exit 0

Réponses

Mardi 6 Février 2018 à 17:11
Set_Desktop is a bit tricky because you must set it to a size that everybody support.
Anonymous
Mardi 6 Février 2018 à 18:11
i cant get cdrom working in Ubuntu. dam?? again??
Mardi 6 Février 2018 à 18:22
Maybe you if ?
Anonymous
Mardi 6 Février 2018 à 21:02
The cd-rom script has previously had problems with Ubuntu. Would it be that again.
Anonymous
Jeudi 8 Février 2018 à 17:03
getting version 3.1 working, no needed virtual desktop. fixing the script.
cschreib Lundi 1 Janvier 2018 à 15:06
cschreib Anonymous

Warning

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

Messages

Installer fails for French CD, since "SETUP.EXE" is renamed to "install.exe" in this language, and program title is not "Freelancer".

Differences

@@ -1,6 +1,6 @@
 #!/bin/bash
 # Date : (2013-03-01 17-00)
-# Last revision : (2013-07-24 09-13)
+# Last revision : (2018-01-01 15-00)
 # Wine version used : 1.5.24
 # Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
 # nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
@@ -10,6 +10,8 @@
 # Freelancer installer and 1.1 offical patching.
 
 # CHANGELOG
+# [cschreib] (2018-01-01 15-00)
+#   Fix SETUP.EXE file name for French CD
 # [SuperPlumus] (2013-07-24 09-13)
 #   Update gettext messages
 #   Clean code
@@ -48,8 +50,13 @@
 
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "00000000.016"
-POL_Wine start /unix "$CDROM/SETUP.EXE"
-POL_Wine_WaitExit "$TITLE"
+if [ -f "$CDROM/install.exe" ]; then
+    POL_Wine start /unix "$CDROM/install.exe"
+    POL_Wine_WaitExit "Programme d'installation Freelancer"
+else
+    POL_Wine start /unix "$CDROM/SETUP.EXE"
+    POL_Wine_WaitExit "$TITLE"
+fi
 
 POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
 

Nouveau code source

#!/bin/bash
# Date : (2013-03-01 17-00)
# Last revision : (2018-01-01 15-00)
# Wine version used : 1.5.24
# Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
# nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
# Author : lahtis lahtis@gmail.com
# Script licence : GPL v.2
# Program licence : Retail
# Freelancer installer and 1.1 offical patching.

# CHANGELOG
# [cschreib] (2018-01-01 15-00)
#   Fix SETUP.EXE file name for French CD
# [SuperPlumus] (2013-07-24 09-13)
#   Update gettext messages
#   Clean code
#   Fix POL_Install_directplay call (missing POL_Call)
#   Fix $PLAYONLINUX variable check presence

[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"

TITLE="Freelancer"
PREFIX="Freelancer"
WORKING_WINE_VERSION="1.5.24"
SERVERTITLE="FreelanceServer"
EDITOR="Microsoft game studios"
GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
AUTHOR="lahtis"
GAME_VMS="512"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init

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

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_VMS $GAME_VMS

Set_OS "winxp"
Set_Desktop "On" "800" "600"

POL_Call POL_Install_directplay

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "00000000.016"
if [ -f "$CDROM/install.exe" ]; then
    POL_Wine start /unix "$CDROM/install.exe"
    POL_Wine_WaitExit "Programme d'installation Freelancer"
else
    POL_Wine start /unix "$CDROM/SETUP.EXE"
    POL_Wine_WaitExit "$TITLE"
fi

POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"

# Install patch 1.1
cd "$POL_System_TmpDir"
POL_Download "http://download.microsoft.com/download/5/4/2/542a372f-d540-468d-a653-2cdced8d1d0d/flpatch.exe" "b2621b2a33c519d8b599cb3579be4c02"
POL_Wine_WaitBefore "$TITLE - Patch 1.1"
POL_Wine "$POL_System_TmpDir/flpatch.exe"
POL_Wine_WaitExit "$TITLE - Patch 1.1"

POL_Shortcut "FLServer.exe" "$TITLE server" "$SERVERTITLE.png"
# End install patch 1.1

POL_System_TmpDelete

POL_SetupWindow_Close

exit 0

Réponses

Anonymous
Mardi 6 Février 2018 à 0:35
Yes. You are correct. Installer is English version.
lahtis Dimanche 22 Janvier 2017 à 17:46
lahtis Anonymous

Warning

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

Messages

fixed patch donwloader.

Differences

@@ -1,70 +1,84 @@
 #!/bin/bash
 # Date : (2013-03-01 17-00)
-# Last revision : (2013-07-24 09-13)
+# Last revision : (2017-01-22 18:39)
 # Wine version used : 1.5.24
 # Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
 # nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
 # Author : lahtis lahtis@gmail.com
-# Script licence : GPL v.2
+# Script licence : GPLv.2
 # Program licence : Retail
-# Freelancer installer and 1.1 offical patching.
-
+# Freelancer installer and 1.1 offical patch.
+ 
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-13)
 #   Update gettext messages
 #   Clean code
 #   Fix POL_Install_directplay call (missing POL_Call)
 #   Fix $PLAYONLINUX variable check presence
-
+ 
 [ -z "$PLAYONLINUX" ] && exit
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Freelancer"
 PREFIX="Freelancer"
 WORKING_WINE_VERSION="1.5.24"
-SERVERTITLE="FreelanceServer"
 EDITOR="Microsoft game studios"
 GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
 AUTHOR="lahtis"
 GAME_VMS="512"
 
+UPDATE_VERSION="1.1"
+ 
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
 POL_Debug_Init
-
+ 
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+ 
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
-POL_System_TmpCreate "$PREFIX"
-
+ POL_System_TmpCreate "$PREFIX"
 POL_SetupWindow_VMS $GAME_VMS
 
-Set_OS "winxp"
-Set_Desktop "On" "800" "600"
+# Fix pulseaudio issue
+which pulseaudio && Set_OS "winxp" 
 
+Set_Desktop "On" "1024" "768"
+ 
 POL_Call POL_Install_directplay
-
+ 
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "00000000.016"
 POL_Wine start /unix "$CDROM/SETUP.EXE"
 POL_Wine_WaitExit "$TITLE"
-
+ 
 POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"
 
-# Install patch 1.1
-cd "$POL_System_TmpDir"
-POL_Download "http://download.microsoft.com/download/5/4/2/542a372f-d540-468d-a653-2cdced8d1d0d/flpatch.exe" "b2621b2a33c519d8b599cb3579be4c02"
-POL_Wine_WaitBefore "$TITLE - Patch 1.1"
-POL_Wine "$POL_System_TmpDir/flpatch.exe"
-POL_Wine_WaitExit "$TITLE - Patch 1.1"
-
-POL_Shortcut "FLServer.exe" "$TITLE server" "$SERVERTITLE.png"
-# End install patch 1.1
-
+POL_SetupWindow_question "$(eval_gettext 'Do you want to install $TITLE $UPDATE_VERSION update?')" "$TITLE"
+if [ "$APP_ANSWER" = "TRUE" ]
+then
+ 
+	# Download patch 1.1
+	cd "$POL_System_TmpDir"
+	POL_Download "http://the-starport.net/freelancer/download/visit.php?cid=1&lid=2639" 
+
+	# Move file to correct filename
+	mv "visit.php?cid=1&lid=2639" "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+	
+	# Unzip patch
+	unzip "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error unzip the file!')"
+	POL_Wine_WaitBefore "$TITLE"
+	
+	# Install 1.1 patch 
+	POL_Wine "$POL_System_TmpDir/flpatch.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
+	POL_Wine_WaitExit "$TITLE"
+ 
+ 	# Create server shortcut
+	POL_Shortcut "FLServer.exe" "$TITLE server" "$TITLE.png"
+	
+fi
+ 
 POL_System_TmpDelete
-
 POL_SetupWindow_Close
-
-exit 0
\ No newline at end of file
+ 
+exit 0

Nouveau code source

#!/bin/bash
# Date : (2013-03-01 17-00)
# Last revision : (2017-01-22 18:39)
# Wine version used : 1.5.24
# Distribution used to test : Ubuntu 12.10, Nvidia Geforce 9800 GT 512MB using
# nvidia-experimental-310 driver, Intel® Core™2 Duo CPU E4400 @ 2.00GHz×2, Memory 1,9 GiB
# Author : lahtis lahtis@gmail.com
# Script licence : GPLv.2
# Program licence : Retail
# Freelancer installer and 1.1 offical patch.
 
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-13)
#   Update gettext messages
#   Clean code
#   Fix POL_Install_directplay call (missing POL_Call)
#   Fix $PLAYONLINUX variable check presence
 
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
 
TITLE="Freelancer"
PREFIX="Freelancer"
WORKING_WINE_VERSION="1.5.24"
EDITOR="Microsoft game studios"
GAME_URL="http://www.microsoft.com/games/freelancer/default.aspx"
AUTHOR="lahtis"
GAME_VMS="512"

UPDATE_VERSION="1.1"
 
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 POL_System_TmpCreate "$PREFIX"
POL_SetupWindow_VMS $GAME_VMS

# Fix pulseaudio issue
which pulseaudio && Set_OS "winxp" 

Set_Desktop "On" "1024" "768"
 
POL_Call POL_Install_directplay
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "00000000.016"
POL_Wine start /unix "$CDROM/SETUP.EXE"
POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut "Freelancer.exe" "$TITLE" "$TITLE.png"

POL_SetupWindow_question "$(eval_gettext 'Do you want to install $TITLE $UPDATE_VERSION update?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]
then
 
        # Download patch 1.1
        cd "$POL_System_TmpDir"
        POL_Download "http://the-starport.net/freelancer/download/visit.php?cid=1&lid=2639" 

        # Move file to correct filename
        mv "visit.php?cid=1&lid=2639" "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
        
        # Unzip patch
        unzip "flpatch.zip" || POL_Debug_Fatal "$(eval_gettext 'Error unzip the file!')"
        POL_Wine_WaitBefore "$TITLE"
        
        # Install 1.1 patch 
        POL_Wine "$POL_System_TmpDir/flpatch.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
        POL_Wine_WaitExit "$TITLE"
 
         # Create server shortcut
        POL_Shortcut "FLServer.exe" "$TITLE server" "$TITLE.png"
        
fi
 
POL_System_TmpDelete
POL_SetupWindow_Close
 
exit 0

Réponses

valarkis Mardi 20 September 2016 à 23:00
valarkis Anonymous

Messages

my beloved freelancer wont run.

installation runs well (german or english cd)

game starts only in windowed/emulated desktop mode with max. 1024x768 size!

no bigger screensize. no fullscreen.

but only with "old" wine versions. not higher than 1.5xx or so!?

if i use a higher wine version, i got graphic bugs ..see no mouse pointer, or so

and it runs only until the main menu fine.

if i click new game or load game - it crashes every time.

too bad!

using mint17 and zorin9 linux, uptodate.

 

thx for reading

 

Réponses

Theredbaron1834 Dimanche 18 September 2016 à 8:48
Theredbaron1834 Anonymous

Messages

Does not install at all now as the patch download is no longer working. Plus, even if you download the patch separately, mounting the CD in wine doesn't seem to work with the security. It does still seem to run with a no-cd patch (grabbed from here) which I don't think could be used in this. Thus, it might be best to remove, as it doesn't work and would just cause issues.

Réponses

Anonymous
Dimanche 22 Janvier 2017 à 17:48
fixed.
Vendredi 4 Mars 2016 à 1:08
Anonymous

Messages

Didn't work with stock-settings.

Running this on Arch with Kernel 4.3 on a radeon r7 265

 

I switched the wine version to 1.9.0-staging and disabled the simulated desktop. Now the game starts and the singleplayer seems to work.

 

Biggest issue probably is the same as on windows: the software-cursors that is reacting too slow due to v-sync.

Réponses

Anonymous
Vendredi 4 Mars 2016 à 1:24
I forgot: Minimizing the game will not work in this configurartion
nicolas.collart Dimanche 22 Février 2015 à 17:28
nicolas.collart Anonymous

Messages

Game works great in single player.

I cannot switch to fullscreen though, it is always limited to a windows where the game appears... any idea on how to fix this?

Réponses

Dimanche 22 Février 2015 à 17:42
Unfortunately, no. The game uses a "virtual desktop" through Wine, likely because it has graphical glitches without it. You can turn that off if you want to test without it: Configure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab -> uncheck Emulate a Virtual Desktop

Though, it may cause graphic glitches. When someone has added that into the script, it is usually the case that it is somewhat broken without it. From that same graphics tab, though, you can increase the resolution of the virtual desktop, and that will enable you to set it for any size. Truth be told, I run a LOT of games like this, even if it is not needed, because I have a 5 monitor setup, and it is nice to have full screen gaming on one monitor and business on the others. lol. :)
lahtis Jeudi 22 Janvier 2015 à 15:09
lahtis Anonymous

Messages

How to get online-play working.

http://discoverygc.com/forums/showthread.php?tid=48363&pid=1610948#pid1610948

Réponses