Infantry Online

Informations

Créateur Messages
spiffyguy Anonymous

Information

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

Informations

Plate-formes :
Téléchargements : 260
Wine: 7.0

Retours d'expérience

Description

Infantry is an online-only multiplayer action game with a science fiction theme. Game types are generally team based, and include marines vs aliens, capture the flag, and various sports themes, including football, hockey, and futuristic "Gravball." Website.

Captures d'écran

Miniature

Code source

#!/usr/bin/env playonlinux-bash
# Date : (2022-02-17 07-00)
# Last revision : (2022-03-02 05-15)
# Wine version used : 7.0
# Distribution used to test : Ubuntu 20.04 LTS
# Author : Spiff
# PlayOnLinux : 4.3.4
# Script license : GPL3
# Program license : Retail

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

TITLE="Infantry Online"
PREFIX="InfantryOnline"
COMPANY="Free Infantry Group"
DOMAIN="http://www.freeinfantry.com"
TEMPTITLE="$TITLE"
WINEVERSION="7.0"

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/infantryonline/top.jpg" "http://files.playonlinux.com/resources/setups/infantryonline/left.jpg" "$TITLE"
POL_GetSetupImages "http://freeinfantry.com/download/installer-images/linux-pol-top-64x64.png" "http://freeinfantry.com/download/installer-images/linux-pol-left-150x356.jpg" "$TITLE"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$COMPANY" "$DOMAIN" "Spiff" "$PREFIX"

POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

if [ "$INSTALL_METHOD" = "LOCAL" ]
then

        POL_SetupWindow_browse "Please select the installation file to run." "$TITLE Installer"
        INSTALLER="$APP_ANSWER"
                
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then

        POL_SetupWindow_wait "Downloading installer into a temp directory..." "$TITLE"
        cd "$POL_System_TmpDir"
        POL_Download "http://freeinfantry.com/download/win/latest/Install-Infantry-Online.exe"
        INSTALLER="$POL_System_TmpDir/Install-Infantry-Online.exe"
        
fi

if (( $(($WINEVERSION + 0)) >= 7.0 )); then
        TITLE="$TEMPTITLE (Step 1/1)"

else
        TITLE="$TEMPTITLE (Step 1/2)"
        POL_SetupWindow_wait "Installing .NET Framework 4.0..." "$TITLE"
        POL_Call POL_Install_dotnet40
        
        TITLE="$TEMPTITLE (Step 2/2)"
fi

POL_SetupWindow_wait "Installing Infantry Online..." "$TITLE"

TITLE="$TEMPTITLE"

if [ "$INSTALL_METHOD" = "LOCAL" ]
then

        # Run the installer NOT silently since you chose local and most likely will want to change settings
        POL_Wine "$INSTALLER" /ddraw=opengl

elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then

        # Run the installer silently (/S) and override the ddraw renderer to be opengl
        POL_Wine "$INSTALLER" /ddraw=opengl /S

fi

# Tell WINE we are overriding the ddraw dll
POL_Wine_OverrideDLL "native, builtin" "ddraw"

POL_Shortcut "InfantryLauncher.exe" "$TITLE" "" "" "Game;MultiplayerGame;"

POL_System_TmpDelete

POL_SetupWindow_Close

exit

Contributions

Filters:

Contribuer
Membre Messages
spiffyguy Mercredi 2 Mars 2022 à 14:18
spiffyguy Anonymous

Information

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

Messages

On Ubuntu Desktop 20.04.03 LTS, if I target WINE 7.0 "POL_Wine_PrefixCreate 7.0" then WINE mono is able to handle the calls for the Infantry Launcher and it appears .NET is not required to install!

I have tested the following script and it works to skip .NET on WINE 7.0.

Differences

@@ -1,7 +1,7 @@
 #!/usr/bin/env playonlinux-bash
 # Date : (2022-02-17 07-00)
-# Last revision : (2022-02-24 06-21)
-# Wine version used : 5.0.0
+# Last revision : (2022-03-02 05-15)
+# Wine version used : 7.0
 # Distribution used to test : Ubuntu 20.04 LTS
 # Author : Spiff
 # PlayOnLinux : 4.3.4
