Infantry Online

Informations

Creator Mensajes
spiffyguy Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 1365
Wine: 7.0

Feedbacks

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.

Screenshots

Miniature

Source code

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

Contribute
Member Mensajes
spiffyguy Wednesday 2 March 2022 at 14:18
spiffyguy Anonymous

Information

This update has been approved by the team.

Mensajes

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
 

New source code

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

Respuestas

Saturday 5 March 2022 at 12:42
Script approved. Good thing if you can avoid to use .Net installer.
Dadu042 Monday 28 February 2022 at 17:02
Dadu042

Mensajes

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.

Respuestas

Anonymous
Tuesday 1 March 2022 at 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
Tuesday 1 March 2022 at 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.
Saturday 5 March 2022 at 12:43
I used the Download option.

Editado por: Dadu042

spiffyguy Monday 28 February 2022 at 15:31
spiffyguy Anonymous

Mensajes

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

Respuestas

Editado por: spiffyguy

spiffyguy Thursday 24 February 2022 at 23:06
spiffyguy Anonymous

Mensajes

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

 

Respuestas

Friday 25 February 2022 at 9:51
done
Anonymous
Sunday 27 February 2022 at 16:05
Thank you!
spiffyguy Thursday 24 February 2022 at 23:03
spiffyguy Anonymous

Warning

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

Mensajes

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

New source code

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

Respuestas

Friday 25 February 2022 at 9:51
script approved.