Sniper Elite 4

Questions about Wine on Linux
WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Sniper Elite 4

Post by WineChancellor » Mon Nov 19, 2018 11:53 am

Hello
Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
Linux Mint 18.3 Sylvia (64 bit)
Kernel Version: 4.15.0-38-generic
NVIDIA Corporation GeForce GTX 970/PCIe/SSE2
Audio device: Realtek ALC1150
RAM: 15974 Mb
wine-3.20 (Staging)

i would like play to Sniper elite 4, steam windows + wine it's work well but there not audio.
With steam linux + proton 3.16-4 it doesn't work.

Someone can help me?

Bye Lele

jkfloris
Level 6
Level 6
Posts: 658
Joined: Thu Aug 14, 2014 10:10 am

Re: Sniper Elite 4

Post by jkfloris » Tue Nov 20, 2018 2:50 am

Are there some hints about the error in the terminal output?
https://wiki.winehq.org/Wine_User's_Gui ... mmand_line

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Tue Nov 20, 2018 10:15 am

jkfloris wrote:Are there some hints about the error in the terminal output?
https://wiki.winehq.org/Wine_User's_Gui ... mmand_line
Do you want a generic log of wine ?

Lele
Attachments
Sniper elite 4 - Steam ID 312660.tar.bz2
(32.36 KiB) Downloaded 35 times

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Tue Nov 20, 2018 11:30 am

@WineChancellor

This is possibly a duplicate of: Bug 45742 - Sniper Elite V2 has no sound .
Many games have a similar issue with builtin xaudio, e.g. Fallout 4.

So try:

Code: Select all

winetricks xact
wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v xaudio2_7 /t reg_sz /d native,builtin /f
Bob

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Tue Nov 20, 2018 12:24 pm

Bob Wya wrote: So try:

Code: Select all

winetricks xact
wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v xaudio2_7 /t reg_sz /d native,builtin /f
Bob
Now the sound is working, a try to play.
for now, thanks

Lele

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Tue Nov 20, 2018 1:02 pm

np 8)

I'll link Sniper Elite 4 (on WineHQ AppDB) to that bug as well.

Bob

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Tue Nov 20, 2018 1:37 pm

Bob Wya wrote:np 8)

I'll link Sniper Elite 4 (on WineHQ AppDB) to that bug as well.

Bob
There a little problem the colors are bit faded, but for moment is playable.

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Tue Nov 20, 2018 2:43 pm

Update: with Lutrix ( dxvk enable ) + steam + dll xaudio2_7 native,builtin seem prefect

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Tue Nov 20, 2018 3:51 pm

WineChancellor wrote:Update: with Lutrix ( dxvk enable ) + steam + dll xaudio2_7 native,builtin seem prefect
Hmmm.

I was going to suggest that dxvk will give a much better game-play experience!
Lutris is a very handy game management tool too.
Thankfully it is up-to-date, compared to the virtually unmaintained Play On Linux utility...

I've been playing Fallout 4 with Wine Staging 3.19 + dxvk 0.92 - FPS is 60+ with God Rays enabled.
Gameplay is flawless.

With stock Wine Staging 3.19 (same build) I can get around 1-5 FPS, with much lower graphical settings (+ no God Rays)!
Gameplay is impossible.

I do find it a bit disingenuous when Wine D3D Developers call dxvk a 'hack'.
It's single-handedly moved the Linux + Wine gameplay experience forward by approximately 10 years...

Just my personal opinion of course... 8)

Bob

ls_boy
Level 2
Level 2
Posts: 44
Joined: Sat Dec 12, 2015 3:24 pm

Re: Sniper Elite 4

Post by ls_boy » Tue Nov 20, 2018 6:00 pm

WOW! I couldn't for the life of me get SE4 to work. It works nicely.
Have you tried SEV2 & 3? All I get is a black screen.

+++

A regression somewhere because they use to work.

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Wed Nov 21, 2018 2:16 am

Bob Wya wrote:
I was going to suggest that dxvk will give a much better game-play experience!

Bob
Can i enable DXVK on winestaging?
ls_boy wrote:Have you tried SEV2 & 3? All I get is a black screen.
NO sorry, i haven't SE2-3

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Wed Nov 21, 2018 2:32 am

WineChancellor wrote: Can i enable DXVK on Wine Staging?
I thought you said you where using the Lutris sniper-elite-4-steam-dxvk script??!!
That uses TK-Glitch'es esync-staging-pba-3.18-x86_64 (Wine Staging 3.18 build) by default.

Bob

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Wed Nov 21, 2018 3:11 am

Bob Wya wrote:
I thought you said you where using the Lutris sniper-elite-4-steam-dxvk script??!!

Bob
I manually enable DXVK through lutris, can i enable DXVK directly on winestaging?

Lele

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Wed Nov 21, 2018 3:28 am

WineChancellor wrote: I manually enable DXVK through lutris, can i enable DXVK directly on Wine Staging?

Lele
I tend to just using Wine Staging 3.20 + DXVK 0.92 personally.

The latest winetricks version - see Github: Winetricks/winetricks - has support for multiple dxvk** verbs.
The current release is 0.92 - so:

