Metin2 C ++ - Install an IP Proxy on your Game

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Blaze

Elite
Elite
VIP
Joined
Jan 28, 2019
Messages
507
Credits
635
With this tutorial you will be able to connect to your VPS / Nat server such as Google Cloud for example
Char.cpp
Search for
C++:
Expand Collapse Copy
p.lAddr    = lAddr;
Add below
C++:
Expand Collapse Copy
if (!g_stProxyIP.empty())
    p.lAddr = inet_addr(g_stProxyIP.c_str()
Config.cpp
Look for
C++:
Expand Collapse Copy
uint32_t    g_dwSkillBookNextReadMax = 43200;
Add bellow
C++:
Expand Collapse Copy
std::string    g_stProxyIP = "";
Search
C++:
Expand Collapse Copy
fprintf(stdout, "SKILLBOOK_NEXTREAD_MAX: %u\n", g_dwSkillBookNextReadMax);
Add bellow
C++:
Expand Collapse Copy
TOKEN("proxy_ip")
        {
            g_stProxyIP = value_string;
        }
Config.h
Search
C++:
Expand Collapse Copy
extern uint32_t    g_dwSkillBookNextReadMax;
Add bellow
C++:
Expand Collapse Copy
extern std::string    g_stProxyIP;
desc.cpp
Input_db.cpp
Search
C++:
Expand Collapse Copy
rTab.players[i].szName);
Add bellow
C++:
Expand Collapse Copy
if (!g_stProxyIP.empty())
                rTab.players[i].lAddr=inet_addr(g_stProxyIP.c_str());
Look for
C++:
Expand Collapse Copy
struct in_addr in;
Add bellow
C++:
Expand Collapse Copy
if (!g_stProxyIP.empty())
        rTab.players[i].lAddr=inet_addr(g_stProxyIP.c_str());
Search
C++:
Expand Collapse Copy
pack.player = pPacketDB->player;
Add bellow
C++:
Expand Collapse Copy
if (!g_stProxyIP.empty())
    pack.player.lAddr=inet_addr(g_stProxyIP.c_str());
To finish this you need to compile and replace the game and open the CONFIG files (Auth, Chann el (X) / Core (X) and Game99) and add:
C++:
Expand Collapse Copy
PROXY_IP: TON_IP
74bc1f213f508441c33c1668a4c602ec.png
 
work? I think, it's useful

#To finish this you need to compile and replace the game and open the CONFIG files (Auth, Chann el (X) / Core (X) and Game99) and add:
 
With this tutorial you will be able to connect to your VPS / Nat server such as Google Cloud for example
Char.cpp
Search for
C++:
Expand Collapse Copy
p.lAddr    = lAddr;
Add below
C++:
Expand Collapse Copy
if (!g_stProxyIP.empty())
    p.lAddr = inet_addr(g_stProxyIP.c_str()
Config.cpp
Look for
C++:
Expand Collapse Copy
uint32_t    g_dwSkillBookNextReadMax = 43200;
Add bellow
C++:
Expand Collapse Copy
std::string    g_stProxyIP = "";
Search
C++:
Expand Collapse Copy
fprintf(stdout, "SKILLBOOK_NEXTREAD_MAX: %u\n", g_dwSkillBookNextReadMax);
Add bellow
C++:
Expand Collapse Copy
TOKEN("proxy_ip")
        {
            g_stProxyIP = value_string;
        }
Config.h
Search
C++:
Expand Collapse Copy
extern uint32_t    g_dwSkillBookNextReadMax;
Add bellow
C++:
Expand Collapse Copy
extern std::string    g_stProxyIP;
desc.cpp
*** Hidden text: cannot be quoted. ***

Input_db.cpp
Search
C++:
Expand Collapse Copy
rTab.players[i].szName);
Add bellow
C++:
Expand Collapse Copy
if (!g_stProxyIP.empty())
                rTab.players[i].lAddr=inet_addr(g_stProxyIP.c_str());
Look for
C++:
Expand Collapse Copy
struct in_addr in;
Add bellow
C++:
Expand Collapse Copy
if (!g_stProxyIP.empty())
        rTab.players[i].lAddr=inet_addr(g_stProxyIP.c_str());
Search
C++:
Expand Collapse Copy
pack.player = pPacketDB->player;
Add bellow
C++:
Expand Collapse Copy
if (!g_stProxyIP.empty())
    pack.player.lAddr=inet_addr(g_stProxyIP.c_str());
To finish this you need to compile and replace the game and open the CONFIG files (Auth, Chann el (X) / Core (X) and Game99) and add:
C++:
Expand Collapse Copy
PROXY_IP: TON_IP
74bc1f213f508441c33c1668a4c602ec.png
good work bro
 
Back
Top