Wine/Linux Testing

The Galaxy Lives On! Distant Worlds, the critically acclaimed 4X space strategy game is back with a brand new 64-bit engine, 3D graphics and a polished interface to begin an epic new Distant Worlds series with Distant Worlds 2. Distant Worlds 2 is a vast, pausable real-time 4X space strategy game. Experience the full depth and detail of turn-based strategy, but with the simplicity and ease of real-time, and on the scale of a massively-multiplayer online game.

Moderator: MOD_DW2

User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

Rhygin00 wrote: Thu Mar 10, 2022 11:33 pm
ComradeJames wrote: Thu Mar 10, 2022 10:08 pm
deMangler wrote: Thu Mar 10, 2022 9:07 pm That does get me past the launcher and through the game setup screen, however it always crashes within a few seconds after generating the galaxy.
For me changing the proton version to the latest GloriousEggroll release fixed the crashing, or at least it didn't crash in the 5 minutes or so I tested, but the game is so incredibly dark that it's unplayable (The darkness also happened in other proton versions). Tough it does seem like it might also be a problem on windows for some people.
Look here and scroll down:

https://steamcommunity.com/app/1531540/ ... 122/?ctp=3

There are settings files for brightness, the guys are discussing what to change. The whole thread was started by Lain@X too, might be interesting.
Yup. That is indeed a thread full of goodness. :)
Rhygin00
Posts: 60
Joined: Tue Nov 04, 2014 4:19 pm

Re: Wine/Linux Testing

Post by Rhygin00 »

Thanks for keeping us posted here.
User avatar
Acidpunk
Posts: 66
Joined: Tue Jan 26, 2021 3:19 pm
Location: United Kingdom

Re: Wine/Linux Testing

Post by Acidpunk »

So I gave the instructions in https://steamcommunity.com/app/1531540/ ... 4331282485 A try and afterwards swapped up to a later version of Proton. The game does launch however it's really Dark as others have mentioned.

I'm hoping that there's something the Proton devs can do.

Edit* I did try with the hotfix for 1.0.1.5 but that didn't really change anything.
Attachments
Screenshot from 2022-03-11 10-32-39.png
Screenshot from 2022-03-11 10-32-39.png (379.16 KiB) Viewed 1768 times
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

I have had success getting the Matrix version to run under wine 5.4. No major tweaks needed just install dependencies.
It is still unplayable due to lag and darkness - however these issues do not seem to be isolated to running in linux.

Edit to add - the 1.0.1.6 hotfix has not significantly helped with the lag or darkness. Still tweaking wine 5.4 as this seems to be the most stable for me so far.
Scamiran
Posts: 4
Joined: Mon Apr 05, 2010 2:25 pm

Re: Wine/Linux Testing

Post by Scamiran »

There's a pretty easy fix to the darkness issue.

Use this as your start-up command line:
xgamma -gamma 1.5 && %command% && xgamma -gamma 1.0

For Steam, put it in your launch options.

This will change system-wide gamma to 1.5, run the game, and upon exit set it back to 1.0.

The galaxy map is still a little dark. Change your GraphicsSettings_Galaxy.xml as follows:
<ToneMapExposure>0.5</ToneMapExposure>
<ToneMapBrightness>0.2</ToneMapBrightness>
<ToneMapContrast>0.5</ToneMapContrast>

I don't have Windows, but based on the screenshots my game now has the correct brightness levels. Screenshots will still not work correctly as they are gamma adjusted.
info@bergmann.us.org
Posts: 1
Joined: Sat Mar 12, 2022 1:34 am

Re: Wine/Linux Testing

Post by info@bergmann.us.org »

DS2 works under crossover 21.1.0.
brucethemoose
Posts: 46
Joined: Fri Feb 18, 2022 6:14 pm

Re: Wine/Linux Testing

Post by brucethemoose »

On the darkness issue, here's a info nugget I posted in another thread:
brucethemoose wrote: Sat Mar 12, 2022 6:20 am
cblattmann wrote: Sat Mar 12, 2022 4:08 am Thank you for this information! It works a little bit but is still needs a bit of help. I am trying to understand these values. Is a 2.0 value the max or can you set the values even higher? Do you have the link to the conversation on Steam?

I have been playing around with the settings in those four xml files. it makes a huge difference. Still trying to understand the purpose of each file and the range of settings and what they are aimed at. Right now I am just guestimating.
Hey, I think I managed to replicate your issue in (regular) Windows 10:
Image

I ran distant worlds 2 with a game mod/injector called SpecialK, and I noticed this warning pop up:
Image

So I poked through the forums here and ran into this. Changing the "sRGB bypass" option let me replicate your issue:
Image

"Passthrough" in the sRGB bypass option looks right, while "strip" looks like your extra dark output.

So... it looks like parallels driver is somehow screwing up mapping to the sRGB color space? I'm in over my head here. You could try running DW2 through SpecialK like I do, but that is definitely not a officially supported way to run the game.


EDIT: There's some more documentation here: https://wiki.special-k.info/en/SwapChain
Special K handles sRGB <-> Linear gamma correction for games that request an sRGB SwapChain and would otherwise not be Flip Model compatible.
Burschi500
Posts: 8
Joined: Mon Jul 19, 2010 3:21 pm

Re: Wine/Linux Testing

Post by Burschi500 »

Scamiran wrote: Sat Mar 12, 2022 12:49 am Use this as your start-up command line:
xgamma -gamma 1.5 && %command% && xgamma -gamma 1.0
THANK YOU! I guess this fixes it pretty much. Its even "ok" to tabswitch outside the game and still be able to read some websites!!
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

Scamiran wrote: Sat Mar 12, 2022 12:49 am There's a pretty easy fix to the darkness issue.

