Jump to content

Change Version Client


Recommended Posts

I don't speak English.
Versiunea in romana:
 
I. Prima data schimbam portul de la autentificare
1. Intram in serverinfo.py si intrologin.py (root) si schimbam:
AUTH_PORT = 11000 schimbam cu:
AUTH_PORT = 11001
2. Intram in Config (serve/auth)
PORT: 11000 schimbam cu:
AUTH_PORT = 11001
!Am shimbat portul de logare, trebuie sa schimbam si versiunea de la client:

 
II. Schimbam versiunea de la client
1. Intram in config.cpp (/usr/sursa/Server/game/src)
Cautam: g_bCheckClientVersion
bool g_bCheckClientVersion = false; schimbam cu:
bool g_bCheckClientVersion = true;
Cautam: void CheckClientVersion()
g_bCheckClientVersion = false; schimbam cu:
g_bCheckClientVersion = true; 
2. Schimbam codul de la versiune:
Cautam: string g_stClientVersion
string g_stClientVersion = "1234567890"; schimbam cu codul nou
string g_stClientVersion = "0102030405";
3. Intram in PythonNetworkStreamPhaseGame.cpp (ClientSource\source\UserInterface\PythonNetworkStreamPhaseGame.cpp)
Cautam: strncpy(kVersionPacket.timestamp,
Arata: strncpy(kVersionPacket.timestamp, "1234567890", sizeof(kVersionPacket.timestamp)-1); schimbam cu:
strncpy(kVersionPacket.timestamp, "0102030405", sizeof(kVersionPacket.timestamp)-1);

III. Adaugam verificarea in fiecare config din toate cor-urile. Punem la final:
CheckClientVersion: 1 (o pentru dezactivare)
ClientVersion: 0102030405
 
I. We change the port from authentication
1. Go in serverinfo.py and intrologin.py (root), change:
AUTH_PORT = 11000 schimbam cu:
AUTH_PORT = 11001
2. Go in Config (serve/auth)
PORT: 11000 change with:
AUTH_PORT = 11001

II. We change the version to client
1. Go in config.cpp (/usr/sursa/Server/game/src)
Search: g_bCheckClientVersion
bool g_bCheckClientVersion = false; change:
bool g_bCheckClientVersion = true;
Search: void CheckClientVersion()
g_bCheckClientVersion = false; change:
g_bCheckClientVersion = true; 
2. Change code to version:
Search: string g_stClientVersion
string g_stClientVersion = "1234567890"; change
string g_stClientVersion = "0102030405";
3. Go in PythonNetworkStreamPhaseGame.cpp (ClientSource\source\UserInterface\PythonNetworkStreamPhaseGame.cpp)
Search: strncpy(kVersionPacket.timestamp,
Show: strncpy(kVersionPacket.timestamp, "1234567890", sizeof(kVersionPacket.timestamp)-1); change:
strncpy(kVersionPacket.timestamp, "0102030405", sizeof(kVersionPacket.timestamp)-1);

III. Add code in all config from all core. We add to the end:
CheckClientVersion: 1 (o from off)
ClientVersion: 0102030405
 
 
 
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.