The forum

S.T.A.L.K.E.R. - Shadow of Chernobyl

By GNU_Raziel

Author Replies
Ghostofkendo Saturday 1 March 2008 at 20:40

Wine version: 0.9.54
Distribution: Debian AMD64
Distribution version: Lenny (Testing)
Graphics card: Nvidia, geforce 7800GS (512 Mo)
Graphics card driver: 169.09
-If you turn on the graphic settings to the maximum, the game will become buggy (parts of the screen become black).
-Displaying the options during the game will cause very numerous bugs of polygons/textures.

Please note that the script for the patch 1.0005 for S.T.A.L.K.E.R. is available too.

Have a good game

By GNU_Raziel

Edited by Salvatos

killer-mazila Friday 14 March 2008 at 7:55

And what about multipleer game?
t0ster Friday 14 March 2008 at 11:08

how many fps in game?
MegaJim Saturday 15 March 2008 at 17:40

Great ! Works fine, getting really good FPS here too !

Only problem is the patch script fails at downloading from official site (nothing happens, maybe file was moved?) I already have the patch, what do I need to do to install it?

EDIT: Ok so I moved it into the ~./PlayOnLinux/tmp directory and it executed on the next line of the script, however the patcher dies immediately with "file not found"

The URL included in the script is a one-time referrer so it will not work for more than a few hours at most

Edit2: Ok I got it to work by also commenting out the "rm ./ww-stk-0005.exe" line from the patcher script, for some reason it was not waiting for the install to complete before deleting the patcher, Runs fine now, thx.

Edited by MegaJim

GNU_Raziel Monday 17 March 2008 at 10:31

Oops, sorry, my fault

I will check this out next Week-End, find a permanent link and correct the patch script.

Thx for the feedback
TheGreenManalishi Wednesday 20 April 2011 at 15:22

Hello! Yesterday i was trying to install stalker soc with your script but the installer wouldnt open at all. Could you plz check it (i couldnt make it myself coz iam a noob)? Also as for now there is no special wine version needed and would you mind ad this: cp "$PROGRAMFILES/THQ/S.T.A.L.K.E.R. - Shadow of Chernobyl/stalker.ico" "$REPERTOIRE/icones/32/$TITLE" to the script for creating a shortcut with the stalker icon?
Thanks in advance

Wine version:1.3.17
Distribution: Ubuntu 10.10
Graphics card:Ati HD4850 Catalyst 11.3
GNU_Raziel Wednesday 20 April 2011 at 18:32

This PoL installed will not work if you do not use the latest PoL version.

And no, we cannot add this command, because :
1- If someone change the install path it will not work
2- If it's steam or digital version it will not work

Post the game icon on this forum and I will add it.
TheGreenManalishi Wednesday 20 April 2011 at 20:35

I use the latest version 3.8.12 and itried it again its not working

Edited by TheGreenManalishi

TheGreenManalishi Wednesday 20 April 2011 at 21:12


Edited by TheGreenManalishi

TheGreenManalishi Thursday 21 April 2011 at 11:28

anyway here is one that works :
# Date : (2010-05-11 21-00)
# Last revision : (2011-21-04 21-00)
# Wine version used : 1.3.14
# Distribution used to test : Debian Testing x64
# Author : GNU_Raziel & TheGreenManalishi
# Licence : Retail
# Only For :

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="S.T.A.L.K.E.R. - Shadow Of Chernobyl"
if [ "$POL_LANG" == "fr" ]; then
LNG_CHOOSE_MEDIA="Quelle version possédez-vous?"
LNG_DVD="Version DVD"
LNG_DDV="Version Digital Download"
LNG_CHOOSE_DDV="Veuillez selectionner votre executable Digital Download de $TITLE"
LNG_INSERT_MEDIA="Veuillez insérer le disque $TITLE dans votre lecteur\\nsi ce n'est pas déja fait."
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du\\njeu sera terminée sous peine de devoir recommencer l'installation."
LNG_INSTALL_ON="Installation en cours..."
LNG_GAME_VMS="Quelle est la quantité de mémoire (Mo) de votre carte graphique ?\\n(minimum pour ce jeu : 256)" 
LNG_VMS_ERROR="Ce jeu ne fonctionnera correctement qu'avec une carte graphique ayant plus de 256Mo de mémoire."
LNG_SUCCES="$TITLE a été installé avec succès."
LNG_CHOOSE_MEDIA="What version do you have?"
LNG_DVD="DVD Version"
LNG_DDV="Digital Download Version"
LNG_CHOOSE_DDV="Please select your $TITLE Digital Download executable"
LNG_INSERT_MEDIA="Please insert $TITLE media into your disk drive\\nif not already done."
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation is finished\\nor you will have to redo the installation."
LNG_INSTALL_ON="Installation in progress..."
LNG_GAME_VMS="How much memory does your graphics board have?\\n(minimum for this game : 256)" 
LNG_VMS_ERROR="This game will work correctly only with a graphic card with more than 256Mo of memory."
LNG_SUCCES="$TITLE has been installed successfully."
#starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_SetupWindow_presentation "$TITLE" "THQ" "" "GNU_Raziel & TheGreenManalishi" "$PREFIX" 
select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX"

