Little Fighter 2
Informations
Créateur | Messages |
---|---|
MangaD
|
AttentionThis installer is a beta script. It means that it might not work as expected InformationsPlate-formes : Retours d'expérience5 3 Description2D fighting game, 1999 (first release). Wikipedia, official website. Automatic download possible. Captures d'écranCode source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : see changelog # Distribution used to test : Arch Linux x86_64 5.5.8-arch1-1 # Author : MangaD # LF2 depend: vcrun2005, wmp9, quartz, devenum # LF2 Lobby depend: vb6run # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required # (2018-01-17) - MangaD # - Changed '&&&&' to '&&' in the VENDOR due to changes in POL. # - Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard # - Optionally download Hero Fighter # - Don't use specific wine version # - Replace WMP9 with WMP10, for some reason WMP9 installation was failing for me # (2018-01-19) - MangaD # - Added $WINEPREFIX in rm commands # - Added POL_SetupWindow_wait before unzip/untar # (2018-09-13) - MangaD # - Replace WMP10 with WMP9, the reason WMP9 installation was failing is because POL was having issues # (2019-03-10) - MangaD # - Change url of herofighter-empire.com to hf-empire.com # - Use specific wine version because of 32-bit # (2020-03-01) - MangaD # - Fix bugs and update Hero Fighter link # (2020-03-03) - Dadu042 # - Fix POL_Shortcut failing by using POL_Wine_WaitExit before, instead of POL_Wine_WaitBefore . # - Wine OS version -> 3.20 (latest available for POL < v4.3 users). # - Add POL_Shortcut_Document # (2020-03-12) - MangaD # - Added warning to install mono, mpg123, gstreamer base plugins and gstreamer libav # - Added warning to select VMS no less than 384 # - Added warning about LF2 buggy control settings # (2021-12-11) - MangaD # - Use system wine # - Update Hero Fighter # - Set OS to winxp sp3 # # # KNOWN ISSUES: (NOT FIXED) # - Wine x86 3.0.3, 3.20 (+ game v2.0a): error window 'Could not create a filter graph for this file!' (however the games does continue). Fix: Wine 5.2 # # KNOWN ISSUES (FIXED): # - Wine x86 3.0.3, 3.20, 4.21, 5.2 (+ game v2.0a): game does freeze after clicking 'game start' (Now Loading ... data\henry_wind.dat ). This seems related to 'wmvcore:WMReader_QueryInterface'. Fix: installing with Wine 3.20 (instead of 4.0.2) or installing Mono. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL #WINEVERSION="3.20" PREFIX="LittleFighter2_v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init # Open dialogue box POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_SetupWindow_message "$(eval_gettext 'Warning: Before running this script, make sure that you have the commands '\''unzip'\'' and '\''unrar'\'' installed.')" "$TITLE" POL_SetupWindow_message "$(eval_gettext 'Warning: You also need to install '\''mono'\'' so that the game doesn'\''t freeze at loading.')" "$TITLE" POL_SetupWindow_message "$(eval_gettext 'Warning: For the background music to work, you also need to install the 32-bit version of GStreamer libav. Just in case, also install 32-bit version of mpg123 and 32-bit version of GStreamer Base Plugins.')" "$TITLE" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Determine Architecture, must be x86 because of wmp9 POL_System_SetArch "x86" POL_Wine_PrefixCreate #"$WINEVERSION" POL_SetupWindow_message "$(eval_gettext 'At installation phase, sometimes after clicking '\''Next'\'' nothing appears on the window. Just click '\''Back'\'' and '\''Next'\'' again to fix.')" "$TITLE" ################ # GPU # ################ # Asking about memory size of graphic card POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don'\''t know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver ####################################### # Installing mandatory dependencies # ####################################### Set_OS "winxp" "sp3" POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum Set_OS "winxp" "sp3" ################## # Install game # ################## POL_Wine "$FULL_INSTALLER" POL_Wine_WaitExit "$TITLE" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" POL_Shortcut_Document "$TITLE" "readme.txt" POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" if [ "$APP_ANSWER" = "TRUE" ]; then if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] then DIRECTORY="LittleFighter" else DIRECTORY="LittleFighter2/LF2_v2.0a" fi # Download LF2 Lobby cd "$WINEPREFIX" DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" DOWNLOAD_FILE="LF2Lobby0.1.4.rar" EXE_FILE="LF2Lobby0.1.4.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # vbrun6 is necessary for LF2 Lobby to work POL_Call POL_Install_vbrun6 # Download LF2 MultiServer cd "$WINEPREFIX" DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" EXE_FILE="LF2 Multi Server v2.0.exe" DLL_FILE="MultiPlugin/ddraw.dll" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # ddraw is necessary for LF2 MultiServer and AI addons POL_Wine_OverrideDLL "native,builtin" "ddraw" # Download LF2 Dashboard cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" EXE_FILE="LF2Dashboard.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" fi POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" if [ "$APP_ANSWER" = "TRUE" ]; then # Download HF cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" DOWNLOAD_MD5="0b70102bde8599f9cd7395cabc083e13" DOWNLOAD_FILE="HFv0.7_mod.zip" EXE_FILE="HFv0.7+.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" fi POL_SetupWindow_message "$(eval_gettext 'The LF2 control settings screen doesn'\''t show the Ok and Cancel buttons, but if you hover over them they will appear.')" "$TITLE" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 |
Contributions
Filters:
ContribuerMembre | Messages |
MangaD | Dimanche 12 Décembre 2021 à 0:33 |
MangaD
|
InformationCette mise à jour a été acceptée par l'équipe MessagesUse system wine and update Hero Fighter. Differences@@ -37,7 +37,10 @@ # - Added warning to install mono, mpg123, gstreamer base plugins and gstreamer libav # - Added warning to select VMS no less than 384 # - Added warning about LF2 buggy control settings -# +# (2021-12-11) - MangaD +# - Use system wine +# - Update Hero Fighter +# - Set OS to winxp sp3 # # # KNOWN ISSUES: (NOT FIXED) @@ -50,7 +53,7 @@ source "$PLAYONLINUX/lib/sources" # POL -WINEVERSION="3.20" +#WINEVERSION="3.20" PREFIX="LittleFighter2_v20a" MAINTAINER="MangaD" GAME_VMS="384" @@ -126,7 +129,7 @@ # Determine Architecture, must be x86 because of wmp9 POL_System_SetArch "x86" -POL_Wine_PrefixCreate "$WINEVERSION" +POL_Wine_PrefixCreate #"$WINEVERSION" POL_SetupWindow_message "$(eval_gettext 'At installation phase, sometimes after clicking '\''Next'\'' nothing appears on the window. Just click '\''Back'\'' and '\''Next'\'' again to fix.')" "$TITLE" @@ -147,7 +150,7 @@ # Installing mandatory dependencies # ####################################### -Set_OS "winxp" +Set_OS "winxp" "sp3" POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work @@ -155,7 +158,7 @@ POL_Call POL_Install_quartz POL_Call POL_Install_devenum -Set_OS "winxp" +Set_OS "winxp" "sp3" ################## # Install game # @@ -225,7 +228,7 @@ # Download HF cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" - DOWNLOAD_MD5="b1aca17e2e0d04eba8d633d640eb3046" + DOWNLOAD_MD5="0b70102bde8599f9cd7395cabc083e13" DOWNLOAD_FILE="HFv0.7_mod.zip" EXE_FILE="HFv0.7+.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" @@ -246,4 +249,4 @@ fi POL_SetupWindow_Close -exit 0 \ No newline at end of file +exit 0 Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : see changelog # Distribution used to test : Arch Linux x86_64 5.5.8-arch1-1 # Author : MangaD # LF2 depend: vcrun2005, wmp9, quartz, devenum # LF2 Lobby depend: vb6run # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required # (2018-01-17) - MangaD # - Changed '&&&&' to '&&' in the VENDOR due to changes in POL. # - Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard # - Optionally download Hero Fighter # - Don't use specific wine version # - Replace WMP9 with WMP10, for some reason WMP9 installation was failing for me # (2018-01-19) - MangaD # - Added $WINEPREFIX in rm commands # - Added POL_SetupWindow_wait before unzip/untar # (2018-09-13) - MangaD # - Replace WMP10 with WMP9, the reason WMP9 installation was failing is because POL was having issues # (2019-03-10) - MangaD # - Change url of herofighter-empire.com to hf-empire.com # - Use specific wine version because of 32-bit # (2020-03-01) - MangaD # - Fix bugs and update Hero Fighter link # (2020-03-03) - Dadu042 # - Fix POL_Shortcut failing by using POL_Wine_WaitExit before, instead of POL_Wine_WaitBefore . # - Wine OS version -> 3.20 (latest available for POL < v4.3 users). # - Add POL_Shortcut_Document # (2020-03-12) - MangaD # - Added warning to install mono, mpg123, gstreamer base plugins and gstreamer libav # - Added warning to select VMS no less than 384 # - Added warning about LF2 buggy control settings # (2021-12-11) - MangaD # - Use system wine # - Update Hero Fighter # - Set OS to winxp sp3 # # # KNOWN ISSUES: (NOT FIXED) # - Wine x86 3.0.3, 3.20 (+ game v2.0a): error window 'Could not create a filter graph for this file!' (however the games does continue). Fix: Wine 5.2 # # KNOWN ISSUES (FIXED): # - Wine x86 3.0.3, 3.20, 4.21, 5.2 (+ game v2.0a): game does freeze after clicking 'game start' (Now Loading ... data\henry_wind.dat ). This seems related to 'wmvcore:WMReader_QueryInterface'. Fix: installing with Wine 3.20 (instead of 4.0.2) or installing Mono. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL #WINEVERSION="3.20" PREFIX="LittleFighter2_v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init # Open dialogue box POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_SetupWindow_message "$(eval_gettext 'Warning: Before running this script, make sure that you have the commands '\''unzip'\'' and '\''unrar'\'' installed.')" "$TITLE" POL_SetupWindow_message "$(eval_gettext 'Warning: You also need to install '\''mono'\'' so that the game doesn'\''t freeze at loading.')" "$TITLE" POL_SetupWindow_message "$(eval_gettext 'Warning: For the background music to work, you also need to install the 32-bit version of GStreamer libav. Just in case, also install 32-bit version of mpg123 and 32-bit version of GStreamer Base Plugins.')" "$TITLE" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Determine Architecture, must be x86 because of wmp9 POL_System_SetArch "x86" POL_Wine_PrefixCreate #"$WINEVERSION" POL_SetupWindow_message "$(eval_gettext 'At installation phase, sometimes after clicking '\''Next'\'' nothing appears on the window. Just click '\''Back'\'' and '\''Next'\'' again to fix.')" "$TITLE" ################ # GPU # ################ # Asking about memory size of graphic card POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don'\''t know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver ####################################### # Installing mandatory dependencies # ####################################### Set_OS "winxp" "sp3" POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum Set_OS "winxp" "sp3" ################## # Install game # ################## POL_Wine "$FULL_INSTALLER" POL_Wine_WaitExit "$TITLE" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" POL_Shortcut_Document "$TITLE" "readme.txt" POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" if [ "$APP_ANSWER" = "TRUE" ]; then if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] then DIRECTORY="LittleFighter" else DIRECTORY="LittleFighter2/LF2_v2.0a" fi # Download LF2 Lobby cd "$WINEPREFIX" DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" DOWNLOAD_FILE="LF2Lobby0.1.4.rar" EXE_FILE="LF2Lobby0.1.4.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # vbrun6 is necessary for LF2 Lobby to work POL_Call POL_Install_vbrun6 # Download LF2 MultiServer cd "$WINEPREFIX" DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" EXE_FILE="LF2 Multi Server v2.0.exe" DLL_FILE="MultiPlugin/ddraw.dll" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # ddraw is necessary for LF2 MultiServer and AI addons POL_Wine_OverrideDLL "native,builtin" "ddraw" # Download LF2 Dashboard cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" EXE_FILE="LF2Dashboard.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" fi POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" if [ "$APP_ANSWER" = "TRUE" ]; then # Download HF cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" DOWNLOAD_MD5="0b70102bde8599f9cd7395cabc083e13" DOWNLOAD_FILE="HFv0.7_mod.zip" EXE_FILE="HFv0.7+.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" fi POL_SetupWindow_message "$(eval_gettext 'The LF2 control settings screen doesn'\''t show the Ok and Cancel buttons, but if you hover over them they will appear.')" "$TITLE" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 RéponsesDimanche 12 Décembre 2021 à 17:34
|
MangaD | Jeudi 12 Mars 2020 à 14:42 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. MessagesOk so, I've discovered that 32-bit versions of gstreamer libav, and possibly mpg123 amd gstreamer base plugins are necessary for the background music to work. Installing these made LF2 work on my system wine. But unfortunately, the background music is still not working when installing through PoL, I don't know why. @Dadu - POL_Shortcut_Document apparently does nothing for me... Differences@@ -1,11 +1,11 @@ #!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : see changelog -# Distribution used to test : Ubuntu 19.10 amd64 +# Distribution used to test : Arch Linux x86_64 5.5.8-arch1-1 # Author : MangaD # LF2 depend: vcrun2005, wmp9, quartz, devenum # LF2 Lobby depend: vb6run - + # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies @@ -25,7 +25,7 @@ # (2018-09-13) - MangaD # - Replace WMP10 with WMP9, the reason WMP9 installation was failing is because POL was having issues # (2019-03-10) - MangaD -# - Change url of herofighter-empire.com to hf-empire +# - Change url of herofighter-empire.com to hf-empire.com # - Use specific wine version because of 32-bit # (2020-03-01) - MangaD # - Fix bugs and update Hero Fighter link @@ -33,111 +33,116 @@ # - Fix POL_Shortcut failing by using POL_Wine_WaitExit before, instead of POL_Wine_WaitBefore . # - Wine OS version -> 3.20 (latest available for POL < v4.3 users). # - Add POL_Shortcut_Document +# (2020-03-12) - MangaD +# - Added warning to install mono, mpg123, gstreamer base plugins and gstreamer libav +# - Added warning to select VMS no less than 384 +# - Added warning about LF2 buggy control settings # # # -# KNOWN ISSUES: +# KNOWN ISSUES: (NOT FIXED) # - Wine x86 3.0.3, 3.20 (+ game v2.0a): error window 'Could not create a filter graph for this file!' (however the games does continue). Fix: Wine 5.2 # # KNOWN ISSUES (FIXED): # - Wine x86 3.0.3, 3.20, 4.21, 5.2 (+ game v2.0a): game does freeze after clicking 'game start' (Now Loading ... data\henry_wind.dat ). This seems related to 'wmvcore:WMReader_QueryInterface'. Fix: installing with Wine 3.20 (instead of 4.0.2) or installing Mono. - + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - + # POL WINEVERSION="3.20" PREFIX="LittleFighter2_v20a" MAINTAINER="MangaD" GAME_VMS="384" - + # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" - + FILENAME_EMPIRE="lf2_v20a_Setup.exe" - + POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" - + # Starting the script POL_SetupWindow_Init - + # Starting debugging API POL_Debug_Init - + # Open dialogue box POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" - + POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" - -POL_SetupWindow_message "$(eval_gettext 'Warning: Before running this script, make sure that you have the commands `unzip` and `unrar` installed.')" "$TITLE" - + +POL_SetupWindow_message "$(eval_gettext 'Warning: Before running this script, make sure that you have the commands '\''unzip'\'' and '\''unrar'\'' installed.')" "$TITLE" + +POL_SetupWindow_message "$(eval_gettext 'Warning: You also need to install '\''mono'\'' so that the game doesn'\''t freeze at loading.')" "$TITLE" + +POL_SetupWindow_message "$(eval_gettext 'Warning: For the background music to work, you also need to install the 32-bit version of GStreamer libav. Just in case, also install 32-bit version of mpg123 and 32-bit version of GStreamer Base Plugins.')" "$TITLE" + # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" - + if [ "$INSTALL_METHOD" = "LOCAL" ]; then - cd "$HOME" - POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" - FULL_INSTALLER="$APP_ANSWER" + cd "$HOME" + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" + FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD - POL_System_TmpCreate "$PREFIX" - - # There are two different installers available from two different sources. They both contain the same program. - POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" - case "$APP_ANSWER" in - "Little Fighter 2 - Official Website") - DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" - DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" - ;; - "Little Fighter - EMPIRE") - DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" - DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" - ;; - esac - - cd "$POL_System_TmpDir" - - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" - - case "$APP_ANSWER" in - "Little Fighter - EMPIRE") - POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" - POL_System_unzip -o "$DOWNLOAD_FILE" - DOWNLOAD_FILE=$FILENAME_EMPIRE - ;; - esac - - FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" + POL_System_TmpCreate "$PREFIX" + + # There are two different installers available from two different sources. They both contain the same program. + POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" + case "$APP_ANSWER" in + "Little Fighter 2 - Official Website") + DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" + DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" + ;; + "Little Fighter - EMPIRE") + DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" + DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" + ;; + esac + + cd "$POL_System_TmpDir" + + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" + + case "$APP_ANSWER" in + "Little Fighter - EMPIRE") + POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" + POL_System_unzip -o "$DOWNLOAD_FILE" + DOWNLOAD_FILE=$FILENAME_EMPIRE + ;; + esac + + FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi - + # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" - + # Determine Architecture, must be x86 because of wmp9 POL_System_SetArch "x86" - + POL_Wine_PrefixCreate "$WINEVERSION" - -#POL_SetupWindow_message "$(eval_gettext 'Known issues:\n -#- At installation phase, sometimes after clicking 'Next' nothing appears on the window. Just click 'Back' and 'Next' again to fix.\n -#- The 'control settings' screen is a bit buggy, but still works.\n -#- In the next window, set the VMS to at least 384 MB\n')" "$TITLE" - - + +POL_SetupWindow_message "$(eval_gettext 'At installation phase, sometimes after clicking '\''Next'\'' nothing appears on the window. Just click '\''Back'\'' and '\''Next'\'' again to fix.')" "$TITLE" + + ################ # GPU # ################ - + # Asking about memory size of graphic card -#POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don't know.')" "$TITLE" +POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don'\''t know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" - + # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver - - + + ####################################### # Installing mandatory dependencies # ####################################### @@ -149,94 +154,96 @@ POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum - + Set_OS "winxp" - + ################## # Install game # ################## - + POL_Wine "$FULL_INSTALLER" POL_Wine_WaitExit "$TITLE" - + POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" POL_Shortcut_Document "$TITLE" "readme.txt" - + POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" if [ "$APP_ANSWER" = "TRUE" ]; then - - if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] - then - DIRECTORY="LittleFighter" - else - DIRECTORY="LittleFighter2/LF2_v2.0a" - fi - - # Download LF2 Lobby - cd "$WINEPREFIX" - DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" - DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" - DOWNLOAD_FILE="LF2Lobby0.1.4.rar" - EXE_FILE="LF2Lobby0.1.4.exe" - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" - POL_System_unrar x -o+ "$DOWNLOAD_FILE" - rm -f "$WINEPREFIX/$DOWNLOAD_FILE" - mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" - POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" - # vbrun6 is necessary for LF2 Lobby to work - POL_Call POL_Install_vbrun6 - - # Download LF2 MultiServer - cd "$WINEPREFIX" - DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" - DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" - DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" - EXE_FILE="LF2 Multi Server v2.0.exe" - DLL_FILE="MultiPlugin/ddraw.dll" - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" - POL_System_unrar x -o+ "$DOWNLOAD_FILE" - mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" - mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" - rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" - POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" - # ddraw is necessary for LF2 MultiServer and AI addons - POL_Wine_OverrideDLL "native,builtin" "ddraw" - - # Download LF2 Dashboard - cd "$WINEPREFIX" - DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" - DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" - EXE_FILE="LF2Dashboard.exe" - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" - POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + + if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] + then + DIRECTORY="LittleFighter" + else + DIRECTORY="LittleFighter2/LF2_v2.0a" + fi + + # Download LF2 Lobby + cd "$WINEPREFIX" + DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" + DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" + DOWNLOAD_FILE="LF2Lobby0.1.4.rar" + EXE_FILE="LF2Lobby0.1.4.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" + POL_System_unrar x -o+ "$DOWNLOAD_FILE" + rm -f "$WINEPREFIX/$DOWNLOAD_FILE" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + # vbrun6 is necessary for LF2 Lobby to work + POL_Call POL_Install_vbrun6 + + # Download LF2 MultiServer + cd "$WINEPREFIX" + DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" + DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" + DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" + EXE_FILE="LF2 Multi Server v2.0.exe" + DLL_FILE="MultiPlugin/ddraw.dll" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" + POL_System_unrar x -o+ "$DOWNLOAD_FILE" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + # ddraw is necessary for LF2 MultiServer and AI addons + POL_Wine_OverrideDLL "native,builtin" "ddraw" + + # Download LF2 Dashboard + cd "$WINEPREFIX" + DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" + DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" + EXE_FILE="LF2Dashboard.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" fi - + POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" if [ "$APP_ANSWER" = "TRUE" ]; then - # Download HF - cd "$WINEPREFIX" - DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" - DOWNLOAD_MD5="b1aca17e2e0d04eba8d633d640eb3046" - DOWNLOAD_FILE="HFv0.7_mod.zip" - EXE_FILE="HFv0.7+.exe" - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" - POL_System_unzip -o "$DOWNLOAD_FILE" - rm -f "$WINEPREFIX/$DOWNLOAD_FILE" - mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" - mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" - mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" - POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" + # Download HF + cd "$WINEPREFIX" + DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" + DOWNLOAD_MD5="b1aca17e2e0d04eba8d633d640eb3046" + DOWNLOAD_FILE="HFv0.7_mod.zip" + EXE_FILE="HFv0.7+.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" + POL_System_unzip -o "$DOWNLOAD_FILE" + rm -f "$WINEPREFIX/$DOWNLOAD_FILE" + mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" + mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" + POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" fi - + +POL_SetupWindow_message "$(eval_gettext 'The LF2 control settings screen doesn'\''t show the Ok and Cancel buttons, but if you hover over them they will appear.')" "$TITLE" + if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then - # Free some disk space - POL_System_TmpDelete + # Free some disk space + POL_System_TmpDelete fi - + POL_SetupWindow_Close exit 0 \ No newline at end of file Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : see changelog # Distribution used to test : Arch Linux x86_64 5.5.8-arch1-1 # Author : MangaD # LF2 depend: vcrun2005, wmp9, quartz, devenum # LF2 Lobby depend: vb6run # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required # (2018-01-17) - MangaD # - Changed '&&&&' to '&&' in the VENDOR due to changes in POL. # - Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard # - Optionally download Hero Fighter # - Don't use specific wine version # - Replace WMP9 with WMP10, for some reason WMP9 installation was failing for me # (2018-01-19) - MangaD # - Added $WINEPREFIX in rm commands # - Added POL_SetupWindow_wait before unzip/untar # (2018-09-13) - MangaD # - Replace WMP10 with WMP9, the reason WMP9 installation was failing is because POL was having issues # (2019-03-10) - MangaD # - Change url of herofighter-empire.com to hf-empire.com # - Use specific wine version because of 32-bit # (2020-03-01) - MangaD # - Fix bugs and update Hero Fighter link # (2020-03-03) - Dadu042 # - Fix POL_Shortcut failing by using POL_Wine_WaitExit before, instead of POL_Wine_WaitBefore . # - Wine OS version -> 3.20 (latest available for POL < v4.3 users). # - Add POL_Shortcut_Document # (2020-03-12) - MangaD # - Added warning to install mono, mpg123, gstreamer base plugins and gstreamer libav # - Added warning to select VMS no less than 384 # - Added warning about LF2 buggy control settings # # # # KNOWN ISSUES: (NOT FIXED) # - Wine x86 3.0.3, 3.20 (+ game v2.0a): error window 'Could not create a filter graph for this file!' (however the games does continue). Fix: Wine 5.2 # # KNOWN ISSUES (FIXED): # - Wine x86 3.0.3, 3.20, 4.21, 5.2 (+ game v2.0a): game does freeze after clicking 'game start' (Now Loading ... data\henry_wind.dat ). This seems related to 'wmvcore:WMReader_QueryInterface'. Fix: installing with Wine 3.20 (instead of 4.0.2) or installing Mono. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL WINEVERSION="3.20" PREFIX="LittleFighter2_v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init # Open dialogue box POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_SetupWindow_message "$(eval_gettext 'Warning: Before running this script, make sure that you have the commands '\''unzip'\'' and '\''unrar'\'' installed.')" "$TITLE" POL_SetupWindow_message "$(eval_gettext 'Warning: You also need to install '\''mono'\'' so that the game doesn'\''t freeze at loading.')" "$TITLE" POL_SetupWindow_message "$(eval_gettext 'Warning: For the background music to work, you also need to install the 32-bit version of GStreamer libav. Just in case, also install 32-bit version of mpg123 and 32-bit version of GStreamer Base Plugins.')" "$TITLE" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Determine Architecture, must be x86 because of wmp9 POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WINEVERSION" POL_SetupWindow_message "$(eval_gettext 'At installation phase, sometimes after clicking '\''Next'\'' nothing appears on the window. Just click '\''Back'\'' and '\''Next'\'' again to fix.')" "$TITLE" ################ # GPU # ################ # Asking about memory size of graphic card POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don'\''t know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver ####################################### # Installing mandatory dependencies # ####################################### Set_OS "winxp" POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum Set_OS "winxp" ################## # Install game # ################## POL_Wine "$FULL_INSTALLER" POL_Wine_WaitExit "$TITLE" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" POL_Shortcut_Document "$TITLE" "readme.txt" POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" if [ "$APP_ANSWER" = "TRUE" ]; then if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] then DIRECTORY="LittleFighter" else DIRECTORY="LittleFighter2/LF2_v2.0a" fi # Download LF2 Lobby cd "$WINEPREFIX" DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" DOWNLOAD_FILE="LF2Lobby0.1.4.rar" EXE_FILE="LF2Lobby0.1.4.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # vbrun6 is necessary for LF2 Lobby to work POL_Call POL_Install_vbrun6 # Download LF2 MultiServer cd "$WINEPREFIX" DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" EXE_FILE="LF2 Multi Server v2.0.exe" DLL_FILE="MultiPlugin/ddraw.dll" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # ddraw is necessary for LF2 MultiServer and AI addons POL_Wine_OverrideDLL "native,builtin" "ddraw" # Download LF2 Dashboard cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" EXE_FILE="LF2Dashboard.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" fi POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" if [ "$APP_ANSWER" = "TRUE" ]; then # Download HF cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" DOWNLOAD_MD5="b1aca17e2e0d04eba8d633d640eb3046" DOWNLOAD_FILE="HFv0.7_mod.zip" EXE_FILE="HFv0.7+.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" fi POL_SetupWindow_message "$(eval_gettext 'The LF2 control settings screen doesn'\''t show the Ok and Cancel buttons, but if you hover over them they will appear.')" "$TITLE" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 RéponsesMardi 5 Mai 2020 à 20:34
|
Dadu042 | Mardi 3 Mars 2020 à 23:13 |
Dadu042
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Messages'Little Fighter 2 - Official Website' does install fine. 'Little Fighter - EMPIRE' suffer a (Wine ?) crash when installing, but seems to work. Differences@@ -1,11 +1,11 @@ #!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) -# Last revision : (2020-03-01 21-00) -# Distribution used to test : Arch Linux x86_64 +# Last revision : see changelog +# Distribution used to test : Ubuntu 19.10 amd64 # Author : MangaD # LF2 depend: vcrun2005, wmp9, quartz, devenum # LF2 Lobby depend: vb6run - + # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies @@ -29,199 +29,214 @@ # - Use specific wine version because of 32-bit # (2020-03-01) - MangaD # - Fix bugs and update Hero Fighter link - - +# (2020-03-03) - Dadu042 +# - Fix POL_Shortcut failing by using POL_Wine_WaitExit before, instead of POL_Wine_WaitBefore . +# - Wine OS version -> 3.20 (latest available for POL < v4.3 users). +# - Add POL_Shortcut_Document +# +# +# +# KNOWN ISSUES: +# - Wine x86 3.0.3, 3.20 (+ game v2.0a): error window 'Could not create a filter graph for this file!' (however the games does continue). Fix: Wine 5.2 +# +# KNOWN ISSUES (FIXED): +# - Wine x86 3.0.3, 3.20, 4.21, 5.2 (+ game v2.0a): game does freeze after clicking 'game start' (Now Loading ... data\henry_wind.dat ). This seems related to 'wmvcore:WMReader_QueryInterface'. Fix: installing with Wine 3.20 (instead of 4.0.2) or installing Mono. + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - + # POL -WINEVERSION="1.7.50" -PREFIX="LittleFighter2v20a" +WINEVERSION="3.20" +PREFIX="LittleFighter2_v20a" MAINTAINER="MangaD" GAME_VMS="384" - + # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" - + FILENAME_EMPIRE="lf2_v20a_Setup.exe" - + POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" - + # Starting the script POL_SetupWindow_Init - + # Starting debugging API POL_Debug_Init - + # Open dialogue box POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" - + POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" - + POL_SetupWindow_message "$(eval_gettext 'Warning: Before running this script, make sure that you have the commands `unzip` and `unrar` installed.')" "$TITLE" - + # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" - + if [ "$INSTALL_METHOD" = "LOCAL" ]; then - cd "$HOME" - POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" - FULL_INSTALLER="$APP_ANSWER" + cd "$HOME" + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" + FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD - POL_System_TmpCreate "$PREFIX" - - # There are two different installers available from two different sources. They both contain the same program. - POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" - case "$APP_ANSWER" in - "Little Fighter 2 - Official Website") - DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" - DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" - ;; - "Little Fighter - EMPIRE") - DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" - DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" - ;; - esac - - cd "$POL_System_TmpDir" - - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" - - case "$APP_ANSWER" in - "Little Fighter - EMPIRE") - POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" - POL_System_unzip -o "$DOWNLOAD_FILE" - DOWNLOAD_FILE=$FILENAME_EMPIRE - ;; - esac - - FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" + POL_System_TmpCreate "$PREFIX" + + # There are two different installers available from two different sources. They both contain the same program. + POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" + case "$APP_ANSWER" in + "Little Fighter 2 - Official Website") + DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" + DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" + ;; + "Little Fighter - EMPIRE") + DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" + DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" + ;; + esac + + cd "$POL_System_TmpDir" + + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" + + case "$APP_ANSWER" in + "Little Fighter - EMPIRE") + POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" + POL_System_unzip -o "$DOWNLOAD_FILE" + DOWNLOAD_FILE=$FILENAME_EMPIRE + ;; + esac + + FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi - + # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" - + # Determine Architecture, must be x86 because of wmp9 POL_System_SetArch "x86" - -POL_Wine_PrefixCreate #"$WINEVERSION" - + +POL_Wine_PrefixCreate "$WINEVERSION" + #POL_SetupWindow_message "$(eval_gettext 'Known issues:\n #- At installation phase, sometimes after clicking 'Next' nothing appears on the window. Just click 'Back' and 'Next' again to fix.\n #- The 'control settings' screen is a bit buggy, but still works.\n #- In the next window, set the VMS to at least 384 MB\n')" "$TITLE" - - + + ################ # GPU # ################ - + # Asking about memory size of graphic card #POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don't know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" - + # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver - - + + ####################################### # Installing mandatory dependencies # ####################################### +Set_OS "winxp" + POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum - + Set_OS "winxp" - + ################## # Install game # ################## - + POL_Wine "$FULL_INSTALLER" -POL_Wine_WaitBefore "$TITLE" - +POL_Wine_WaitExit "$TITLE" + POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" +POL_Shortcut_Document "$TITLE" "readme.txt" + POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" if [ "$APP_ANSWER" = "TRUE" ]; then - - if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] - then - DIRECTORY="LittleFighter" - else - DIRECTORY="LittleFighter2/LF2_v2.0a" - fi - - # Download LF2 Lobby - cd "$WINEPREFIX" - DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" - DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" - DOWNLOAD_FILE="LF2Lobby0.1.4.rar" - EXE_FILE="LF2Lobby0.1.4.exe" - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" - POL_System_unrar x -o+ "$DOWNLOAD_FILE" - rm -f "$WINEPREFIX/$DOWNLOAD_FILE" - mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" - POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" - # vbrun6 is necessary for LF2 Lobby to work - POL_Call POL_Install_vbrun6 - - # Download LF2 MultiServer - cd "$WINEPREFIX" - DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" - DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" - DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" - EXE_FILE="LF2 Multi Server v2.0.exe" - DLL_FILE="MultiPlugin/ddraw.dll" - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" - POL_System_unrar x -o+ "$DOWNLOAD_FILE" - mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" - mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" - rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" - POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" - # ddraw is necessary for LF2 MultiServer and AI addons - POL_Wine_OverrideDLL "native,builtin" "ddraw" - - # Download LF2 Dashboard - cd "$WINEPREFIX" - DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" - DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" - EXE_FILE="LF2Dashboard.exe" - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" - POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + + if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] + then + DIRECTORY="LittleFighter" + else + DIRECTORY="LittleFighter2/LF2_v2.0a" + fi + + # Download LF2 Lobby + cd "$WINEPREFIX" + DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" + DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" + DOWNLOAD_FILE="LF2Lobby0.1.4.rar" + EXE_FILE="LF2Lobby0.1.4.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" + POL_System_unrar x -o+ "$DOWNLOAD_FILE" + rm -f "$WINEPREFIX/$DOWNLOAD_FILE" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + # vbrun6 is necessary for LF2 Lobby to work + POL_Call POL_Install_vbrun6 + + # Download LF2 MultiServer + cd "$WINEPREFIX" + DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" + DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" + DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" + EXE_FILE="LF2 Multi Server v2.0.exe" + DLL_FILE="MultiPlugin/ddraw.dll" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" + POL_System_unrar x -o+ "$DOWNLOAD_FILE" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + # ddraw is necessary for LF2 MultiServer and AI addons + POL_Wine_OverrideDLL "native,builtin" "ddraw" + + # Download LF2 Dashboard + cd "$WINEPREFIX" + DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" + DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" + EXE_FILE="LF2Dashboard.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" fi - + POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" if [ "$APP_ANSWER" = "TRUE" ]; then - # Download HF - cd "$WINEPREFIX" - DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" - DOWNLOAD_MD5="b1aca17e2e0d04eba8d633d640eb3046" - DOWNLOAD_FILE="HFv0.7_mod.zip" - EXE_FILE="HFv0.7+.exe" - POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" - POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" - POL_System_unzip -o "$DOWNLOAD_FILE" - rm -f "$WINEPREFIX/$DOWNLOAD_FILE" - mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" - mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" - mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" - POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" + # Download HF + cd "$WINEPREFIX" + DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" + DOWNLOAD_MD5="b1aca17e2e0d04eba8d633d640eb3046" + DOWNLOAD_FILE="HFv0.7_mod.zip" + EXE_FILE="HFv0.7+.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" + POL_System_unzip -o "$DOWNLOAD_FILE" + rm -f "$WINEPREFIX/$DOWNLOAD_FILE" + mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" + mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" + POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" fi - + if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then - # Free some disk space - POL_System_TmpDelete + # Free some disk space + POL_System_TmpDelete fi - + POL_SetupWindow_Close exit 0 \ No newline at end of file Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : see changelog # Distribution used to test : Ubuntu 19.10 amd64 # Author : MangaD # LF2 depend: vcrun2005, wmp9, quartz, devenum # LF2 Lobby depend: vb6run # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required # (2018-01-17) - MangaD # - Changed '&&&&' to '&&' in the VENDOR due to changes in POL. # - Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard # - Optionally download Hero Fighter # - Don't use specific wine version # - Replace WMP9 with WMP10, for some reason WMP9 installation was failing for me # (2018-01-19) - MangaD # - Added $WINEPREFIX in rm commands # - Added POL_SetupWindow_wait before unzip/untar # (2018-09-13) - MangaD # - Replace WMP10 with WMP9, the reason WMP9 installation was failing is because POL was having issues # (2019-03-10) - MangaD # - Change url of herofighter-empire.com to hf-empire # - Use specific wine version because of 32-bit # (2020-03-01) - MangaD # - Fix bugs and update Hero Fighter link # (2020-03-03) - Dadu042 # - Fix POL_Shortcut failing by using POL_Wine_WaitExit before, instead of POL_Wine_WaitBefore . # - Wine OS version -> 3.20 (latest available for POL < v4.3 users). # - Add POL_Shortcut_Document # # # # KNOWN ISSUES: # - Wine x86 3.0.3, 3.20 (+ game v2.0a): error window 'Could not create a filter graph for this file!' (however the games does continue). Fix: Wine 5.2 # # KNOWN ISSUES (FIXED): # - Wine x86 3.0.3, 3.20, 4.21, 5.2 (+ game v2.0a): game does freeze after clicking 'game start' (Now Loading ... data\henry_wind.dat ). This seems related to 'wmvcore:WMReader_QueryInterface'. Fix: installing with Wine 3.20 (instead of 4.0.2) or installing Mono. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL WINEVERSION="3.20" PREFIX="LittleFighter2_v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init # Open dialogue box POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_SetupWindow_message "$(eval_gettext 'Warning: Before running this script, make sure that you have the commands `unzip` and `unrar` installed.')" "$TITLE" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Determine Architecture, must be x86 because of wmp9 POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WINEVERSION" #POL_SetupWindow_message "$(eval_gettext 'Known issues:\n #- At installation phase, sometimes after clicking 'Next' nothing appears on the window. Just click 'Back' and 'Next' again to fix.\n #- The 'control settings' screen is a bit buggy, but still works.\n #- In the next window, set the VMS to at least 384 MB\n')" "$TITLE" ################ # GPU # ################ # Asking about memory size of graphic card #POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don't know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver ####################################### # Installing mandatory dependencies # ####################################### Set_OS "winxp" POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum Set_OS "winxp" ################## # Install game # ################## POL_Wine "$FULL_INSTALLER" POL_Wine_WaitExit "$TITLE" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" POL_Shortcut_Document "$TITLE" "readme.txt" POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" if [ "$APP_ANSWER" = "TRUE" ]; then if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] then DIRECTORY="LittleFighter" else DIRECTORY="LittleFighter2/LF2_v2.0a" fi # Download LF2 Lobby cd "$WINEPREFIX" DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" DOWNLOAD_FILE="LF2Lobby0.1.4.rar" EXE_FILE="LF2Lobby0.1.4.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # vbrun6 is necessary for LF2 Lobby to work POL_Call POL_Install_vbrun6 # Download LF2 MultiServer cd "$WINEPREFIX" DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" EXE_FILE="LF2 Multi Server v2.0.exe" DLL_FILE="MultiPlugin/ddraw.dll" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # ddraw is necessary for LF2 MultiServer and AI addons POL_Wine_OverrideDLL "native,builtin" "ddraw" # Download LF2 Dashboard cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" EXE_FILE="LF2Dashboard.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" fi POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" if [ "$APP_ANSWER" = "TRUE" ]; then # Download HF cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" DOWNLOAD_MD5="b1aca17e2e0d04eba8d633d640eb3046" DOWNLOAD_FILE="HFv0.7_mod.zip" EXE_FILE="HFv0.7+.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" fi if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 RéponsesMardi 3 Mars 2020 à 23:14
|
MangaD | Dimanche 1 Mars 2020 à 23:01 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. MessagesFixed a few bugs and added a new link to the Hero Fighter game because the previous no longer works. Still, LF2 is not working because for some reason vcrun2005 and wmp9 don't seem to get properly installed. Differences@@ -1,9 +1,9 @@ #!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) -# Last revision : (2018-01-19 12-00) -# Distribution used to test : Ubuntu 15.04 +# Last revision : (2020-03-01 21-00) +# Distribution used to test : Arch Linux x86_64 # Author : MangaD -# LF2 depend: vcrun2005, wmp10, quartz, devenum +# LF2 depend: vcrun2005, wmp9, quartz, devenum # LF2 Lobby depend: vb6run # Changelog @@ -22,13 +22,20 @@ # (2018-01-19) - MangaD # - Added $WINEPREFIX in rm commands # - Added POL_SetupWindow_wait before unzip/untar +# (2018-09-13) - MangaD +# - Replace WMP10 with WMP9, the reason WMP9 installation was failing is because POL was having issues +# (2019-03-10) - MangaD +# - Change url of herofighter-empire.com to hf-empire +# - Use specific wine version because of 32-bit +# (2020-03-01) - MangaD +# - Fix bugs and update Hero Fighter link [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL -#WINEVERSION="1.7.50" +WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" GAME_VMS="384" @@ -42,13 +49,19 @@ POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" +# Starting the script POL_SetupWindow_Init -POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" +# Starting debugging API POL_Debug_Init +# Open dialogue box POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" +POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" + +POL_SetupWindow_message "$(eval_gettext 'Warning: Before running this script, make sure that you have the commands `unzip` and `unrar` installed.')" "$TITLE" + # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" @@ -67,7 +80,7 @@ DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") - DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" + DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac @@ -88,24 +101,50 @@ FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi -# Setting up the prefix -POL_System_SetArch "x86" +# Setting prefix path POL_Wine_SelectPrefix "$PREFIX" + +# Determine Architecture, must be x86 because of wmp9 +POL_System_SetArch "x86" + POL_Wine_PrefixCreate #"$WINEVERSION" +#POL_SetupWindow_message "$(eval_gettext 'Known issues:\n +#- At installation phase, sometimes after clicking 'Next' nothing appears on the window. Just click 'Back' and 'Next' again to fix.\n +#- The 'control settings' screen is a bit buggy, but still works.\n +#- In the next window, set the VMS to at least 384 MB\n')" "$TITLE" + + +################ +# GPU # +################ + # Asking about memory size of graphic card #POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don't know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" -# Installing Dependencies +# Set Graphic Card information keys for wine +POL_Wine_SetVideoDriver + + +####################################### +# Installing mandatory dependencies # +####################################### + POL_Call POL_Install_vcrun2005 -# wmp10, quartz and devenum are necessary for the background music to work -POL_Call POL_Install_wmp10 +# wmp9, quartz and devenum are necessary for the background music to work +POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum -POL_Wine_WaitBefore "$TITLE" +Set_OS "winxp" + +################## +# Install game # +################## + POL_Wine "$FULL_INSTALLER" +POL_Wine_WaitBefore "$TITLE" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" @@ -131,7 +170,7 @@ rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" - # vb6run is necessary for LF2 Lobby to work + # vbrun6 is necessary for LF2 Lobby to work POL_Call POL_Install_vbrun6 # Download LF2 MultiServer @@ -153,7 +192,7 @@ # Download LF2 Dashboard cd "$WINEPREFIX" - DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/LF2Dashboard.exe" + DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" EXE_FILE="LF2Dashboard.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" @@ -165,10 +204,10 @@ if [ "$APP_ANSWER" = "TRUE" ]; then # Download HF cd "$WINEPREFIX" - DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/HFv0.7.zip" - DOWNLOAD_MD5="c0147da224e95901377e77f284d6f6f8" - DOWNLOAD_FILE="HFv0.7.zip" - EXE_FILE="HF.exe" + DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" + DOWNLOAD_MD5="b1aca17e2e0d04eba8d633d640eb3046" + DOWNLOAD_FILE="HFv0.7_mod.zip" + EXE_FILE="HFv0.7+.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" @@ -176,7 +215,7 @@ mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" - POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7" "" "" "Game;" + POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" fi if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : (2020-03-01 21-00) # Distribution used to test : Arch Linux x86_64 # Author : MangaD # LF2 depend: vcrun2005, wmp9, quartz, devenum # LF2 Lobby depend: vb6run # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required # (2018-01-17) - MangaD # - Changed '&&&&' to '&&' in the VENDOR due to changes in POL. # - Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard # - Optionally download Hero Fighter # - Don't use specific wine version # - Replace WMP9 with WMP10, for some reason WMP9 installation was failing for me # (2018-01-19) - MangaD # - Added $WINEPREFIX in rm commands # - Added POL_SetupWindow_wait before unzip/untar # (2018-09-13) - MangaD # - Replace WMP10 with WMP9, the reason WMP9 installation was failing is because POL was having issues # (2019-03-10) - MangaD # - Change url of herofighter-empire.com to hf-empire # - Use specific wine version because of 32-bit # (2020-03-01) - MangaD # - Fix bugs and update Hero Fighter link [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init # Open dialogue box POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_SetupWindow_message "$(eval_gettext 'Warning: Before running this script, make sure that you have the commands `unzip` and `unrar` installed.')" "$TITLE" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="https://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Determine Architecture, must be x86 because of wmp9 POL_System_SetArch "x86" POL_Wine_PrefixCreate #"$WINEVERSION" #POL_SetupWindow_message "$(eval_gettext 'Known issues:\n #- At installation phase, sometimes after clicking 'Next' nothing appears on the window. Just click 'Back' and 'Next' again to fix.\n #- The 'control settings' screen is a bit buggy, but still works.\n #- In the next window, set the VMS to at least 384 MB\n')" "$TITLE" ################ # GPU # ################ # Asking about memory size of graphic card #POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don't know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver ####################################### # Installing mandatory dependencies # ####################################### POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum Set_OS "winxp" ################## # Install game # ################## POL_Wine "$FULL_INSTALLER" POL_Wine_WaitBefore "$TITLE" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" if [ "$APP_ANSWER" = "TRUE" ]; then if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] then DIRECTORY="LittleFighter" else DIRECTORY="LittleFighter2/LF2_v2.0a" fi # Download LF2 Lobby cd "$WINEPREFIX" DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" DOWNLOAD_FILE="LF2Lobby0.1.4.rar" EXE_FILE="LF2Lobby0.1.4.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # vbrun6 is necessary for LF2 Lobby to work POL_Call POL_Install_vbrun6 # Download LF2 MultiServer cd "$WINEPREFIX" DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" EXE_FILE="LF2 Multi Server v2.0.exe" DLL_FILE="MultiPlugin/ddraw.dll" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # ddraw is necessary for LF2 MultiServer and AI addons POL_Wine_OverrideDLL "native,builtin" "ddraw" # Download LF2 Dashboard cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/LF2Dashboard.exe" DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" EXE_FILE="LF2Dashboard.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" fi POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" if [ "$APP_ANSWER" = "TRUE" ]; then # Download HF cd "$WINEPREFIX" DOWNLOAD_URL="https://hf-empire.com/downloads/LF2Linux/HFv0.7_mod.zip" DOWNLOAD_MD5="b1aca17e2e0d04eba8d633d640eb3046" DOWNLOAD_FILE="HFv0.7_mod.zip" EXE_FILE="HFv0.7+.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7+" "" "" "Game;" fi if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 RéponsesLundi 2 Mars 2020 à 20:37
|
ZelphirKaltstahl | Dimanche 26 Aoüt 2018 à 18:28 |
ZelphirKaltstahl
|
MessagesI tried to get this to run today (2018-08-26). Just want to let you know, that currently this does not work on Xubuntu 18.04.1 (LTS, updated from 16.04.3 a few days ago). It still shows the typical: ERROR "Could not create a filter graph for this file!" dialog before showing any content of the LF2 window. After clicking that away, I can see the normal main menu, before clicking on "game start", only that I get 100% CPU usage (of on core) while being in that menu. When I then clicking "game start", it loads until "data\henry_wind.dat" and then freezes. I need to kill the process from PlayOnLinux "Configure" dialog (in the "Wine" tab) then to get it to close or use some command line commands). When trying to run LF2 without PlayOnLinux, the issue is, that in the new Ubuntu 18.04.1 libpng12 is not supported any longer and the wine command output for lf2.exe will say that it could not find that. Still working on getting LF2 back running here. Errors in Wine output: 000d:err:wincodecs:PngEncoder_CreateInstance Failed writing PNG because unable to find libpng12.so.0 I downloaded the deb package for libpng12.so.0 and installed it, but the error persists. Not sure where wine is looking for the file, but it seems to look in the wrong place. Note that the behavior of wine and playonlinux is different. PlayOnLinux fails when loading the dat files of LF2, while wine does not even display anything in the LF2 window. So the issues might be unrelated. Or they might not be. RéponsesJeudi 13 September 2018 à 9:55
Jeudi 16 Janvier 2020 à 23:21
Dimanche 1 Mars 2020 à 22:59
Edité par ZelphirKaltstahl |
MangaD | Vendredi 19 Janvier 2018 à 12:53 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. MessagesPlease also update the description if possible. Little Fighter 2 is a popular Hong Kong freeware PC fighting game and is the sequel to the game Little Fighter (LF1). Little Fighter 2 was created by Marti Wong and Starsky Wong in 1999, and released in a long series of updates. Known issues:
Differences@@ -1,10 +1,10 @@ #!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) -# Last revision : (2015-11-18 01-25) -# Wine version used : 1.7.50 +# Last revision : (2018-01-19 12-00) # Distribution used to test : Ubuntu 15.04 # Author : MangaD -# Depend: vcrun2005, wmp9, quartz, devenum +# LF2 depend: vcrun2005, wmp10, quartz, devenum +# LF2 Lobby depend: vb6run # Changelog # (2015-10-01) 22:50 - MangaD @@ -13,19 +13,29 @@ # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required +# (2018-01-17) - MangaD +# - Changed '&&&&' to '&&' in the VENDOR due to changes in POL. +# - Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard +# - Optionally download Hero Fighter +# - Don't use specific wine version +# - Replace WMP9 with WMP10, for some reason WMP9 installation was failing for me +# (2018-01-19) - MangaD +# - Added $WINEPREFIX in rm commands +# - Added POL_SetupWindow_wait before unzip/untar + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL -WINEVERSION="1.7.50" +#WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" -VENDOR="Marti Wong &&&& Starsky Wong" +VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" @@ -69,6 +79,7 @@ case "$APP_ANSWER" in "Little Fighter - EMPIRE") + POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; @@ -80,15 +91,16 @@ # Setting up the prefix POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" -POL_Wine_PrefixCreate "$WINEVERSION" +POL_Wine_PrefixCreate #"$WINEVERSION" # Asking about memory size of graphic card +#POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don't know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" # Installing Dependencies POL_Call POL_Install_vcrun2005 -# wmp9, quartz and devenum are necessary for the background music to work -POL_Call POL_Install_wmp9 +# wmp10, quartz and devenum are necessary for the background music to work +POL_Call POL_Install_wmp10 POL_Call POL_Install_quartz POL_Call POL_Install_devenum @@ -97,9 +109,79 @@ POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" +POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" +if [ "$APP_ANSWER" = "TRUE" ]; then + + if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] + then + DIRECTORY="LittleFighter" + else + DIRECTORY="LittleFighter2/LF2_v2.0a" + fi + + # Download LF2 Lobby + cd "$WINEPREFIX" + DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" + DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" + DOWNLOAD_FILE="LF2Lobby0.1.4.rar" + EXE_FILE="LF2Lobby0.1.4.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" + POL_System_unrar x -o+ "$DOWNLOAD_FILE" + rm -f "$WINEPREFIX/$DOWNLOAD_FILE" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + # vb6run is necessary for LF2 Lobby to work + POL_Call POL_Install_vbrun6 + + # Download LF2 MultiServer + cd "$WINEPREFIX" + DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" + DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" + DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" + EXE_FILE="LF2 Multi Server v2.0.exe" + DLL_FILE="MultiPlugin/ddraw.dll" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" + POL_System_unrar x -o+ "$DOWNLOAD_FILE" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + # ddraw is necessary for LF2 MultiServer and AI addons + POL_Wine_OverrideDLL "native,builtin" "ddraw" + + # Download LF2 Dashboard + cd "$WINEPREFIX" + DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/LF2Dashboard.exe" + DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" + EXE_FILE="LF2Dashboard.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" +fi + +POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" +if [ "$APP_ANSWER" = "TRUE" ]; then + # Download HF + cd "$WINEPREFIX" + DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/HFv0.7.zip" + DOWNLOAD_MD5="c0147da224e95901377e77f284d6f6f8" + DOWNLOAD_FILE="HFv0.7.zip" + EXE_FILE="HF.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" + POL_System_unzip -o "$DOWNLOAD_FILE" + rm -f "$WINEPREFIX/$DOWNLOAD_FILE" + mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" + mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" + POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7" "" "" "Game;" +fi + if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then - # Free some disk space - POL_System_TmpDelete + # Free some disk space + POL_System_TmpDelete fi POL_SetupWindow_Close Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : (2018-01-19 12-00) # Distribution used to test : Ubuntu 15.04 # Author : MangaD # LF2 depend: vcrun2005, wmp10, quartz, devenum # LF2 Lobby depend: vb6run # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required # (2018-01-17) - MangaD # - Changed '&&&&' to '&&' in the VENDOR due to changes in POL. # - Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard # - Optionally download Hero Fighter # - Don't use specific wine version # - Replace WMP9 with WMP10, for some reason WMP9 installation was failing for me # (2018-01-19) - MangaD # - Added $WINEPREFIX in rm commands # - Added POL_SetupWindow_wait before unzip/untar [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL #WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting up the prefix POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate #"$WINEVERSION" # Asking about memory size of graphic card #POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don't know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" # Installing Dependencies POL_Call POL_Install_vcrun2005 # wmp10, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp10 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" if [ "$APP_ANSWER" = "TRUE" ]; then if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] then DIRECTORY="LittleFighter" else DIRECTORY="LittleFighter2/LF2_v2.0a" fi # Download LF2 Lobby cd "$WINEPREFIX" DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" DOWNLOAD_FILE="LF2Lobby0.1.4.rar" EXE_FILE="LF2Lobby0.1.4.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # vb6run is necessary for LF2 Lobby to work POL_Call POL_Install_vbrun6 # Download LF2 MultiServer cd "$WINEPREFIX" DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" EXE_FILE="LF2 Multi Server v2.0.exe" DLL_FILE="MultiPlugin/ddraw.dll" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Decompressing archive.')" "$TITLE" POL_System_unrar x -o+ "$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" rm -rf "$WINEPREFIX/$DOWNLOAD_FILE" "$WINEPREFIX/MultiPlugin" "$WINEPREFIX/Readme.txt" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # ddraw is necessary for LF2 MultiServer and AI addons POL_Wine_OverrideDLL "native,builtin" "ddraw" # Download LF2 Dashboard cd "$WINEPREFIX" DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/LF2Dashboard.exe" DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" EXE_FILE="LF2Dashboard.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" fi POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" if [ "$APP_ANSWER" = "TRUE" ]; then # Download HF cd "$WINEPREFIX" DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/HFv0.7.zip" DOWNLOAD_MD5="c0147da224e95901377e77f284d6f6f8" DOWNLOAD_FILE="HFv0.7.zip" EXE_FILE="HF.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_SetupWindow_wait "$(eval_gettext 'Unzipping archive.')" "$TITLE" POL_System_unzip -o "$DOWNLOAD_FILE" rm -f "$WINEPREFIX/$DOWNLOAD_FILE" mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7" "" "" "Game;" fi if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 RéponsesDimanche 27 Mai 2018 à 1:53
Lundi 18 Juin 2018 à 18:42
Lundi 3 Juin 2019 à 16:52
|
MangaD | Mercredi 17 Janvier 2018 à 15:59 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. MessagesThis is an improvement of the previous script. Differences@@ -1,10 +1,11 @@ #!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) -# Last revision : (2015-11-18 01-25) +# Last revision : (2018-01-17 15-00) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD -# Depend: vcrun2005, wmp9, quartz, devenum +# LF2 depend: vcrun2005, wmp10, quartz, devenum +# LF2 Lobby depend: vb6run # Changelog # (2015-10-01) 22:50 - MangaD @@ -13,19 +14,26 @@ # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required +# (2018-01-17) - MangaD +# - Changed '&&&&' to '&&' in the VENDOR due to changes in POL. +# - Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard +# - Optionally download Hero Fighter +# - Don't use specific wine version +# - Replace WMP9 with WMP10, for some reason WMP9 installation was failing for me + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL -WINEVERSION="1.7.50" +#WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" -VENDOR="Marti Wong &&&& Starsky Wong" +VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" @@ -80,15 +88,16 @@ # Setting up the prefix POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" -POL_Wine_PrefixCreate "$WINEVERSION" +POL_Wine_PrefixCreate #"$WINEVERSION" # Asking about memory size of graphic card +#POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don't know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" # Installing Dependencies POL_Call POL_Install_vcrun2005 -# wmp9, quartz and devenum are necessary for the background music to work -POL_Call POL_Install_wmp9 +# wmp10, quartz and devenum are necessary for the background music to work +POL_Call POL_Install_wmp10 POL_Call POL_Install_quartz POL_Call POL_Install_devenum @@ -97,9 +106,76 @@ POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" +POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" +if [ "$APP_ANSWER" = "TRUE" ]; then + + if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] + then + DIRECTORY="LittleFighter" + else + DIRECTORY="LittleFighter2/LF2_v2.0a" + fi + + # Download LF2 Lobby + cd "$WINEPREFIX" + DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" + DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" + DOWNLOAD_FILE="LF2Lobby0.1.4.rar" + EXE_FILE="LF2Lobby0.1.4.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_System_unrar x -o+ "$DOWNLOAD_FILE" + rm -f "$DOWNLOAD_FILE" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + # vb6run is necessary for LF2 Lobby to work + POL_Call POL_Install_vbrun6 + + # Download LF2 MultiServer + cd "$WINEPREFIX" + DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" + DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" + DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" + EXE_FILE="LF2 Multi Server v2.0.exe" + DLL_FILE="MultiPlugin/ddraw.dll" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_System_unrar x -o+ "$DOWNLOAD_FILE" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + rm -rf "$DOWNLOAD_FILE" "MultiPlugin" "Readme.txt" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" + # ddraw is necessary for LF2 MultiServer and AI addons + POL_Wine_OverrideDLL "native,builtin" "ddraw" + + # Download LF2 Dashboard + cd "$WINEPREFIX" + DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/LF2Dashboard.exe" + DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" + EXE_FILE="LF2Dashboard.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" + POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" +fi + +POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" +if [ "$APP_ANSWER" = "TRUE" ]; then + # Download HF + cd "$WINEPREFIX" + DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/HFv0.7.zip" + DOWNLOAD_MD5="c0147da224e95901377e77f284d6f6f8" + DOWNLOAD_FILE="HFv0.7.zip" + EXE_FILE="HF.exe" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" + POL_System_unzip -o "$DOWNLOAD_FILE" + rm -f "$DOWNLOAD_FILE" + mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" + mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" + mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" + POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7" "" "" "Game;" +fi + if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then - # Free some disk space - POL_System_TmpDelete + # Free some disk space + POL_System_TmpDelete fi POL_SetupWindow_Close Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : (2018-01-17 15-00) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD # LF2 depend: vcrun2005, wmp10, quartz, devenum # LF2 Lobby depend: vb6run # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required # (2018-01-17) - MangaD # - Changed '&&&&' to '&&' in the VENDOR due to changes in POL. # - Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard # - Optionally download Hero Fighter # - Don't use specific wine version # - Replace WMP9 with WMP10, for some reason WMP9 installation was failing for me [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL #WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong && Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting up the prefix POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate #"$WINEVERSION" # Asking about memory size of graphic card #POL_SetupWindow_message "$(eval_gettext 'Warning: In the next question answer "$GAME_VMS" or above if you don't know.')" "$TITLE" POL_SetupWindow_VMS "$GAME_VMS" # Installing Dependencies POL_Call POL_Install_vcrun2005 # wmp10, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp10 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install LF2 Lobby, LF2 Multiserver 2.0 and LF2 Dashboard?')" "$(eval_gettext 'Download LF2 extras?')" if [ "$APP_ANSWER" = "TRUE" ]; then if [ "$(basename "$FULL_INSTALLER")" = "LF2_v20a_Install.exe" ] then DIRECTORY="LittleFighter" else DIRECTORY="LittleFighter2/LF2_v2.0a" fi # Download LF2 Lobby cd "$WINEPREFIX" DOWNLOAD_URL="http://www.lf2lobby.com/downloads/LF2Lobby0.1.4.rar" DOWNLOAD_MD5="3d1faf8321c4143dc161e026ee7379ab" DOWNLOAD_FILE="LF2Lobby0.1.4.rar" EXE_FILE="LF2Lobby0.1.4.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_System_unrar x -o+ "$DOWNLOAD_FILE" rm -f "$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # vb6run is necessary for LF2 Lobby to work POL_Call POL_Install_vbrun6 # Download LF2 MultiServer cd "$WINEPREFIX" DOWNLOAD_URL="http://lf2.co.il/downloads/LF2MultiServer_v2.0.rar" DOWNLOAD_MD5="0eb8a92dbbdf5c8c2590612713d9d54b" DOWNLOAD_FILE="LF2MultiServer_v2.0.rar" EXE_FILE="LF2 Multi Server v2.0.exe" DLL_FILE="MultiPlugin/ddraw.dll" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_System_unrar x -o+ "$DOWNLOAD_FILE" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" mv "$WINEPREFIX/$DLL_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" rm -rf "$DOWNLOAD_FILE" "MultiPlugin" "Readme.txt" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" # ddraw is necessary for LF2 MultiServer and AI addons POL_Wine_OverrideDLL "native,builtin" "ddraw" # Download LF2 Dashboard cd "$WINEPREFIX" DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/LF2Dashboard.exe" DOWNLOAD_MD5="2ab48968c17e1fbcdbb664ae8a900207" EXE_FILE="LF2Dashboard.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/$DIRECTORY" POL_Shortcut "$EXE_FILE" "$(basename "$EXE_FILE" .exe)" "" "" "Game;" fi POL_SetupWindow_question "$(eval_gettext 'Would you also like to download and install Hero Fighter?')" "$(eval_gettext 'Download Hero Fighter?')" if [ "$APP_ANSWER" = "TRUE" ]; then # Download HF cd "$WINEPREFIX" DOWNLOAD_URL="http://herofighter-empire.com/downloads/LF2Linux/HFv0.7.zip" DOWNLOAD_MD5="c0147da224e95901377e77f284d6f6f8" DOWNLOAD_FILE="HFv0.7.zip" EXE_FILE="HF.exe" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" POL_System_unzip -o "$DOWNLOAD_FILE" rm -f "$DOWNLOAD_FILE" mkdir "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/$EXE_FILE" "$WINEPREFIX/drive_c/Program Files/HeroFighter" mv "$WINEPREFIX/RoomServer.exe" "$WINEPREFIX/drive_c/Program Files/HeroFighter" POL_Shortcut "$EXE_FILE" "Hero Fighter v0.7" "" "" "Game;" fi if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 Réponses |
Guich | Mardi 17 Janvier 2017 à 15:39 |
Guich
|
MessagesHi, the game is launched perfectly, but the problem is i cannot change the control settings. Réponses |
samson1016 | Mardi 1 Mars 2016 à 15:32 |
samson1016
|
MessagesIt started to get wrong since the end of the setup. i was still running the setup of lf2(the official one), playonlinux started to demand that why there wasn't any binary file to run while i hadn't even clicked on the install button! What's worse, i still open the lf2.exe manually after the failed installation since I think that the main part has been finished successfully. Everything was better than i manually installed the lf2 2.0a before. It was a awesome script. Thx a lot. However, after setting up my control, I stucked at the file loading section. The last loading file I saw was "Henry_wind.dat". Great thanks for your dedication to this little game. I believe that players in Taiwan will find it extremely useful ^^ RéponsesMardi 22 Mars 2016 à 11:29
|
MangaD | Mercredi 18 Novembre 2015 à 2:29 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Differences@@ -1,6 +1,6 @@ #!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) -# Last revision : (2015-10-03 17-05) +# Last revision : (2015-11-18 01-25) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD @@ -11,6 +11,8 @@ # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download +# (2015-11-18) 01-25 - MangaD +# - Added minimum VRAM required [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" @@ -19,6 +21,7 @@ WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" +GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" @@ -79,6 +82,9 @@ POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" +# Asking about memory size of graphic card +POL_SetupWindow_VMS "$GAME_VMS" + # Installing Dependencies POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : (2015-11-18 01-25) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD # Depend: vcrun2005, wmp9, quartz, devenum # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download # (2015-11-18) 01-25 - MangaD # - Added minimum VRAM required [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" GAME_VMS="384" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong &&&& Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting up the prefix POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" # Asking about memory size of graphic card POL_SetupWindow_VMS "$GAME_VMS" # Installing Dependencies POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 Réponses |
Andre1996 | Mercredi 28 Octobre 2015 à 2:09 |
Andre1996
|
MessagesLittle Fighter 2 is now completely installed on my macbook pro. I execute the program, it works well. When I click on "Game start", a window appears and says "couldn't create art surface" twice and crash. Thanks for the work and I hope it'll work soon! ^^ RéponsesMercredi 18 Novembre 2015 à 2:35
|
MangaD | Samedi 3 Octobre 2015 à 18:04 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Differences@@ -1,6 +1,6 @@ #!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) -# Last revision : (2015-10-01 18-15) +# Last revision : (2015-10-03 17-05) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD @@ -9,6 +9,8 @@ # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies +# (2015-10-03) 17-05 - MangaD +# - Added MD5 digest to POL_Download [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" @@ -49,15 +51,17 @@ case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" + DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" + DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" - POL_Download "$DOWNLOAD_URL" + POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : (2015-10-03 17-05) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD # Depend: vcrun2005, wmp9, quartz, devenum # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies # (2015-10-03) 17-05 - MangaD # - Added MD5 digest to POL_Download [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong &&&& Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" DOWNLOAD_MD5="afd060f4f43601350486947d6d0838f9" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" DOWNLOAD_MD5="61062f685d3fb2227e354f2d74a1a638" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting up the prefix POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" # Installing Dependencies POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 Réponses |
MangaD | Jeudi 1 Octobre 2015 à 19:25 |
MangaD
|
|
MangaD | Jeudi 1 Octobre 2015 à 19:14 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Differences@@ -1,10 +1,14 @@ #!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) -# Last revision : (2015-09-30 20-05) +# Last revision : (2015-10-01 18-15) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD -# Depend: vcrun2005, d3dx9, wmp9, quartz, devenum +# Depend: vcrun2005, wmp9, quartz, devenum + +# Changelog +# (2015-10-01) 22:50 - MangaD +# - Removed d3dx9 from dependencies [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" @@ -73,7 +77,6 @@ # Installing Dependencies POL_Call POL_Install_vcrun2005 -POL_Call POL_Install_d3dx9 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : (2015-10-01 18-15) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD # Depend: vcrun2005, wmp9, quartz, devenum # Changelog # (2015-10-01) 22:50 - MangaD # - Removed d3dx9 from dependencies [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong &&&& Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting up the prefix POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" # Installing Dependencies POL_Call POL_Install_vcrun2005 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 Réponses |
MangaD | Mercredi 30 September 2015 à 22:03 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Differences@@ -11,7 +11,7 @@ # POL WINEVERSION="1.7.50" -PREFIX="LittleFighter2" +PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" # Info Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : (2015-09-30 20-05) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD # Depend: vcrun2005, d3dx9, wmp9, quartz, devenum [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL WINEVERSION="1.7.50" PREFIX="LittleFighter2v20a" MAINTAINER="MangaD" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong &&&& Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting up the prefix POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" # Installing Dependencies POL_Call POL_Install_vcrun2005 POL_Call POL_Install_d3dx9 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 Réponses |
MangaD | Mercredi 30 September 2015 à 21:42 |
MangaD
|
MessagesDescription:
Little Fighter 2 is a popular Hong Kong freeware PC fighting game and is the sequel to the game Little Fighter (LF1). Little Fighter 2 was created by Marti Wong and Starsky Wong in 1999, and released in a long series of updates. Known issues:
Setup images: http://s6.postimg.org/46cuca80t/top.png
Screenshots: http://lf2.net/lf2_pic/4.gif Réponses |
MangaD | Mercredi 30 September 2015 à 21:38 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Differences@@ -15,7 +15,7 @@ MAINTAINER="MangaD" # Info -TITLE="Little Fighter 2" +TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong &&&& Starsky Wong" WEBSITE="http://www.lf2.net/" Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-30 20-05) # Last revision : (2015-09-30 20-05) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD # Depend: vcrun2005, d3dx9, wmp9, quartz, devenum [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # POL WINEVERSION="1.7.50" PREFIX="LittleFighter2" MAINTAINER="MangaD" # Info TITLE="Little Fighter 2 v2.0a" VENDOR="Marti Wong &&&& Starsky Wong" WEBSITE="http://www.lf2.net/" FILENAME_EMPIRE="lf2_v20a_Setup.exe" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.1.4" || POL_Debug_Fatal "$(eval_gettext '$APPLICATION_TITLE equal or superior to 4.1.4 is required to install $TITLE')" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX" # Let the user choose between downloading the installer or using an already existing one. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" # There are two different installers available from two different sources. They both contain the same program. POL_SetupWindow_menu "$(eval_gettext 'Select installer to download:')" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_System_unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi # Setting up the prefix POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" # Installing Dependencies POL_Call POL_Install_vcrun2005 POL_Call POL_Install_d3dx9 # wmp9, quartz and devenum are necessary for the background music to work POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 RéponsesEdité par petch |
MangaD | Mercredi 30 September 2015 à 16:45 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Differences@@ -0,0 +1,91 @@ +#!/usr/bin/env playonlinux-bash +# Date : (2015-09-29 23:45h) +# Last revision : (2015-09-29 23:45h) +# Wine version used : 1.7.50 +# Distribution used to test : Ubuntu 15.04 +# Author : MangaD + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +WINEVERSION="1.7.50" +PREFIX="LittleFighter2" +TITLE="Little Fighter 2" +SHORTCUT_NAME="Little Fighter 2" + +FILENAME_EMPIRE="lf2_v20a_Setup.exe" +RUN_MESSAGE="Launch Little Fighter" +RUN_MESSAGE_EMPIRE="Run Little Fighter 2 version 2.0a" + +POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" + +POL_SetupWindow_Init +POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE" +POL_Debug_Init + +POL_SetupWindow_presentation "$TITLE" "Marti Wong and Starsky Wong" "http://www.lf2.net/" "MangaD" "$PREFIX" + +POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" + +if [ "$INSTALL_METHOD" = "LOCAL" ]; then + cd "$HOME" + POL_SetupWindow_browse "Please select the setup file to run." "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" + FULL_INSTALLER="$APP_ANSWER" + case "$(basename "$APP_ANSWER")" in + "$FILENAME_EMPIRE" ) + RUN_MESSAGE=$RUN_MESSAGE_EMPIRE + ;; + esac +else # DOWNLOAD + POL_System_TmpCreate "$PREFIX" + + POL_SetupWindow_menu "Select installer to download:" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" + case "$APP_ANSWER" in + "Little Fighter 2 - Official Website") + DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" + ;; + "Little Fighter - EMPIRE") + DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" + RUN_MESSAGE=$RUN_MESSAGE_EMPIRE + ;; + esac + + cd "$POL_System_TmpDir" + + POL_Download "$DOWNLOAD_URL" + DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" + + case "$APP_ANSWER" in + "Little Fighter - EMPIRE") + POL_SetupWindow_wait "Unzipping file..." "$TITLE" + unzip -o "$DOWNLOAD_FILE" || POL_Debug_Fatal "Unzip is required to install $TITLE from Little Fighter - EMPIRE source." + DOWNLOAD_FILE=$FILENAME_EMPIRE + ;; + esac + + FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" +fi + +POL_System_SetArch "x86" +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WINEVERSION" +POL_Call POL_Install_vcrun2005 +POL_Call POL_Install_d3dx9 +POL_Call POL_Install_wmp9 +POL_Call POL_Install_quartz +POL_Call POL_Install_devenum + +POL_SetupWindow_message "Warning: You must not tick the checkbox \"$RUN_MESSAGE\" when setup is done" "$TITLE" + +POL_Wine_WaitBefore "$TITLE" +POL_Wine "$FULL_INSTALLER" + +POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" + +if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then + # Free some disk space + POL_System_TmpDelete +fi + +POL_SetupWindow_Close +exit 0 \ No newline at end of file Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-29 23:45h) # Last revision : (2015-09-29 23:45h) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" WINEVERSION="1.7.50" PREFIX="LittleFighter2" TITLE="Little Fighter 2" SHORTCUT_NAME="Little Fighter 2" FILENAME_EMPIRE="lf2_v20a_Setup.exe" RUN_MESSAGE="Launch Little Fighter" RUN_MESSAGE_EMPIRE="Run Little Fighter 2 version 2.0a" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Marti Wong and Starsky Wong" "http://www.lf2.net/" "MangaD" "$PREFIX" POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "Please select the setup file to run." "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" case "$(basename "$APP_ANSWER")" in "$FILENAME_EMPIRE" ) RUN_MESSAGE=$RUN_MESSAGE_EMPIRE ;; esac else # DOWNLOAD POL_System_TmpCreate "$PREFIX" POL_SetupWindow_menu "Select installer to download:" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" RUN_MESSAGE=$RUN_MESSAGE_EMPIRE ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_SetupWindow_wait "Unzipping file..." "$TITLE" unzip -o "$DOWNLOAD_FILE" || POL_Debug_Fatal "Unzip is required to install $TITLE from Little Fighter - EMPIRE source." DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" POL_Call POL_Install_vcrun2005 POL_Call POL_Install_d3dx9 POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_SetupWindow_message "Warning: You must not tick the checkbox \"$RUN_MESSAGE\" when setup is done" "$TITLE" POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 Réponses |
MangaD | Mercredi 30 September 2015 à 11:08 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Differences@@ -0,0 +1,99 @@ +Update: + +- POL_SetupWindow_wait before unzip + +- POL_Debug_Fatal in case unzip fails + +- Different Run Message for different installer + +#!/usr/bin/env playonlinux-bash +# Date : (2015-09-29 23:45h) +# Last revision : (2015-09-29 23:45h) +# Wine version used : 1.7.50 +# Distribution used to test : Ubuntu 15.04 +# Author : MangaD + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +WINEVERSION="1.7.50" +PREFIX="LittleFighter2" +TITLE="Little Fighter 2" +SHORTCUT_NAME="Little Fighter 2" + +FILENAME_EMPIRE="lf2_v20a_Setup.exe" +RUN_MESSAGE="Launch Little Fighter" +RUN_MESSAGE_EMPIRE="Run Little Fighter 2 version 2.0a" + +POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" + +POL_SetupWindow_Init +POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE" +POL_Debug_Init + +POL_SetupWindow_presentation "$TITLE" "Marti Wong and Starsky Wong" "http://www.lf2.net/" "MangaD" "$PREFIX" + +POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" + +if [ "$INSTALL_METHOD" = "LOCAL" ]; then + cd "$HOME" + POL_SetupWindow_browse "Please select the setup file to run." "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" + FULL_INSTALLER="$APP_ANSWER" + case "$(basename "$APP_ANSWER")" in + "$FILENAME_EMPIRE" ) + RUN_MESSAGE=$RUN_MESSAGE_EMPIRE + ;; + esac +else # DOWNLOAD + POL_System_TmpCreate "$PREFIX" + + POL_SetupWindow_menu "Select installer to download:" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" + case "$APP_ANSWER" in + "Little Fighter 2 - Official Website") + DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" + ;; + "Little Fighter - EMPIRE") + DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" + RUN_MESSAGE=$RUN_MESSAGE_EMPIRE + ;; + esac + + cd "$POL_System_TmpDir" + + POL_Download "$DOWNLOAD_URL" + DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" + + case "$APP_ANSWER" in + "Little Fighter - EMPIRE") + POL_SetupWindow_wait "Unzipping file..." "$TITLE" + unzip -o "$DOWNLOAD_FILE" || POL_Debug_Fatal "Unzip is required to install $TITLE from Little Fighter - EMPIRE source." + DOWNLOAD_FILE=$FILENAME_EMPIRE + ;; + esac + + FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" +fi + +POL_System_SetArch "x86" +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WINEVERSION" +POL_Call POL_Install_vcrun2005 +POL_Call POL_Install_d3dx9 +POL_Call POL_Install_wmp9 +POL_Call POL_Install_quartz +POL_Call POL_Install_devenum + +POL_SetupWindow_message "Warning: You must not tick the checkbox \"$RUN_MESSAGE\" when setup is done" "$TITLE" + +POL_Wine_WaitBefore "$TITLE" +POL_Wine "$FULL_INSTALLER" + +POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" + +if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then + # Free some disk space + POL_System_TmpDelete +fi + +POL_SetupWindow_Close +exit 0 \ No newline at end of file Nouveau code sourceUpdate: - POL_SetupWindow_wait before unzip - POL_Debug_Fatal in case unzip fails - Different Run Message for different installer #!/usr/bin/env playonlinux-bash # Date : (2015-09-29 23:45h) # Last revision : (2015-09-29 23:45h) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" WINEVERSION="1.7.50" PREFIX="LittleFighter2" TITLE="Little Fighter 2" SHORTCUT_NAME="Little Fighter 2" FILENAME_EMPIRE="lf2_v20a_Setup.exe" RUN_MESSAGE="Launch Little Fighter" RUN_MESSAGE_EMPIRE="Run Little Fighter 2 version 2.0a" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Marti Wong and Starsky Wong" "http://www.lf2.net/" "MangaD" "$PREFIX" POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "Please select the setup file to run." "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" case "$(basename "$APP_ANSWER")" in "$FILENAME_EMPIRE" ) RUN_MESSAGE=$RUN_MESSAGE_EMPIRE ;; esac else # DOWNLOAD POL_System_TmpCreate "$PREFIX" POL_SetupWindow_menu "Select installer to download:" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" RUN_MESSAGE=$RUN_MESSAGE_EMPIRE ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") POL_SetupWindow_wait "Unzipping file..." "$TITLE" unzip -o "$DOWNLOAD_FILE" || POL_Debug_Fatal "Unzip is required to install $TITLE from Little Fighter - EMPIRE source." DOWNLOAD_FILE=$FILENAME_EMPIRE ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" POL_Call POL_Install_vcrun2005 POL_Call POL_Install_d3dx9 POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_SetupWindow_message "Warning: You must not tick the checkbox \"$RUN_MESSAGE\" when setup is done" "$TITLE" POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 Réponses |
MangaD | Mercredi 30 September 2015 à 1:08 |
MangaD
|
MessagesTop corner Icon for install script: http://s6.postimg.org/46cuca80t/top.png Sideways banner that is on the left side of the first window when script is ran: http://s6.postimg.org/i3zlvbvhd/left.png The icon that will be used in the PlayOnLinux script list and the site: http://s6.postimg.org/5nyanucrh/lf2_0_22x22.png The icon that will be used for the installed program: http://s6.postimg.org/of07y07bx/lf2_0_48x48.png
Screenshots: http://lf2.net/lf2_pic/6.gif http://lf2.net/lf2_pic/9.gif http://lf2.net/lf2_pic/14.gif http://lf2.net/lf2_pic/16.gif RéponsesMercredi 30 September 2015 à 11:17
|
MangaD | Mercredi 30 September 2015 à 0:44 |
MangaD
|
WarningCette mise à jour n'a pas été approuvée par l'équipe. Differences@@ -0,0 +1,80 @@ +#!/usr/bin/env playonlinux-bash +# Date : (2015-09-29 23:45h) +# Last revision : (2015-09-29 23:45h) +# Wine version used : 1.7.50 +# Distribution used to test : Ubuntu 15.04 +# Author : MangaD + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +WINEVERSION="1.7.50" +PREFIX="LittleFighter2" +TITLE="Little Fighter 2" +SHORTCUT_NAME="Little Fighter 2" + +POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" + +POL_SetupWindow_Init +POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE" +POL_Debug_Init + +POL_SetupWindow_presentation "$TITLE" "Marti Wong and Starsky Wong" "http://www.lf2.net/" "MangaD" "$PREFIX" + +POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" + +if [ "$INSTALL_METHOD" = "LOCAL" ]; then + cd "$HOME" + POL_SetupWindow_browse "Please select the setup file to run." "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" + FULL_INSTALLER="$APP_ANSWER" +else # DOWNLOAD + POL_System_TmpCreate "$PREFIX" + + POL_SetupWindow_menu "Select installer to download:" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" + case "$APP_ANSWER" in + "Little Fighter 2 - Official Website") + DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" + ;; + "Little Fighter - EMPIRE") + DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" + ;; + esac + + cd "$POL_System_TmpDir" + + POL_Download "$DOWNLOAD_URL" + DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" + + case "$APP_ANSWER" in + "Little Fighter - EMPIRE") + unzip -o "$DOWNLOAD_FILE" + DOWNLOAD_FILE="lf2_v20a_Setup.exe" + ;; + esac + + FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" +fi + +POL_System_SetArch "x86" +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WINEVERSION" +POL_Call POL_Install_vcrun2005 +POL_Call POL_Install_d3dx9 +POL_Call POL_Install_wmp9 +POL_Call POL_Install_quartz +POL_Call POL_Install_devenum + +POL_SetupWindow_message "Warning: You must not tick the checkbox \"Launch Little Fighter\" when setup is done" "$TITLE" + +POL_Wine_WaitBefore "$TITLE" +POL_Wine "$FULL_INSTALLER" + +POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" + +if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then + # Free some disk space + POL_System_TmpDelete +fi + +POL_SetupWindow_Close +exit 0 \ No newline at end of file Nouveau code source#!/usr/bin/env playonlinux-bash # Date : (2015-09-29 23:45h) # Last revision : (2015-09-29 23:45h) # Wine version used : 1.7.50 # Distribution used to test : Ubuntu 15.04 # Author : MangaD [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" WINEVERSION="1.7.50" PREFIX="LittleFighter2" TITLE="Little Fighter 2" SHORTCUT_NAME="Little Fighter 2" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE" POL_SetupWindow_Init POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE" POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Marti Wong and Starsky Wong" "http://www.lf2.net/" "MangaD" "$PREFIX" POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ]; then cd "$HOME" POL_SetupWindow_browse "Please select the setup file to run." "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE" FULL_INSTALLER="$APP_ANSWER" else # DOWNLOAD POL_System_TmpCreate "$PREFIX" POL_SetupWindow_menu "Select installer to download:" "$TITLE" "Little Fighter 2 - Official Website~Little Fighter - EMPIRE" "~" case "$APP_ANSWER" in "Little Fighter 2 - Official Website") DOWNLOAD_URL="http://lf2.net/__conduit/0131/LF2_v20a_Install.exe" ;; "Little Fighter - EMPIRE") DOWNLOAD_URL="http://www.lf-empire.de/downloads/offversions/LF2_v2.0a.zip" ;; esac cd "$POL_System_TmpDir" POL_Download "$DOWNLOAD_URL" DOWNLOAD_FILE="$(basename "$DOWNLOAD_URL")" case "$APP_ANSWER" in "Little Fighter - EMPIRE") unzip -o "$DOWNLOAD_FILE" DOWNLOAD_FILE="lf2_v20a_Setup.exe" ;; esac FULL_INSTALLER="$POL_System_TmpDir/$DOWNLOAD_FILE" fi POL_System_SetArch "x86" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WINEVERSION" POL_Call POL_Install_vcrun2005 POL_Call POL_Install_d3dx9 POL_Call POL_Install_wmp9 POL_Call POL_Install_quartz POL_Call POL_Install_devenum POL_SetupWindow_message "Warning: You must not tick the checkbox \"Launch Little Fighter\" when setup is done" "$TITLE" POL_Wine_WaitBefore "$TITLE" POL_Wine "$FULL_INSTALLER" POL_Shortcut "lf2.exe" "$TITLE" "" "" "Game;" if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then # Free some disk space POL_System_TmpDelete fi POL_SetupWindow_Close exit 0 Réponses |
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