Star Wars: Jedi Knight: Jedi Academy

Informations

Créateur Messages
Quentin PÂRIS Anonymous

Information

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

Informations

Plate-formes :
Téléchargements : 36599
Wine: 1.7.48

Retours d'expérience

Code source

#!/bin/bash

# CHANGELOG
# [Quentin PÂRIS] (2012-04-29 13-09)
#   Updated to PlayOnLinux v4
# [SuperPlumus] (2015-08-02 20-13)
#   Update wine version to 1.7.48
#   Fix bug (incorrect argumentas) in POL_Wine_InstallCDROMCustom
#   Update title variable
#   Partial clean code

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

TITLE="Star Wars: Jedi Knight: Jedi Academy"
PREFIX="JediKnightAcademy"
STEAM_ID="6020"

POL_GetSetupImages "" "$SITE/setups/jka/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE"

POL_SetupWindow_presentation "$TITLE" "LucasArts" "http://www.lucasarts.com" "Quentin PÂRIS" "$PREFIX"

POL_SetupWindow_InstallMethod "CD,STEAM"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.48"

POL_System_TmpCreate "JediKnightAcademy"

if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
    chmod -R 777 "$POL_System_TmpDir"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    POL_SetupWindow_message "$(eval_gettext 'Please insert the second game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/data3.cab"

    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
    chmod -R 777 "$POL_System_TmpDir"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    POL_Wine_WaitBefore "$TITLE"

    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
    POL_Wine_InstallCDROMCustom "p" "$POL_System_TmpDir"

    POL_Wine "$POL_System_TmpDir/GameData/Setup.exe"

    POL_Wine_reboot
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" || POL_Debug_Fatal "Unable to change directory : \$WINEPREFIX/drive_c/\$PROGRAMFILES/Steam"
    POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
    POL_Wine_WaitExit "$TITLE"
fi

POL_System_TmpDelete
POL_Shortcut "JediAcademy.exe" "Jedi Knight Academy"

POL_SetupWindow_message "Installation is finished\n\nYou need to patch the game to run it" "$TITLE"
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
SuperPlumus Dimanche 2 Aoüt 2015 à 20:28
SuperPlumus Anonymous

Information

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

Messages

@whatwhat

Hello,

Please test the attached script with the latest wine version 1.7.48, and tell me if it works properly.

Thank you for report.

Differences

@@ -1,13 +1,18 @@
 #!/bin/bash
 
-# [Quentin PÂRIS] (2012-04-29 13:09)
+# CHANGELOG
+# [Quentin PÂRIS] (2012-04-29 13-09)
 #   Updated to PlayOnLinux v4
+# [SuperPlumus] (2015-08-02 20-13)
+#   Update wine version to 1.7.48
+#   Fix bug (incorrect argumentas) in POL_Wine_InstallCDROMCustom
+#   Update title variable
+#   Partial clean code
 
-# CHANGELOG
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-TITLE="Star Wars : Jedi Knight: Jedi Academy"
+TITLE="Star Wars: Jedi Knight: Jedi Academy"
 PREFIX="JediKnightAcademy"
 STEAM_ID="6020"
 
@@ -21,49 +26,48 @@
 POL_SetupWindow_InstallMethod "CD,STEAM"
 
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "1.2.3"
+POL_Wine_PrefixCreate "1.7.48"
 
 POL_System_TmpCreate "JediKnightAcademy"
 
 if [ "$INSTALL_METHOD" = "CD" ]; then
-	POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
-	POL_SetupWindow_cdrom 
-	POL_SetupWindow_check_cdrom "GameData/Setup.exe"
-	POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
-	chmod -R 777 "$POL_System_TmpDir"
-	POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
-	
-	POL_SetupWindow_message "$(eval_gettext 'Please insert the second game media into your disk drive')" "$TITLE"
-	POL_SetupWindow_cdrom
-	POL_SetupWindow_check_cdrom "GameData/data3.cab"
-
-	POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
-	chmod -R 777 "$POL_System_TmpDir"
-	POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
-	
-	POL_Wine_WaitBefore "$TITLE"
-
-	POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
-	POL_SetupWindow_cdrom 
-	POL_SetupWindow_check_cdrom "GameData/Setup.exe"
-	POL_Wine_InstallCDROMCustom "$POL_System_TmpDir"
-
-	POL_Wine "$POL_System_TmpDir/GameData/Setup.exe"
-
-	POL_Wine_reboot
+    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
+    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
+    chmod -R 777 "$POL_System_TmpDir"
+    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
+
+    POL_SetupWindow_message "$(eval_gettext 'Please insert the second game media into your disk drive')" "$TITLE"
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "GameData/data3.cab"
+
+    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
+    chmod -R 777 "$POL_System_TmpDir"
+    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
+
+    POL_Wine_WaitBefore "$TITLE"
+
+    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
+    POL_Wine_InstallCDROMCustom "p" "$POL_System_TmpDir"
+
+    POL_Wine "$POL_System_TmpDir/GameData/Setup.exe"
+
+    POL_Wine_reboot
+elif [ "$INSTALL_METHOD" = "STEAM" ]; then
+    POL_Call POL_Install_steam
+    POL_Call POL_Install_steam_flags "$STEAM_ID"
+    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" || POL_Debug_Fatal "Unable to change directory : \$WINEPREFIX/drive_c/\$PROGRAMFILES/Steam"
+    POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+    POL_Wine_WaitExit "$TITLE"
 fi
 
