Terraria

Informations

Créateur Messages
lahtis Anonymous

Attention

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

Informations

Plate-formes :
Téléchargements : 57023
Wine: 3.1

Retours d'expérience

Description

Dig, fight, explore, build! Nothing is impossible in this action-packed 2D-adventure game. The world is your canvas and the ground itself is your paint.

Captures d'écran

MiniatureMiniatureMiniatureMiniature

Code source

#!/usr/bin/env playonlinux-bash
# Date : (2013-02-18)
# Last revision : (2018-02-09 21-39)
# Distribution used to test : Ubuntu 12.10, Ubuntu 16.04
# Author : lahtis
# Licence : retail
# Steam installer.
  
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
  
PREFIX="terraria"
WORKING_WINE_VERSION="3.1"
TITLE="Terraria"
EDITOR="Merge Games"
GAME_URL="http://www.terraria.org/"
AUTHOR="lahtis"
  
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1576
POL_Debug_Init
       
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
STEAM_ID="105600"
Set_OS "win7"
POL_System_TmpCreate "$PREFIX"
 
# Moving TMP dir
cd "$POL_System_TmpDir"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS "512"
  
POL_Call POL_Function_SetResolution
 
# Registery fix
cat << EOF > fix.reg
REGEDIT4
        
[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"UseTakeFocus"="Y"
EOF
 
POL_Wine regedit.exe fix.reg
POL_Wine_WaitExit "$TITLE"
  
# Installing mandatory dependencies
  
POL_Call POL_Install_xinput # Fix game issue
POL_Call POL_Install_xna40 # Fix game issue
  
# Installing Steam
POL_Call POL_Install_steam
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitBefore "$TITLE"
       
# Shortcut
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
 
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
Vaval62 Jeudi 8 Mars 2018 à 12:01
Vaval62 Anonymous

Messages

Ce programme ne fonctionne pas, quand je l'éxécute ça me marque:

<< PlayOnLinux has encountered an error. If the programm does not work correctly, it might be the cause of the problem. Visit www.playonlinux.com to get further information.

Error in main

Terraria crashed.

Select his shortcut and click on "debug" in the side panel to get more details.>>

Je me demande donc ce que je dois faire pour pouvoir jouer à ce jeu que j'adore tant......

Réponses

Anonymous
Mardi 13 Mars 2018 à 19:08
you try old installer. Below is a new installer that works.
lahtis Mardi 13 Février 2018 à 1:21
lahtis Anonymous

Information

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

Messages

fixing POLL_Call

Differences

@@ -1,71 +1,70 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
 # Date : (2013-02-18)
-# Last revision : (2014-01-11 03:24) - DJYoshaBYD
-# Distribution used to test : Ubuntu 12.10
+# Last revision : (2018-02-09 21-39)
+# Distribution used to test : Ubuntu 12.10, Ubuntu 16.04
 # Author : lahtis
 # Licence : retail
-# PlayOnLinux: 4.1.9
-# Steam installer works (2013-02-18)
-# DVD installer not tested. I do not have dvd version.
-
-[-z "$PLAYONLINUX" = "" ] && exit 0
+# Steam installer.
+  
+[ -z "$PLAYONLINUX" ] && exit
 source "$PLAYONLINUX/lib/sources"
-
+  
 PREFIX="terraria"
-WINEVERSION="1.7.8"
+WORKING_WINE_VERSION="3.1"
 TITLE="Terraria"
 EDITOR="Merge Games"
 GAME_URL="http://www.terraria.org/"
 AUTHOR="lahtis"
-
+  
 #Initialization
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
-     
+POL_SetupWindow_SetID 1576
 POL_Debug_Init
-     
+       
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+  
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
-POL_Wine_PrefixCreate "$WINEVERSION"  
-GAME_VMS="512"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 STEAM_ID="105600"
-
-# Fix pulseaudio issue
-which pulseaudio && Set_OS "winxp"
-
-# Latest Terraria version of Linux working if Virtual Desktop is off. 
-# If you had a problem. Set virtual destop on in Wine prefix settings. 
-# Set_Desktop On 1024 768
-
+Set_OS "win7"
+POL_System_TmpCreate "$PREFIX"
+ 
+# Moving TMP dir
+cd "$POL_System_TmpDir"
+ 
 # Asking about memory size of graphic card
-POL_SetupWindow_VMS $GAME_VMS
-
-# Installing mandatory dependencies
-POL_Call POL_Install_steam
-
-# Mandatory pre-install fix for steam
-POL_Call POL_Install_steam_flags "$STEAM_ID"
+POL_SetupWindow_VMS "512"
+  
+POL_Call POL_Function_SetResolution
  
-# Shortcut done before install for steam version
-POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
-POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
-
-POL_SetupWindow_message "$(eval_gettext 'Install Terraria via Steam.  Once Terraria has fully downloaded, press the Play button, Steam will prompt you to install the xna framework.  Once the xna framework has been installed close Steam and continue this installer.')" "$TITLE"
-cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
-POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+# Registery fix
+cat << EOF > fix.reg
+REGEDIT4
+        
+[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
+"UseTakeFocus"="Y"
+EOF
+ 
+POL_Wine regedit.exe fix.reg
 POL_Wine_WaitExit "$TITLE"
-     
+  
 # Installing mandatory dependencies
-
+  
 POL_Call POL_Install_xinput # Fix game issue
 POL_Call POL_Install_xna40 # Fix game issue
-
-# disable in Steam gameoverlayrender
-POL_Wine_OverrideDLL "" "gameoverlayrenderer"
+  
+# Installing Steam
+POL_Call POL_Install_steam
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+POL_Wine "steam.exe" steam://install/$STEAM_ID
+POL_Wine_WaitBefore "$TITLE"
+       
+# Shortcut
+POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
  
 # Check Kernel ptrace
 if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
@@ -74,7 +73,7 @@
                 POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
         fi
 fi
-
+ 
+POL_System_TmpDelete
 POL_SetupWindow_Close
-
-exit 0
+exit 0
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2013-02-18)
# Last revision : (2018-02-09 21-39)
# Distribution used to test : Ubuntu 12.10, Ubuntu 16.04
# Author : lahtis
# Licence : retail
# Steam installer.
  
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
  
PREFIX="terraria"
WORKING_WINE_VERSION="3.1"
TITLE="Terraria"
EDITOR="Merge Games"
GAME_URL="http://www.terraria.org/"
AUTHOR="lahtis"
  
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1576
POL_Debug_Init
       
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
STEAM_ID="105600"
Set_OS "win7"
POL_System_TmpCreate "$PREFIX"
 
# Moving TMP dir
cd "$POL_System_TmpDir"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS "512"
  
POL_Call POL_Function_SetResolution
 
# Registery fix
cat << EOF > fix.reg
REGEDIT4
        
[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"UseTakeFocus"="Y"
EOF
 
POL_Wine regedit.exe fix.reg
POL_Wine_WaitExit "$TITLE"
  
# Installing mandatory dependencies
  
POL_Call POL_Install_xinput # Fix game issue
POL_Call POL_Install_xna40 # Fix game issue
  
# Installing Steam
POL_Call POL_Install_steam
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitBefore "$TITLE"
       
# Shortcut
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
 
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

Anonymous
Mardi 6 Mars 2018 à 17:13
I'm unable to click "try this update". I've got playonmac open but it tries to open with a new icon bouncing in the dock, and it never opens. I'm unable to force quit it too. How can I test this update without having to use the button? Can I use the new source code in some way?
Anonymous
Mardi 6 Mars 2018 à 19:41
copy the source code in file and go playonmac software -> tools -> run a local script. Now you can test the code and game.
lahtis Vendredi 9 Février 2018 à 20:40
lahtis Anonymous

Warning

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

Messages

fix the register.

Differences

@@ -1,72 +1,71 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
 # Date : (2013-02-18)
-# Last revision : (2014-01-11 03:24) - DJYoshaBYD
-# Distribution used to test : Ubuntu 12.10
+# Last revision : (2018-02-09 21-39)
+# Distribution used to test : Ubuntu 12.10, Ubuntu 16.04
 # Author : lahtis
 # Licence : retail
-# PlayOnLinux: 4.1.9
-# Steam installer works (2013-02-18)
-# DVD installer not tested. I do not have dvd version.
-
-[-z "$PLAYONLINUX" = "" ] && exit 0
+# Steam installer.
+ 
+[ -z "$PLAYONLINUX" ] && exit
 source "$PLAYONLINUX/lib/sources"
-
+ 
 PREFIX="terraria"
-WINEVERSION="1.7.8"
+WORKING_WINE_VERSION="3.1"
 TITLE="Terraria"
 EDITOR="Merge Games"
 GAME_URL="http://www.terraria.org/"
 AUTHOR="lahtis"
-
+ 
 #Initialization
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
-     
+POL_SetupWindow_SetID 1576
 POL_Debug_Init
-     
+      
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+ 
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
-POL_Wine_PrefixCreate "$WINEVERSION"  
-GAME_VMS="512"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" 
 STEAM_ID="105600"
+Set_OS "win7"
+POL_System_TmpCreate "$PREFIX"
 
-# Fix pulseaudio issue
-which pulseaudio && Set_OS "winxp"
-
-# Latest Terraria version of Linux working if Virtual Desktop is off. 
-# If you had a problem. Set virtual destop on in Wine prefix settings. 
-# Set_Desktop On 1024 768
+# Moving TMP dir
+cd "$POL_System_TmpDir"
 
 # Asking about memory size of graphic card
-POL_SetupWindow_VMS $GAME_VMS
-
-# Installing mandatory dependencies
-POL_Call POL_Install_steam
-
-# Mandatory pre-install fix for steam
-POL_Call POL_Install_steam_flags "$STEAM_ID"
+POL_SetupWindow_VMS "512"
  
-# Shortcut done before install for steam version
-POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
-POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+Poll_Call POL_Function_SetResolution
 
-POL_SetupWindow_message "$(eval_gettext 'Install Terraria via Steam.  Once Terraria has fully downloaded, press the Play button, Steam will prompt you to install the xna framework.  Once the xna framework has been installed close Steam and continue this installer.')" "$TITLE"
-cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
-POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+# Registery fix
+cat << EOF > fix.reg
+REGEDIT4
+       
+[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
+"UseTakeFocus"="Y"
+EOF
+
+POL_Wine regedit.exe fix.reg
 POL_Wine_WaitExit "$TITLE"
-     
+ 
 # Installing mandatory dependencies
-
+ 
 POL_Call POL_Install_xinput # Fix game issue
 POL_Call POL_Install_xna40 # Fix game issue
-
-# disable in Steam gameoverlayrender
-POL_Wine_OverrideDLL "" "gameoverlayrenderer"
  
+# Installing Steam
+POL_Call POL_Install_steam
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+POL_Wine "steam.exe" steam://install/$STEAM_ID
+POL_Wine_WaitBefore "$TITLE"
+      
+# Shortcut 
+POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID" 
+
 # Check Kernel ptrace
 if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
         PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
@@ -75,6 +74,6 @@
         fi
 fi
 
+POL_System_TmpDelete
 POL_SetupWindow_Close
-
-exit 0
+exit 0
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2013-02-18)
# Last revision : (2018-02-09 21-39)
# Distribution used to test : Ubuntu 12.10, Ubuntu 16.04
# Author : lahtis
# Licence : retail
# Steam installer.
 
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
 
PREFIX="terraria"
WORKING_WINE_VERSION="3.1"
TITLE="Terraria"
EDITOR="Merge Games"
GAME_URL="http://www.terraria.org/"
AUTHOR="lahtis"
 
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1576
POL_Debug_Init
      
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" 
STEAM_ID="105600"
Set_OS "win7"
POL_System_TmpCreate "$PREFIX"

# Moving TMP dir
cd "$POL_System_TmpDir"

# Asking about memory size of graphic card
POL_SetupWindow_VMS "512"
 
Poll_Call POL_Function_SetResolution

# Registery fix
cat << EOF > fix.reg
REGEDIT4
       
[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"UseTakeFocus"="Y"
EOF

POL_Wine regedit.exe fix.reg
POL_Wine_WaitExit "$TITLE"
 
# Installing mandatory dependencies
 
POL_Call POL_Install_xinput # Fix game issue
POL_Call POL_Install_xna40 # Fix game issue
 
# Installing Steam
POL_Call POL_Install_steam
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitBefore "$TITLE"
      
# Shortcut 
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID" 

# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

lahtis Vendredi 9 Février 2018 à 16:28
lahtis Anonymous

Warning

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

Messages

  • New wine version.
  • You have to use virtual desktop. Game not work properly fullscreen, if virtual desktop is off. 
  • If virtual desktop is off and you go fullscreen mouse or keyboard maybe not working properly.
  • A virtual desktop is possible to put the screen's maximum resolution. A virtual desktop is displayed on the full screen. In some situations, it may make gaming difficult.The game does not work properlymouse problems begin or crash when create or load a map.
  • Resizing the window will resize only the game display and not the size of the graphical user interface.
  • The game supports graphical effects if supported (OpenGL 2.0+)

You can test when running game add -force-glcore or -force-opengl to your launch options by right clicking the game under Properties, Launch Options.

Newer Nvidia Proprietary Drivers maybe work with -force-glcore45, which is OpenGL 4.5.

Differences

@@ -1,72 +1,68 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
 # Date : (2013-02-18)
-# Last revision : (2014-01-11 03:24) - DJYoshaBYD
-# Distribution used to test : Ubuntu 12.10
+# Last revision : (2018-02-09 17-02)
+# Distribution used to test : Ubuntu 12.10, Ubuntu 16.04
 # Author : lahtis
 # Licence : retail
-# PlayOnLinux: 4.1.9
-# Steam installer works (2013-02-18)
-# DVD installer not tested. I do not have dvd version.
-
-[-z "$PLAYONLINUX" = "" ] && exit 0
+# Steam installer.
+ 
+[ -z "$PLAYONLINUX" ] && exit
 source "$PLAYONLINUX/lib/sources"
-
+ 
 PREFIX="terraria"
-WINEVERSION="1.7.8"
+WORKING_WINE_VERSION="3.1"
 TITLE="Terraria"
 EDITOR="Merge Games"
 GAME_URL="http://www.terraria.org/"
 AUTHOR="lahtis"
-
+ 
 #Initialization
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
-     
+POL_SetupWindow_SetID 1576
 POL_Debug_Init
-     
+      
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+ 
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
-POL_Wine_PrefixCreate "$WINEVERSION"  
-GAME_VMS="512"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" 
 STEAM_ID="105600"
+Set_OS "win7"
+POL_System_TmpCreate "$PREFIX"
 
-# Fix pulseaudio issue
-which pulseaudio && Set_OS "winxp"
-
-# Latest Terraria version of Linux working if Virtual Desktop is off. 
-# If you had a problem. Set virtual destop on in Wine prefix settings. 
-# Set_Desktop On 1024 768
+# Moving TMP dir
+cd "$POL_System_TmpDir"
 
 # Asking about memory size of graphic card
-POL_SetupWindow_VMS $GAME_VMS
-
-# Installing mandatory dependencies
-POL_Call POL_Install_steam
-
-# Mandatory pre-install fix for steam
-POL_Call POL_Install_steam_flags "$STEAM_ID"
+POL_SetupWindow_VMS "512"
  
-# Shortcut done before install for steam version
-POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
-POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+Poll_Call POL_Function_SetResolution
 
-POL_SetupWindow_message "$(eval_gettext 'Install Terraria via Steam.  Once Terraria has fully downloaded, press the Play button, Steam will prompt you to install the xna framework.  Once the xna framework has been installed close Steam and continue this installer.')" "$TITLE"
-cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
-POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
-POL_Wine_WaitExit "$TITLE"
-     
+# Registery fix
+cat << EOF > fix.reg
+REGEDIT4
+       
+[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
+"UseTakeFocus"="Y"
+EOF
+ 
 # Installing mandatory dependencies
-
+ 
 POL_Call POL_Install_xinput # Fix game issue
 POL_Call POL_Install_xna40 # Fix game issue
-
-# disable in Steam gameoverlayrender
-POL_Wine_OverrideDLL "" "gameoverlayrenderer"
  
+# Installing Steam
+POL_Call POL_Install_steam
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+POL_Wine "steam.exe" steam://install/$STEAM_ID
+POL_Wine_WaitBefore "$TITLE"
+      
+# Shortcut 
+POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID" 
+
 # Check Kernel ptrace
 if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
         PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
@@ -75,6 +71,6 @@
         fi
 fi
 
+POL_System_TmpDelete
 POL_SetupWindow_Close
-
-exit 0
+exit 0
\ No newline at end of file

Nouveau code source

#!/usr/bin/env playonlinux-bash
# Date : (2013-02-18)
# Last revision : (2018-02-09 17-02)
# Distribution used to test : Ubuntu 12.10, Ubuntu 16.04
# Author : lahtis
# Licence : retail
# Steam installer.
 
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
 
PREFIX="terraria"
WORKING_WINE_VERSION="3.1"
TITLE="Terraria"
EDITOR="Merge Games"
GAME_URL="http://www.terraria.org/"
AUTHOR="lahtis"
 
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1576
POL_Debug_Init
      
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" 
STEAM_ID="105600"
Set_OS "win7"
POL_System_TmpCreate "$PREFIX"

# Moving TMP dir
cd "$POL_System_TmpDir"

# Asking about memory size of graphic card
POL_SetupWindow_VMS "512"
 
Poll_Call POL_Function_SetResolution

# Registery fix
cat << EOF > fix.reg
REGEDIT4
       
[HKEY_CURRENT_USER\Software\Wine\X11 Driver]
"UseTakeFocus"="Y"
EOF
 
# Installing mandatory dependencies
 
POL_Call POL_Install_xinput # Fix game issue
POL_Call POL_Install_xna40 # Fix game issue
 
# Installing Steam
POL_Call POL_Install_steam
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitBefore "$TITLE"
      
# Shortcut 
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID" 

# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

Vendredi 9 Février 2018 à 16:53
You don't use regedit fix ?
Anonymous
Vendredi 9 Février 2018 à 20:41
Forgot. Thanks.
Badcop73 Samedi 6 Février 2016 à 1:19
Badcop73 Anonymous

Messages

Well it does not on my chromebook at least :)

 

Réponses

lahtis Dimanche 18 Octobre 2015 à 1:54
lahtis Anonymous

Warning

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

Messages

Latest Terraria version of Linux working if Virtual Desktop is off.

If you had a problem. Set virtual destop on in Wine prefix settings.

 

Differences

@@ -37,8 +37,9 @@
 # Fix pulseaudio issue
 which pulseaudio && Set_OS "winxp"
 
-# Select virtual desktop mode on
-Set_Desktop On 1024 768
+# Latest Terraria version of Linux working if Virtual Desktop is off. 
+# If you had a problem. Set virtual destop on in Wine prefix settings. 
+# Set_Desktop On 1024 768
 
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS $GAME_VMS

Nouveau code source

#!/bin/bash
# Date : (2013-02-18)
# Last revision : (2014-01-11 03:24) - DJYoshaBYD
# Distribution used to test : Ubuntu 12.10
# Author : lahtis
# Licence : retail
# PlayOnLinux: 4.1.9
# Steam installer works (2013-02-18)
# DVD installer not tested. I do not have dvd version.

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

PREFIX="terraria"
WINEVERSION="1.7.8"
TITLE="Terraria"
EDITOR="Merge Games"
GAME_URL="http://www.terraria.org/"
AUTHOR="lahtis"

#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
     
POL_Debug_Init
     
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"  
GAME_VMS="512"
STEAM_ID="105600"

# Fix pulseaudio issue
which pulseaudio && Set_OS "winxp"

# Latest Terraria version of Linux working if Virtual Desktop is off. 
# If you had a problem. Set virtual destop on in Wine prefix settings. 
# Set_Desktop On 1024 768

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Installing mandatory dependencies
POL_Call POL_Install_steam

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
 
# Shortcut done before install for steam version
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'Install Terraria via Steam.  Once Terraria has fully downloaded, press the Play button, Steam will prompt you to install the xna framework.  Once the xna framework has been installed close Steam and continue this installer.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitExit "$TITLE"
     
# Installing mandatory dependencies

POL_Call POL_Install_xinput # Fix game issue
POL_Call POL_Install_xna40 # Fix game issue

# disable in Steam gameoverlayrender
POL_Wine_OverrideDLL "" "gameoverlayrenderer"
 
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi

POL_SetupWindow_Close

exit 0

Réponses

Anonymous
Vendredi 23 Octobre 2015 à 17:37
note: When steam comes up there is no text displayed. Close Steam window. Steam re-start and font issue is repaired.
Quentin PÂRIS Jeudi 6 Aoüt 2015 à 21:24
Quentin PÂRIS
Admin

Warning

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

Differences

@@ -53,7 +53,7 @@
 POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
 POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
 
-POL_SetupWindow_message "$(eval_gettext 'Install Terraria in Steam. Run the Terraria when Steam is installed the game. Steam install xna framework the game. Close the Steam so that the installer can continue.')" "$TITLE"
+POL_SetupWindow_message "$(eval_gettext 'Install Terraria via Steam.  Once Terraria has fully downloaded, press the Play button, Steam will prompt you to install the xna framework.  Once the xna framework has been installed close Steam and continue this installer.')" "$TITLE"
 cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
 POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
 POL_Wine_WaitExit "$TITLE"

Nouveau code source

#!/bin/bash
# Date : (2013-02-18)
# Last revision : (2014-01-11 03:24) - DJYoshaBYD
# Distribution used to test : Ubuntu 12.10
# Author : lahtis
# Licence : retail
# PlayOnLinux: 4.1.9
# Steam installer works (2013-02-18)
# DVD installer not tested. I do not have dvd version.

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

PREFIX="terraria"
WINEVERSION="1.7.8"
TITLE="Terraria"
EDITOR="Merge Games"
GAME_URL="http://www.terraria.org/"
AUTHOR="lahtis"

#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
     
POL_Debug_Init
     
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"  
GAME_VMS="512"
STEAM_ID="105600"

# Fix pulseaudio issue
which pulseaudio && Set_OS "winxp"

# Select virtual desktop mode on
Set_Desktop On 1024 768

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Installing mandatory dependencies
POL_Call POL_Install_steam

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
 
# Shortcut done before install for steam version
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'Install Terraria via Steam.  Once Terraria has fully downloaded, press the Play button, Steam will prompt you to install the xna framework.  Once the xna framework has been installed close Steam and continue this installer.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitExit "$TITLE"
     
# Installing mandatory dependencies

POL_Call POL_Install_xinput # Fix game issue
POL_Call POL_Install_xna40 # Fix game issue

# disable in Steam gameoverlayrender
POL_Wine_OverrideDLL "" "gameoverlayrenderer"
 
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi

POL_SetupWindow_Close

exit 0

Réponses

petch Samedi 18 Juillet 2015 à 16:57
petch
Développeur

Warning

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

Messages

Modify ptrace_scope message so it only shows on Linux, entry exists and is not 0 already

Differences

@@ -66,8 +66,13 @@
 # disable in Steam gameoverlayrender
 POL_Wine_OverrideDLL "" "gameoverlayrenderer"
  
-
-POL_SetupWindow_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
+# Check Kernel ptrace
+if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
+        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
+        if [ "$PTRACE_CHECK" != 0 ]; then
+                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
+        fi
+fi
 
 POL_SetupWindow_Close
 

Nouveau code source

#!/bin/bash
# Date : (2013-02-18)
# Last revision : (2014-01-11 03:24) - DJYoshaBYD
# Distribution used to test : Ubuntu 12.10
# Author : lahtis
# Licence : retail
# PlayOnLinux: 4.1.9
# Steam installer works (2013-02-18)
# DVD installer not tested. I do not have dvd version.

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

PREFIX="terraria"
WINEVERSION="1.7.8"
TITLE="Terraria"
EDITOR="Merge Games"
GAME_URL="http://www.terraria.org/"
AUTHOR="lahtis"

#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
     
POL_Debug_Init
     
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"  
GAME_VMS="512"
STEAM_ID="105600"

# Fix pulseaudio issue
which pulseaudio && Set_OS "winxp"

# Select virtual desktop mode on
Set_Desktop On 1024 768

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Installing mandatory dependencies
POL_Call POL_Install_steam

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
 
# Shortcut done before install for steam version
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'Install Terraria in Steam. Run the Terraria when Steam is installed the game. Steam install xna framework the game. Close the Steam so that the installer can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitExit "$TITLE"
     
# Installing mandatory dependencies

POL_Call POL_Install_xinput # Fix game issue
POL_Call POL_Install_xna40 # Fix game issue

# disable in Steam gameoverlayrender
POL_Wine_OverrideDLL "" "gameoverlayrenderer"
 
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi

POL_SetupWindow_Close

exit 0

Réponses

Anonymous
Vendredi 24 Juillet 2015 à 15:58
Great news in Terraria player. http://store.steampowered.com/news/?appids=105600
Anonymous
Vendredi 24 Juillet 2015 à 16:00
Steam Linux is Beta version of game.
amelorate Lundi 6 Juillet 2015 à 5:00
amelorate Anonymous

Messages

When steam comes up there is no text displayed. Just a blank window with a few textboxes. This makes entering your account info almost impossible. Possibly a font issue?

Réponses

Anonymous
Lundi 6 Juillet 2015 à 18:14
I think this can be fixed by adding POL_Wine_OverrideDLL "" "dwrite" to the script. I'll try later and see.
Lundi 6 Juillet 2015 à 19:04
POL_Call POL_Install_steam should have already done that
Anonymous
Lundi 6 Juillet 2015 à 21:28
This is nothing huge, but could you use newer wine? Newer wine fixes bugs that older ones have. And it's not good that we have already old version when publishing a script.
Anonymous
Mardi 7 Juillet 2015 à 0:03
Changing the line WINEVERSION="1.7.8" to WINEVERSION="1.7.46" doesn't solve the issue. Adding POL_Wine_OverrideDLL "" "dwrite" just before POL_Call POL_Install_steam did however. However now I am having issues with garbled audio. I think this might be an issue with wine and my system and it happens to both 1.7.8 and 1.7.46 of wine. Otherwise terraria plays well with this.
Anonymous
Mardi 7 Juillet 2015 à 16:07
I think there is regression at the audio code that causes the garbled sounds. Sometimes those can be fixed changing audio settings at linux box
lahtis Lundi 21 Juillet 2014 à 19:51
lahtis Anonymous

Warning

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

Differences

@@ -61,7 +61,11 @@
 # Installing mandatory dependencies
 
 POL_Call POL_Install_xinput # Fix game issue
-POL_Call POL_Install_xna40 # Fix game issue     
+POL_Call POL_Install_xna40 # Fix game issue
+
+# disable in Steam gameoverlayrender
+POL_Wine_OverrideDLL "" "gameoverlayrenderer"
+ 
 
 POL_SetupWindow_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
 

Nouveau code source

#!/bin/bash
# Date : (2013-02-18)
# Last revision : (2014-01-11 03:24) - DJYoshaBYD
# Distribution used to test : Ubuntu 12.10
# Author : lahtis
# Licence : retail
# PlayOnLinux: 4.1.9
# Steam installer works (2013-02-18)
# DVD installer not tested. I do not have dvd version.

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

PREFIX="terraria"
WINEVERSION="1.7.8"
TITLE="Terraria"
EDITOR="Merge Games"
GAME_URL="http://www.terraria.org/"
AUTHOR="lahtis"

#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
     
POL_Debug_Init
     
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"  
GAME_VMS="512"
STEAM_ID="105600"

# Fix pulseaudio issue
which pulseaudio && Set_OS "winxp"

# Select virtual desktop mode on
Set_Desktop On 1024 768

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Installing mandatory dependencies
POL_Call POL_Install_steam

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
 
# Shortcut done before install for steam version
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'Install Terraria in Steam. Run the Terraria when Steam is installed the game. Steam install xna framework the game. Close the Steam so that the installer can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitExit "$TITLE"
     
# Installing mandatory dependencies

POL_Call POL_Install_xinput # Fix game issue
POL_Call POL_Install_xna40 # Fix game issue

# disable in Steam gameoverlayrender
POL_Wine_OverrideDLL "" "gameoverlayrenderer"
 

POL_SetupWindow_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"

POL_SetupWindow_Close

exit 0

Réponses

lahtis Vendredi 18 Juillet 2014 à 13:35
lahtis Anonymous

Warning

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

Differences

@@ -53,7 +53,7 @@
 POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
 POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
 
-POL_SetupWindow_message "$(eval_gettext 'Install Terraria in Steam. Run the Terraria when Steam is installed the game. Steam install xna framework the game. Close the Steam so that the installer can continue.')" "$TITLE"
+POL_SetupWindow_message "$(eval_gettext 'Install Terraria in Steam. Run the Terraria when Steam is installed the game. Steam install own xna framework the game. Close the Steam so that the installer can continue. When you play a game Steam Overlay must be turned off.')" "$TITLE"
 cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
 POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
 POL_Wine_WaitExit "$TITLE"

Nouveau code source

#!/bin/bash
# Date : (2013-02-18)
# Last revision : (2014-01-11 03:24) - DJYoshaBYD
# Distribution used to test : Ubuntu 12.10
# Author : lahtis
# Licence : retail
# PlayOnLinux: 4.1.9
# Steam installer works (2013-02-18)
# DVD installer not tested. I do not have dvd version.

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

PREFIX="terraria"
WINEVERSION="1.7.8"
TITLE="Terraria"
EDITOR="Merge Games"
GAME_URL="http://www.terraria.org/"
AUTHOR="lahtis"

#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
     
POL_Debug_Init
     
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"  
GAME_VMS="512"
STEAM_ID="105600"

# Fix pulseaudio issue
which pulseaudio && Set_OS "winxp"

# Select virtual desktop mode on
Set_Desktop On 1024 768

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Installing mandatory dependencies
POL_Call POL_Install_steam

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
 
# Shortcut done before install for steam version
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'Install Terraria in Steam. Run the Terraria when Steam is installed the game. Steam install own xna framework the game. Close the Steam so that the installer can continue. When you play a game Steam Overlay must be turned off.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitExit "$TITLE"
     
# Installing mandatory dependencies

POL_Call POL_Install_xinput # Fix game issue
POL_Call POL_Install_xna40 # Fix game issue     

POL_SetupWindow_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"

POL_SetupWindow_Close

exit 0

Réponses

Vendredi 18 Juillet 2014 à 13:41
Maybe we could automatically disable it?
Anonymous
Vendredi 18 Juillet 2014 à 14:18
No. It can only be done Steam program.
Vendredi 18 Juillet 2014 à 14:28
What about this?
POL_Wine_OverrideDLL "" "gameoverlayrenderer"
Anonymous
Jeudi 16 Avril 2015 à 18:36
Is no one able to get the in game map to work?
Anonymous
Mercredi 10 Février 2016 à 6:37
only using stable linux version.
jorlinn Mardi 8 Juillet 2014 à 19:09
jorlinn Anonymous

Messages

Please disregard the previous message about Terraria crashing.

With Steam Overlay disabled (As stated in the WineHQ entry on Terraria), this game script runs perfectly well.

Thank you so much for enabling me to play one of my favourite games on Linux.

Much obliged.

 

Réponses

jorlinn Vendredi 27 Juin 2014 à 2:45
jorlinn Anonymous

Messages

Operating system : Ubuntu 14.04
Graphic card : nVidia 640 GT
Comments :  program tends to crash quite often after a key press, usually right after the game has started proper. Sometimes later on in the game, though this happens rarely.

First of all, thank you fro creating this script. Terraria is one of my most favourite games.

This started happening on 27-06-2014. I did update my system and I run no Ubuntu PPA's Before today this game ran perfectly.

When running the game with the debugging enabled, the game crashes with an Access violation.

I'll submit a more detailed bug report through PlayOnLinux itself.

Réponses

Anonymous
Mardi 8 Juillet 2014 à 19:07
Moderator, please delete this message. The game runs perfectly when the steam overlay has been disabled, as the WineHQ AppDB entry states,