avatar_EvanMaster

GameServer y CS no ejecuta Sources S6 Louis up15- Aprendiendo a Compilar

Iniciado por EvanMaster, May 16, 2023, 05:38 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

EvanMaster

Buenas tardes, estoy aprendiendo a compilar y Estoy teniendo problemas con los GameServer, Cs.
No se ejecutan.

Intente quitar las licencias de los sources.

*Segui estos pasos.

-----------------------------------------------------------------------------
STEP [1]- FIRST YOU NEED OPEN IN SOURCE [GAME SERVER] ----> THIS FILES
-----------------------------------------------------------------------------

- HackCheck.H
- HackCheck.CPP
- GameMain.CPP
- GameServer.CPP
- stdafx.H
- ServerDisplayer.CPP



-----------------------------------------------------------------------------
STEP [2] - REMENBER NEED SEE IF HAVE THIS LINE ON [ HackCheck.H ] --> [ void InitHackCheck(); ]
IF DON'T HAVE NEED ADD ONLY THIS LINE....
-----------------------------------------------------------------------------

void InitHackCheck();



-----------------------------------------------------------------------------
STEP [3] - ON [ HackCheck.CPP ] NEED CHANGE THIS LINE,
NEED JUST CHANGE THE NUMBER LIKE THE EXAMPLE DONW: -->
     [EXAMPLE]
if (PROTECT_STATE == 0)
-----------------------------------------------------------------------------

if (PROTECT_STATE == 0) // || GAMESERVER_UPDATE >= 801
EncDecKey1 = (BYTE)0xE2;
EncDecKey2 = (BYTE)0x76; // Default is 0x76
#else
EncDecKey1 = (BYTE)0xE2;
EncDecKey2 = (BYTE)0x77; // Default is 0x76
#endif



-----------------------------------------------------------------------------
STEP [4]- AND IN [ GameMain.CPP ] DOWN ON THIS [VOID] AFTER THE PROTECT_START, SEE THE EXAMPLE:
NEED SEE IF HAVE THIS LINE ON --> [ InitHackCheck(); ]
IF DON'T HAVE NEED ADD ONLY THIS.....
-----------------------------------------------------------------------------

void GameMainInit(HWND hwnd)

PROTECT_START

gObjInit();

InitHackCheck();



-----------------------------------------------------------------------------
STEP [5] - ON [ GameServer.CPP ] NEED CHANGE THIS LINE, SEE THE EXAMPLE:
-----------------------------------------------------------------------------

#if(PROTECT_STATE==1)

#if(GAMESERVER_UPDATE>=801)
//gProtect.StartAuth(AUTH_SERVER_TYPE_S8_GAME_SERVER); [ I ADD // TO REMOVE THE PROTECTION ON - S8 ]
#elif(GAMESERVER_UPDATE>=601)
//gProtect.StartAuth(AUTH_SERVER_TYPE_S6_GAME_SERVER); [ I ADD // TO REMOVE THE PROTECTION ON - S6 ]
#elif(GAMESERVER_UPDATE>=401)
gProtect.StartAuth(AUTH_SERVER_TYPE_S4_GAME_SERVER);
#else
gProtect.StartAuth(AUTH_SERVER_TYPE_S2_GAME_SERVER);
#endif



-----------------------------------------------------------------------------
STEP [6] - ON [ stdafx.H ] NEED CHANGE THIS LINE,
NEED JUST CHANGE THE NUMBER LIKE THE EXAMPLE DONW:
     [EXAMPLE]
--> #define PROTECT_STATE 1
--> #define ENCRYPT_STATE 1
--> #if(PROTECT_STATE==0)

-----------------------------------------------------------------------------

#ifndef PROTECT_STATE
#define PROTECT_STATE 1
#endif

#ifndef ENCRYPT_STATE
#define ENCRYPT_STATE 1
#endif

#if(PROTECT_STATE==0)
#define GAMESERVER_NAME "Free"
#else
#define GAMESERVER_NAME "Premium"
#endif



