


# POL_System_unrar x "gameinstaller.rar" "$WINEPREFIX/drive_c/game/" || POL_Debug_Fatal "unrar is required to unarchive $TITLE (unrar package is not installed on the OS)." # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive.')" "$TITLE" # mv Teacher%20Simulator.rar gameinstaller.rar # POL_SetupWindow_message "$(eval_gettext '\n\nNote: this script will download the demo. POL_Shortcut_Document "$TITLE" "$DOCUMENT_FILE" POL_Shortcut "$SHORTCUT_FILENAME" "$TITLE" "" "" "$SOFTWARE_CATEGORIES" # POL_Shortcut_InsertBeforeWine "$SHORTCUT" "trap 'xrandr -s 0' EXIT" # Restore screen resolution (game's default is 800圆00 ?) POL_Wine start /unix "steam.exe" steam://install/$STEAM_IDĮlif then POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"Ĭd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID" # Shortcut done before install for steam version POL_Call POL_Install_steam_flags "$STEAM_ID" # POL_SetupWindow_message "Warning: do not install Visual C++ 2013 redistribuable\n nor Direct X." "$TITLE" # POL_SetupWindow_message "Warning: do not install DirectX (nor icons)." "$TITLE" POL_SetupWindow_message "Warning: before to quit this script, you will have to:\n#1 run the installer\n#2 download the game\n#3install the game." "$TITLE" POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD" # POL_SetupWindow_InstallMethod "STEAM,DVD,LOCAL,DOWNLOAD" # Choose between Steam and other Digital Download versions # Sound problem fix - pulseaudio related #
# Set Graphic Card information keys for wine # Asking about memory size of graphic card

# Downloading wine if necessary and creating prefix POL_RequiredVersion "4.3.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE" # POL_SetupWindow_message "$(eval_gettext 'This game requires a fast 3D GPU (ie: Intel HD Graphics 4440 is not enough).')" "$TITLE" # POL_SetupWindow_message "$(eval_gettext 'WARNING: this software does exist in Linux native version.\n\nThis script only allow to run the Windows version on Linux, please prefer the Linux edition for better 3D speed.')" "$TITLE" POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" However the issue occurs again some minutes later. # - Wine amd64 5.0, 5.7: once launched the autoupdate fail ('An error occured during patch.' 'ERROR CODE = -60'). # - Wine x86 5.10: game fail to start (Error initialize, after clicking the button 'Game Start'). # - Wine x86 4.21, 5.7: game fail when doing latest updates (at the file 'SND.rez' because the checksum does fail). # Middlewares used by this software : Direct X 9, Bink, nProtect Game Guard. # Distribution used to test : Ubuntu 18.04 64 bits # Wine version used : see the changelog below # Last revision : see the changelog below
