Newbie Spellweaver
- Joined
- Nov 5, 2009
- Messages
- 42
- Reaction score
- 152
Re: Source [MUEMU]
Hi,
Correction to avoid the client disconnection and keep running the anti-hack system
Change the ...\MHPServer\MHPServer.ini file
The MHPServer.ini file is used by the gameserver and by the hackserver, because of this, the best approach is keep the file in the Data\Hack folder.
Move the ...\MHPServer\MHPServer.ini file to the ..\Data\Hack folder and change the "..Package [SOURCE] MuEmu\MHP\HackServer" project (MHPServer)
File HackServer.cpp
File ServerInfo.cpp
Enable antihack in the client and server
Change in the ..\GameServer\DATA\GameServerInfo - Common.dat file
Change in the stdafx.h from the GameServer Project
Change in Main.cpp from the Main_EX803 project
To correctly generate the main.emu and ah.emu files
Change in the ...\ToolsX803\MAIN_INFO\MainInfo.ini
Change in the ...\ToolsX803\AH_INFO\ClientInfo.ini
Steps to generate the main.emu and ah.emu files
Note 1: Tested only Ex803
Note 2: Keep the port numbers of the gameservers between 55901 and 55950. Or change this on projects (Main, MHPDetect and MHPClient)
Note 3: The code base is the first post
Hi,
Correction to avoid the client disconnection and keep running the anti-hack system
Change the ...\MHPServer\MHPServer.ini file
PHP:
CustomerName = muemu
CustomerHardwareId = 0
ClientVersion = 1.05.07
ClientSerial = TbYehR2hFUPBKgZj
MHPServerPort = 55999
MaxIpConnection = 10
DetectionLockTime = 300
EncDecKey1 = 4 // 1 to 255
EncDecKey2 = 6 // 1 to 255
EncDecSetNumber = 0
InternalVersion = 0
ReconnectSwitch = 1
MemoryGuardSwitch = 1
MemoryGuardNumber = 3
MacroProtectSwitch = 1
MacroProtectNumber = 6
MemoryAddress1 = 0x0118DB1A
MemoryAddress2 = 0x0118EF48
MemoryAddress3 = 0x0118EF50
MemoryAddress4 = 0x08B159F8
MemoryAddress5 = 0x08499DCC
MemoryAddress6 = 0x011C3E7C
MemoryAddress7 = 0xC4B01E2F
MemoryAddress8 = 0xC4B00209
The MHPServer.ini file is used by the gameserver and by the hackserver, because of this, the best approach is keep the file in the Data\Hack folder.
Move the ...\MHPServer\MHPServer.ini file to the ..\Data\Hack folder and change the "..Package [SOURCE] MuEmu\MHP\HackServer" project (MHPServer)
File HackServer.cpp
PHP:
...
if(InitInstance(hInstance,nCmdShow) == 0)
{
return 0;
}
gServerInfo.ReadStartupInfo("MHPServerInfo","..\\Data\\Hack\\MHPServer.ini");
#if(PROTECT_STATE == 1)
gAuthenticate.Check();
#endif
...
File ServerInfo.cpp
PHP:
...
void CServerInfo::ReadConfig() // OK
{
this->ReadConfig("MHPServerInfo","..\\Data\\Hack\\MHPServer.ini");
LogAdd(LOG_BLUE,"[ServerInfo] Config loaded successfully");
}
...
Enable antihack in the client and server
Change in the ..\GameServer\DATA\GameServerInfo - Common.dat file
PHP:
[GameServerInfo]
;==================================================
; Server Settings
;==================================================
ServerName = muemu
ServerCode = 1
ServerLock = 0
ServerPort = 55901
ServerVersion = 1.05.07
ServerSerial = TbYehR2hFUPBKgZj
ServerMaxUserNumber = 100
CustomerName = muemu
CustomerHardwareId = 0
Change in the stdafx.h from the GameServer Project
PHP:
...
#ifndef ENCRYPT_STATE
#define ENCRYPT_STATE 1
#endif
...
Change in Main.cpp from the Main_EX803 project
PHP:
...
gCustomWingEffect.Load(gProtect.m_MainInfo.CustomWingEffectInfo);
InitCommon();
InitHackCheck();
InitItem();
InitJewel();
...
To correctly generate the main.emu and ah.emu files
Change in the ...\ToolsX803\MAIN_INFO\MainInfo.ini
PHP:
[MainInfo]
LauncherType = 0
CustomerName = muemu
IpAddress = your IP address or domaian // 15 bytes only
IpAddressPort = 44405
ClientVersion = 1.05.07
ClientSerial = TbYehR2hFUPBKgZj
WindowName = MU
ScreenShotPath = ScreenShots\Screen(%02d_%02d-%02d-%02d)-%04d.jpg
ClientName = main.exe
PluginName = MHPClient.dll
CameraName = Client.dll
Change in the ...\ToolsX803\AH_INFO\ClientInfo.ini
PHP:
[ClientInfo]
CustomerName = muemu
IpAddress = your IP address or domain // 15 bytes only
ServerPort = 55999
ServerName = muemu
ClientName = main.exe
PluginName = Client.dll
VerifyName = MHPVerify.dll
Steps to generate the main.emu and ah.emu files
- Copy main.exe, Main.dll, Client.dll and MHPClient.dll to the ...\ToolsX803\MAIN_INFO\ folder
- Run GetMainInfo.exe (Compiled from "...\Package [SOURCE] MuEmu\GetMainInfo")
- Copy main.emu (Generated by step 2), Main.dll, MHPClient.dll, MHPVerify.dll and Client.dll to the ...ToolsX803\AH_INFO\ folder
- Run GetClientInfo.exe (Compiled from "..\Package [SOURCE] MuEmu\MHP\GetClientInfo")
- Copy main.emu, ah.emu, Main.dll, MHPClient.dll, MHPVerify.dll and Client.dll to the client root folder
Note 1: Tested only Ex803
Note 2: Keep the port numbers of the gameservers between 55901 and 55950. Or change this on projects (Main, MHPDetect and MHPClient)
Note 3: The code base is the first post
Last edited: