UnofficialCrusaderPatch2 icon indicating copy to clipboard operation
UnofficialCrusaderPatch2 copied to clipboard

unable to use patch.exe using wine or using lutris

Open Rishikesh01 opened this issue 4 years ago • 14 comments

when running the patch setup it causes wine to hang after clicking on ok.pluse if you try to change language it crashes in wine/lutris

Rishikesh01 avatar Jul 17 '21 12:07 Rishikesh01

I have wine 2.0 and it somewhat works with some visual bugs. But that's more of a wine problem than a problem with the patcher.

LeSpec avatar Jul 17 '21 12:07 LeSpec

wine 2.0 aint that really old ver

Rishikesh01 avatar Jul 17 '21 13:07 Rishikesh01

What version of wine are you using to play multiplayer of shc?

LeSpec avatar Jul 17 '21 14:07 LeSpec

some guy from the UCP discord send me some Linux instructions some time ago:

Installation hints for linux

In order to run the patcher, you need wine and winetricks.

After installing wine and winetricks, run the following in your terminal:

winetricks -q dotnet40

The GUI does not recognize hidden directories when you browse for files. If you did a standard installation of SHC with Steam, SHC will most likely be located in ~/.steam/. You need to reinstall SHC in a visible steam directory. To do so, create a new empty empty directory:

cd
mkdir mysteam

Now, when you reinstall the game, when asked whether to install SHC in the standard directory or in a custom directory, choose custom directory and select the SHC installation located in mysteam.

J-T-de avatar Jul 17 '21 16:07 J-T-de

And which version did you use for that? When i tried to run the latest version mp didn't work, so eventually i found 2.0 which worked for me.

LeSpec avatar Jul 17 '21 16:07 LeSpec

Not me, the unknown person from the UCP. I don't know or remember if it was mentioned which version was used, sorry :/

J-T-de avatar Jul 17 '21 16:07 J-T-de

oh thanks now it works.

some guy from the UCP discord send me some Linux instructions some time ago:

Installation hints for linux

In order to run the patcher, you need wine and winetricks.

After installing wine and winetricks, run the following in your terminal:

winetricks -q dotnet40

The GUI does not recognize hidden directories when you browse for files. If you did a standard installation of SHC with Steam, SHC will most likely be located in ~/.steam/. You need to reinstall SHC in a visible steam directory. To do so, create a new empty empty directory:

cd mkdir mysteam

Now, when you reinstall the game, when asked whether to install SHC in the standard directory or in a custom directory, choose custom directory and select the SHC installation located in mysteam.

dont you think it would be better to put it in readme

Rishikesh01 avatar Jul 17 '21 17:07 Rishikesh01

And which version did you use for that? When i tried to run the latest version mp didn't work, so eventually i found 2.0 which worked for me.

oh i dont play mp as of now.(i always lose the match XD )

Rishikesh01 avatar Jul 18 '21 03:07 Rishikesh01

will most likely be located in ~/.steam/. You need to reinstall SHC in a visible steam directory. To do so, create a new empty empty directory:

cd mkdir mysteam

Now, when you reinstall the game, when asked whether to install SHC in the standard directory or in a custom directory, choose custom directory and select the SHC installation located in mysteam.

Your instructions worked for me, thanks! If you want to avoid the reinstall, you can instead just create a symbolic link to the SHC installation in the visible folder:

cd mysteam ln -s ~/.steam/path/to/shc

karpfen avatar Aug 12 '21 13:08 karpfen

I ran into the same problem as you guys so I decided to add the suggestions into the README

@J-T-de, I pretty much just copied your response, I hope that that's ok?

glad-dev avatar Oct 05 '21 16:10 glad-dev

Wouldn't it make sense to just rewrite the installer in something less dependent on a huge extra runtime, like C? I know this is more tedious, but it's a bit of a shame how much easier the entire game itself is to run in wine than just the installer for this patch.

ell1e avatar Oct 17 '21 09:10 ell1e

If you want to do so we would welcome the assistance. The current languages are used because they are what the developers are most familiar and comfortable with. We have no problem if anyone wanted to remake it in a language that is more useful to them. Also nobody really wants to redo years worth of development just to change the language, I doubt it is quite as simple as you imply.

GRhin avatar Oct 17 '21 09:10 GRhin

If you want to do so we would welcome the assistance. C is used because that's what the developers are most familiar and comfortable with. We have no problem if anyone wanted to remake it in a language that is more useful to them.

Is there some documentation on how the installer works. For example what files are copied where and how they affect the game?

glad-dev avatar Oct 17 '21 09:10 glad-dev

Files are not copied, except for aiv, but iv always considered that separate to the ucp, just added for convenience. The patch directly modifies the exe file in binary or assembly. The exe is not fully documented. If you want to remake the patcher you would need to write a program that searches the exe for a certain array of bytes, then modifies that section of the exe. The arrays of bytes we use are stored as codeblocks. The current setup is described better at https://unofficialcrusaderpatch.github.io/UnofficialCrusaderPatch/contributing.html

GRhin avatar Oct 17 '21 09:10 GRhin