Code: Select all

winetricks dxvk92
will install this.
Note: the winetricks dxvk** verbs only install DXVK for your currently active WINEPREFIX.

Obviously DXVK has it's own requirements, around Vulkan support.
See: Github: lutris/lutris How to: DXVK.

For Nvidia you currently need the: 396.54.09 Vulkan development drivers.
See: Ubuntu PPA: Proprietary Development GPU Drivers.

Bob

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Wed Nov 21, 2018 9:52 am

ok for the moment thank you.

Lele

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Thu Jan 24, 2019 5:58 am

Bob Wya wrote:

Code: Select all

winetricks dxvk92
will install this.
Note: the winetricks dxvk** verbs only install DXVK for your currently active WINEPREFIX.

Obviously DXVK has it's own requirements, around Vulkan support.
See: Github: lutris/lutris How to: DXVK.
Hi bob,
i can try install dxvkXX but i have this error

Code: Select all

winetricks dxvk92
......
Using winetricks 20180217 - sha256sum: 1b156c616174f41df79d72a90c52eb2b110c63a6e8ecb865d303a8f9f0908924 with wine-4.0-rc7 and WINEARCH=win64
Unknown arg dxvk92
.....
Can you help me?
Lele

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Thu Jan 24, 2019 6:48 am

update:

i understand

download it
https://github.com/doitsujin/dxvk/releases

and install it
https://github.com/doitsujin/dxvk

Code: Select all

export WINEPREFIX=/path/to/.wine-prefix
winetricks --force setup_dxvk.verb
with Lutrix ( dxvk enable ) + steam + dll xaudio2_7 native,builtin seem prefect

but with wine-4.0-rc7 + dxvkXX + steam + dll xaudio2_7 native,builtin it doesn't work

Do you have some idea?
Lele

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Thu Jan 24, 2019 8:05 am

WineChancellor wrote: ...

Code: Select all

winetricks dxvk92
......
Using winetricks 20180217 - sha256sum: 1b156c616174f41df79d72a90c52eb2b110c63a6e8ecb865d303a8f9f0908924 with wine-4.0-rc7 and WINEARCH=win64
Unknown arg dxvk92
.....
Can you help me?
Lele
@Lele

Your winetricks version is too old.

See: Github: Winetricks / winetricks / README.md.

The latest winetricks verb for DXVK, dxvk95, has not yet been integrated by (the AWOL) Austin English(!!)
But you can always use:

Code: Select all

winetricks dxvk
to install the most recent DXVK release to a WINEPREFIX.

Bob

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Thu Jan 24, 2019 8:13 am

WineChancellor wrote:update:

with Lutrix ( dxvk enable ) + steam + dll xaudio2_7 native,builtin seem prefect

but with wine-4.0-rc7 + dxvkXX + steam + dll xaudio2_7 native,builtin it doesn't work

Do you have some idea?
Lele
"it doesn't work"
  • Perhaps you could describe in what way it doesn't work?
  • What terminal output does this generate?
See: Lutris: Games / Sniper Elite 4 (DXVK install script).

The Lutris install script is not using wine-esync or wine-pba, so you could replicate this with Wine Staging 3.18, and the specified env settings.
A newer version of Wine Staging (e.g. 4.0) should be OK to use (probably).

Bob

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Thu Jan 24, 2019 10:41 am

@Bob

HI

Code: Select all

Perhaps you could describe in what way it doesn't work?
What terminal output does this generate?
See log,
The game " run " use ram and CPU but it doesn't star.

Code: Select all

wine --version
wine-4.0-rc7

Code: Select all

Your winetricks version is too old.
I don't understand how to install new version.

I use mint 19.3

https://github.com/Winetricks/winetrick ... /README.md

i create a script and made it executable

Code: Select all

sudo chmod +x namescript.sh
sudo ./namescript.sh
i tried with this

Code: Select all

# Create and switch to a temporary directory writeable by current user. See:
#   https://www.tldp.org/LDP/abs/html/subshells.html
cd "$(mktemp -d)".........
and this

Code: Select all

cd "$(mktemp -d)"
cat > update_winetricks <<_EOF_SCRIPT
#!/bin/sh

cd "$(mktemp -d)......"
but nothing is happening.

another question lutris

I have some problem to install lutris + steam win

i followed this tutorial
https://www.youtube.com/watch?v=XfzWHjr2QyA

but after installation i don't see this screen

https://youtu.be/XfzWHjr2QyA?t=61

thank you

bye
Attachments
sniperelite.log.tar.gz
(2.38 KiB) Downloaded 40 times

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Thu Jan 24, 2019 2:41 pm

WineChancellor wrote:...
I tried with this:

Code: Select all

# Create and switch to a temporary directory writeable by current user. See:
#   https://www.tldp.org/LDP/abs/html/subshells.html
cd "$(mktemp -d)".........
and this

Code: Select all

cd "$(mktemp -d)"
cat > update_winetricks <<_EOF_SCRIPT
#!/bin/sh

