PARTNER save/load handling OTOMO_AIROU save/load handling Basic groundwork for HUNTER_NAVI save/load handling Basic groundwork for PLATE_BOX save/load handling Basic groundwork for PLATE_DATA save/load handling Basic groundwork for PLATE_MYSET save/load handling Basic groundwork for DECO_MYSET save/load handling Basic groundwork for RENGOKU_DATA save/load handling Handling for MSG_MHF_GET_RENGOKU_BINARY, enables road. Place rengoku_data.bin from either /dat/ in install or from a packet capture in the /bin/ folder for this Handling for MSG_MHF_UPDATE_CAFEPOINT allowing access to guildcard Handling for MSG_MHF_GET_PAPER_DATA which fixes the issue of all save functionality immediately breaking after loading into town proper Handling for MSG_MHF_ENUMERATE_SHOP enabling access to all shops Handling for MSG_MHF_GET_TENROUAIRAI enabling access to duremudira and janky tower Handling for MSG_MHF_GET_GACHA_POINT, should be added to database as it's functionally a persistent save that's reduced when MSG_MHF_USE_GACHA_POINT is triggered Handling for MSG_MHF_GET_TREND_WEAPON, stops smith breaking when you're high enough rank for it to pull recommendations Devmode config option for using a fixed stage ID to allow entry into blacksmith and other areas Delivered quest file will automatically be replaced if you have a quest_override.bin in the bin folder, keep in mind this will break badly depending on quest counter data for the quest to be replaced
Erupe
WARNING
This project is in its infancy and has no reliable active developer, no documentation, and no support.
This project has been solely developed in my spare time for the educational experience of making a server emulator, which I haven't done before. Expectations regarding functionally and code quality should be set accordingly.
General info
Currently allows a JP MHF client (with GameGuard removed) to:
- Login and register an account (registration is automatic if account doesn't exist)
- Create a character
- Get ingame to the main city
- See other players walk around
- Do quests* (Single player only. Only quests shipped with the game are on the counter. Requires binary quest files not in the repo)
- Use (local) chat*
* = Very limited or buggy.
Installation
Server
-
Clone the repo with
git clone https://github.com/Andoryuuta/Erupe.git -
Install PostgreSQL
-
Launch psql shell,
CREATE DATABASE erupe;. -
Setup database with golang-migrate:
Windows:
> go get -tags 'postgres' -u github.com/golang-migrate/migrate/v4/cmd/migrate/ > set POSTGRESQL_URL=postgres://postgres:password@localhost:5432/erupe?sslmode=disable > cd erupe > migrate -database %POSTGRESQL_URL% -path migrations upLinux:
> go get -tags 'postgres' -u github.com/golang-migrate/migrate/v4/cmd/migrate/ > export POSTGRESQL_URL=postgres://postgres:password@localhost:5432/erupe?sslmode=disable > cd erupe > migrate -database $POSTGRESQL_URL -path migrations up(Replacing
postgres:passwordwith your postgres username and password) -
Edit the config.json
Namely:
- Update the database username and password
- Update the
host_ipandipfields (there are multiple) to your external IP if you are hosting for multiple clients.
-
Place quest/scenario binaries.
The quest and scenario binary files should be placed in
bin/quests/andbin/scenariosrespectively.
Launcher
Erupe ships with a rudimentary custom launcher, so you don't need to obtain the original TW/JP files to simply get ingame. However, it does still support using the original files if you choose to. To set this up, place a copy of the original launcher html/js/css in ./www/tw/, and /www/jp/ for the TW and JP files respectively.
Then, modify the the /launcher/js/launcher.js file as such:
- Find the call to
startUpdateProcess();in a case statement and replace it withfinishUpdateProcess();. (This disables the file check and updating) - (JP ONLY): replace all uses of "https://" with "http://" in the file.
Finally, edit the config.json and set UseOriginalLauncherFiles to true under the launcher settings.
Usage
Note: If you are switching to/from the custom launcher html, you will have to clear your IE cache @ C:\Users\<user>\AppData\Local\Microsoft\Windows\INetCache.
Server
cd Erupe
go run .
Client
Add to hosts:
127.0.0.1 mhfg.capcom.com.tw
127.0.0.1 mhf-n.capcom.com.tw
127.0.0.1 cog-members.mhf-z.jp
127.0.0.1 www.capcom-onlinegames.jp
127.0.0.1 srv-mhf.capcom-networks.jp
Run mhf.exe normally (with locale emulator or appropriate timezone).