Yandere Simulator

Informations

Créateur Messages
Beanow Anonymous

Attention

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

Informations

Plate-formes :
Téléchargements : 10609
Wine: 5.0.3

Retours d'expérience

Description

Yandere Simulator is a stealth game about stalking a boy and secretly eliminating any girl who seems interested in him, while maintaining the image of an innocent schoolgirl. Website (development).

This game is currently (2019) in development. Debug builds are available for testing purposes. This installer will not update automatically (yet?).

The app on appdb.winehq.org

Captures d'écran

MiniatureMiniatureMiniature

Code source

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

Contributions

Filters:

Contribuer
Membre Messages
siqk Dimanche 8 Janvier 2023 à 14:26
siqk Anonymous

Messages

its not working

Réponses

Quentin PÂRIS Mardi 5 Juillet 2022 à 11:25
Quentin PÂRIS Anonymous

Information

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

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/"

Nouveau code source

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

Réponses

Anonymous
Lundi 11 Juillet 2022 à 11:02
it says it crashed ;-;
Dadu042 Mardi 22 September 2020 à 15:01
Dadu042

Warning

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

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/"

Nouveau code source

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

Réponses

Dadu042 Mardi 7 Juillet 2020 à 22:48
Dadu042

Warning

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

Messages

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

Nouveau code source

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

Réponses

Mardi 7 Juillet 2020 à 23:04
Even the function D3DX11, and Wine 5.11 let the debug size grow a lot. Perhaps DXVK may help.
Dadu042 Samedi 21 Mars 2020 à 20:14
Dadu042

Warning

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

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

Nouveau code source

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

Réponses

Dadu042 Samedi 18 Mai 2019 à 12:34
Dadu042

Warning

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

Messages

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

Nouveau code source

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

Réponses

Jeudi 19 Mars 2020 à 23:15
Fix wrong categories (the script was not listed in POL/POM).
Beanow Mercredi 22 Février 2017 à 20:35
Beanow Anonymous

Warning

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

Messages

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 

Nouveau code source

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

Réponses

Beanow Mercredi 22 Février 2017 à 20:31
Beanow Anonymous

Warning

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

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 

Nouveau code source

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

Réponses

Anonymous
Mercredi 7 Juin 2023 à 14:49

Thanks,working great,found out about this update here yanderesimulatormobile.com you can read a lot of interesting things