Add a workaround for client startup crashes

This commit is contained in:
Crypto137 2023-08-07 17:17:46 +03:00
parent ae4449cb66
commit 6f27425e3a
3 changed files with 14 additions and 10 deletions

Binary file not shown.

View file

@ -1,8 +1,7 @@
<config>
<str name="AuthServerAddress" value="localhost" />
<str name="AuthServerUrl" value="/AuthTicket" />
<!-- <str name="AuthServerAddress" value="auth.marvelheroes.com" /> -->
<!-- <str name="AuthServerUrl" value="/AuthServer/Login/IndexPB" /> -->
<str name="AuthServerAddress" value="localhost" />
<str name="AuthServerUrl" value="/AuthServer/Login/IndexPB" />
<str name="AuthServerTicketUrl" value="" />
<str name="AuthServerPort" value="443" />
<str name="CrashReportHost" value="hq-gar-dev01" />

View file

@ -10,23 +10,28 @@ After getting the client, you need to set up a web server to serve SiteConfig.xm
2. Extract the ```Apache24``` folder in the archive to the root directory on any drive (e.g. ```C:\Apache24```).
3. Open ```Apache24\conf\extra\httpd-ssl.conf``` with any text editor and replace ```ServerName www.example.com:443``` with ```ServerName localhost:443```.
3. Open `Apache24\conf\httpd.conf` with any text editor and uncomment (by removing #) the following line: `LoadModule rewrite_module modules/mod_rewrite.so`.
4. Put [SiteConfig.xml](https://github.com/Crypto137/MHServerEmu/blob/master/assets/SiteConfig.xml) and [AuthTicket](https://github.com/Crypto137/MHServerEmu/blob/master/assets/AuthTicket) provided in this repository in ```Apache24\htdocs```.
4. Open ```Apache24\conf\extra\httpd-ahssl.conf``` with any text editor, scroll to the bottom and add the following lines to the `<VirtualHost _default_:443>` section:
`RewriteEngine on
RewriteRule ^/AuthServer(.*) http://%{HTTP_HOST}:8080$1`
5. Open ```ClientConfig.xml``` located in ```Marvel Heroes\Data\Configs``` with any text editor and replace the ```SiteConfigLocation``` value with ```localhost/SiteConfig.xml```
5. Put [SiteConfig.xml](https://github.com/Crypto137/MHServerEmu/blob/master/assets/SiteConfig.xml) provided in this repository in ```Apache24\htdocs```.
6. Compile MHServerEmu with Visual Studio or any other tool you prefer.
6. Open ```ClientConfig.xml``` located in ```Marvel Heroes\Data\Configs``` with any text editor and replace the ```SiteConfigLocation``` value with ```localhost/SiteConfig.xml```
7. Copy `Calligraphy.sip` and `mu_cdata.sip` located in `Marvel Heroes\Data\Game` to `MHServerEmu\Assets\GPAK`. Make sure to copy these files to where your compiled emulator is (e.g. `src\MHServerEmu\bin\Debug\net6.0\Assets\GPAK`), and not to one of the source directories.
7. Compile MHServerEmu with Visual Studio or any other tool you prefer.
8. Copy `Calligraphy.sip` and `mu_cdata.sip` located in `Marvel Heroes\Data\Game` to `MHServerEmu\Assets\GPAK`. Make sure to copy these files to where your compiled emulator is (e.g. `src\MHServerEmu\bin\Debug\net6.0\Assets\GPAK`), and not to one of the source directories.
Now you can actually start everything and get in-game.
1. Start Apache by running ```Apache24\bin\httpd.exe```.
2. Start MHServerEmu.
2. Launch the game.
3. Launch the game.
3. Start MHServerEmu.
*Note: the game sometimes crashes if you launch it after MHServerEmu.*
4. Log in with any email and password.