Yandere Simulator – Supported software – PlayOnLinux – Run your Windows applications on Linux easily!
Sunday 8 January 2023 at 14:26
siqk
Mục lục bài viết
Message
its not working
Replies
Quentin PÂRIS
Tuesday 5 July 2022 at 11:25
Quentin PÂRIS
Information
This update has been approved by the team.
Try this update
Differences
@@ -35,7 +35,7 @@ TITLE="Yandere Simulator" PREFIX="Yandere_Simulator" -WORKING_WINE_VERSION="5.0.2" +WORKING_WINE_VERSION="5.0.3" AUTHOR="Beanow" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/"
New source code
#!/usr/bin/env playonlinux-bash # Date : (2017-02-22 09-08) # Last revision : see changelog # Wine version used : see below # Distribution used to test : Kubuntu 20.04 amd64 # Script licence : GPL3 # Program licence : Retail # # Playonlinux version used : 4.3.4 # # # # Software is based on: Unity 3D engine 2017, DirectX 11. # # Known issues: # - Wine 4.8: game is slow, character does not move in the room, no mouse cursor displayed. # Downloading then unzip does not work with the current script. # # # CHANGELOG # [Beanow] (2017-02-22 09-08) # Initial script. # [Dadu042] (2019-05-18) # Standardized, updated, tried to fix the download function (without success, perhaps because the website is now https). # [Dadu042] (2020-03-21). Tested with build 2020-03-15. # Wine 4.8 (outdated) -> 5.0 # POL_Shortcut improved # Note: 'virtual desktop' is perhaps not required anymore. # [Dadu042] (2020-07-07). Tested with YandereSimulator-July-02.zip (2020) # Wine 5.0.1 # Arch 32bits -> 64bits (now required by the game) [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Yandere Simulator" PREFIX="Yandere_Simulator" WORKING_WINE_VERSION="5.0.3" AUTHOR="Beanow" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/" APP_ID="3133" GAME_VMS="128" DL_SITE="http://dl.yanderesimulator.com/" DL_FILE="latest.zip" FONT_NAME="msyh.ttf" FONT_DL_SITE="http://db.onlinewebfonts.com/t/" FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" #Weren't expecting that md5, were you? ^ # Initialization # POL_System_SetArch "x86" POL_System_SetArch "amd64" POL_SetupWindow_Init POL_SetupWindow_SetID $APP_ID POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" # POL_Wine_PrefixCreate POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win7" ################ # GPU # ################ # Asking about memory size of graphic card POL_SetupWindow_VMS $GAME_VMS # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Useful for Nvidia GPUs # POL_Call POL_Install_physx ####################################### # Main part of this script # ####################################### # Offer local file installation, since it's >700MB to download and # you might want a different version than latest. # Disabled because does not work yet # POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" POL_SetupWindow_InstallMethod "LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ] then POL_SetupWindow_browse "Please select the ZIP file of a build of the game.\nNote: The installer package (.EXE) will NOT work here. If unsure, cancel then use the download option instead." ZIP_FILE="$APP_ANSWER" elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] then POL_System_TmpCreate "$PREFIX" cd "$POL_System_TmpDir" # POL_SetupWindow_browse "The file to download: SITE$DL_FILE." # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading the game.')" "$TITLE" # File downloaded goes into .playonlinux/tmp POL_Download "$DL_SITE$DL_FILE" ZIP_FILE="$POL_System_TmpDir/$DL_FILE" fi # Get a build of the game then unzip. [ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" mkdir -p "$TARGET_DIR" cd "$TARGET_DIR" # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE" # 'POL_System_7z' was perhaps supported in 2017, but not in 2019. # POL_System_7z x -y "$ZIP_FILE" unzip "$ZIP_FILE" [ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete # Get the required font: MS YaHei FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" mkdir -p "$FONT_DIR" cd "$FONT_DIR" POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" mv "$FONT_DL_NAME" "$FONT_NAME" # Create Shortcut POL_Shortcut "YandereSimulator.exe" "$TITLE" "" "" "Game;" ####################################### # Create a 'virtual desktop' (window) # ####################################### # Workaround to TRY to fix the "No mouse cursor appear." POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$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" Set_WineWindowTitle "$TITLE" POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have a huge debug log file, you must type \ninto Debug flags : fixme-all')" "$TITLE" POL_SetupWindow_Close exit 0
Replies
smeef
Dadu042
Tuesday 22 September 2020 at 15:01
Dadu042
Warning
This update has not been approved yet by the team.
Use it at your own risk
Try this update
Differences
@@ -35,7 +35,7 @@ TITLE="Yandere Simulator" PREFIX="Yandere_Simulator" -WORKING_WINE_VERSION="5.0.1" +WORKING_WINE_VERSION="5.0.2" AUTHOR="Beanow" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/"
New source code
#!/usr/bin/env playonlinux-bash # Date : (2017-02-22 09-08) # Last revision : see changelog # Wine version used : see below # Distribution used to test : Kubuntu 20.04 amd64 # Script licence : GPL3 # Program licence : Retail # # Playonlinux version used : 4.3.4 # # # # Software is based on: Unity 3D engine 2017, DirectX 11. # # Known issues: # - Wine 4.8: game is slow, character does not move in the room, no mouse cursor displayed. # Downloading then unzip does not work with the current script. # # # CHANGELOG # [Beanow] (2017-02-22 09-08) # Initial script. # [Dadu042] (2019-05-18) # Standardized, updated, tried to fix the download function (without success, perhaps because the website is now https). # [Dadu042] (2020-03-21). Tested with build 2020-03-15. # Wine 4.8 (outdated) -> 5.0 # POL_Shortcut improved # Note: 'virtual desktop' is perhaps not required anymore. # [Dadu042] (2020-07-07). Tested with YandereSimulator-July-02.zip (2020) # Wine 5.0.1 # Arch 32bits -> 64bits (now required by the game) [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Yandere Simulator" PREFIX="Yandere_Simulator" WORKING_WINE_VERSION="5.0.2" AUTHOR="Beanow" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/" APP_ID="3133" GAME_VMS="128" DL_SITE="http://dl.yanderesimulator.com/" DL_FILE="latest.zip" FONT_NAME="msyh.ttf" FONT_DL_SITE="http://db.onlinewebfonts.com/t/" FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" #Weren't expecting that md5, were you? ^ # Initialization # POL_System_SetArch "x86" POL_System_SetArch "amd64" POL_SetupWindow_Init POL_SetupWindow_SetID $APP_ID POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" # POL_Wine_PrefixCreate POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win7" ################ # GPU # ################ # Asking about memory size of graphic card POL_SetupWindow_VMS $GAME_VMS # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Useful for Nvidia GPUs # POL_Call POL_Install_physx ####################################### # Main part of this script # ####################################### # Offer local file installation, since it's >700MB to download and # you might want a different version than latest. # Disabled because does not work yet # POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" POL_SetupWindow_InstallMethod "LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ] then POL_SetupWindow_browse "Please select the ZIP file of a build of the game.\nNote: The installer package (.EXE) will NOT work here. If unsure, cancel then use the download option instead." ZIP_FILE="$APP_ANSWER" elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] then POL_System_TmpCreate "$PREFIX" cd "$POL_System_TmpDir" # POL_SetupWindow_browse "The file to download: SITE$DL_FILE." # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading the game.')" "$TITLE" # File downloaded goes into .playonlinux/tmp POL_Download "$DL_SITE$DL_FILE" ZIP_FILE="$POL_System_TmpDir/$DL_FILE" fi # Get a build of the game then unzip. [ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" mkdir -p "$TARGET_DIR" cd "$TARGET_DIR" # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE" # 'POL_System_7z' was perhaps supported in 2017, but not in 2019. # POL_System_7z x -y "$ZIP_FILE" unzip "$ZIP_FILE" [ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete # Get the required font: MS YaHei FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" mkdir -p "$FONT_DIR" cd "$FONT_DIR" POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" mv "$FONT_DL_NAME" "$FONT_NAME" # Create Shortcut POL_Shortcut "YandereSimulator.exe" "$TITLE" "" "" "Game;" ####################################### # Create a 'virtual desktop' (window) # ####################################### # Workaround to TRY to fix the "No mouse cursor appear." POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$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" Set_WineWindowTitle "$TITLE" POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have a huge debug log file, you must type \ninto Debug flags : fixme-all')" "$TITLE" POL_SetupWindow_Close exit 0
Replies
Dadu042
Tuesday 7 July 2020 at 22:48
Dadu042
Warning
This update has not been approved yet by the team.
Use it at your own risk
Try this update
Message
Played 5 min.
Differences
@@ -2,7 +2,7 @@ # Date : (2017-02-22 09-08) # Last revision : see changelog # Wine version used : see below -# Distribution used to test : Kubuntu 18.04 amd64 +# Distribution used to test : Kubuntu 20.04 amd64 # Script licence : GPL3 # Program licence : Retail # @@ -26,13 +26,16 @@ # Wine 4.8 (outdated) -> 5.0 # POL_Shortcut improved # Note: 'virtual desktop' is perhaps not required anymore. +# [Dadu042] (2020-07-07). Tested with YandereSimulator-July-02.zip (2020) +# Wine 5.0.1 +# Arch 32bits -> 64bits (now required by the game) [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Yandere Simulator" PREFIX="Yandere_Simulator" -WORKING_WINE_VERSION="5.0" +WORKING_WINE_VERSION="5.0.1" AUTHOR="Beanow" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/" @@ -47,8 +50,9 @@ FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" #Weren't expecting that md5, were you? ^ -#Initialization -POL_System_SetArch "x86" +# Initialization +# POL_System_SetArch "x86" +POL_System_SetArch "amd64" POL_SetupWindow_Init POL_SetupWindow_SetID $APP_ID POL_Debug_Init @@ -79,7 +83,8 @@ # Offer local file installation, since it's >700MB to download and # you might want a different version than latest. -# + + # Disabled because does not work yet # POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" POL_SetupWindow_InstallMethod "LOCAL" @@ -137,6 +142,8 @@ Set_Desktop "On" "$WIDTH" "$HEIGHT" Set_WineWindowTitle "$TITLE" - + +POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have a huge debug log file, you must type \ninto Debug flags : fixme-all')" "$TITLE" + POL_SetupWindow_Close exit 0
New source code
#!/usr/bin/env playonlinux-bash # Date : (2017-02-22 09-08) # Last revision : see changelog # Wine version used : see below # Distribution used to test : Kubuntu 20.04 amd64 # Script licence : GPL3 # Program licence : Retail # # Playonlinux version used : 4.3.4 # # # # Software is based on: Unity 3D engine 2017, DirectX 11. # # Known issues: # - Wine 4.8: game is slow, character does not move in the room, no mouse cursor displayed. # Downloading then unzip does not work with the current script. # # # CHANGELOG # [Beanow] (2017-02-22 09-08) # Initial script. # [Dadu042] (2019-05-18) # Standardized, updated, tried to fix the download function (without success, perhaps because the website is now https). # [Dadu042] (2020-03-21). Tested with build 2020-03-15. # Wine 4.8 (outdated) -> 5.0 # POL_Shortcut improved # Note: 'virtual desktop' is perhaps not required anymore. # [Dadu042] (2020-07-07). Tested with YandereSimulator-July-02.zip (2020) # Wine 5.0.1 # Arch 32bits -> 64bits (now required by the game) [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Yandere Simulator" PREFIX="Yandere_Simulator" WORKING_WINE_VERSION="5.0.1" AUTHOR="Beanow" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/" APP_ID="3133" GAME_VMS="128" DL_SITE="http://dl.yanderesimulator.com/" DL_FILE="latest.zip" FONT_NAME="msyh.ttf" FONT_DL_SITE="http://db.onlinewebfonts.com/t/" FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" #Weren't expecting that md5, were you? ^ # Initialization # POL_System_SetArch "x86" POL_System_SetArch "amd64" POL_SetupWindow_Init POL_SetupWindow_SetID $APP_ID POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" # POL_Wine_PrefixCreate POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win7" ################ # GPU # ################ # Asking about memory size of graphic card POL_SetupWindow_VMS $GAME_VMS # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Useful for Nvidia GPUs # POL_Call POL_Install_physx ####################################### # Main part of this script # ####################################### # Offer local file installation, since it's >700MB to download and # you might want a different version than latest. # Disabled because does not work yet # POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" POL_SetupWindow_InstallMethod "LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ] then POL_SetupWindow_browse "Please select the ZIP file of a build of the game.\nNote: The installer package (.EXE) will NOT work here. If unsure, cancel then use the download option instead." ZIP_FILE="$APP_ANSWER" elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] then POL_System_TmpCreate "$PREFIX" cd "$POL_System_TmpDir" # POL_SetupWindow_browse "The file to download: SITE$DL_FILE." # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading the game.')" "$TITLE" # File downloaded goes into .playonlinux/tmp POL_Download "$DL_SITE$DL_FILE" ZIP_FILE="$POL_System_TmpDir/$DL_FILE" fi # Get a build of the game then unzip. [ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" mkdir -p "$TARGET_DIR" cd "$TARGET_DIR" # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE" # 'POL_System_7z' was perhaps supported in 2017, but not in 2019. # POL_System_7z x -y "$ZIP_FILE" unzip "$ZIP_FILE" [ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete # Get the required font: MS YaHei FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" mkdir -p "$FONT_DIR" cd "$FONT_DIR" POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" mv "$FONT_DL_NAME" "$FONT_NAME" # Create Shortcut POL_Shortcut "YandereSimulator.exe" "$TITLE" "" "" "Game;" ####################################### # Create a 'virtual desktop' (window) # ####################################### # Workaround to TRY to fix the "No mouse cursor appear." POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$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" Set_WineWindowTitle "$TITLE" POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have a huge debug log file, you must type \ninto Debug flags : fixme-all')" "$TITLE" POL_SetupWindow_Close exit 0
Replies
Dadu042
Dadu042
Saturday 21 March 2020 at 20:14
Dadu042
Warning
This update has not been approved yet by the team.
Use it at your own risk
Try this update
Differences
@@ -1,37 +1,44 @@ #!/usr/bin/env playonlinux-bash # Date : (2017-02-22 09-08) -# Last revision : (2019-05-18 10-26) +# Last revision : see changelog # Wine version used : see below -# Distribution used to test : Ubuntu 19.04 x64 +# Distribution used to test : Kubuntu 18.04 amd64 # Script licence : GPL3 # Program licence : Retail # # Playonlinux version used : 4.3.4 # -# Software version used to write the script : may 2019. +# # # Software is based on: Unity 3D engine 2017, DirectX 11. # # Known issues: -# Wine 4.8: game is slow, character does not move in the room, no mouse cursor displayed. -# Downloading then unzip does not work with the current script. +# - Wine 4.8: game is slow, character does not move in the room, no mouse cursor displayed. +# Downloading then unzip does not work with the current script. +# # -# -# Changelog -# 2019-05-18 Dadu042: Standardized, updated, tried to fix the download funciton (without success). -# 2017 Beanow: created script. +# CHANGELOG +# [Beanow] (2017-02-22 09-08) +# Initial script. +# [Dadu042] (2019-05-18) +# Standardized, updated, tried to fix the download function (without success, perhaps because the website is now https). +# [Dadu042] (2020-03-21). Tested with build 2020-03-15. +# Wine 4.8 (outdated) -> 5.0 +# POL_Shortcut improved +# Note: 'virtual desktop' is perhaps not required anymore. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - + TITLE="Yandere Simulator" -PREFIX="YandereSimulator" -WORKING_WINE_VERSION="4.8" +PREFIX="Yandere_Simulator" +WORKING_WINE_VERSION="5.0" AUTHOR="Beanow" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/" APP_ID="3133" - +GAME_VMS="128" + DL_SITE="http://dl.yanderesimulator.com/" DL_FILE="latest.zip" FONT_NAME="msyh.ttf" @@ -39,24 +46,41 @@ FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" #Weren't expecting that md5, were you? ^ - + #Initialization POL_System_SetArch "x86" POL_SetupWindow_Init POL_SetupWindow_SetID $APP_ID POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" - + # Create Prefix POL_Wine_SelectPrefix "$PREFIX" -# POL_Wine_PrefixCreate +# POL_Wine_PrefixCreate POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win7" +################ +# GPU # +################ + +# Asking about memory size of graphic card +POL_SetupWindow_VMS $GAME_VMS + +# Set Graphic Card information keys for wine +POL_Wine_SetVideoDriver + +# Useful for Nvidia GPUs +# POL_Call POL_Install_physx + +####################################### +# Main part of this script # +####################################### + # Offer local file installation, since it's >700MB to download and -# you might want a different version than latest. +# you might want a different version than latest. # -# Disabled because does not work yet +# Disabled because does not work yet # POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" POL_SetupWindow_InstallMethod "LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ] @@ -69,53 +93,50 @@ cd "$POL_System_TmpDir" # POL_SetupWindow_browse "The file to download: SITE$DL_FILE." # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading the game.')" "$TITLE" -# File downloaded goes into .playonlinux/tmp +# File downloaded goes into .playonlinux/tmp POL_Download "$DL_SITE$DL_FILE" - + ZIP_FILE="$POL_System_TmpDir/$DL_FILE" fi - - + + # Get a build of the game then unzip. [ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" mkdir -p "$TARGET_DIR" cd "$TARGET_DIR" -# POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE" +# POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE" # 'POL_System_7z' was perhaps supported in 2017, but not in 2019. -# POL_System_7z x -y "$ZIP_FILE" +# POL_System_7z x -y "$ZIP_FILE" unzip "$ZIP_FILE" [ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete - + # Get the required font: MS YaHei FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" mkdir -p "$FONT_DIR" cd "$FONT_DIR" POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" mv "$FONT_DL_NAME" "$FONT_NAME" - + # Create Shortcut -POL_Shortcut "YandereSimulator.exe" "$TITLE" - -# Select the video card (if 2 installed) -POL_Call POL_Install_VideoDriver - - +POL_Shortcut "YandereSimulator.exe" "$TITLE" "" "" "Game;" + + ####################################### # Create a 'virtual desktop' (window) # ####################################### - + # Workaround to TRY to fix the "No mouse cursor appear." - + POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$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" - + Set_WineWindowTitle "$TITLE" - + POL_SetupWindow_Close -exit 0 \ No newline at end of file +exit 0
New source code
#!/usr/bin/env playonlinux-bash # Date : (2017-02-22 09-08) # Last revision : see changelog # Wine version used : see below # Distribution used to test : Kubuntu 18.04 amd64 # Script licence : GPL3 # Program licence : Retail # # Playonlinux version used : 4.3.4 # # # # Software is based on: Unity 3D engine 2017, DirectX 11. # # Known issues: # - Wine 4.8: game is slow, character does not move in the room, no mouse cursor displayed. # Downloading then unzip does not work with the current script. # # # CHANGELOG # [Beanow] (2017-02-22 09-08) # Initial script. # [Dadu042] (2019-05-18) # Standardized, updated, tried to fix the download function (without success, perhaps because the website is now https). # [Dadu042] (2020-03-21). Tested with build 2020-03-15. # Wine 4.8 (outdated) -> 5.0 # POL_Shortcut improved # Note: 'virtual desktop' is perhaps not required anymore. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Yandere Simulator" PREFIX="Yandere_Simulator" WORKING_WINE_VERSION="5.0" AUTHOR="Beanow" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/" APP_ID="3133" GAME_VMS="128" DL_SITE="http://dl.yanderesimulator.com/" DL_FILE="latest.zip" FONT_NAME="msyh.ttf" FONT_DL_SITE="http://db.onlinewebfonts.com/t/" FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" #Weren't expecting that md5, were you? ^ #Initialization POL_System_SetArch "x86" POL_SetupWindow_Init POL_SetupWindow_SetID $APP_ID POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" # POL_Wine_PrefixCreate POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win7" ################ # GPU # ################ # Asking about memory size of graphic card POL_SetupWindow_VMS $GAME_VMS # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Useful for Nvidia GPUs # POL_Call POL_Install_physx ####################################### # Main part of this script # ####################################### # Offer local file installation, since it's >700MB to download and # you might want a different version than latest. # # Disabled because does not work yet # POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" POL_SetupWindow_InstallMethod "LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ] then POL_SetupWindow_browse "Please select the ZIP file of a build of the game.\nNote: The installer package (.EXE) will NOT work here. If unsure, cancel then use the download option instead." ZIP_FILE="$APP_ANSWER" elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] then POL_System_TmpCreate "$PREFIX" cd "$POL_System_TmpDir" # POL_SetupWindow_browse "The file to download: SITE$DL_FILE." # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading the game.')" "$TITLE" # File downloaded goes into .playonlinux/tmp POL_Download "$DL_SITE$DL_FILE" ZIP_FILE="$POL_System_TmpDir/$DL_FILE" fi # Get a build of the game then unzip. [ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" mkdir -p "$TARGET_DIR" cd "$TARGET_DIR" # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE" # 'POL_System_7z' was perhaps supported in 2017, but not in 2019. # POL_System_7z x -y "$ZIP_FILE" unzip "$ZIP_FILE" [ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete # Get the required font: MS YaHei FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" mkdir -p "$FONT_DIR" cd "$FONT_DIR" POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" mv "$FONT_DL_NAME" "$FONT_NAME" # Create Shortcut POL_Shortcut "YandereSimulator.exe" "$TITLE" "" "" "Game;" ####################################### # Create a 'virtual desktop' (window) # ####################################### # Workaround to TRY to fix the "No mouse cursor appear." POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$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" Set_WineWindowTitle "$TITLE" POL_SetupWindow_Close exit 0
Replies
Dadu042
Saturday 18 May 2019 at 12:34
Dadu042
Warning
This update has not been approved yet by the team.
Use it at your own risk
Try this update
Message
More infos : Read in the script “Known issues”.
Differences
@@ -0,0 +1,121 @@ +#!/usr/bin/env playonlinux-bash +# Date : (2017-02-22 09-08) +# Last revision : (2019-05-18 10-26) +# Wine version used : see below +# Distribution used to test : Ubuntu 19.04 x64 +# Script licence : GPL3 +# Program licence : Retail +# +# Playonlinux version used : 4.3.4 +# +# Software version used to write the script : may 2019. +# +# Software is based on: Unity 3D engine 2017, DirectX 11. +# +# Known issues: +# Wine 4.8: game is slow, character does not move in the room, no mouse cursor displayed. +# Downloading then unzip does not work with the current script. +# +# +# Changelog +# 2019-05-18 Dadu042: Standardized, updated, tried to fix the download funciton (without success). +# 2017 Beanow: created script. + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="Yandere Simulator" +PREFIX="YandereSimulator" +WORKING_WINE_VERSION="4.8" +AUTHOR="Beanow" +EDITOR="YandereDev" +GAME_URL="https://yanderesimulator.com/" +APP_ID="3133" + +DL_SITE="http://dl.yanderesimulator.com/" +DL_FILE="latest.zip" +FONT_NAME="msyh.ttf" +FONT_DL_SITE="http://db.onlinewebfonts.com/t/" +FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" +FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" +#Weren't expecting that md5, were you? ^ + +#Initialization +POL_System_SetArch "x86" +POL_SetupWindow_Init +POL_SetupWindow_SetID $APP_ID +POL_Debug_Init +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +# Create Prefix +POL_Wine_SelectPrefix "$PREFIX" +# POL_Wine_PrefixCreate +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" +Set_OS "win7" + +# Offer local file installation, since it's >700MB to download and +# you might want a different version than latest. +# +# Disabled because does not work yet +# POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" +POL_SetupWindow_InstallMethod "LOCAL" +if [ "$INSTALL_METHOD" = "LOCAL" ] +then + POL_SetupWindow_browse "Please select the ZIP file of a build of the game.\nNote: The installer package (.EXE) will NOT work here. If unsure, cancel then use the download option instead." + ZIP_FILE="$APP_ANSWER" +elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] +then + POL_System_TmpCreate "$PREFIX" + cd "$POL_System_TmpDir" +# POL_SetupWindow_browse "The file to download: SITE$DL_FILE." +# POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading the game.')" "$TITLE" +# File downloaded goes into .playonlinux/tmp + POL_Download "$DL_SITE$DL_FILE" + + ZIP_FILE="$POL_System_TmpDir/$DL_FILE" +fi + + +# Get a build of the game then unzip. +[ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" +TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" +mkdir -p "$TARGET_DIR" +cd "$TARGET_DIR" +# POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE" +# 'POL_System_7z' was perhaps supported in 2017, but not in 2019. +# POL_System_7z x -y "$ZIP_FILE" +unzip "$ZIP_FILE" +[ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete + +# Get the required font: MS YaHei +FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" +mkdir -p "$FONT_DIR" +cd "$FONT_DIR" +POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" +mv "$FONT_DL_NAME" "$FONT_NAME" + +# Create Shortcut +POL_Shortcut "YandereSimulator.exe" "$TITLE" + +# Select the video card (if 2 installed) +POL_Call POL_Install_VideoDriver + + +####################################### +# Create a 'virtual desktop' (window) # +####################################### + +# Workaround to TRY to fix the "No mouse cursor appear." + +POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$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" + +Set_WineWindowTitle "$TITLE" + +POL_SetupWindow_Close +exit 0 \ No newline at end of file
New source code
#!/usr/bin/env playonlinux-bash # Date : (2017-02-22 09-08) # Last revision : (2019-05-18 10-26) # Wine version used : see below # Distribution used to test : Ubuntu 19.04 x64 # Script licence : GPL3 # Program licence : Retail # # Playonlinux version used : 4.3.4 # # Software version used to write the script : may 2019. # # Software is based on: Unity 3D engine 2017, DirectX 11. # # Known issues: # Wine 4.8: game is slow, character does not move in the room, no mouse cursor displayed. # Downloading then unzip does not work with the current script. # # # Changelog # 2019-05-18 Dadu042: Standardized, updated, tried to fix the download funciton (without success). # 2017 Beanow: created script. [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Yandere Simulator" PREFIX="YandereSimulator" WORKING_WINE_VERSION="4.8" AUTHOR="Beanow" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/" APP_ID="3133" DL_SITE="http://dl.yanderesimulator.com/" DL_FILE="latest.zip" FONT_NAME="msyh.ttf" FONT_DL_SITE="http://db.onlinewebfonts.com/t/" FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" #Weren't expecting that md5, were you? ^ #Initialization POL_System_SetArch "x86" POL_SetupWindow_Init POL_SetupWindow_SetID $APP_ID POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" # Create Prefix POL_Wine_SelectPrefix "$PREFIX" # POL_Wine_PrefixCreate POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win7" # Offer local file installation, since it's >700MB to download and # you might want a different version than latest. # # Disabled because does not work yet # POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" POL_SetupWindow_InstallMethod "LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ] then POL_SetupWindow_browse "Please select the ZIP file of a build of the game.\nNote: The installer package (.EXE) will NOT work here. If unsure, cancel then use the download option instead." ZIP_FILE="$APP_ANSWER" elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] then POL_System_TmpCreate "$PREFIX" cd "$POL_System_TmpDir" # POL_SetupWindow_browse "The file to download: SITE$DL_FILE." # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Downloading the game.')" "$TITLE" # File downloaded goes into .playonlinux/tmp POL_Download "$DL_SITE$DL_FILE" ZIP_FILE="$POL_System_TmpDir/$DL_FILE" fi # Get a build of the game then unzip. [ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" mkdir -p "$TARGET_DIR" cd "$TARGET_DIR" # POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE" # 'POL_System_7z' was perhaps supported in 2017, but not in 2019. # POL_System_7z x -y "$ZIP_FILE" unzip "$ZIP_FILE" [ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete # Get the required font: MS YaHei FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" mkdir -p "$FONT_DIR" cd "$FONT_DIR" POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" mv "$FONT_DL_NAME" "$FONT_NAME" # Create Shortcut POL_Shortcut "YandereSimulator.exe" "$TITLE" # Select the video card (if 2 installed) POL_Call POL_Install_VideoDriver ####################################### # Create a 'virtual desktop' (window) # ####################################### # Workaround to TRY to fix the "No mouse cursor appear." POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$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" Set_WineWindowTitle "$TITLE" POL_SetupWindow_Close exit 0
Replies
Dadu042
Beanow
Wednesday 22 February 2017 at 20:35
Beanow
Warning
This update has not been approved yet by the team.
Use it at your own risk
Try this update
Message
Missed the new app ID.
Differences
@@ -0,0 +1,65 @@ +#!/bin/bash +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +PREFIX="YandereSimulator" +TITLE="Yandere Simulator" +EDITOR="YandereDev" +GAME_URL="https://yanderesimulator.com/" +AUTHOR="Beanow" +APP_ID="3133" + +DL_SITE="https://yanderesimulator.com/" +DL_FILE="latest.zip" +FONT_NAME="msyh.ttf" +FONT_DL_SITE="http://db.onlinewebfonts.com/t/" +FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" +FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" +#Weren't expecting that md5, were you? ^ + +#Initialization +POL_System_SetArch "x86" +POL_SetupWindow_Init +POL_SetupWindow_SetID $APP_ID +POL_Debug_Init +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +#Offer local file installation, since it's >700MB to download and you might want a different version than latest. +POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" +if [ "$INSTALL_METHOD" = "LOCAL" ] +then + POL_SetupWindow_browse "Please select the ZIP file for a build of the game.\nThis installer will NOT work with the launcher.\nIf unsure, go back and use the download option instead." + ZIP_FILE="$APP_ANSWER" +elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] +then + POL_System_TmpCreate "$PREFIX" + cd "$POL_System_TmpDir" + POL_Download "$DL_SITE$DL_FILE" + ZIP_FILE="$POL_System_TmpDir/$DL_FILE" +fi + +# Create Prefix +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate +Set_OS "winxp" + +# Get a build of the game and unzip. +[ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" +TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" +mkdir -p "$TARGET_DIR" +cd "$TARGET_DIR" +POL_System_7z x -y "$ZIP_FILE" +[ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete + +# Get the required font: MS YaHei +FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" +mkdir -p "$FONT_DIR" +cd "$FONT_DIR" +POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" +mv "$FONT_DL_NAME" "$FONT_NAME" + +# Create Shortcut +POL_Shortcut "YandereSimulator.exe" "$TITLE" + +POL_SetupWindow_Close +exit 0
New source code
#!/bin/bash [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" PREFIX="YandereSimulator" TITLE="Yandere Simulator" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/" AUTHOR="Beanow" APP_ID="3133" DL_SITE="https://yanderesimulator.com/" DL_FILE="latest.zip" FONT_NAME="msyh.ttf" FONT_DL_SITE="http://db.onlinewebfonts.com/t/" FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" #Weren't expecting that md5, were you? ^ #Initialization POL_System_SetArch "x86" POL_SetupWindow_Init POL_SetupWindow_SetID $APP_ID POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" #Offer local file installation, since it's >700MB to download and you might want a different version than latest. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ] then POL_SetupWindow_browse "Please select the ZIP file for a build of the game.\nThis installer will NOT work with the launcher.\nIf unsure, go back and use the download option instead." ZIP_FILE="$APP_ANSWER" elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] then POL_System_TmpCreate "$PREFIX" cd "$POL_System_TmpDir" POL_Download "$DL_SITE$DL_FILE" ZIP_FILE="$POL_System_TmpDir/$DL_FILE" fi # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate Set_OS "winxp" # Get a build of the game and unzip. [ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" mkdir -p "$TARGET_DIR" cd "$TARGET_DIR" POL_System_7z x -y "$ZIP_FILE" [ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete # Get the required font: MS YaHei FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" mkdir -p "$FONT_DIR" cd "$FONT_DIR" POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" mv "$FONT_DL_NAME" "$FONT_NAME" # Create Shortcut POL_Shortcut "YandereSimulator.exe" "$TITLE" POL_SetupWindow_Close exit 0
Replies
Beanow
Wednesday 22 February 2017 at 20:31
Beanow
Warning
This update has not been approved yet by the team.
Use it at your own risk
Try this update
Differences
@@ -0,0 +1,65 @@ +#!/bin/bash +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +PREFIX="YandereSimulator" +TITLE="Yandere Simulator" +EDITOR="YandereDev" +GAME_URL="https://yanderesimulator.com/" +AUTHOR="Beanow" +# APP_ID="000" + +DL_SITE="https://yanderesimulator.com/" +DL_FILE="latest.zip" +FONT_NAME="msyh.ttf" +FONT_DL_SITE="http://db.onlinewebfonts.com/t/" +FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" +FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" +#Weren't expecting that md5, were you? ^ + +#Initialization +POL_System_SetArch "x86" +POL_SetupWindow_Init +# POL_SetupWindow_SetID $APP_ID +POL_Debug_Init +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +#Offer local file installation, since it's >700MB to download and you might want a different version than latest. +POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" +if [ "$INSTALL_METHOD" = "LOCAL" ] +then + POL_SetupWindow_browse "Please select the ZIP file for a build of the game.\nThis installer will NOT work with the launcher.\nIf unsure, go back and use the download option instead." + ZIP_FILE="$APP_ANSWER" +elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] +then + POL_System_TmpCreate "$PREFIX" + cd "$POL_System_TmpDir" + POL_Download "$DL_SITE$DL_FILE" + ZIP_FILE="$POL_System_TmpDir/$DL_FILE" +fi + +# Create Prefix +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate +Set_OS "winxp" + +# Get a build of the game and unzip. +[ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" +TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" +mkdir -p "$TARGET_DIR" +cd "$TARGET_DIR" +POL_System_7z x -y "$ZIP_FILE" +[ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete + +# Get the required font: MS YaHei +FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" +mkdir -p "$FONT_DIR" +cd "$FONT_DIR" +POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" +mv "$FONT_DL_NAME" "$FONT_NAME" + +# Create Shortcut +POL_Shortcut "YandereSimulator.exe" "$TITLE" + +POL_SetupWindow_Close +exit 0
New source code
#!/bin/bash [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" PREFIX="YandereSimulator" TITLE="Yandere Simulator" EDITOR="YandereDev" GAME_URL="https://yanderesimulator.com/" AUTHOR="Beanow" # APP_ID="000" DL_SITE="https://yanderesimulator.com/" DL_FILE="latest.zip" FONT_NAME="msyh.ttf" FONT_DL_SITE="http://db.onlinewebfonts.com/t/" FONT_DL_NAME="e63653407669814f5b0eb9bbdc175f77.ttf" FONT_DL_MD5="e63653407669814f5b0eb9bbdc175f77" #Weren't expecting that md5, were you? ^ #Initialization POL_System_SetArch "x86" POL_SetupWindow_Init # POL_SetupWindow_SetID $APP_ID POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" #Offer local file installation, since it's >700MB to download and you might want a different version than latest. POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL" if [ "$INSTALL_METHOD" = "LOCAL" ] then POL_SetupWindow_browse "Please select the ZIP file for a build of the game.\nThis installer will NOT work with the launcher.\nIf unsure, go back and use the download option instead." ZIP_FILE="$APP_ANSWER" elif [ "$INSTALL_METHOD" = "DOWNLOAD" ] then POL_System_TmpCreate "$PREFIX" cd "$POL_System_TmpDir" POL_Download "$DL_SITE$DL_FILE" ZIP_FILE="$POL_System_TmpDir/$DL_FILE" fi # Create Prefix POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate Set_OS "winxp" # Get a build of the game and unzip. [ -z "$WINEPREFIX" ] && POL_Debug_Fatal "WINEPREFIX not set" TARGET_DIR="$WINEPREFIX/drive_c/YandereSimulator" mkdir -p "$TARGET_DIR" cd "$TARGET_DIR" POL_System_7z x -y "$ZIP_FILE" [ "$INSTALL_METHOD" = "DOWNLOAD" ] && POL_System_TmpDelete # Get the required font: MS YaHei FONT_DIR="$WINEPREFIX/drive_c/windows/Fonts" mkdir -p "$FONT_DIR" cd "$FONT_DIR" POL_Download "$FONT_DL_SITE$FONT_DL_NAME" "$FONT_DL_MD5" mv "$FONT_DL_NAME" "$FONT_NAME" # Create Shortcut POL_Shortcut "YandereSimulator.exe" "$TITLE" POL_SetupWindow_Close exit 0
Replies