cd "$(mktemp -d)......"
but nothing is happening.
...
That's intended purpose of the script.
I.e. doing nothing, well unless you actually run it!

So you need to run the update_winetricks script manually (with sudo).
It's probably best to also follow the Updating part of the winetricks README.
This will ensure the winetricks script is updated on a regular basis (without any further manual intervention, on your part).

Bob

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Fri Jan 25, 2019 3:12 am

@bob

Code: Select all

So you need to run the update_winetricks script manually (with sudo).
sudo update_winetricks
is very curious but work !!!

ok winetricks it's ok

now
wine 4.0 + dxvk95 + steam win

Sniper Elite 4 don't work

do you have some idea?
Lele

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Fri Jan 25, 2019 8:49 am

@Lele,

Sure... There's nothing problematic in your Wine log output... But never fear! 8)

First off Sniper Elite 4 requires you to run Wine Staging.
See: WineHQ AppDB: Sniper Elite 4.
The bug for updating KSYSTEM_TIME (which Windows supports and Wine does not) is only in the staged patchset, denoted by the bug status: STAGED.

Second, what's the output from the following commands:

Code: Select all

glxinfo | egrep '^OpenGL'

vulkaninfo | egrep '^(GPU id|Vulkan)'
Ta
Bob

WineChancellor
Level 2
Level 2
Posts: 49
Joined: Sun Nov 14, 2010 8:24 am

Re: Sniper Elite 4

Post by WineChancellor » Mon Jan 28, 2019 4:13 am

@Bob

HI

i installed wine staging 4.0

Code: Select all

wine --version
wine-4.0-rc7 (Staging)
and sniper elite 4 work but i can't install vulkan-utils.
Why?
thank you, Lele

Code: Select all

 glxinfo | egrep '^OpenGL'
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 415.25
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 415.25
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 415.25
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Code: Select all

vulkaninfo | egrep '^(GPU id|Vulkan)'

Command 'vulkaninfo' not found, but can be installed with:

sudo apt install vulkan-utils

Code: Select all

sudo apt install vulkan-utils
[sudo] password for lele:        
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 vulkan-utils : Depends: vulkan-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

sudo inxi -Fxz
System:
  Host: lele-All-Series Kernel: 4.15.0-43-generic x86_64 bits: 64 
  compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.9 
  Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic 
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A serial: N/A 
  Mobo: ASUSTeK model: Z87-PRO v: Rev 1.xx serial: <filter> 
  UEFI: American Megatrends v: 2103 date: 08/18/2014 
CPU:
  Topology: Quad Core model: Intel Core i7-4790K bits: 64 type: MT MCP 
  arch: Haswell rev: 3 L2 cache: 8192 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 63963 
  Speed: 1329 MHz min/max: 800/4400 MHz Core speeds (MHz): 1: 1760 2: 1931 
  3: 1986 4: 1946 5: 1827 6: 1705 7: 1629 8: 1709 
Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: Gigabyte driver: nvidia 
  v: 415.25 bus ID: 01:00.0 
  Display: server: X.Org 1.19.6 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa 
  resolution: 1920x1080~60Hz, 1280x1024~60Hz 
  OpenGL: renderer: GeForce GTX 970/PCIe/SSE2 v: 4.6.0 NVIDIA 415.25 
  direct render: Yes 
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  Device-2: NVIDIA GM204 High Definition Audio vendor: Gigabyte 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  Sound Server: ALSA v: k4.15.0-43-generic 
Network:
  Device-1: Intel Ethernet I217-V vendor: ASUSTeK driver: e1000e v: 3.2.6-k 
  port: f040 bus ID: 00:19.0 
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 1.02 TiB used: 260.97 GiB (25.0%) 
  ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 1TB size: 931.51 GiB 
  ID-2: /dev/sdb vendor: Samsung model: SSD 840 Series size: 111.79 GiB 
Partition:
  ID-1: / size: 45.58 GiB used: 16.95 GiB (37.2%) fs: ext4 dev: /dev/sda7 
  ID-2: swap-1 size: 3.91 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda5 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 26 C 
  Fan Speeds (RPM): cpu: 0 gpu: nvidia fan: 45% 
Info:
  Processes: 256 Uptime: 22m Memory: 15.60 GiB used: 2.31 GiB (14.8%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.3.0 Shell: bash v: 4.4.19 
  inxi: 3.0.27 

User avatar
Bob Wya
Level 12
Level 12
Posts: 2760
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: Sniper Elite 4

Post by Bob Wya » Mon Jan 28, 2019 6:25 am

WineChancellor wrote:

Code: Select all

 glxinfo | egrep '^OpenGL'
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 415.25
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 415.25
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 415.25
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
  • You'll want Nvidia driver 415.27
WineChancellor wrote:

Code: Select all

sudo apt install vulkan-utils
[sudo] password for lele:        
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 vulkan-utils : Depends: vulkan-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
  • You need to sort that out yourself (this isn't www.vulkanhq.org)!
    You might want to try aptitude - since apt is completely hopeless at resolving package dependencies.

    Broken Linux Vulkan support (or any ability to check it) = Broken DXVK support :cry:
Bob

Post Reply