Tonic Trouble

Informations

Creator Message
matandked Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 3174
Wine: 4.0

Feedbacks

Description

Tonic Trouble is 3D platform game from Ubisoft.

Wikipedia.

Screenshots

Miniature

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-04 12-07)
# Last revision : (2019-05-04 12-07)
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
#
# Playonlinux version used : 4.3.4
#
# -----------------------
#
# Issues known :
# None

  
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Tonic Trouble"
PREFIX="Ubisoft"
WORKING_WINE_VERSION="4.0"
AUTHOR="Dadu042"
EDITOR="Ubisoft"
GAME_URL="https://en.wikipedia.org/wiki/Tonic_Trouble"
  
Set_OS "WinXP"
  
POL_SetupWindow_Init
POL_Debug_Init
      
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

# Size of the RAM required for the video card
POL_SetupWindow_VMS "64"

POL_Call POL_Install_VideoDriver
POL_Call POL_Install_dinput
POL_Call POL_Install_mfc42

###############
# Go          #
###############
 
POL_SetupWindow_InstallMethod "LOCAL,CD"
 

if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi
 
POL_Shortcut "Tonic.exe" "$TITLE" ""
POL_Shortcut_Document "$TITLE" "manual.pdf"
 
Set_WineWindowTitle "$TITLE"


#######################################
# Create a 'virtual desktop' (window) #
#######################################
 
POL_SetupWindow_menu_list "$(eval_gettext "Choose the resolution of the game window.")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"

resolution="$APP_ANSWER"
WIDTH="$(echo $resolution | cut -d"x" -f1)"
HEIGHT="$(echo $resolution | cut -d"x" -f2)"
 
Set_Desktop "On" "$WIDTH" "$HEIGHT"

    
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Saturday 4 May 2019 at 12:13
Dadu042

Information

This update has been approved by the team.

Message

Script v0.9

 

To Matanz : please test it, the following lines may need some changes :

  • POL_SetupWindow_check_cdrom "setup.exe"
  • POL_Shortcut "Tonic.exe" "$TITLE" ""
  • POL_Shortcut_Document "$TITLE" "manual.pdf"

Your report will be welcome in order to set the script as v1.0.

Differences

@@ -0,0 +1,89 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2019-05-04 12-07)
+# Last revision : (2019-05-04 12-07)
+# Wine version used : see below
+# Distribution used to test : Ubuntu 18.04 x64
+# Script licence : GPL3
+# Program licence : ?
+#
+# Playonlinux version used : 4.3.4
+#
+# -----------------------
+#
+# Issues known :
+# None
+
+  
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+TITLE="Tonic Trouble"
+PREFIX="Ubisoft"
+WORKING_WINE_VERSION="4.0"
+AUTHOR="Dadu042"
+EDITOR="Ubisoft"
+GAME_URL="https://en.wikipedia.org/wiki/Tonic_Trouble"
+  
+Set_OS "WinXP"
+  
+POL_SetupWindow_Init
+POL_Debug_Init
+      
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_System_TmpCreate "$TITLE"
+
+# Size of the RAM required for the video card
+POL_SetupWindow_VMS "64"
+
+POL_Call POL_Install_VideoDriver
+POL_Call POL_Install_dinput
+POL_Call POL_Install_mfc42
+
+###############
+# Go          #
+###############
+ 
+POL_SetupWindow_InstallMethod "LOCAL,CD"
+ 
+
+if [ "$INSTALL_METHOD" == "LOCAL" ]; then
+        cd "$HOME"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+        SETUP_EXE="$APP_ANSWER"
+        POL_Wine start /unix "$SETUP_EXE"
+        POL_Wine_WaitExit "$TITLE"
+        cd "$POL_System_TmpDir"
+else
+        POL_SetupWindow_cdrom
+        POL_SetupWindow_check_cdrom "setup.exe"
+        POL_Wine start /unix "$CDROM/setup.exe"
+	POL_Wine_WaitExit "setup.exe"
+        cd "$POL_System_TmpDir"
+fi
+ 
+POL_Shortcut "Tonic.exe" "$TITLE" ""
+POL_Shortcut_Document "$TITLE" "manual.pdf"
+ 
+Set_WineWindowTitle "$TITLE"
+
+
+#######################################
+# Create a 'virtual desktop' (window) #
+#######################################
+ 
+POL_SetupWindow_menu_list "$(eval_gettext "Choose the resolution of the game window.")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"
+
+resolution="$APP_ANSWER"
+WIDTH="$(echo $resolution | cut -d"x" -f1)"
+HEIGHT="$(echo $resolution | cut -d"x" -f2)"
+ 
+Set_Desktop "On" "$WIDTH" "$HEIGHT"
+
+    
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-04 12-07)
# Last revision : (2019-05-04 12-07)
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
#
# Playonlinux version used : 4.3.4
#
# -----------------------
#
# Issues known :
# None

  
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Tonic Trouble"
PREFIX="Ubisoft"
WORKING_WINE_VERSION="4.0"
AUTHOR="Dadu042"
EDITOR="Ubisoft"
GAME_URL="https://en.wikipedia.org/wiki/Tonic_Trouble"
  
Set_OS "WinXP"
  
POL_SetupWindow_Init
POL_Debug_Init
      
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

# Size of the RAM required for the video card
POL_SetupWindow_VMS "64"

POL_Call POL_Install_VideoDriver
POL_Call POL_Install_dinput
POL_Call POL_Install_mfc42

###############
# Go          #
###############
 
POL_SetupWindow_InstallMethod "LOCAL,CD"
 

if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi
 
POL_Shortcut "Tonic.exe" "$TITLE" ""
POL_Shortcut_Document "$TITLE" "manual.pdf"
 
Set_WineWindowTitle "$TITLE"


#######################################
# Create a 'virtual desktop' (window) #
#######################################
 
POL_SetupWindow_menu_list "$(eval_gettext "Choose the resolution of the game window.")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"

resolution="$APP_ANSWER"
WIDTH="$(echo $resolution | cut -d"x" -f1)"
HEIGHT="$(echo $resolution | cut -d"x" -f2)"
 
Set_Desktop "On" "$WIDTH" "$HEIGHT"

    
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042

matandked Monday 4 February 2019 at 23:05
matandked Anonymous

Message

Before installing the game:

 

WINEPREFIX="$HOME/TonicTr" WINEARCH=win32 wine wineboot
WINEPREFIX="$HOME/TonicTr" winecfg
    set emulate virtual desktop
WINEPREFIX="$HOME/TonicTr" winetricks dinput mfc42

 

Replies

Saturday 4 May 2019 at 0:09
Matandked thank you for posting. However because there is no POL script, this kind of report is welcome on appdb.winehq.org but not in this area of POL.
Anonymous
Saturday 4 May 2019 at 11:36
@Dadu042 #Dadu042 I am sorry, I noticed that (what you're writing about) once I added my entry. However, because I don't see a button / option to remove my entry I just added in comment additional information.

Could you be so kind and suggest me what to do with this entry, please? What is the "POL script" language syntax, maybe I will be able to easily translate my information to appropriate POL script.
Saturday 4 May 2019 at 12:05
I will make the script for you.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com