Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Victoria 2 (AppId: 42960) #527

Open
Alxe opened this issue Aug 25, 2018 · 41 comments
Open

Victoria 2 (AppId: 42960) #527

Alxe opened this issue Aug 25, 2018 · 41 comments
Labels
Game compatibility - Unofficial Games not expected to work without issues .NET Uses the .NET framework

Comments

@Alxe
Copy link

Alxe commented Aug 25, 2018

Game works fine under a normal Wine32 setup on Fedora 28, but with Proton it fails in:

  • Game "doesn't start", launcher crashes (needs dotnet20)
    • Workaround is renaming v2game.exe to victoria2.exe
  • Game crashes on "Loading Sound", which is weird, because sound works fine until crash.
    • This crash is not experienced with vanilla wine.
@kisak-valve kisak-valve added the Game compatibility - Unofficial Games not expected to work without issues label Aug 25, 2018
@kylemiller3
Copy link

Game would also not start for me. The workaround mentioned above did not work for me but renaming v2game.exe to victoria2.exe did work for me.

Game does not crash on loading sound for me and appears to work fine. This is Flatpak Steam Ubunutu 18.04

@tbsteinb
Copy link

This appears to be related to issue #449
At the very least, that issue is what prevents installation of dotnet20.

@tbsteinb
Copy link

tbsteinb commented Aug 27, 2018

Okay, so interestingly enough for me after doing this fix the game would crash while loading, similer to what @Alxe noted, however if after the crash I ran /tmp/proton_run, the game would work. I was able to start a new game. I have not done any further testing yet, but at least I can run the game now.

EDIT: This applies after the first launch as well. If I run it through Steam it crashes at "Loading Sounds." What seems strange to me is that it does work fine without needing to use proton_run for other people.

@ebenus
Copy link

ebenus commented Sep 7, 2018

I can report the same thing happening to me - game crashing on "loading sounds", unless run through /tmp/proton_run (which is less than ideal as it does not apply Steam overlay).

@tbsteinb
Copy link

@kniedzielski
You can get the overlay working if you copy the proton_run script somewhere else and add it to Steam. It isn't perfect, but at least everything in-game (and the overlay) works. The overlay also correctly pulls Victoria 2 guides.

@simonhdickson
Copy link

Using the new 3.16-4 Beta it loads and runs fine for me after doing that renaming trick. I had an issue with the music not working but installing libmpg123 and libmpg123-32bit packages fixed that. Maybe the sounds not loading is also a packages issue?

@lucifertdark
Copy link

Can confirm renaming the exe combined with Proton 3.16-4 Beta the game runs perfectly for me.

@ebenus
Copy link

ebenus commented Nov 10, 2018

A week ago I was also able to run the game from the 3.16-4 Beta branch with the exe switch, but it seems that at least for me a regression has happened lately, as the game now crashes as soon as the startup preloading screen appears (even before the "loading sounds"). Revert to 3.7-8 helped with this and I am able to enjoy the actual gameplay, hopefully the problem will not pass to the next stable release.

@kisak-valve
Copy link
Member

Hello @kniedzielski, with Proton 3.16-4, please add PROTON_LOG=1 %command% to the game's launch options and drag and drop the generated $HOME/steam-$APPID.log into the comment box.

@ebenus
Copy link

ebenus commented Nov 10, 2018

Hi, sorry for missing the message and I am pretty confused about this, but in the meantime for extra check I purged the install and reinstalled it again with the 3.16-4 version of Proton on - now it works without any issue ((...)/steamapps/compatdata/42960/version where 42960 corresponds to Victoria 2 app id is tells that it indeed uses the 3.16-4 prefix). If the problem occurs again I will upload the log.

@testtube123
Copy link

I have the same issue described I'm using Proton 3.16-4 Beta
steam-42960.log

@kisak-valve
Copy link
Member

Hello @testtube123, your log has eventfd: Too many open files, please run ulimit -Hn and verify it is a high value and not 4096.

@Mariiibo
Copy link

Been trying to get this working for the past couple of days.
The .exe rename trick gets the startup video to play, then after it closes, the regular game window opens up to a black screen for anywhere from 1 to about 15 seconds, then crashes.
I've got my file limit set to 1048576 so that's not an issue, I've attempted on both Proton 3.16-4 and 3.7-8.
I've checked in /tmp/ and I've not seen a proton_run script at any point in my attempts.
I do also have the libmpg123 and libmpg123-32bit packages installed.
Attaching the log here
steam-42960.log

@DadSchoorse
Copy link
Contributor

As of Proton 4.11-8 the launcher now "works", it at least can start the game. The background image isn't displayed through.

@DadSchoorse
Copy link
Contributor

Proton 5.0 somehow broke the game, it now just results in a black screen after the intro.
steam-42960.log

