MPPatch icon indicating copy to clipboard operation
MPPatch copied to clipboard

Patch Windows version on Linux

Open NepJr opened this issue 2 years ago • 4 comments

The native Linux version of Civ 5 has issues for me so I play the game via proton but I can't use the patcher to patch the windows version of the game and it will patch the native linux version of Civ 5 but as stated it doesn't work on my machine

NepJr avatar Jul 29 '22 21:07 NepJr

That is normal behaviour. What happens with Proton is that it makes a Wine environment for each game which is seperate from the linux version. If you want to patch the proton version, you have to download the exe and launch it in that environment with Protontricks for example. You can follow the first part of a guide I made for the vox populi mod.

TeaDrinkingProgrammer avatar Jul 31 '22 22:07 TeaDrinkingProgrammer

When I next get a chance to work on this, I might look into supporting Windows version on Linux. This is a particular use case I haven't thought of before. It should very much be possible to support.

Lymia avatar Jul 31 '22 23:07 Lymia

When I next get a chance to work on this, I might look into supporting Windows version on Linux. This is a particular use case I haven't thought of before. It should very much be possible to support.

Some background info: the reason for using the windows version, is that it runs better and more reliably since the linux port is quite old and has not been updated enough since. Put next to that that the windows version runs perfectly with proton and many people are recommending players to run the game through proton.

TeaDrinkingProgrammer avatar Aug 01 '22 12:08 TeaDrinkingProgrammer

Supporting this would be very cool. Ive been playing from my Steam Deck and I use the win version as it runs better. I was able to apply the jar to the linux version but it doesn't get past the mods screen before crashing. Also want to say thanks for the patch, been using it for years!

ncanavan avatar Aug 29 '22 02:08 ncanavan

So, now I've run into this problem myself: you can't open the exe in Proton because proton does not have Java and it is nearly impossible to install java on proton

TeaDrinkingProgrammer avatar Oct 22 '22 19:10 TeaDrinkingProgrammer

don't use Proton to patch the game just install Java in regular wine and then use regular wine to patch the game

NepJr avatar Oct 23 '22 17:10 NepJr

don't use Proton to patch the game just install Java in regular wine and then use regular wine to patch the game

I have tried to install java in the wine prefix that proton was running in but that didn't work and I have read online that installing Java in Wine is quite tricky. Could you explain how you succeeded? Did you use Lutris, bottles etc. and which installer did you use?

TeaDrinkingProgrammer avatar Oct 29 '22 09:10 TeaDrinkingProgrammer

I'm pretty sure I ran the JDK installer in wine. No wine bottles, no lutris, just regular wine

NepJr avatar Nov 03 '22 01:11 NepJr

double checked, JDK 8u251 installed with no issues. Wine staging 7.19

NepJr avatar Nov 03 '22 02:11 NepJr

I'll likely have a chance to work on this within the next week or two.

Lymia avatar Nov 10 '22 03:11 Lymia

I'll likely have a chance to work on this within the next week or two.

Can provide testing or remote desktop control, if you need. Also, is it possible to adapt for native Linux executable?

resistancelion avatar Apr 28 '23 08:04 resistancelion

Running mppatch-0.1.3.exe with protontricks and selecting Civ V does nothing... running it directly through wine doesn't help because it crashes with the following message:

================================================================================
MPPatch version 0.1.3
Revision 8adb8b73, built on May 8, 2021 by jenkins@himawari

Build ID   : 3e5748f5-a000-46d0-87d3-cd86ca811320
Build Date : 2021-05-08T12:40:07Z
Revision   : 8adb8b735e884f26ae8e750339bbf213f8b556a4
Tree Status: <clean>
================================================================================

[2023-05-18T17:10:17Z/ INFO] Changing patch package...
Exception in thread "main" java.lang.NoSuchMethodError: Non-existent method WindowsRegOpenKey in java.util.prefs.WindowsPreferences was accessed.
        at moe.lymia.mppatch.util.win32.DynamicReflectiveProxy.applyDynamic(DynamicReflectiveProxy.scala:100)
        at moe.lymia.mppatch.util.win32.WindowsRegistry$.moe$lymia$mppatch$util$win32$WindowsRegistry$$withKey(WindowsRegistry.scala:37)
        at moe.lymia.mppatch.util.win32.WindowsRegistry$RegistryStringKey$.readKey(WindowsRegistry.scala:53)
        at moe.lymia.mppatch.util.win32.WindowsRegistry$Hive.readKey(WindowsRegistry.scala:72)
        at moe.lymia.mppatch.util.win32.WindowsRegistry$Hive.apply(WindowsRegistry.scala:73)
        at moe.lymia.mppatch.core.Win32Platform$.defaultSystemPaths(platform.scala:75)
        at moe.lymia.mppatch.ui.MainFrame.pathFromRegistry(MainFrame.scala:91)
        at moe.lymia.mppatch.ui.MainFrame.<init>(MainFrame.scala:102)
        at moe.lymia.mppatch.ui.InstallerMain.main(Installer.scala:77)
        at moe.lymia.mppatch.ui.Installer$.main(Installer.scala:89)
        at moe.lymia.mppatch.ui.Installer.main(Installer.scala)

Nocty1501 avatar May 18 '23 17:05 Nocty1501