You are here    Supported software    Little Fighter 2 v2.0a nl sv ru pl es de fr

Little Fighter 2 v2.0a

Informations

Creator Message
MangaD

Warning

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

Informations

Platforms:
Downloads: 11024
Wine: System

Feedbacks

Description

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:

  • At installation phase, sometimes after clicking 'Next' nothing appears on the window. Just click 'Back' and 'Next' again to fix.
  • The 'control settings' screen is a bit buggy, but still works.

Screenshots

MiniatureMiniatureMiniatureMiniatureMiniatureMiniature

Source code

#!/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

Contributions

Filters:

Contribute
Member Message
MangaD Friday 19 January 2018 at 12:53
MangaD

Information

This update has been approved by the team.

Message

Please 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:

  • During installation PlayOnLinux may tell Wine crashed. Continue the LF2 installation normally and only click "Next" on POL when LF2 installation is done.
  • At installation phase, sometimes after clicking 'Next' nothing appears on the window. Just click 'Back' and 'Next' again to fix.
  • The 'control settings' screen is a bit buggy, with invisible buttons, but the buttons are there and work.

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

New source code

#!/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

Replies

Anonymous
Sunday 27 May 2018 at 1:53 -
I can't play, I don't know why LF2 works just on the beginning and when I launch 1 game, LF2 crash ??
Monday 18 June 2018 at 18:42 -
This is a problem with PlayOnLinux. The dependencies are not being installed for some reason. Follow the instructions on this thread: https://lf-empire.de/forum/showthread.php?tid=10042
MangaD Wednesday 17 January 2018 at 15:59
MangaD

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

This is an improvement of the previous script.

Changes:
- Changed '&&&&' to '&&' in the VENDOR variable. Previously four '&' were required to make a '&', now only two are required.
- Optionally download LF2 Lobby, LF2 MultiServer and LF2 Dashboard which are useful programs to complement this game.
- Optionally download Hero Fighter, which is a game closely related to this game (it is from the same author).
- Don't use specific wine version. I don't think it is necessary anymore.
- Replace WMP9 with WMP10, for some reason WMP9 installation was failing for m. During testing it got frozen on installing WMP9 part 1...

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

New source code

#!/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

Replies

Guich Tuesday 17 January 2017 at 15:39
Guich Anonymous

Message

Hi, the game is launched perfectly, but the problem is i cannot change the control settings.

I go to the control settings > i change > then i can't go back to the main menu so i have to quit the game and when i do my changes haven't been saved

Do you have a trick ?

Thank you for the good job :D

Replies

Anonymous
Tuesday 17 January 2017 at 15:41 -
Ok i didnot see the "ok" was hidden :D the game is perfect thank you !
Sunday 5 February 2017 at 18:04 -
Yes, the controls screen has that issue as mentioned in the description.
samson1016 Tuesday 1 March 2016 at 15:32
samson1016 Anonymous

Message

It 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 ^^

Replies

Tuesday 22 March 2016 at 11:29 -
Hello samson1016, sorry for the late reply, I only saw your comment today. Did you successfully install the game and get it working?

You cannot open lf2.exe directly, you have to run it from PoL. If you have any problems I can help you. Just join this chat: http://webchat.freenode.net/?channels=#lfe

If you see me (MangaD) on the user list, then you can contact me and we can solve the problem.
MangaD Wednesday 18 November 2015 at 2:29
MangaD

Warning

This update has not been approved yet by the team.
Use it at your own risk

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

New source code

#!/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

Replies

Andre1996 Wednesday 28 October 2015 at 2:09
Andre1996 Anonymous

Message

Little 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! ^^

Replies

Wednesday 18 November 2015 at 2:35 -
New script has been submitted with the bug fixed.
Thank you for your feedback!
MangaD Saturday 3 October 2015 at 18:04
MangaD

Warning

This update has not been approved yet by the team.
Use it at your own risk

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

New source code

#!/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

Replies

MangaD Thursday 1 October 2015 at 19:25
MangaD

Message

If possible I would like to submit a screenshot of the Main Screen to distinguish from other versions. If this is too many screenshots, this one can replace any other. Thanks in advance.

Replies

MangaD Thursday 1 October 2015 at 19:14
MangaD

Warning

This update has not been approved yet by the team.
Use it at your own risk

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

New source code

#!/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

Replies

MangaD Wednesday 30 September 2015 at 22:03
MangaD

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -11,7 +11,7 @@
 
 # POL
 WINEVERSION="1.7.50"
-PREFIX="LittleFighter2"
+PREFIX="LittleFighter2v20a"
 MAINTAINER="MangaD"
 
 # Info

New source code

#!/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

Replies

MangaD Wednesday 30 September 2015 at 21:42
MangaD

Message

Description:

 

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:

  • At installation phase, sometimes after clicking 'Next' nothing appears on the window. Just click 'Back' and 'Next' again to fix.
  • The 'control settings' screen is a bit buggy, but still works.

 

Setup images:

http://s6.postimg.org/46cuca80t/top.png
http://s6.postimg.org/i3zlvbvhd/left.png
The original (preferred): http://s6.postimg.org/9cxmy6ihp/lf2_0_32x32.png
http://s6.postimg.org/5nyanucrh/lf2_0_22x22.png
http://s6.postimg.org/of07y07bx/lf2_0_48x48.png

 

Screenshots:

http://lf2.net/lf2_pic/4.gif
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

Replies

MangaD Wednesday 30 September 2015 at 21:38
MangaD

Warning

This update has not been approved yet by the team.
Use it at your own risk

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/"
 

New source code

#!/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

Replies

Edited by petch

MangaD Wednesday 30 September 2015 at 16:45
MangaD

Warning

This update has not been approved yet by the team.
Use it at your own risk

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

New source code

#!/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

Replies

MangaD Wednesday 30 September 2015 at 11:08
MangaD

Warning

This update has not been approved yet by the team.
Use it at your own risk

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

New source code

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

Replies

MangaD Wednesday 30 September 2015 at 1:08
MangaD

Message

Top 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/4.gif

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

Replies

Wednesday 30 September 2015 at 11:17 -
Actually, the original game icon is 32x32. So I'd like to use that one if possible: http://s6.postimg.org/9cxmy6ihp/lf2_0_32x32.png
MangaD Wednesday 30 September 2015 at 0:44
MangaD

Warning

This update has not been approved yet by the team.
Use it at your own risk

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

New source code

#!/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

Replies