Register for your free account! | Forgot your password?

Go Back   elitepvpers > Metin2 > Metin2 PServer - Discussions / Questions > Metin2 PServer Guides & Strategies
You last visited: Today at 11:55

  • Please register to post and access all features, it's quick, easy and FREE!


[How2] Advancing server analyse with CONFIG file. (With C++ Codes)

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 433
Exclamation [How2] Advancing server analyse with CONFIG file. (With C++ Codes)

Hi guys. Today i teach you how to advancing analyse server with CONFIG option.

First, go CONFIG file and open.

Then, go ending of file and add this function:

TEST_SERVER: 1

If you have this function, change it. (Ex: #TEST_SERVER: 1 to TEST_SERVER: 1)

And then, reboot your server and start again. (start.sh).

Everything is okay.!

Finally > Open Filezilla > Go this directory /usr/game/channel1 > You will see DEV_LOG.log file in there.

Download this file and enjoy. You can see admin page passwords, combo speeds, login ip's, and more (or errors)...
And, dont forget syserr and syslog files...

Here is the C++ code blocks:

PHP Code:
int dev_log(int a1int a2int a3signed int a4, const char *format, ...)
{
  
int result;
  
int v6;
  
char v7[4]; 
  
char v8;
  
int v9
  
size_t v10;
  
struct timeval tv
  
struct tm tp
  
char v13
  
char s
  
va_list va

  
va_start(vaformat);
  
result test_server;
  if ( 
test_server )
  {
    if ( 
a4 s_log_mask )
    {
      
result open("DEV_LOG.log"521438);
      
v6 result;
      if ( 
result >= )
      {
        
gettimeofday(&tv0);
        
localtime_r(&tv.tv_sec, &tp);
        *(&
v13
        
sprintf(
            &
s,
            
"%02d%02d %02d:%02d.%02d.%06d",
            
tp.tm_mon 1,
            
tp.tm_mday,
            
tp.tm_hour,
            
tp.tm_min,
            
tp.tm_sec,
            
tv.tv_usec)) = 0;
        *(
_DWORD *)v7 "LIB2";
        if ( 
a4 == 512 )
          goto 
LABEL_14;
        if ( 
a4 512 )
        {
          *(
_DWORD *)v7 "DEB3";
          if ( 
a4 == 16384 )
            goto 
LABEL_14;
          if ( 
a4 16384 )
          {
            *(
_DWORD *)v7 "USR1";
            if ( 
a4 == 65536 )
              goto 
LABEL_14;
            if ( 
a4 65536 )
            {
              *(
_DWORD *)v7 "USR2";
              if ( 
a4 == 131072 )
                goto 
LABEL_14;
              *(
_DWORD *)v7 "USR3";
              
v8 a4 == 262144;
            }
            else
            {
              *(
_DWORD *)v7 "USR0";
              
v8 a4 == 32768;
            }
          }
          else
          {
            *(
_DWORD *)v7 "DEB0";
            if ( 
a4 == 2048 )
              goto 
LABEL_14;
            if ( 
a4 2048 )
            {
              *(
_DWORD *)v7 "DEB1";
              if ( 
a4 == 4096 )
                goto 
LABEL_14;
              *(
_DWORD *)v7 "DEB2";
              
v8 a4 == 8192;
            }
            else
            {
              *(
_DWORD *)v7 "LIB3";
              
v8 a4 == 1024;
            }
          }
        }
        else
        {
          *(
_DWORD *)v7 136405609;
          if ( 
a4 == 16 )
            goto 
LABEL_14;
          if ( 
a4 <= 16 )
          {
            *(
_DWORD *)v7 "ERR";
            if ( 
a4 != )
            {
              if ( 
a4 )
              {
                *(
_DWORD *)v7 "CRIT";
                
v8 a4 == 8;
              }
              else
              {
                *(
_DWORD *)v7 "WARN";
                
v8 a4 == 2;
              }
              goto 
LABEL_12;
            }
LABEL_14:
            
v9 sprintf(
                   
dev_log_char__const__int_char__const__int_char_________buf,
                   
"%s %-4s (%-15s,%4d,%-24s) ",
                   &
s,
                   *(
_DWORD *)v7,
                   
a1,
                   
a2,
                   
a3);
            
v10 vsprintf(&dev_log_char__const__int_char__const__int_char_________buf[v9], formatva) + v9;
            
dev_log_char__const__int_char__const__int_char_________buf[v10++] = 10;
            
dev_log_char__const__int_char__const__int_char_________buf[v10] = 0;
            
write(v6dev_log_char__const__int_char__const__int_char_________bufv10);
            return 
close(v6);
          }
          *(
_DWORD *)v7 "MAX";
          if ( 
a4 == 64 )
            goto 
LABEL_14;
          if ( 
a4 64 )
          {
            *(
_DWORD *)v7 "LIB0";
            if ( 
a4 == 128 )
              goto 
LABEL_14;
            *(
_DWORD *)v7 "LIB1";
            
v8 a4 == 256;
          }
          else
          {
            *(
_DWORD *)v7 "MIN";
            
v8 a4 == 32;
          }
        }
LABEL_12:
        if ( !
v8 )
          *(
_DWORD *)v7 "UNKNOWN";
        goto 
LABEL_14;
      }
    }
  }
  return 
result;
}

int __cdecl dev_log_add_level(int a1)
{
  
int result;

  
result a1 s_log_mask;
  
s_log_mask |= a1;
  return 
result;
}

int __cdecl dev_log_del_level(int a1)
{
  
int result;

  
result = ~a1;
  
s_log_mask &= ~a1;
  return 
result;
}

int __cdecl dev_log_set_level(int a1)
{
  
int result;

  
result a1;
  
s_log_mask a1;
  return 
result;
}

void __cdecl sub_816E630(int a1int a2)
{
  if ( 
a2 == 65535 )
  {
    if ( 
a1 == )
      
std__ios_base__Init__Init(&byte_8325BE0);
    if ( !
a1 )
      
std__ios_base__Init___Init(&byte_8325BE0a2);
  }
}

std__ios_base__Init__Init(_DWORD);
std__ios_base__Init___Init(_DWORD arg0_DWORD arg4);

void __cdecl _global_constructor_keyed_to_dev_log()
{
  
sub_816E630(165535);
}

void __cdecl _global_destructor_keyed_to_dev_log()
{
  
sub_816E630(065535);

Quote:
Originally Posted by Computerfreek View Post
But remember: This mode is not make for publical use.
With it enabled, every Player can use every GM-Code.



-TÜRK- is offline  
Thanks
4 Users
Old 05/26/2012, 17:13   #2
 
elite*gold: 20
Join Date: Jun 2010
Posts: 2,234
Received Thanks: 955
Thank you :>.

+ go turkey @ the EuroVision Song Contest :>


-Tuni is offline  
Thanks
1 User
Old 05/26/2012, 17:15   #3
 
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 433
Quote:
Originally Posted by Tunii View Post
Thank you :>.

+ go turkey @ the EuroVision Song Contest :>
Hehe! Thanks a lot ...
-TÜRK- is offline  
Old 05/26/2012, 20:51   #4
 
elite*gold: 0
Join Date: Feb 2008
Posts: 2,754
Received Thanks: 1,748
But remember: This mode is not made for publical use.
With it enabled, every Player can use every GM-Code.


Computerfreek is offline  
Thanks
1 User
Old 05/26/2012, 20:54   #5
 
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 433
Quote:
Originally Posted by Computerfreek View Post
But remember: This mode is not make for publical use.
With it enabled, every Player can use every GM-Code.
Ah forgot adding this. And of course.
-TÜRK- is offline  
Old 05/26/2012, 22:55   #6
 
elite*gold: 87
Join Date: Mar 2012
Posts: 1,542
Received Thanks: 600
Thanks!
.Yunu is offline  
Thanks
1 User
Old 05/27/2012, 12:45   #7
 
elite*gold: 0
Join Date: Aug 2010
Posts: 115
Received Thanks: 50
nerden buldun bunu amk
JoinClup is offline  
Old 05/27/2012, 12:57   #8
 
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 433
Quote:
Originally Posted by JoinClup View Post
nerden buldun bunu amk
Beni Turkmmo'daki bebelerle karıştırma ...
-TÜRK- is offline  
Old 05/29/2012, 21:28   #9
 
elite*gold: 0
Join Date: Aug 2010
Posts: 115
Received Thanks: 50
o değilde bana c++ sourcesi açmak ve exeyi editledikten sonra kapatmak lazım mümkün değil di mi ?


JoinClup is offline  
Reply


Similar Threads
Needs config.pk file to run a new server !!
12/11/2011 - Kal Online - 6 Replies
Hello guys, Some friends gonna start a new server but we missing da Config file , we cant actually unpack it so we looking for cool/new Config file if some one have. with my all affections Strawberry
FreeBSD - ProFTPD Config File
11/15/2011 - Unix/Linux - 6 Replies
Huhu, Mal eine Frage, weis einer von euch wo die Config von proftpd liegt? auf Debian ahbe ich se imemr gefunden, aber auf FreeBSD nicht :O Natürlich aheb ich gegoogelt, jedoch ist sie unter keiner der Pfade dort. Mfg .NoThx
config file
06/07/2007 - SRO Main - Discussions / Questions - 0 Replies
I was wondering how can i make my own config file for skills so the skills wont be unknown any more
i need isrobot config file
05/18/2007 - SRO Main - Discussions / Questions - 9 Replies
help pls..i need a 16lvl or higher lvl blader config file...can anyone upload for me ? if be 16 lvl it be perfectly <hr>Append on May 18 2007, 07:53<hr> friends i need config file..pls help...if i can work it i ll post it to site...i need 16 lvl or higher blader or sworder config file
config.pk file
09/05/2006 - Kal Online - 1 Replies
also wie der name schon sagt hab ich da ne pk file, kenn mich damit net aus, denke aba die geht pm an mich



All times are GMT +1. The time now is 11:55.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.