PDA

View Full Version : [TUTORIAL - Metin2] Setare nume client din sursa



k1dda
27-06-2019, 09:00 PM
## Intra in sursa client -> UserInterface -> PythonAplicationModule.cpp:

## Cauta functia:


CPythonApplication& rkApp=CPythonApplication::Instance();

if (!rkApp.Create(poSelf, szName, width, height, Windowed))


## Dupa ce o gasesti, inlocuieste toata functia (cele 2 linii de mai sus) cu asta:


CPythonApplication& rkApp=CPythonApplication::Instance();
#ifdef ENABLE_SERVERNAME_FROM_SOURCE
if (!rkApp.Create(poSelf, ENABLE_SERVERNAME, width, height, Windowed))
#else
if (!rkApp.Create(poSelf, szName, width, height, Windowed))
#endif

## Acum du-te la inceputul fisierului:

## Dupa:


#include "../EterLib/Camera.h"

## Adauga:


#define ENABLE_SERVERNAME_FROM_SOURCE
#define ENABLE_SERVERNAME "Aici pune numele care vrei sa apara in partea de sus a clientului"

## Salveaza si compileaza sursa, si launcherul compilat il pui in locul launcherului actual din folderul clientului.

~via Bughy~