Use this as your start-up command line:
xgamma -gamma 1.5 && %command% && xgamma -gamma 1.0
What a great idea.
I found that for some reason that doesn't work on my system, but it inspired me that this is the way forward so anyway, using xrandr works for me just run the commands before and after the game. Or for steam something like


xrandr --output eDP-1-1 --gamma 1.5:1.5:1.5 && %command% &&xrandr --output eDP-1-1 --gamma 1.0:1.0:1.0

just use xrandr to find out your display (mine here is eDP-1-1) and replace it with yours.


Thanks Scamiran, that pretty much fixes things, as far as the darkness goes :)
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

For those that want a simple solution outside steam, just discovered that DW2 Matrix version pretty much works with the Glorious Eggroll runner in lutris.

I used the 7.6 runner from here

https://github.com/gloriouseggroll/wine-ge-custom

with default runner settings and the above gamma commands this are looking pretty sweet.
:)
User avatar
fnix
Posts: 27
Joined: Thu Feb 17, 2022 6:10 pm
Location: Sweden

Re: Wine/Linux Testing

Post by fnix »

The Matrix version is not available for Steam orders I guess?
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

fnix wrote: Sat Mar 12, 2022 11:22 am The Matrix version is not available for Steam orders I guess?
Hmmm Probably not. I bought it on the Matrix site and then you also get a Steam key.
Scamiran
Posts: 4
Joined: Mon Apr 05, 2010 2:25 pm

Re: Wine/Linux Testing

Post by Scamiran »

Anyone have success with improving stability?

My game more or less looks normal, but when I tried to play last night I was getting crashes every 15-20 minutes or so.

Autosave frequency set to 1 minute, but still....
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

Scamiran wrote: Sat Mar 12, 2022 12:14 pm Anyone have success with improving stability?

My game more or less looks normal, but when I tried to play last night I was getting crashes every 15-20 minutes or so.

Autosave frequency set to 1 minute, but still....
I have the same experience with stability in Steam Proton (GE7.9), Lutris (GE7.6) and wine5.4. It is ok but there are crashes.
In my efforts to pin it down it seems mostly memory access stuff, but nothing solid to add yet.
Edit: Also - it is completely inconsistent. For example, I can load a save and it will instantly crash. Do exact same and load same save and it will run for ten minutes.

Edit I just had a play of over an hour in Steam Proton (GE7.9) with no crashes.
Last edited by deMangler on Sat Mar 12, 2022 8:40 pm, edited 3 times in total.
Rhygin00
Posts: 60
Joined: Tue Nov 04, 2014 4:19 pm

Re: Wine/Linux Testing

Post by Rhygin00 »

Anyone tried GE 7.9 yet? DW is supposed to be much more stable as per the Steam Thread.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

Rhygin00 wrote: Sat Mar 12, 2022 8:29 pm Anyone tried GE 7.9 yet? DW is supposed to be much more stable as per the Steam Thread.
I have been using GE 7.9 with DW2 on steam. It is pretty stable, there are crashes but maybe not more than in windows? And with the gamma adjustments mentioned further up this thread it is really playable.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

I was looking for a solution to my main remaining issue, which is the frequent freezes and mouse/input lockups, that could last for a few seconds. Pretty annoying.

Simply running the game with a nice value of 10 seems to help a lot, but maybe it's just me?

In steam it could be added to launch command like:

xrandr --output eDP-1-1 --gamma 1.5:1.5:1.5 && nice -n 10 %command% &&xrandr --output eDP-1-1 --gamma 1.0:1.0:1.0

A bit of an improvement to stability as well... I think... more testing needed.
Scamiran
Posts: 4
Joined: Mon Apr 05, 2010 2:25 pm

Re: Wine/Linux Testing

Post by Scamiran »

Rhygin00 wrote: Sat Mar 12, 2022 8:29 pm Anyone tried GE 7.9 yet? DW is supposed to be much more stable as per the Steam Thread.
I was running GE 7.9 previously, and it didn't seem more stable.

I'm doing a series of stability tests now; going to throw it into the mix.

EDIT: Not much success. Last 2 attempts was 10 minutes before crash to desktop, using GE-7.9
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

Steam Proton GE7.9
Launch options
xrandr --output eDP-1-1 --gamma 1.5:1.5:1.5 && nice -n 15 %command% &&xrandr --output eDP-1-1 --gamma 1.0:1.0:1.0

Where eDP-1-1 is my display.

I have had no crashes for a couple of hours now with the above mentioned setup.
Here is some HW info that might be relevant.
I am running DW2 on

i7-7700HQ CPU
GeForce GTX 1060
32 GB RAM


Driver Version: 4.6.0 NVIDIA 440.64
OpenGL Version: 4.6

Operating System Version:
Linux Mint 20 (64 bit)
Kernel Name: Linux
Kernel Version: 5.4.0-26-generic
X Server Vendor: The X.Org Foundation
X Server Release: 12013000
X Window Manager: Xfwm4

Edit to add - Just played for 4 hours today with no crashes. It occurs to me that in this play thorough I have no victory conditions and all events are disabled. Maybe unrelated but could be important. One thing is that the UI lockups seem to increase over time. The game is still running because when the UI un-freezes the time display jumps forward to catch up.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: Wine/Linux Testing

Post by deMangler »

Just a minor linux update that might be useful information for someone.
Been playing Update 1.0.1.9. Generally working well as far as stability goes, I think the UI lockups might be a lot worse though.
Tried using an external GPU to take the weight off my poor laptop fans. An RTX2060 in an Akitio Node works OK with DW2 once set up. All good.
Thanks for the shift-tilde thingy - very useful.

In general I may be having a better experience than a lot of windows users :shock:
Post Reply

Return to “Distant Worlds 2”