-----------------------------------------------------------------------------
STEP [7] - ON [ ServerDisplayer.CPP ] NEED CHANGE THIS LINE,
NEED JUST CHANGE THE NUMBER LIKE THE EXAMPLE DOWN:
-----------------------------------------------------------------------------

#if(PROTECT_STATE==1)








-----------------------------------------------------------------------------
STEP [8] FINAL - YOU NEED NOW OPEN IN SOURCE [MAIN] ----> THIS FILES
[ HackCheck.CPP ], AND JUST COMPARE THIS LINE DOWN WITH THE
[ HackCheck.CPP ] ON [GAME-SERVER SOURCE].
IF IS THE SAME IS OK , IF NOT REMAKE TO MAKE THE SAME :D
-----------------------------------------------------------------------------

#if(GAMESERVER_PREMIUM==1)
EncDecKey2 = (BYTE)0x77; //default 76
#else
EncDecKey2 = (BYTE)0x76; //default 76
#endif



-----------------------------------------------------------------------------























-----------------------------------------------------------------------------
THIS STEP IS IF DOWN WORK THE TUTORIAL UP :D

-----------------------------------------------------------------------------
STEP [X] - AFTER CHANGE THIS LINE'S ON [ HackCheck.CPP ] ON GAME-SERVER
TO REMOVE ERROR DISCONNECT....
-----------------------------------------------------------------------------

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

void InitHackCheck() // OK
{
VM_START

WORD EncDecKey = 0;

for (int n = 0; n < sizeof(gServerInfo.m_CustomerName); n++)
{
EncDecKey += (BYTE)(gServerInfo.m_CustomerName[n] ^ gServerInfo.m_ServerSerial[(n % sizeof(gServerInfo.m_ServerSerial))]);
}

#if (PROTECT_STATE == 0) // || GAMESERVER_UPDATE >= 801
EncDecKey1 = (BYTE)0xE2;
EncDecKey2 = (BYTE)0xFF; // Default is 0x76 [ ON THIS I MODIFIC THE 0x76 TO 0xFF ] BECAUSE THE PROBLEM DISCONNECT....
#else
EncDecKey1 = (BYTE)0xE2;
EncDecKey2 = (BYTE)0x77; // Default is 0x76
#endif

   //EncDecKey2 = gProtect.m_EncKeyNew; [ THIS NEED REMOVE - BECAUSE THIS I ADD THIS // ] BECAUSE THE PROBLEM DISCONNECT....

EncDecKey1 += LOBYTE(EncDecKey);
EncDecKey2 += HIBYTE(EncDecKey);

GetPrivateProfileString("MHPServerInfo", "CustomerName", "", MHPCustomerName, sizeof(MHPCustomerName), "..\\Data\\Hack\\MHPServer.ini");

MHPEncDecKey1 = GetPrivateProfileInt("MHPServerInfo", "EncDecKey1", 0, "..\\Data\\Hack\\MHPServer.ini");

MHPEncDecKey2 = GetPrivateProfileInt("MHPServerInfo", "EncDecKey2", 0, "..\\Data\\Hack\\MHPServer.ini");

if (MHPEncDecKey1 != 0 || MHPEncDecKey2 != 0)
{
WORD MHPEncDecKey = 0;

for (int n = 0; n < sizeof(MHPCustomerName); n++)
{
MHPEncDecKey += MHPCustomerName[n];
}

MHPEncDecKey1 += LOBYTE(MHPEncDecKey);
MHPEncDecKey2 += HIBYTE(MHPEncDecKey);
}

VM_END
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------

*Luego Compile y el VS2010 no arrojo ningun error al compilar.

*Despues remplace todos los ejecutables en los files Season6 ByLouis Up15.

*Prendi el StarUP y el GameServer y GameServer_Cs se cierran.



Que es lo que estaria haciendo mal? alguien me puede explicar porfavor.
  •  

Temas Similares (2)

313

Respuestas: 5
Vistas: 521

400

Respuestas: 1
Vistas: 556