riquems / tak-enhanced

8 stars 0 forks source link

Crash on game launch in Wine/Proton #78

Open ToxicFrog opened 2 months ago

ToxicFrog commented 2 months ago

4.0bb (from GOG) works fine, and so does 4.1bb. When trying to use TA:KE, the launcher starts up fine, but when I click "play", what happens next depends on the specific settings:

I've tried with various versions of Wine-GE 8 and Proton 8/9 and the behaviour is consistent. I can share Wine and TA:KE logs if it will help debugging, although there's no smoking gun in the latter; it just ends with:

[Info] Game has launched!
[Debug] Binding WndProc...

I can still play 4.1bb in the meantime, but it would be nice to have the TA:KE enhancements.

ToxicFrog commented 2 months ago

I can still play 4.1bb in the meantime, but it would be nice to have the TA:KE enhancements.

This turns out to be incorrect, 4.0/4.1 work fine until I actually try to load into the campaign, and then it crashes. :(

riquems commented 2 months ago

Hi @ToxicFrog, thanks for taking your time to open this issue and gathering some info as well!

Let me be honest, I don't have a Wine/Proton setup with me so I can't reproduce it at the moment. I'd have to setup it first to troubleshoot it better.

Maybe I could coop with you by making changes and sending you new .dlls trying things out like not trying to bind WndProc or try a very simple dll injection and a simple change to see how it reacts. We'd have to reserve some time to do it though, this weekend maybe? I actually think that's the best option right now, if you're up to.

Thanks again for using (or trying to use) TA:K Enhanced! <3

ToxicFrog commented 2 months ago

Hi @ToxicFrog, thanks for taking your time to open this issue and gathering some info as well!

You're welcome! I was overcome by an urge to play TA:K recently and ended up here.

Let me be honest, I don't have a Wine/Proton setup with me so I can't reproduce it at the moment. I'd have to setup it first to troubleshoot it better.

It's not hard to set up as dual-boot with a windows machine, or even as a bootable USB, but it may still be more inconvenience than you want to go through. Especially since I'm not convinced this is solely a TA:KE issue -- 4.0bb and 4.1bb also crash, just in different places. So this might just be TA:KE moving the crash around.

(I also found out, while testing further, that 4.*bb will crash when opening the display settings menu. Other menus work fine. But that too is not a TA:KE problem.)

Maybe I could coop with you by making changes and sending you new .dlls trying things out like not trying to bind WndProc or try a very simple dll injection and a simple change to see how it reacts. We'd have to reserve some time to do it though, this weekend maybe? I actually think that's the best option right now, if you're up to.

I honestly don't know if I'll be around this weekend, I was planning to be but then my plans got kind of upended earlier today. Next time I have a chance I would like to investigate further, though.

I also want to try booting into windows and trying it there, just to rule out the possibility that it's a platform-independent issue with my video card or ultrawide monitor or something.

Thanks again for using (or trying to use) TA:K Enhanced! <3

Thank you for making it!

ToxicFrog commented 1 month ago

Had a chance to test this today in windows.

4.0bb: videos do not play. In-game menus work. Attempting to play crashes the game instantly, but going into the video settings (which work here) and choosing 1024x768 rather than 3440x1440 lets it work.

4.1bb: as above, except only skirmish mode works, campaign fails with "please insert the TAK CD"

4.1bb with TAKE, and the "enhanced" preset: as 4.0bb, TAKE upgrades appear to be working based on limited testing

So while TAK does not like the ultrawide monitor, that's not a TAKE issue, and if I turn down the resolution it works fine in Windows, so the above issues are Proton/Wine specific.

riquems commented 1 month ago

Cool, btw it highly depends on the map you're trying to play too, it shouldn't be smaller than your resolution. Depending on your setup, you can go up to 4k in TA:K: https://www.youtube.com/watch?v=HNiiHMDGaTs

This is Phil, and he tells you should be using Software MMX renderer for it to be possible, Direct3D won't work. I play on 1920x1080 Direct3D settings on W10.

As for videos not playing, again a Direct3D problem. The benefits of Direct3D though is: better graphics, hardware cursor and alt tabbing without crashing.

Usually DXWnd is recommended to run TA:K for best experience and less bugs. Maybe you'd want to try it?