You are here > Les forums > Your creations. > Gothic III
| New topic - Reply |
| Author | Replies |
| jump to the page 1 - 2 - 3 | |
| norway | Sunday 6 November 2011 at 22:14 - [Quote] |
Membre![]() ![]() |
This is my script.
#!/bin/bash
# Date : (2011-6-11 19-41)
# Last revision : (2011-7-11 01-06)
# Wine version used : 1.3.21,1.3.18
# Distribution used to test : Kubuntu 11.10 x64
# Author : Ulrick(No)
# Licence : Retail
# Only For : http://www.playonlinux.com
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Gothic 3"
PREFIX="gothic3"
WORKING_WINE_VERSION="1.3.21"
GAME_VMS="512"
# Starting the script
POL_SetupWindow_Init
# Starting debugging API
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Piranha Bytes" "http://www.pluto13.de/" "Ulrick(No)" "$PREFIX"
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
# Downloading wine if necessary and creating prefix
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"
# Installing mandatory dependencies
POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_devenum
POL_Call POL_Install_dinput8
POL_Call POL_Install_dsound
POL_Call POL_Install_directx9
POL_Call POL_Install_dotnet20
POL_Call POL_Install_dotnet30
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_vcrun6
POL_Call POL_Install_wmp10
# Begin game installation
if [ "$INSTALL_METHOD" == "DVD" ]; then
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')"
POL_SetupWindow_cdrom
POL_Wine start /unix "$CDROM/setup.exe"
POL_Wine_WaitExit "$TITLE"
else
# Asking then installing DDV of the game
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
fi
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
# Fix for this game
POL_Wine_Direct3D "UseGLSL" "disabled"
POL_Wine_DirectSound "MaxShadowSize" "0"
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
## End Section ##
# Making shortcut
POL_Shortcut "Gothic3.exe" "$TITLE" "" ""
POL_SetupWindow_Close
exit 0Sound works bad and the sky is black. If you have any ideas, write in this topic please =) Oh, I forgot to tell you that if somebody help me, I ll change th Author to "POL Community" Edited by Tinou Ulrick(No) |
| norway | Monday 7 November 2011 at 5:23 - [Quote] |
Membre![]() ![]() |
New version of the script!
#!/bin/bash # Date : (2011-6-11 19-41) # Last revision : (2011-6-11 19-17) # Wine version used : 1.3.21,1.3.18 # Distribution used to test : Kubuntu 11.10 x64 # Author : Ulrick(No) # Licence : Retail # Only For : http://www.playonlinux.com [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Gothic 3" PREFIX="gothic3" WORKING_WINE_VERSION="1.3.21" GAME_VMS="512" # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Piranha Bytes" "http://www.pluto13.de/" "Ulrick(No)" "$PREFIX" # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Downloading wine if necessary and creating prefix POL_System_SetArch "auto" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # Choose between DVD and Digital Download version POL_SetupWindow_InstallMethod "DVD,LOCAL" # Installing mandatory dependencies POL_Call POL_Install_dxfullsetup POL_Call POL_Install_devenum POL_Call POL_Install_dinput8 POL_Call POL_Install_dsound POL_Call POL_Install_directx9 POL_Call POL_Install_dotnet20 POL_Call POL_Install_dotnet30 POL_Call POL_Install_vcrun2005 POL_Call POL_Install_vcrun2008 POL_Call POL_Install_vcrun6 POL_Call POL_Install_wmp10 # Begin game installation if [ "$INSTALL_METHOD" == "DVD" ]; then # Asking for CDROM and checking if it's correct one POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" POL_SetupWindow_cdrom POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLE" else # Asking then installing DDV of the game cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine start /unix "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" fi # Asking about memory size of graphic card POL_SetupWindow_VMS $GAME_VMS # Fix for this game POL_Wine_DirectSound "MaxShadowSize" "0" POL_Wine_Direct3D "UseGLSL" "enabled" # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Sound problem fix - pulseaudio related [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa" [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y" ## End Fix ## Begin Common PlayOnMac Section ## [ "$POL_OS" = "Mac" ] && Set_Managed "Off" ## End Section ## # Making shortcut POL_Shortcut "Gothic3.exe" "$TITLE" "" "" POL_SetupWindow_Close exit 0 ----------------------------------------------------------------------------------- Sound works perfectly. Ulrick(No) |
| norway | Monday 7 November 2011 at 16:21 - [Quote] |
Membre![]() ![]() |
Here is a new version.
#!/bin/bash # Date : (2011-6-11 19-41) # Last revision : (2011-6-11 19-17) # Wine version used : 1.3.21,1.3.18,1.2.3, 1.3.22 # Distribution used to test : Kubuntu 11.10 x64 # Author : Ulrick(No) # Licence : Retail # Only For : http://www.playonlinux.com [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Gothic 3" PREFIX="gothic3" WORKING_WINE_VERSION="1.3.21" GAME_VMS="256" if [ "$POL_LANG" == "ru" ] ; then CHOOSE="Выберите установочный файл $TITLE" INSTALLATION="Пожалуйста подождите, идет установка..." GAME_VMS="Сколько памяти у вашей видеокарты ?" END="$TITLE установлена !" else #English messages CHOOSE="Select the installation file of $TITLE." INSTALLATION="Please wait during the installation..." GAME_VMS="How much video ram is ?" END="$Title installation is a succes ! " fi # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Piranha Bytes" "http://www.pluto13.de/" "Ulrick(No)" "$PREFIX" # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Downloading wine if necessary and creating prefix POL_System_SetArch "auto" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # Choose between DVD and Digital Download version POL_SetupWindow_InstallMethod "DVD,LOCAL" # Installing mandatory dependencies POL_Call POL_Install_devenum POL_Call POL_Install_dinput8 POL_Call POL_Install_dsound POL_Call POL_Install_directx9 POL_Call POL_Install_dotnet20 POL_Call POL_Install_vcrun2005 POL_Call POL_Install_vcrun2008 POL_Call POL_Install_vcrun6 POL_Call POL_Install_wmp10 # Begin game installation if [ "$INSTALL_METHOD" == "DVD" ]; then # Asking for CDROM and checking if it's correct one POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" POL_SetupWindow_cdrom POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLE" else # Asking then installing DDV of the game cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine start /unix "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" fi # Asking about memory size of graphic card POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256" VMS="$APP_ANSWER" # Fix for this game POL_Wine_DirectSound "MaxShadowSize" "0" POL_Wine_Direct3D "UseGLSL" "enabled" # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Sound problem fix - pulseaudio related [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa" [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y" ## End Fix ## Begin Common PlayOnMac Section ## [ "$POL_OS" = "Mac" ] && Set_Managed "Off" ## End Section ## # Making shortcut POL_Shortcut "Gothic3.exe" "$TITLE" "" "" POL_SetupWindow_Close exit 0 Ulrick(No) |
| norway | Monday 7 November 2011 at 21:30 - [Quote] |
Membre![]() ![]() |
Latest version of script.
------------------------------------------------------------------------------------- #!/bin/bash # Date : (2011-6-11 19-41) # Last revision : (2011-8-11 01-02) # Wine version used : 1.3.18 - 1.3.32 # Distribution used to test : Kubuntu 11.10 x64 # Author : Ulrick(No) # Licence : Retail # Only For : http://www.playonlinux.com [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Gothic 3" PREFIX="gothic3" WORKING_WINE_VERSION="1.3.18" GAME_VMS="256" if [ "$POL_LANG" == "ru" ] ; then CHOOSE="Выберите установочный файл $TITLE" INSTALLATION="Пожалуйста подождите, идет установка..." GAME_VMS="Сколько памяти у вашей видеокарты ?" END="$TITLE установлена !" else #English messages CHOOSE="Select the installation file of $TITLE." INSTALLATION="Please wait during the installation..." GAME_VMS="How much video ram is ?" END="$Title installation is a succes ! " fi # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Piranha Bytes" "http://www.pluto13.de/" "Ulrick(No)" "$PREFIX" # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Downloading wine if necessary and creating prefix POL_System_SetArch "auto" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # Choose between DVD and Digital Download version POL_SetupWindow_InstallMethod "DVD,LOCAL" # Installing mandatory dependencies POL_Call POL_Install_dsound POL_Call POL_Install_dxfullsetup POL_Call POL_Install_vcrun2005 POL_Call POL_Install_vcrun2008 POL_Call POL_Install_vcrun6 POL_Call POL_Install_wmp10 POL_Call POL_Install_devenum POL_Call POL_Install_dinput8 POL_Call POL_Install_dotnet20 # Begin game installation if [ "$INSTALL_METHOD" == "DVD" ]; then # Asking for CDROM and checking if it's correct one POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" POL_SetupWindow_cdrom POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLE" else # Asking then installing DDV of the game cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine start /unix "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" fi # Asking about memory size of graphic card POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256" VMS="$APP_ANSWER" # Fix for this game POL_Wine_DirectSound "MaxShadowSize" "0" POL_Wine_Direct3D "UseGLSL" "enabled" # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Sound problem fix - pulseaudio related [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa" [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y" ## End Fix ## Begin Common PlayOnMac Section ## [ "$POL_OS" = "Mac" ] && Set_Managed "Off" ## End Section ## # Making shortcut POL_Shortcut "Gothic3.exe" "$TITLE" "" "" POL_SetupWindow_Close exit 0 ----------------------------------------------------------------------------------- I am trying to make a game like in this video - http://rutube.ru/tracks/4379888.html?v=a4d4b4a4e5409e848e8d7eaf37654475 Edited by norway Ulrick(No) |
| norway | Tuesday 8 November 2011 at 16:39 - [Quote] |
Membre![]() ![]() |
Final Script
Im tired of finding ways to fix the problems with sound (it suddenly works bad) and with black sky. Here is my final script. ------------------------------------------------------------------------------------- #!/bin/bash # Date : (2011-6-11 19-41) # Last revision : (2011-8-11 20-16) # Wine version used : 1.3.18 - 1.3.32 # Distribution used to test : Kubuntu 11.10 x64 # Author : Ulrick(No) # Licence : Retail # Only For : http://www.playonlinux.com [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Gothic 3" PREFIX="gothic3" WORKING_WINE_VERSION="1.3.21" GAME_VMS="512" DEVELOPER="Piranha Bytes" SCRIPTCREATOR="Ulrick(No)" if [ "$POL_LANG" == "ru" ] ; then CHOOSE="Выберите установочный файл $TITLE" INSTALLATION="Пожалуйста подождите, идет установка..." GAME_VMS="Сколько памяти у вашей видеокарты ?" END="$TITLE установлена !" else #English messages CHOOSE="Select the installation file of $TITLE." INSTALLATION="Please wait during the installation..." GAME_VMS="How much video ram is ?" END="$Title installation is a succes ! " fi # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "http://www.pluto13.de/" "$SCRIPTCREATOR" "$PREFIX" # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Downloading wine if necessary and creating prefix POL_System_SetArch "auto" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # Choose between DVD and Digital Download version POL_SetupWindow_InstallMethod "DVD,LOCAL" # Installing mandatory dependencies POL_Call POL_Install_dxfullsetup POL_Call POL_Install_devenum POL_Call POL_Install_dinput8 POL_Call POL_Install_dsound POL_Call POL_Install_directx9 POL_Call POL_Install_dotnet20 POL_Call POL_Install_dotnet30 POL_Call POL_Install_vcrun2005 POL_Call POL_Install_vcrun2008 POL_Call POL_Install_vcrun6 POL_Call POL_Install_wmp10 # Begin game installation if [ "$INSTALL_METHOD" == "DVD" ]; then # Asking for CDROM and checking if it's correct one POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" POL_SetupWindow_cdrom POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLE" else # Asking then installing DDV of the game cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine start /unix "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" fi # Asking about memory size of graphic card POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256" VMS="$APP_ANSWER" # Fix for this game POL_Wine_DirectSound "MaxShadowSize" "0" POL_Wine_Direct3D "UseGLSL" "enabled" # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Sound problem fix - pulseaudio related [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa" [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y" ## End Fix ## Begin Common PlayOnMac Section ## [ "$POL_OS" = "Mac" ] && Set_Managed "Off" ## End Section ## # Making shortcut POL_Shortcut "Gothic3.exe" "$TITLE" "" "" POL_SetupWindow_Close exit 0 Edited by norway Ulrick(No) |
| Quentin PÂRIS | Friday 11 November 2011 at 14:23 - [Quote] |
Admin![]() ![]() |
Hi ! Good work
Can you post some screenshots ? |
| norway | Friday 11 November 2011 at 16:36 - [Quote] |
Membre![]() ![]() |
Hello! I dont think so, because I didnt manage to fix the d3dx9_40. This DLL makes bug with sky(It is black)
Good work is here - http://www.youtube.com/watch?v=Uv9v5XxPTmc I asked him how to make the game working perfectly, but he didnt answer... Im optimist, so I still work... I have some changes in the script, soon I ll publicate it. Here is the download link of screenshot. http://narod.ru/disk/31237506001/Gothic%203.png.html Oh, i want to say about bug in POL! If i make the script like that - -------------------------------------------------------------------------- SITE="http://www.pluto13.de/" POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$SITE" "$SCRIPTCREATOR" "$PREFIX" ---------------------------------------------------------------------------- the script wont work.... the problem is "$SITE" . In the window presentation it works, so it shows -http://www.pluto13.de/, but it makes the script "destroyed" (it doesnt work) Edited by norway Ulrick(No) |
| Quentin PÂRIS | Friday 11 November 2011 at 17:01 - [Quote] |
Admin![]() ![]() |
The variable "SITE" is already used by POL
|
| norway | Friday 11 November 2011 at 17:34 - [Quote] |
Membre![]() ![]() |
I MADE IT!
http://narod.ru/disk/31242167001/1.png.html Ulrick(No) |
| norway | Friday 11 November 2011 at 19:33 - [Quote] |
Membre![]() ![]() |
I have already sent my script for validation! Im happy a little, but here is a little problem with cursor(system cursor)... it doesnt dissappear when game starts.
Ulrick(No) |
| Quentin PÂRIS | Friday 11 November 2011 at 19:38 - [Quote] |
Admin![]() ![]() |
Ok, I put it back to edition state, we need to change few things :
For the translation, you need to put all in english, and translate it into russian with Launchpad. Use eval_gettext Therefore, you don't have to put these lines : if [ "$POL_LANG" == "ru" ] ; then etc... Also, I read "To fix graphic problem, user must edit file "ge3.ini" in folder "Ini" Fullscreen=false" It would be great if the script would do it automatically. (Have you tried Set_Desktop On 800 600, for example ?) |
| norway | Friday 11 November 2011 at 20:00 - [Quote] |
Membre![]() ![]() |
The game works bad in fullscreen, it doesnt need no be started with virtual desktop!
It is better edit ge3.ini before starting the gothic3. Can you write me to skype? If you can- here is my nick- norrgeman Ulrick(No) |
| Quentin PÂRIS | Sunday 13 November 2011 at 11:53 - [Quote] |
Admin![]() ![]() |
There is still some problem in your script
1 - You should use POL_SetupWindow_VMS 2 - You should not repeat the code for each resolution, it's not clear at all # Setting resolution to 1600/1024 if [ "$RESOLUTION" == "1600/1024" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1600/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=1024/ > ge3.ini # Setting virtual desktop Set_Desktop On 1600 1024 fi Write it once only |
| norway | Sunday 13 November 2011 at 13:16 - [Quote] |
Membre![]() ![]() |
"1 - You should use POL_SetupWindow_VMS "
I wont use POL_SetupWindow_VMS because the resolution in ge3.ini MUST be the same as the virtual desktop. So it will not work if somebody selected resolution- 1600/1024 and POL_SetupWindow_VMS=1024 768 "2 - You should not repeat the code for each resolution, it's not clear at all " There is no way to make the game playable. What do you mean "it's not clear at all" ? Is there any mistakes in the code? I did my best. Ulrick(No) |
| norway | Sunday 13 November 2011 at 13:17 - [Quote] |
Membre![]() ![]() |
If anybody need last version of the script...
--------------------------------------------------------------------------------- #!/bin/bash # Date : (2011-6-11 19-41) # Last revision : (2011-11-11 21-11) # Wine version used : 1.3.18 - 1.3.32 # Distribution used to test : Kubuntu 11.10 x64 # Author : Ulrick(No) # Licence : Retail # Only For : http://www.playonlinux.com [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Gothic 3" PREFIX="gothic3" WORKING_WINE_VERSION="1.3.18" GAME_VMS="512" DEVELOPER="Piranha Bytes" SCRIPTCREATOR="Ulrick(No)" COMPANYSITE="http://www.pluto13.de/" RESOLUTION="What resolution is on your desktop?" if [ "$POL_LANG" == "ru" ] ; then CHOOSE="Выберите установочный файл $TITLE" INSTALLATION="Пожалуйста подождите, идет установка..." GAME_VMS="Сколько памяти у вашей видеокарты ?" END="$TITLE установлена !" else #English messages CHOOSE="Select the installation file of $TITLE." INSTALLATION="Please wait during the installation..." GAME_VMS="How much video ram is ?" END="$Title installation is a succes ! " fi # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$COMPANYSITE" "$SCRIPTCREATOR" "$PREFIX" # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Downloading wine if necessary and creating prefix Set_Arch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # Choose between DVD and Digital Download version POL_SetupWindow_InstallMethod "DVD,LOCAL" # Installing mandatory dependencies POL_Call POL_Install_dxfullsetup POL_Call POL_Install_devenum POL_Call POL_Install_dinput8 POL_Call POL_Install_dsound POL_Call POL_Install_dotnet20 POL_Call POL_Install_vcrun2005 POL_Call POL_Install_vcrun2008 POL_Call POL_Install_vcrun6 # Begin game installation if [ "$INSTALL_METHOD" == "DVD" ]; then # Asking for CDROM and checking if it's correct one POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" POL_SetupWindow_cdrom POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLE" else # Asking then installing DDV of the game cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine start /unix "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" fi # Asking about memory size of graphic card POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256" VMS="$APP_ANSWER" # Fix for this game POL_Wine_DirectSound "MaxShadowSize" "0" POL_Wine_Direct3D "UseGLSL" "enabled" Set_DXGrab On Set_Managed Off # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Sound problem fix - pulseaudio related [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa" [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y" ## End Fix ## Begin Common PlayOnMac Section ## [ "$POL_OS" = "Mac" ] && Set_Managed "Off" ## End Section ## # Graphic fix cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Fullscreen\=true/Fullscreen\=false/ > ge3.ini # Asking about graphic resolution POL_SetupWindow_menu_list "$RESOLUTION" "$TITLE" "800/600-1152/864-1024/768-1280/720-1280/800-1280/900-1280/1024-1360/768-1440/900-1400/1050-1600/900-1600/1024-1680/1050-1920/1080" "-" "800/600" RESOLUTION="$APP_ANSWER" # Setting graphic resolution # Setting resolution to 800/600 if [ "$RESOLUTION" == "800/600" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=800/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=600/ > ge3.ini # Setting virtual desktop Set_Desktop On 800 600 fi # Setting resolution to 1152/864 if [ "$RESOLUTION" == "1152/864" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1152/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=864/ > ge3.ini # Setting virtual desktop Set_Desktop On 1152 864 fi # Setting resolution to 1024/768 if [ "$RESOLUTION" == "1024/768" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1024/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=768/ > ge3.ini # Setting virtual desktop Set_Desktop On 1024 768 fi # Setting resolution to 1280/720 if [ "$RESOLUTION" == "1280/720" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1280/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=720/ > ge3.ini # Setting virtual desktop Set_Desktop On 1280 720 fi # Setting resolution to 1280/800 if [ "$RESOLUTION" == "1280/800" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1280/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=800/ > ge3.ini # Setting virtual desktop Set_Desktop On 1280 800 fi # Setting resolution to 1280/900 if [ "$RESOLUTION" == "1280/900" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1280/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=900/ > ge3.ini # Setting virtual desktop Set_Desktop On 1280 900 fi # Setting resolution to 1280/1024 if [ "$RESOLUTION" == "1280/1024" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1280/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=1024/ > ge3.ini # Setting virtual desktop Set_Desktop On 1280 1024 fi # Setting resolution to 1360/768 if [ "$RESOLUTION" == "1360/768" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1360/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=768/ > ge3.ini # Setting virtual desktop Set_Desktop On 1360 768 fi # Setting resolution to 1440/900 if [ "$RESOLUTION" == "1440/900" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1400/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=900/ > ge3.ini # Setting virtual desktop Set_Desktop On 1440 900 fi # Setting resolution to 1400/1050 if [ "$RESOLUTION" == "1400/1050" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1400/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=1050/ > ge3.ini # Setting virtual desktop Set_Desktop On 1400 1050 fi # Setting resolution to 1600/900 if [ "$RESOLUTION" == "1600/900" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1600/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=900/ > ge3.ini # Setting virtual desktop Set_Desktop On 1600 900 fi # Setting resolution to 1600/1024 if [ "$RESOLUTION" == "1600/1024" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1600/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=1024/ > ge3.ini # Setting virtual desktop Set_Desktop On 1600 1024 fi # Setting resolution to 1680/1050 if [ "$RESOLUTION" == "1680/1050" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1680/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=1050/ > ge3.ini # Setting virtual desktop Set_Desktop On 1680 1050 fi # Setting resolution to 1920/1080 if [ "$RESOLUTION" == "1920/1080" ]; then cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Right\=1024/Right\=1920/ > ge3.ini cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Bottom\=768/Bottom\=1080/ > ge3.ini # Setting virtual desktop Set_Desktop On 1920 1080 fi # Making shortcut POL_Shortcut "Gothic3.exe" "$TITLE" "" "" POL_SetupWindow_Close exit 0 Ulrick(No) |
| Quentin PÂRIS | Sunday 13 November 2011 at 13:24 - [Quote] |
Admin![]() ![]() |
The problem is that you wrote the SAME code more than ten times
Something like POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$TITLE" "800x600 1024x768" "-" "800x600" resolution="$APP_ANSWER" WIDTH="$(echo $resolution | cut -d"x" -f1)" HEIGHT="$(echo $resolution | cut -d"x" -f2)" cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Fullscreen\=true/Fullscreen\=false/ | sed s/Bottom\=768/Bottom\=$HEIGHT/ | sed s/Right\=1024/RIght\=$WIDTH/ > ge3.ini Set_Desktop On $WIDTH $HEIGHT Would be really better. Moreover, you have to remove all languages variables at the top of your script Citation: I wont use POL_SetupWindow_VMS because the resolution in ge3.ini MUST be the same as the virtual desktop. So it will not work if somebody selected resolution- 1600/1024 and POL_SetupWindow_VMS=1024 768 ?? This command has no link with resolution, it's designed to replace outdated following code which, by the way, does nothing in your cript because it's not used : Citation: POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256" Edited by Tinou |
| norway | Sunday 13 November 2011 at 13:32 - [Quote] |
Membre![]() ![]() |
Can you switch on the skype? I ll try to explain...
Ulrick(No) |
| norway | Sunday 13 November 2011 at 13:51 - [Quote] |
Membre![]() ![]() |
#!/bin/bash
# Date : (2011-6-11 19-41) # Last revision : (2011-11-11 21-11) # Wine version used : 1.3.18 - 1.3.32 # Distribution used to test : Kubuntu 11.10 x64 # Author : Ulrick(No) # Licence : Retail # Only For : http://www.playonlinux.com [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Gothic 3" PREFIX="gothic3" WORKING_WINE_VERSION="1.3.18" GAME_VMS="512" DEVELOPER="Piranha Bytes" SCRIPTCREATOR="Ulrick(No)" COMPANYSITE="http://www.pluto13.de/" RESOLUTION="What resolution is on your desktop?" CHOOSE="Select the installation file of $TITLE." INSTALLATION="Please wait during the installation..." GAME_VMS="How much video ram is ?" END="$Title installation is a succes ! " # Starting the script POL_SetupWindow_Init # Starting debugging API POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$COMPANYSITE" "$SCRIPTCREATOR" "$PREFIX" # Setting prefix path POL_Wine_SelectPrefix "$PREFIX" # Downloading wine if necessary and creating prefix Set_Arch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # Choose between DVD and Digital Download version POL_SetupWindow_InstallMethod "DVD,LOCAL" # Installing mandatory dependencies POL_Call POL_Install_dxfullsetup POL_Call POL_Install_devenum POL_Call POL_Install_dinput8 POL_Call POL_Install_dsound POL_Call POL_Install_dotnet20 POL_Call POL_Install_vcrun2005 POL_Call POL_Install_vcrun2008 POL_Call POL_Install_vcrun6 # Begin game installation if [ "$INSTALL_METHOD" == "DVD" ]; then # Asking for CDROM and checking if it's correct one POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" POL_SetupWindow_cdrom POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLE" else # Asking then installing DDV of the game cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine start /unix "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" fi # Asking about memory size of graphic card POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256" VMS="$APP_ANSWER" # Fix for this game POL_Wine_DirectSound "MaxShadowSize" "0" POL_Wine_Direct3D "UseGLSL" "enabled" Set_DXGrab On Set_Managed Off # Set Graphic Card information keys for wine POL_Wine_SetVideoDriver # Sound problem fix - pulseaudio related [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa" [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y" ## End Fix ## Begin Common PlayOnMac Section ## [ "$POL_OS" = "Mac" ] && Set_Managed "Off" ## End Section ## # Graphic fix 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)" cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/Gothic 3/Ini/" || POL_Debug_Error "Unable to find Gothic 3 folder" mv ge3.ini ge3.ini.back cat ge3.ini.back | sed s/Fullscreen\=true/Fullscreen\=false/ | sed s/Bottom\=768/Bottom\=$HEIGHT/ | sed s/Right\=1024/RIght\=$WIDTH/ > ge3.ini Set_Desktop On $WIDTH $HEIGHT # Making shortcut POL_Shortcut "Gothic3.exe" "$TITLE" "" "" POL_SetupWindow_Close exit 0 Ulrick(No) |
| norway | Sunday 13 November 2011 at 13:51 - [Quote] |
Membre![]() ![]() |
Ive done what you said. Now I am testing it.
Ulrick(No) |
| Quentin PÂRIS | Sunday 13 November 2011 at 14:03 - [Quote] |
Admin![]() ![]() |
Ok, better but I have to insist : no translation strings in variable at the top of the script : write them directly with eval_gettext
Also, what is POL_SetupWindow_menu's vms for ? You're not getting the result anywhere after it Thank's for your effort, and sorry to bother you with details |
164 people online