@kisak-valve kisak-valve added .NET Uses the .NET framework .NET-winforms labels Feb 10, 2020
@kisak-valve
Copy link
Member

Hello @DadSchoorse, can you test if PROTON_USE_WINED3D=1 %command% in the game's launch options has an effect?

@kisak-valve kisak-valve added the DXVK/D3D9 🐸 Regression from enabling DXVK/D3D9 by default label Feb 10, 2020
@DadSchoorse
Copy link
Contributor

No, unfortunately that doesn't work either.
steam-42960.log

@kisak-valve kisak-valve added Regression Confirmed working on an older version of Proton and removed DXVK/D3D9 🐸 Regression from enabling DXVK/D3D9 by default labels Feb 10, 2020
@kisak-valve
Copy link
Member

Hello @DadSchoorse, "Fix frequent crash introduced in Proton 5.0-1 related to video and audio playback." in Proton 5.0-2 should have helped with the regression, please retest.

@kisak-valve kisak-valve added the Need Retest Request to retest an issue with vanilla Proton label Feb 13, 2020
@DadSchoorse
Copy link
Contributor

Still not working:
dxvk:
steam-42960.log
wined3d:
steam-42960.log

@kisak-valve kisak-valve removed the Need Retest Request to retest an issue with vanilla Proton label Feb 13, 2020
@siyia2
Copy link

siyia2 commented Mar 31, 2020

Same here crashes with black screen on proton 5.x, proton 4.x working though.

steam-42960.log

@DadSchoorse
Copy link
Contributor

The regression seems to be fixed in 5.0-6 RC.

@kisak-valve kisak-valve added the Need Retest Request to retest an issue with vanilla Proton label Apr 3, 2020
@kisak-valve kisak-valve removed Need Retest Request to retest an issue with vanilla Proton Regression Confirmed working on an older version of Proton labels May 8, 2020
@Blu3wolf
Copy link

Blu3wolf commented Oct 5, 2020

Works fine for me aside from the music. Sound effects play, but not music. Is there a fix or workaround for this?

@ImperatorStorm
Copy link

Runs perfectly with proton 5.13-1

@Ottoman-Von-Bismarck
Copy link

Not sure what happened. A few months ago I had the game running perfectly fine, then I uninstalled it and uninstalled steam for a few months. I come back and I've tried the renaming trick and just reinstalling the game and steam multiple times and the only thing I can get to run is the launcher, it just crashes after that. I've been using proton 4.11 because I think that's what I used to run it on. Any ideas?

@DadSchoorse
Copy link
Contributor

The game works perfectly for me with 5.13 and 6.3, even the launcher kinda works (the background image is missing tho).

But there has been a regression with 6.3-experimental, it doesn't do anything after the intro plays.
steam-42960.log

@Ottoman-Von-Bismarck
Copy link

Ottoman-Von-Bismarck commented Apr 25, 2021

@kisak-valve
Copy link
Member

Hello @Ottoman-Von-Bismarck, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report. Your log hints that there was an access violation (c0000005) with the Steam overlay.

@Ottoman-Von-Bismarck
Copy link

Ottoman-Von-Bismarck commented Apr 25, 2021

@kisak-valve alright. Here's the system info: https://gist.github.com/Ottoman-Von-Bismarck/dafd3de47ff3313f50eca99410813541

As you can see it's rather low-end but like I said it was only a few months ago on the same proton version that I was able to get the game to run perfectly fine.

@kisak-valve
Copy link
Member

Proton uses DXVK to translate DirectX 9 / 10 / 11 to Vulkan and your Intel Sandybridge chipset doesn't support Vulkan. Unfortunately that makes your hardware unsupported by Proton in general.

You might get lucky trying a newer Proton version with PROTON_USE_WINED3D=1 %command% in the game's launch options, which tells Proton to use wine's DirectX to OpenGL render path, but this runtime option is not considered supported and comes with a significant performance penalty.

@Ottoman-Von-Bismarck
Copy link

Ottoman-Von-Bismarck commented Apr 25, 2021

Ok, I figured it might be that but I'm just surprised since it worked fine until this month. Thank you

@alasky17
Copy link
Collaborator

alasky17 commented May 7, 2021

@Ottoman-Von-Bismarck The regression in Experimental should be fixed with the latest build (experimental-6.3-20210503) :)

@mikoxyz
Copy link

mikoxyz commented May 10, 2021

I don't get past the launcher no matter the Proton version :c
steam-42960.log

Edit: Seems like me having a symbolic link in the mod folder caused the problem; game seems to start and run just fine with the symlink removed.

@DadSchoorse
Copy link
Contributor

The launcher has regressed in one of the proton experimental updates this week, it used to pretty much work perfectly (and still does with stable proton). Now it crashes after briefly showing up.
steam-42960.log

