/MHFConnector

A small "Monster Hunter: Frontier" connection/multi-client utility

Primary LanguageC#MIT LicenseMIT

MHFConnector

MHFConnector is a (really) small little utility to change the MHF hosts in your hosts file to easily connect to a different MHF server, as well as allowing multiple clients to run.

Requires a modified client with gameguard removed to work.

screenshot

Installation

MHFConnector assumes you have all the registry keys from a normal installation of JP version of the game client. If not, open MHFConnector.reg and replace C:\\YOUR\\MHF\\PATH\\mhf.exe with your path to the .exe, then run the .reg file to create the keys.

About

Prebuilt versions are available on the releases page.

Internals:

This is basically just two existing libraries cobbled together:

  • PSHostsFile for modifying the hosts file without overriding it.
  • EasyHook for hooking CreateMutexA and OpenMutexA for multi-client purposes. (Almost copied directly from the example code)

In specific, all this does is add the specified IP to the hosts file:

E.g.

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

And essentially makes CreateMutexA|OpenMutexA (mutexName) calls into CreateMutexA|OpenMutexA (mutexName+processID) calls, breaking the multi-client dectection mechanism.