3.1 KiB
Initial Setup
First you need to get the 1.52.0.1700 client. This is the final released version of Marvel Heroes, If you still have the game in your Steam library, you can download it from there.
Note: it is also possible to download other versions of the client from Steam. See Client Versions for details.
After getting the client, you need to set up a web server to serve SiteConfig.xml and redirect login requests. For this guide we're going to use Apache.
-
Download Apache 2.4.58 Win64 here. You can use any other version of Apache you prefer, as long as it has OpenSSL support enabled.
-
Extract the
Apache24folder in the archive to the root directory on any drive (e.g.C:\Apache24). -
Open
Apache24\conf\httpd.confwith any text editor and uncomment (by removing the # symbol) the following six lines:LoadModule rewrite_module modules/mod_rewrite.so,LoadModule proxy_module modules/mod_proxy.so,LoadModule proxy_http_module modules/mod_proxy_http.so,Include conf/extra/httpd-ssl.confLoadModule ssl_module modules/mod_ssl.so, andLoadModule socache_shmcb_module modules/mod_socache_shmcb.so. Make sure you remove only the # symbol and not the entire line! -
Open
Apache24\conf\extra\httpd-ssl.confwith any text editor, find the<VirtualHost _default_:443>section, and add the following two lines to it:RewriteEngine onandRewriteRule ^/AuthServer(.*) http://%{HTTP_HOST}:8080$1 [P]. -
Put server.crt and server.crt provided in this repository in
Apache24\conf. Alternatively, you can generate your own OpenSSL certificate. -
Put SiteConfig.xml provided in this repository in
Apache24\htdocs. -
Open
ClientConfig.xmllocated inMarvel Heroes\Data\Configswith any text editor and replace theSiteConfigLocationvalue withlocalhost/SiteConfig.xml. The line should look like this:<str name="SiteConfigLocation" value="localhost/SiteConfig.xml" />. -
Compile MHServerEmu with Visual Studio or any other tool you prefer. You can download Visual Studio Community here.
-
Copy
Calligraphy.sipandmu_cdata.siplocated inMarvel Heroes\Data\GametoMHServerEmu\Assets\GPAK. Make sure to copy these files to where your compiled emulator is (e.g.src\MHServerEmu\bin\x64\Debug\net6.0\Assets\GPAK), and not to one of the source directories.
Now you can actually start everything and get in-game.
-
Start Apache by running
Apache24\bin\httpd.exe. -
Start MHServerEmu.
-
Launch the game.
-
Log in with any email and password.
If everything works correctly, the server should display client connection information.
Note: you can launch the game without Steam by running MarvelHeroesOmega.exe with the following arguments: -robocopy -nosteam.
You can customize how the emulator functions by editing the Config.ini file. See Advanced Setup for more advanced setup topics.