diff --git a/assets/AuthTicket b/assets/AuthTicket deleted file mode 100644 index 971f2401..00000000 Binary files a/assets/AuthTicket and /dev/null differ diff --git a/assets/SiteConfig.xml b/assets/SiteConfig.xml index f6017cc0..640a90b0 100644 --- a/assets/SiteConfig.xml +++ b/assets/SiteConfig.xml @@ -1,8 +1,7 @@ - - - + + diff --git a/docs/Setup.md b/docs/Setup.md index 173e2cf0..56592441 100644 --- a/docs/Setup.md +++ b/docs/Setup.md @@ -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 `` 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.