UnofficialCrusaderPatch / UnofficialCrusaderPatch2

Unofficial balancing patch installer for Stronghold Crusader 1
MIT License
430 stars 59 forks source link

unable to use patch.exe using wine or using lutris #868

Open Rishikesh01 opened 3 years ago

Rishikesh01 commented 3 years ago

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

LeSpec commented 3 years ago

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.

Rishikesh01 commented 3 years ago

wine 2.0 aint that really old ver

LeSpec commented 3 years ago

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

J-T-de commented 3 years ago

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.

LeSpec commented 3 years ago

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.

J-T-de commented 3 years ago

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

Rishikesh01 commented 3 years ago

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 commented 3 years ago

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 )

karpfen commented 3 years ago

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

glad-dev commented 3 years ago

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?

ell1e commented 2 years ago

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.

GRhin commented 2 years ago

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.

glad-dev commented 2 years ago

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?

GRhin commented 2 years ago

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