-if [ "$INSTALL_METHOD" = "STEAM" ]; then
-	POL_Call POL_Install_steam
-	POL_Call POL_Install_steam_flags "$STEAM_ID"
-	POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
-        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" || POL_Debug_Fatal "Unable to change directory : \$WINEPREFIX/drive_c/\$PROGRAMFILES/Steam"
-        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
-        POL_Wine_WaitExit "$TITLE"
-fi
 POL_System_TmpDelete
 POL_Shortcut "JediAcademy.exe" "Jedi Knight Academy"
 
 POL_SetupWindow_message "Installation is finished\n\nYou need to patch the game to run it" "$TITLE"
 POL_SetupWindow_Close
-exit 0
\ No newline at end of file
+exit 0

Nouveau code source

#!/bin/bash

# CHANGELOG
# [Quentin PÂRIS] (2012-04-29 13-09)
#   Updated to PlayOnLinux v4
# [SuperPlumus] (2015-08-02 20-13)
#   Update wine version to 1.7.48
#   Fix bug (incorrect argumentas) in POL_Wine_InstallCDROMCustom
#   Update title variable
#   Partial clean code

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

TITLE="Star Wars: Jedi Knight: Jedi Academy"
PREFIX="JediKnightAcademy"
STEAM_ID="6020"

POL_GetSetupImages "" "$SITE/setups/jka/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE"

POL_SetupWindow_presentation "$TITLE" "LucasArts" "http://www.lucasarts.com" "Quentin PÂRIS" "$PREFIX"

POL_SetupWindow_InstallMethod "CD,STEAM"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.48"

POL_System_TmpCreate "JediKnightAcademy"

if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
    chmod -R 777 "$POL_System_TmpDir"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    POL_SetupWindow_message "$(eval_gettext 'Please insert the second game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/data3.cab"

    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
    chmod -R 777 "$POL_System_TmpDir"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    POL_Wine_WaitBefore "$TITLE"

    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
    POL_Wine_InstallCDROMCustom "p" "$POL_System_TmpDir"

    POL_Wine "$POL_System_TmpDir/GameData/Setup.exe"

    POL_Wine_reboot
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" || POL_Debug_Fatal "Unable to change directory : \$WINEPREFIX/drive_c/\$PROGRAMFILES/Steam"
    POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
    POL_Wine_WaitExit "$TITLE"
fi

POL_System_TmpDelete
POL_Shortcut "JediAcademy.exe" "Jedi Knight Academy"

POL_SetupWindow_message "Installation is finished\n\nYou need to patch the game to run it" "$TITLE"
POL_SetupWindow_Close
exit 0

Réponses

Anonymous
Lundi 3 Aoüt 2015 à 8:49
Didnt work. The launcher has only install option after install. Trying to run the game from steam =crash. I didnt upgrade the game...
Anonymous
Mardi 4 Aoüt 2015 à 22:41
I'm sorry, but I don't know are very limited with Steam.

I invite you to open a topic on the English forum, by following the instructions in the link below.

https://www.playonlinux.com/en/topic-12181-Please_read_before_posting.html

Other admins and developers who know better Steam may repair the script.

(Sorry for my bad English)
Anonymous
Mercredi 5 Aoüt 2015 à 3:16
Does it work with cdrom version?
Mercredi 27 Novembre 2019 à 8:52
Script approved.
whatwhat Dimanche 2 Aoüt 2015 à 4:22
whatwhat Anonymous

Messages

Steam does not currently work, needs a newer version of wine to function.

Réponses

Anonymous
Dimanche 2 Aoüt 2015 à 20:30
Please test the atached script above (modify with wine 1.7.48)

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