@kisak-valve
Copy link
Member

Hello @DadSchoorse, these look like some lines of interest from the log:

Unhandled Exception:
System.InvalidCastException: Specified cast is not valid.
  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.GetIDispatchForObjectInternal(object)
  at (wrapper native-to-managed) System.Windows.Forms.UnsafeNativeMethods+IAccessibleInternal.get_accChild(intptr,System.Variant,intptr)
  at (wrapper managed-to-native) System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(System.Windows.Forms.NativeMethods/MSG&)
  at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponentID, System.Int32 reason, System.Int32 pvLoopData) [0x001d7] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00282] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x0001a] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int,System.Windows.Forms.ApplicationContext)
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x0000d] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
  at launcher.Program.Main () [0x00010] in <e590cd14a3cf430a9a3d4fedeeec6872>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Specified cast is not valid.
  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.GetIDispatchForObjectInternal(object)
  at (wrapper native-to-managed) System.Windows.Forms.UnsafeNativeMethods+IAccessibleInternal.get_accChild(intptr,System.Variant,intptr)
  at (wrapper managed-to-native) System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(System.Windows.Forms.NativeMethods/MSG&)
  at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponentID, System.Int32 reason, System.Int32 pvLoopData) [0x001d7] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x00282] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
  at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x0001a] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int,System.Windows.Forms.ApplicationContext)
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x0000d] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
  at launcher.Program.Main () [0x00010] in <e590cd14a3cf430a9a3d4fedeeec6872>:0 (1)

@Stormersh
Copy link

Proton uses DXVK to translate DirectX 9 / 10 / 11 to Vulkan and your Intel Sandybridge chipset doesn't support Vulkan. Unfortunately that makes your hardware unsupported by Proton in general.

You might get lucky trying a newer Proton version with PROTON_USE_WINED3D=1 %command% in the game's launch options, which tells Proton to use wine's DirectX to OpenGL render path, but this runtime option is not considered supported and comes with a significant performance penalty.

I know Haswell only has partial support for Vulkan, but is it considered supported?

I've got two issues with this game, one is when playing without any mod. The game runs (after starting a game, selecting a country and messing around, it does crash once but in subsequent launches it doesn't, most likely a quirk of the game though) but it has a visual bug. It is playable though.

The other issue is with mods, I couldn't get any total conversion mod to work (tried HPM, HFM, CWE and Divergence of Darkness which is the one I used for the second log). They all crash while loading.

Both of these only happen when using DXVK. The wined3d flag solves the visual bug and the mod crash, but the performance hit is huge.

Vanilla log
Modded log

System info

@kisak-valve
Copy link
Member

Hello @Stormersh, rendering anomalies and crashes are expected with that chipset generation due to it being non-spec conformant and in general, it is not supported by Proton.

That said, it might be interesting to let the mesa devs know about the behavior difference between the OpenGL and Vulkan render path and they might be able to figure out what's going on there.

@Stormersh
Copy link

Thanks @kisak-valve! I hope it can be solved at some point, it's so close to fully working! :(

That said, it might be interesting to let the mesa devs know about the behavior difference between the OpenGL and Vulkan render path and they might be able to figure out what's going on there.

Is that done by you/Valve or is my input needed?

@kisak-valve
Copy link
Member

If you don't mind, then I think it would be better if you coordinated with the mesa/ANV devs directly instead of there being a proxy relaying information second hand. https://docs.mesa3d.org/bugs.html is a good starting point for feedback directed at mesa.

@alasky17
Copy link
Collaborator

@DadSchoorse Thanks for reporting the launcher crash! It should be fixed with the current experimental (20210921) and will be fixed in 6.3 the next time it includes a wine-mono update :)

@BobbyBlock
Copy link

steam-42960.log
Spent the last hour looking at this and can't figure out how to fix it, my best guess is the error that repeats after line 4167 is something to do with it considering that is different from other logs I have seen posted, tried it with "PROTON_USE_WINED3D=1 %command%" but got the same error. Thanks in advance

@kisak-valve
Copy link
Member

Hello @BobbyBlock, these look like some lines of interest from your log:

fixme:d3dcompiler:compile_shader Compilation target "fx_2_0" not yet supported
warn:debugstr:OutputDebugStringA "Clausewitz Error[effecthandler.cpp:111]: D3DXCreateEffectFromFile failed for file: gfx\\FX\\avatar.fx. Couldn't open file.\n\n"

This is shortly followed by an access violation (c0000005).

Upstream bug report: https://bugs.winehq.org/show_bug.cgi?id=37676

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Game compatibility - Unofficial Games not expected to work without issues .NET Uses the .NET framework
Projects
None yet
Development

No branches or pull requests