WTP on Steam Proton?

XB-7

Chieftain
Joined
Mar 24, 2021
Messages
2
The original R&R mod appears to be working on Steam Proton. I was excited to see this mod as an update.

The game crashes on startup with the WTP mod. I've tried several compiled version of WTP, no joy. Anyone running this on Linux?
 
I am mostly successful and even have the feeling that performance is better when running under GNU/Linux. What I used is the following protonfix (16810.py) in <steamdir>/compatibilitytools.d/Proton-<version>/protonfixes/gamefixes
Code:
""" Civilization IV: Colonization
"""

from protonfixes import util

def main():

    util.protontricks('oleaut32')
    util.protontricks('msxml3')
    util.protontricks('corefonts')

Didn't try with the latest version so you might need to check if you need additional protontricks. I think the most recent version of Proton I played in was one of the last 5.x. (EDIT: 7.0rc is working nicely, currently I'm on the GloriousEggroll branch)

I have a problem with wine crashes in the later game though. I usually play on a gigantic map, and sometimes the memory use (apparently after some accumulation of memory leaks) gets close to 4GB which is the limit for a 32bit executable. This doesn't usually happen in windows.
With the most recent WTP version, I actually most of the time get an error during (auto)saving when memory use gets close to 4G and only rarely a crash - I have to restart the game though and lose the last turn because the last savegame is corrupted, but I can still continue.

// EDIT 2022-01-08: Added "corefonts" protontrick to the script, improves the look of fonts :); removed unnecessary Python warning disable
 
Last edited:
Installed protonfix and protontricks. Your suggested script worked great. Thank you!!
 
Note for linux users (sorry for crossposting):
The 2.9 release zip includes two different assets directories, one "Assets" (note the uppercase A) with all the game data, one "assets" (lowercase) with the CvGameCoreDLL.dll. If unpacking on a case sensitive file system (like on my btrfs linux system ...), the mod won't work without manually moving CvGameCoreDLL.dll to the correct "Assets" directory and deleting the other.
 
Note for linux users (sorry for crossposting):
The 2.9 release zip includes two different assets directories, one "Assets" (note the uppercase A) with all the game data, one "assets" (lowercase) with the CvGameCoreDLL.dll. If unpacking on a case sensitive file system (like on my btrfs linux system ...), the mod won't work without manually moving CvGameCoreDLL.dll to the correct "Assets" directory and deleting the other.
This is for 2.9 only as the case issue is fixed in the next release.
 
I'd like to mention that latest GE-Proton (https://github.com/GloriousEggroll/proton-ge-custom/releases/) has the necessary fix (since Proton-7.3-GE-1) included, so for Linux Steam users it is now just download GE-Proton -> select Proton version in Steam -> run the game :)
Just curious, was that with the WtP-3.0.1 version?

I have tried to run the latest WtP 3.0.1 using wine 7.5, but it always fail in early initialization. Also just tried the latest wine 7.8, same problem. The older WtP 2.8 works perfectly fine on either wine version.
 
Just curious, was that with the WtP-3.0.1 version?
I was able to run the game with WtP 3.0.1 or later (in-development) versions using Proton for a long time without any troubles now. Did not actually try since my last message in March though. Also I did not try upstream wine (as I was happy with Proton ...)
Do you see any specific error messages? A stack trace maybe?
 
I just get an "unhandled page fault" during initializing. The crash occurs at what I think is the end of the "init XML" phase or just before the "init engine" phase.

Not sure how useful the error output really is? It's not like a segmentation fault in Linux, it's more of an internal page fault in wine. Now I'm not that much of a wine debugger guru, but I can post the output I get if you like.

Meanwhile I also just tried the even newer Wine 7.9, but still the same problem.
 
Did you use the winefixes/protonfixes mentioned above? latest Proton-GE has them included, but with other versions you would have to install them manually.
Also you might have a version mismatch between the game assets and the DLL file, I remember getting those kind of crashes when I forgot to copy the new DLL to the right folder.
 
I have the msxml3 (think it's a requirement of the base vanilla game), however I did not specifically install the oleaut32. So I installed the oleaut32, but still the same.
Then I did the same in a smaller test Wine prefix and then I got it to work okay. Seem like something inside my default Wine prefix causes problems for WtP3.0.1 (only). Just to verify I set-up a complete new Wine prefix and that worked perfect as well so seem like the cause of the problems have been found.
Noticed that the 1 plot and 2 plot DLL's were gone so just left the complete mod directory unchanged. The WtP3.0.1 seem to have all in place, DLL included.
Many thanks for the help.
 
Back
Top Bottom