El Foro

League of Legends

Nouveau script

Autor Respuestas
BlondVador Tuesday 23 April 2013 at 15:52
BlondVador

L'actuel script de League of Legends disponibles dans la partie "Test" ne fonctionne plus.

J'en ai refait un propre. J'ai réutilisé la lien de téléchargement de l'archive disponible sur l'ancien script.

Ce script fonctionne parfaitement sur ma Arch x64. Il faudrait néanmoins patcher les version 1.5.27 et 1.5.28 de Wine avec :

[img]http://i.imgur.com/ibDZlsk.jpg[/img]

[img]http://i.imgur.com/Uy4lZeN.jpg[/img]

[code language=playonlinux]
#!/bin/bash
# Date : (2013-04-23)
# Last revision : (2013-04-23)
# Wine version used : 1.5.28
# Distribution used to test : ArchLinux x64
# Author : Valentin PERRUSSEL
# Licence : GPLv3
# PlayOnLinux: 4.2.1

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

TITLE="League of Legends"
PREFIX="LoL"
WINEVERSION="1.5.28"
EDITOR="Riot"
GAME_URL="http://www.riotgames.com/"
AUTHOR="Valentin PERRUSSEL"

# Languages
if [ "$POL_LANG" == "fr" ]; 

then
LNG_WARNING="Décochez la case \\"Launch League of Legends\\" après l'installation."
LNG_INSTALL_METHOD="Veuillez choisir votre méthode d'installation."
LNG_INSTALL_METHOD_0="Télécharger (recommandé)"
LNG_INSTALL_METHOD_1="Installer avec l'installateur complet"
LNG_CHOSE_FILE="Choisissez le fichier d'installation (setup.exe)."
LNG_COMPLETE="Installation réussie. Vous pouvez à présent jouer à League of Legends."

else
LNG_WARNING="Uncheck \\"Launch League of Legends\\" after install."
LNG_INSTALL_METHOD="Chose your install method."
LNG_INSTALL_METHOD_0="Download (recommended)"
LNG_INSTALL_METHOD_1="Install with full installer"
LNG_CHOSE_FILE="Chose your install file (setup.exe)."
LNG_COMPLETE="Installation complete. Now you can play at League of Legends."
fi

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

POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

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

# Setting prefix path
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# Installing mandatory dependencies
Set_OS winxp 
POL_Call POL_Install_d3dx9
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_wininet
POL_Call POL_Install_corefonts
POL_Call POL_Install_gecko

# These two dependencies seems to not work
#POL_Call POL_Install_ie6
#POL_Call POL_Install_winhttp 

# Asking about memory size of graphic card
POL_SetupWindow_VMS

# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver

POL_SetupWindow_message "$(eval_gettext '$LNG_WARNING')" "$TITLE"

# Chose install method
POL_SetupWindow_menu_num "$LNG_INSTALL_METHOD" "$TITLE" "$LNG_INSTALL_METHOD_0~$LNG_INSTALL_METHOD_1" "~"

if [ "$APP_ANSWER" == 0 ]; 

then
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://files.playonlinux.com/LeagueOfLegends.tar" "89b14c74d0b467fa8f78050644d58506"
POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive...')" "$TITLE"
mkdir -p "$DESKTOP/League of Legends"
cd "$DESKTOP/League of Legends" || POL_Debug_Fatal "Could not change dir to $DESKTOP/League of Legends!" 
tar -xvf "$POL_System_TmpDir/LeagueOfLegends.tar" || POL_Debug_Fatal "Error while decompressing archive!"
POL_SetupWindow_browse "$(eval_gettext '$LNG_CHOSE_FILE')" "$TITLE"
POL_SetupWindow_wait "$(eval_gettext 'Installation in progress...')" "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit

else
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext '$LNG_CHOSE_FILE')" "$TITLE"
POL_SetupWindow_wait "$(eval_gettext 'Installation in progress...')" "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit
fi

# Install fonts
POL_Wine_InstallFonts

# Free TMP
POL_System_TmpDelete

# Create launcher
POL_Shortcut "rads_user_kernel.exe" "$TITLE" "$TITLE.png" "run lol_launcher \\$(ls ../projects/lol_launcher/releases/) LoLLauncher.exe &"

# The end :D
POL_SetupWindow_message "$LNG_COMPLETE" "$TITLE"

POL_SetupWindow_Close
exit[/code]

Editado por: BlondVador


Quentin PÂRIS Monday 29 April 2013 at 20:23
Quentin PÂRISAnonymous

Comme je te l'ai expliqué, ton script ne respecte pas certains points imposés pour l'écriture de nouveaux scripts. De plus, le patch dont tu me parle est déjà intégré dans 1.5.28. Pour finir, il y a de nombreux bugs que le script actuel corrige et que tu as oublié.

Il serait judicieux d'essayer de mettre tout en commun. (P.S., ne tiens pas comptes des bugs qui t'ont été assignés)