#downloading specific Wine
if [ "$MACHTYPE" == "x86_64-pc-linux-gnu" ]; then
	POL_Call POL_Install_wine64b
	POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"

#Creating prefix 
#Choose between DVD and Digital Download version
POL_SetupWindow_menu "$LNG_CHOOSE_MEDIA" "$TITLE" "$LNG_DVD~$LNG_DDV" "~"
if [ "$APP_ANSWER" == "$LNG_DVD" ]; then
if [ "$GAME_MEDIAVERSION" == "DVD" ]; then
	#asking for CDROM and checking if it's correct one
	POL_SetupWindow_message "$LNG_INSERT_MEDIA"
	POL_SetupWindow_check_cdrom "setup-1c.bin"
	wine start /unix "$CDROM/setup.exe"
	POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"
	#Asking then installing DDV of the game
	cd "$HOME"
	POL_SetupWindow_browse "$LNG_CHOOSE_DDV" "$TITLE"
	POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
	wine start /unix "$SETUP_EXE"
	until [ "$INSTALL_ON" == "" ]; do
	sleep 5
	INSTALL_ON=`ps aux | grep "wineserver" | grep -v "grep"`
#asking about memory size of graphic card
POL_SetupWindow_menu_list "$LNG_GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1792-2048-3072-4096" "-" "256"
cd "$WINEPREFIX/drive_c/windows/temp/"
cat << EOF > vms.reg
regedit vms.reg
if [ "$VMS" -lt "256" ]; then
	POL_SetupWindow_message "$LNG_VMS_ERROR" "$TITLE"
## PlayOnMac Section
[ "$PLAYONMAC" == "" ] && Set_SoundDriver "alsa"
[ "$PLAYONMAC" == "" ] || Set_Managed "Off"
## End Section
#cleaning temp
if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
	rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
	chmod -R 777 "$POL_USER_ROOT/tmp/"
	rm -rf "$POL_USER_ROOT/tmp/*"
#making shortcut
POL_SetupWindow_auto_shortcut "$PREFIX" "XR_3DA.exe" "$TITLE" "" ""
Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE" 

POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"

Edited by GNU_Raziel

GNU_Raziel Thursday 21 April 2011 at 14:46

I've modified it to match current PoL standards.
TheGreenManalishi Thursday 21 April 2011 at 17:40

nice thanks!
eldon Sunday 19 February 2012 at 12:06

running pol 4.0.14 ubuntu 11.04 x64
i've just installed the game from a garage sale stock dvd using the provided application script in playonlinux menu, not by copying the one above but i assume they're the same ?

Anyways, the dvd install works fine but the application launcher doesn't point to the correct exe to start the game.

For some reason the game has the following directory structure "Program Files/THQ/S.T.A.L.K.E.R. - Shadow of Chernobyl/bin/dedicated", the launcher uses "bin/dedicated/XR_3DA.exe" but the "dedicated" directory only has that exe nothing else, and then it claims it can't find the game dlls which are located in the parent "bin" directory which also has a XR_3DA.exe (different file size).
When starting "bin/XR_3DA.exe" in a pol shell, it works (provided you use a nodvd exe in my case) and the game runs fine.

i'm guessing "POL_SetupWindow_auto_shortcut" (which is not in the current documentation, deprecated?) is doing something wrong finding that exe.

I don't know how to modify pol application launchers so i have to use the shell.

On a side note, i don't know what version my game is but i'll assume it's 1.0 (exe date says 2/27/2007) and i've tried to install the latest game update 1.0005 from the shell but it keeps saying it can't find the installed game, there's not output so i don't know what to do..

I'm no pol wiz so i'm using basic things, in the shell i only do a "POL_Wine_SelectPrefix stalkerprefix" and then "POL_Wine exe" with or without "start /unix".. it runs the game fine so it can't be too wrong but well the update won't find my game..

thx any help for the game update or installer fix will probably help others.
GNU_Raziel Sunday 19 February 2012 at 16:17

Thx for the report, I will investigate this and fix it as soon as possible.

Edited by GNU_Raziel

eldon Sunday 19 February 2012 at 18:56

one more thing from this afternoon's test :
Being not very used to pol i didn't see that, on the application's configure panel ("miscellaneous" tab), you could run an exe from that virtual drive (=prefix?).
Using it that i was able to run the game (nodvd version from the bin directory) and run the 1.0005 update.

You may reconsider using the update as it seems to slow down the game quite dramatically and introduce the infamous "dynamic lighting bug" which wasn't present in the initial install. I tired to get rid of the bug from comment on winehq but so far no luck, static lighting works fine though, but the fps is still pretty low.
I didn't specify it but i'm using a core2 duo with nvidia gtx460 (285 driver).

So as i thought i was probably not doing everything right from the shell (POL_Wine couldn't run the updater, but would run the game). I'm not even sure what wine version is used when i'm in the shell, it would be nice to be able to open a configured shell from the application configure panel, the same way you can open a dos prompt..

eldon Friday 24 February 2012 at 19:55

a quick last note, the game won't recognize any keyboard layout besides "us" so if you want your keyboard to work, including key bindings, you'll need to add a command to the application's shortcut :

setxkbmap us

after that your keyboard works fine and you can change the key bindings if you want to.
I don't know if pol has a function to add that to the configuration but that would save users a couple of hours of looking around so to speak..