@@ -16,6 +16,7 @@
 COMPANY="Free Infantry Group"
 DOMAIN="http://www.freeinfantry.com"
 TEMPTITLE="$TITLE"
+WINEVERSION="7.0"
 
 #POL_GetSetupImages "http://files.playonlinux.com/resources/setups/infantryonline/top.jpg" "http://files.playonlinux.com/resources/setups/infantryonline/left.jpg" "$TITLE"
 POL_GetSetupImages "http://freeinfantry.com/download/installer-images/linux-pol-top-64x64.png" "http://freeinfantry.com/download/installer-images/linux-pol-left-150x356.jpg" "$TITLE"
@@ -30,7 +31,7 @@
 POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
 
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate
+POL_Wine_PrefixCreate "$WINEVERSION"
 
 if [ "$INSTALL_METHOD" = "LOCAL" ]
 then
@@ -41,23 +42,28 @@
 elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
 then
 
-	POL_SetupWindow_wait "Downloading all files first into a temp directory..." "$TITLE"
+	POL_SetupWindow_wait "Downloading installer into a temp directory..." "$TITLE"
 	cd "$POL_System_TmpDir"
 	POL_Download "http://freeinfantry.com/download/win/latest/Install-Infantry-Online.exe"
 	INSTALLER="$POL_System_TmpDir/Install-Infantry-Online.exe"
 	
 fi
 
-TITLE="$TEMPTITLE (Step 1/2)"
-POL_SetupWindow_wait "Setting up .NET Framework 4.0..." "$TITLE"
-POL_Call POL_Install_dotnet40
+if (( $(($WINEVERSION + 0)) >= 7.0 )); then
+	TITLE="$TEMPTITLE (Step 1/1)"
+
+else
+	TITLE="$TEMPTITLE (Step 1/2)"
+	POL_SetupWindow_wait "Installing .NET Framework 4.0..." "$TITLE"
+	POL_Call POL_Install_dotnet40
+	
+	TITLE="$TEMPTITLE (Step 2/2)"
+fi
 
-TITLE="$TEMPTITLE (Step 2/2)"
 POL_SetupWindow_wait "Installing Infantry Online..." "$TITLE"
 
 TITLE="$TEMPTITLE"
 
-
 if [ "$INSTALL_METHOD" = "LOCAL" ]
 then
 

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2022-02-17 07-00)
# Last revision : (2022-03-02 05-15)
# Wine version used : 7.0
# Distribution used to test : Ubuntu 20.04 LTS
# Author : Spiff
# PlayOnLinux : 4.3.4
# Script license : GPL3
# Program license : Retail

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

TITLE="Infantry Online"
PREFIX="InfantryOnline"
COMPANY="Free Infantry Group"
DOMAIN="http://www.freeinfantry.com"
TEMPTITLE="$TITLE"
WINEVERSION="7.0"

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/infantryonline/top.jpg" "http://files.playonlinux.com/resources/setups/infantryonline/left.jpg" "$TITLE"
POL_GetSetupImages "http://freeinfantry.com/download/installer-images/linux-pol-top-64x64.png" "http://freeinfantry.com/download/installer-images/linux-pol-left-150x356.jpg" "$TITLE"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$COMPANY" "$DOMAIN" "Spiff" "$PREFIX"

POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

if [ "$INSTALL_METHOD" = "LOCAL" ]
then

        POL_SetupWindow_browse "Please select the installation file to run." "$TITLE Installer"
        INSTALLER="$APP_ANSWER"
                
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then

        POL_SetupWindow_wait "Downloading installer into a temp directory..." "$TITLE"
        cd "$POL_System_TmpDir"
        POL_Download "http://freeinfantry.com/download/win/latest/Install-Infantry-Online.exe"
        INSTALLER="$POL_System_TmpDir/Install-Infantry-Online.exe"
        
fi

if (( $(($WINEVERSION + 0)) >= 7.0 )); then
        TITLE="$TEMPTITLE (Step 1/1)"

else
        TITLE="$TEMPTITLE (Step 1/2)"
        POL_SetupWindow_wait "Installing .NET Framework 4.0..." "$TITLE"
        POL_Call POL_Install_dotnet40
        
        TITLE="$TEMPTITLE (Step 2/2)"
fi

POL_SetupWindow_wait "Installing Infantry Online..." "$TITLE"

