Dark Age of Camelot : Labyrinth of the Minotaur

Informations

Creator Message
Tr4sK Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 13093
Wine: System

Feedbacks

Description

MMORPG, 2006.

Wikipedia.

Source code

#!/bin/bash
#Vérifier que PlayOnLinux est bien exécuté avant
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
TITLE="Dark Age of Camelot"
PREFIX="DAoC"
 
POL_SetupWindow_Init
 
#Presentation
POL_SetupWindow_presentation "$TITLE" "Mythic" "http://www.darkageofcamelot.com/" "Tr4sK" "$PREFIX"

POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"

if [ "$INSTALL_METHOD" = "LOCAL" ]
then
  POL_SetupWindow_browse "Please select the installation file to run." "$TITLE"
  INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
  cd "$POL_System_TmpDir"
  POL_Download "http://www.darkageofcamelot.com/sites/daoc/files/downloads/DAoCSetup.exe"
  INSTALLER="$POL_System_TmpDir/DAoCSetup.exe"
fi

POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
Set_OS "win7"
POL_Wine_InstallFonts
POL_Call POL_Install_d3dx9

POL_SetupWindow_wait "Installation in progress…" "$TITLE"
POL_Wine "$INSTALLER"
POL_Wine_WaitExit "$TITLE"

POL_System_TmpDelete

POL_Shortcut "camelot.exe" "$TITLE"

POL_SetupWindow_Close 
exit

Contributions

Filters:

Contribute
Member Message
Tr4sK Tuesday 13 August 2019 at 19:12
Tr4sK Anonymous

Information

This update has been approved by the team.

Message

Update the script with new link + local install if not needed
 

Differences

@@ -6,34 +6,43 @@
 fi
 #Charger les librairies
 source "$PLAYONLINUX/lib/sources"
-
-#Verifier les dépendences
-cfg_check
-
+TITLE="Dark Age of Camelot"
+PREFIX="DAoC"
+ 
 POL_SetupWindow_Init
-
+ 
 #Presentation
-POL_SetupWindow_presentation "Dark Age of Camelot - Labyrinth of the Minotaur" "Mythic" "http://www.darkageofcamelot.com/" "Tr4sK" "DAoCLotM"
+POL_SetupWindow_presentation "$TITLE" "Mythic" "http://www.darkageofcamelot.com/" "Tr4sK" "$PREFIX"
 
-#Cette partie contiendra le code du jeu.
+POL_System_TmpCreate "$PREFIX"
 
-mkdir -p $REPERTOIRE/wineprefix/DAoCLotM
-cd $REPERTOIRE/wineprefix/DAoCLotM
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
-POL_SetupWindow_download "Veuillez patienter pendant le téléchargement du client" "Téléchargement de l'éxecutable" "http://daoc.goa.com/downloads/SetupDAoC_LOTM.exe"
-
-select_prefixe "$HOME/.PlayOnLinux/wineprefix/DAoCLotM/"
-POL_SetupWindow_prefixcreate
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+  POL_SetupWindow_browse "Please select the installation file to run." "$TITLE"
+  INSTALLER="$APP_ANSWER"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+  cd "$POL_System_TmpDir"
+  POL_Download "http://www.darkageofcamelot.com/sites/daoc/files/downloads/DAoCSetup.exe"
+  INSTALLER="$POL_System_TmpDir/DAoCSetup.exe"
+fi
 
-POL_SetupWindow_wait_next_signal "Veuillez patienter ..." "Dark Age of Camelot - Labyrinth of the Minotaur"
-wine "SetupDAoC_LOTM.exe" /silent
-POL_SetupWindow_detect_exit
-POL_SetupWindow_message "Dark Age of Camelot - Labyrinth of the Minotaur a été installé"
+POL_System_SetArch "x86"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate
+Set_OS "win7"
+POL_Wine_InstallFonts
+POL_Call POL_Install_d3dx9
+
+POL_SetupWindow_wait "Installation in progress…" "$TITLE"
+POL_Wine "$INSTALLER"
+POL_Wine_WaitExit "$TITLE"
 
-#Fin du code du jeu
-#Création du lanceur
+POL_System_TmpDelete
 
-POL_SetupWindow_make_shortcut "DAoCLotM" "Dark Age of Camelot - Labyrinth of the Minotaur" "camelot.exe" "" "Dark Age of Camelot - Labyrinth of the Minotaur"
+POL_Shortcut "camelot.exe" "$TITLE"
 
-POL_SetupWindow_Close  
-exit
\ No newline at end of file
+POL_SetupWindow_Close 
+exit

New source code

#!/bin/bash
#Vérifier que PlayOnLinux est bien exécuté avant
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
TITLE="Dark Age of Camelot"
PREFIX="DAoC"
 
POL_SetupWindow_Init
 
#Presentation
POL_SetupWindow_presentation "$TITLE" "Mythic" "http://www.darkageofcamelot.com/" "Tr4sK" "$PREFIX"

POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"

if [ "$INSTALL_METHOD" = "LOCAL" ]
then
  POL_SetupWindow_browse "Please select the installation file to run." "$TITLE"
  INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
  cd "$POL_System_TmpDir"
  POL_Download "http://www.darkageofcamelot.com/sites/daoc/files/downloads/DAoCSetup.exe"
  INSTALLER="$POL_System_TmpDir/DAoCSetup.exe"
fi

POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
Set_OS "win7"
POL_Wine_InstallFonts
POL_Call POL_Install_d3dx9

POL_SetupWindow_wait "Installation in progress…" "$TITLE"
POL_Wine "$INSTALLER"
POL_Wine_WaitExit "$TITLE"

POL_System_TmpDelete

POL_Shortcut "camelot.exe" "$TITLE"

POL_SetupWindow_Close 
exit

Replies

Wednesday 14 August 2019 at 17:19
I approve the script.
Please write comments in english.
Useful to read: http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_9:_Standardization

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