TITLE="$TEMPTITLE"

if [ "$INSTALL_METHOD" = "LOCAL" ]
then

        # Run the installer NOT silently since you chose local and most likely will want to change settings
        POL_Wine "$INSTALLER" /ddraw=opengl

elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then

        # Run the installer silently (/S) and override the ddraw renderer to be opengl
        POL_Wine "$INSTALLER" /ddraw=opengl /S

fi

# Tell WINE we are overriding the ddraw dll
POL_Wine_OverrideDLL "native, builtin" "ddraw"

POL_Shortcut "InfantryLauncher.exe" "$TITLE" "" "" "Game;MultiplayerGame;"

POL_System_TmpDelete

POL_SetupWindow_Close

exit

Réponses

Samedi 5 Mars 2022 à 12:42
Script approved. Good thing if you can avoid to use .Net installer.
Dadu042 Lundi 28 Février 2022 à 17:02
Dadu042

Messages

The game fails  to launch: "CLR error: 80004005". Tested on Wine 7.0, 5.0.3, and 6.0.1.
It seems the game failed to install.
Other thing:.NET Framework 4.0 seems required before to install the game.

Réponses

Anonymous
Mardi 1 Mars 2022 à 6:04
Hi Dadu042, I will update the script, that looks like a .NET error. I think we will need to bump up .NET to at least 4.5.2 to fix that. I’ll get it updated in the morning and then you can try again!
Anonymous
Mardi 1 Mars 2022 à 13:15
On your comment "Other thing:.NET Framework 4.0 seems required before to install the game." The installer should not require .NET. It's the launcher after installing that requires .NET. The PlayOnLinux install script has the requirement of installing .NET 4.0 (Step 1/2). Just to ask, did you use the "Download" option within the script or did you download the installer from the freeinfantry.com website and "Choose a local exe?" Just so I understand the issue. Thanks for testing this. I do think bumping up the .NET version should help get past that error as well but I will test.
Samedi 5 Mars 2022 à 12:43
I used the Download option.

Edité par Dadu042

spiffyguy Lundi 28 Février 2022 à 15:31
spiffyguy Anonymous

Messages

I am sorry for so many after submission edits.

Script is good and working! I have made the 4 different POL required images and am linking them here for upload to the catalog:

I re-read this forum post about submissions: https://www.playonlinux.com/en/topic-10187-Standards_for_script_publishing.html and saw that I was missing the two icon files.

Can someone help me get those submitted properly so they show up in the catalog when searching?  (I guess the 22x22 is used in this case, and the 48x48 is used for the installed icon)

Thanks!

- Spiff

Réponses

Edité par spiffyguy

spiffyguy Jeudi 24 Février 2022 à 23:06
spiffyguy Anonymous

Messages

Is it possible to edit the original description?

I wanted to make sure everyone knows this is the official Infantry Online from the "Free Infantry Group."  http://www.freeinfantry.com

 

Réponses

Vendredi 25 Février 2022 à 9:51
done
Anonymous
Dimanche 27 Février 2022 à 16:05
Thank you!
spiffyguy Jeudi 24 Février 2022 à 23:03
spiffyguy Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Didn't see on the original form where to submit the script.

Submitting it now!

Differences

@@ -0,0 +1,84 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2022-02-17 07-00)
+# Last revision : (2022-02-24 06-21)
+# Wine version used : 5.0.0
+# Distribution used to test : Ubuntu 20.04 LTS
+# Author : Spiff
+# PlayOnLinux : 4.3.4
+# Script license : GPL3
+# Program license : Retail
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Infantry Online"
+PREFIX="InfantryOnline"
+COMPANY="Free Infantry Group"
+DOMAIN="http://www.freeinfantry.com"
+TEMPTITLE="$TITLE"
+
+#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/infantryonline/top.jpg" "http://files.playonlinux.com/resources/setups/infantryonline/left.jpg" "$TITLE"
+POL_GetSetupImages "http://freeinfantry.com/download/installer-images/linux-pol-top-64x64.png" "http://freeinfantry.com/download/installer-images/linux-pol-left-150x356.jpg" "$TITLE"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "$COMPANY" "$DOMAIN" "Spiff" "$PREFIX"
+
+POL_System_TmpCreate "$PREFIX"
+
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate
+
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+
+	POL_SetupWindow_browse "Please select the installation file to run." "$TITLE Installer"
+	INSTALLER="$APP_ANSWER"
+		
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+
+	POL_SetupWindow_wait "Downloading all files first into a temp directory..." "$TITLE"
+	cd "$POL_System_TmpDir"
+	POL_Download "http://freeinfantry.com/download/win/latest/Install-Infantry-Online.exe"
+	INSTALLER="$POL_System_TmpDir/Install-Infantry-Online.exe"
+	
+fi
+
+TITLE="$TEMPTITLE (Step 1/2)"
+POL_SetupWindow_wait "Setting up .NET Framework 4.0..." "$TITLE"
+POL_Call POL_Install_dotnet40
+
+TITLE="$TEMPTITLE (Step 2/2)"
+POL_SetupWindow_wait "Installing Infantry Online..." "$TITLE"
+
+TITLE="$TEMPTITLE"
+
+
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+
+	# Run the installer NOT silently since you chose local and most likely will want to change settings
+	POL_Wine "$INSTALLER" /ddraw=opengl
+
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+
+	# Run the installer silently (/S) and override the ddraw renderer to be opengl
+	POL_Wine "$INSTALLER" /ddraw=opengl /S
+
+fi
+
+# Tell WINE we are overriding the ddraw dll
+POL_Wine_OverrideDLL "native, builtin" "ddraw"
+
+POL_Shortcut "InfantryLauncher.exe" "$TITLE" "" "" "Game;MultiplayerGame;"
+
+POL_System_TmpDelete
+
+POL_SetupWindow_Close
+
+exit
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2022-02-17 07-00)
# Last revision : (2022-02-24 06-21)
# Wine version used : 5.0.0
# Distribution used to test : Ubuntu 20.04 LTS
# Author : Spiff
# PlayOnLinux : 4.3.4
# Script license : GPL3
# Program license : Retail

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

TITLE="Infantry Online"
PREFIX="InfantryOnline"
COMPANY="Free Infantry Group"
DOMAIN="http://www.freeinfantry.com"
TEMPTITLE="$TITLE"

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/infantryonline/top.jpg" "http://files.playonlinux.com/resources/setups/infantryonline/left.jpg" "$TITLE"
POL_GetSetupImages "http://freeinfantry.com/download/installer-images/linux-pol-top-64x64.png" "http://freeinfantry.com/download/installer-images/linux-pol-left-150x356.jpg" "$TITLE"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$COMPANY" "$DOMAIN" "Spiff" "$PREFIX"

POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

if [ "$INSTALL_METHOD" = "LOCAL" ]
then

        POL_SetupWindow_browse "Please select the installation file to run." "$TITLE Installer"
        INSTALLER="$APP_ANSWER"
                
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then

        POL_SetupWindow_wait "Downloading all files first into a temp directory..." "$TITLE"
        cd "$POL_System_TmpDir"
        POL_Download "http://freeinfantry.com/download/win/latest/Install-Infantry-Online.exe"
        INSTALLER="$POL_System_TmpDir/Install-Infantry-Online.exe"
        
fi

TITLE="$TEMPTITLE (Step 1/2)"
POL_SetupWindow_wait "Setting up .NET Framework 4.0..." "$TITLE"
POL_Call POL_Install_dotnet40

TITLE="$TEMPTITLE (Step 2/2)"
POL_SetupWindow_wait "Installing Infantry Online..." "$TITLE"

TITLE="$TEMPTITLE"


if [ "$INSTALL_METHOD" = "LOCAL" ]
then

        # Run the installer NOT silently since you chose local and most likely will want to change settings
        POL_Wine "$INSTALLER" /ddraw=opengl

elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then

        # Run the installer silently (/S) and override the ddraw renderer to be opengl
        POL_Wine "$INSTALLER" /ddraw=opengl /S

fi

# Tell WINE we are overriding the ddraw dll
POL_Wine_OverrideDLL "native, builtin" "ddraw"

POL_Shortcut "InfantryLauncher.exe" "$TITLE" "" "" "Game;MultiplayerGame;"

POL_System_TmpDelete

POL_SetupWindow_Close

exit

Réponses

Vendredi 25 Février 2022 à 9:51
script approved.