Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 11:00

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

Advertisement



[SAMMELTHREAD] Metin2 Source Compile Tips/Tuts

Discussion on [SAMMELTHREAD] Metin2 Source Compile Tips/Tuts within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old 01/05/2014, 00:25   #31
 
elite*gold: 0
Join Date: Dec 2013
Posts: 5
Received Thanks: 2
what? you mean i have to use vc90 project file?
or you mean i have to switch the platform?

vs10
givesource is offline  
Thanks
1 User
Old 01/05/2014, 01:25   #32
 
elite*gold: 0
Join Date: Sep 2012
Posts: 66
Received Thanks: 25
[QUOTE=5203307a;26623579]Use v90 toolset for compile all project. Will compile without problem


clean solution and compile in "Release" on v90 toolset.[/QUOTE

Change Toolset from vs100 to vs90 # Done
Set to Release # Done
Clean the Solution # Done
Compile # Done

And still 25 Linker Error´s left...
Sujino is offline  
Old 01/05/2014, 01:41   #33
 
elite*gold: 0
Join Date: Dec 2010
Posts: 29
Received Thanks: 3
[quote=Sujino;26624973]
Quote:
Originally Posted by 5203307a View Post
Use v90 toolset for compile all project. Will compile without problem


clean solution and compile in "Release" on v90 toolset.[/QUOTE

Change Toolset from vs100 to vs90 # Done
Set to Release # Done
Clean the Solution # Done
Compile # Done

And still 25 Linker Error´s left...
Use the python22 from WorldEditor
WildGamers-Metin2 is offline  
Old 01/05/2014, 02:01   #34
 
TheTutMan's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 567
Received Thanks: 162
Has anyone compile the World Editor succesfully?
TheTutMan is offline  
Old 01/05/2014, 02:03   #35
 
elite*gold: 0
Join Date: Sep 2012
Posts: 66
Received Thanks: 25
[quote=WildGamers-Metin2;26625118]
Quote:
Originally Posted by Sujino View Post
Use the python22 from WorldEditor
Still 25 Linker error´s left

Sujino is offline  
Old 01/05/2014, 05:00   #36
 
elite*gold: 0
Join Date: Oct 2010
Posts: 115
Received Thanks: 14
Anybody have working normal root like arkosia2 but for python22? I can help someone who have roots for compile game on any system or binary on windows.
5203307a is offline  
Old 01/05/2014, 05:23   #37
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Two little tips:
  • Code:
    Character set 'euckr' is not a compiled character set and is not specified in the '/usr/local/share/mysql/charsets/Index.xml' file
    mysql_real_connect: Can't initialize character set euckr (path: /usr/local/share/mysql/charsets/)
       failed, retrying in 5 seconds
    Compile mysql-client51 (libs) with WITH_XCHARSET=all option
  • Code:
    root@jailbait64:/usr/game/db # ./db
    Real Server
    Log OffAsyncSQL: connected to localhost (reconnect 1)
    Success PLAYER
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    Success ACCOUNT
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    Success COMMON
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    Segmentation fault (core dumped)
    
    root@jailbait64:/usr/game/db # gdb
    (gdb) set gnutarget i386-marcel-freebsd
    (gdb) file db
    Reading symbols from db...done.
    (gdb) core db.core
    Core was generated by `db'.
    Program terminated with signal 11, Segmentation fault.
    Reading symbols from /usr/lib32/libstdc++.so.6...done.
    Loaded symbols for /usr/lib32/libstdc++.so.6
    Reading symbols from /usr/lib32/libm.so.5...done.
    Loaded symbols for /usr/lib32/libm.so.5
    Reading symbols from /usr/lib32/libgcc_s.so.1...done.
    Loaded symbols for /usr/lib32/libgcc_s.so.1
    Reading symbols from /usr/lib32/libthr.so.3...done.
    Loaded symbols for /usr/lib32/libthr.so.3
    Reading symbols from /usr/lib32/libc.so.7...done.
    Loaded symbols for /usr/lib32/libc.so.7
    Reading symbols from /usr/lib32/libsupc++.so.1...done.
    Loaded symbols for /usr/lib32/libsupc++.so.1
    Reading symbols from /libexec/ld-elf.so.1...done.
    Loaded symbols for /libexec/ld-elf.so.1
    #0  0x28260d52 in std::string::assign () from /usr/lib32/libstdc++.so.6
    [New Thread 2880433428805800 (LWP 101557/dbmio3)]
    [New Thread 2831ff4028805500 (LWP 101556/dbmio3)]
    [New Thread 2880583428805200 (LWP 101552/dbmio3)]
    [New Thread 2880553428804f00 (LWP 101551/dbmio3)]
    [New Thread 2880523428804c00 (LWP 101547/dbmio3)]
    [New Thread 28804f3428804900 (LWP 101546/dbmio3)]
    [New Thread 28804c3428804300 (LWP 101382/dbmio3)]
    Cannot find new threads: generic error
    (gdb) bt
    #0  0x28260d52 in std::string::assign () from /usr/lib32/libstdc++.so.6
    #1  0x080dba9f in CAsyncSQL2::SetLocale ()
    #2  0x080511e2 in CDBManager::SetLocale (this=0xffffcab8,
        szLocale=0x2884d84c "latin1") at DBManager.cpp:172
    #3  0x0805db82 in CClientManager::InitializeLocalization (this=0xffffc2cc)
        at ClientManager.cpp:3705
    #4  0x0805e87d in CClientManager::Initialize (this=0xffffc2cc)
        at ClientManager.cpp:109
    #5  0x0804ff5e in Start () at Main.cpp:386
    #6  0x080501c5 in main () at Main.cpp:88
    (gdb) quit
    root@jailbait64:/usr/game/db #
    You're using `dev|novaline/Srcs/Server/db/src/Main.cpp`.
    In those branches Main.cpp is bugged because g_bHotBackup disable HotBackup.
    `mainline/Srcs/Server/db/src/Main.cpp` works very well.
lollo_9_1 is offline  
Old 01/05/2014, 05:33   #38
 
Jоe's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 749
Received Thanks: 188
Quote:
Originally Posted by lollo_9_1 View Post
Two little tips:
  • Code:
    Character set 'euckr' is not a compiled character set and is not specified in the '/usr/local/share/mysql/charsets/Index.xml' file
    mysql_real_connect: Can't initialize character set euckr (path: /usr/local/share/mysql/charsets/)
       failed, retrying in 5 seconds
    Compile mysql-client51 (libs) with WITH_XCHARSET=all option
  • Code:
    root@jailbait64:/usr/game/db # ./db
    Real Server
    Log OffAsyncSQL: connected to localhost (reconnect 1)
    Success PLAYER
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    Success ACCOUNT
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    Success COMMON
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    AsyncSQL: connected to localhost (reconnect 1)
    Segmentation fault (core dumped)
    
    root@jailbait64:/usr/game/db # gdb
    (gdb) set gnutarget i386-marcel-freebsd
    (gdb) file db
    Reading symbols from db...done.
    (gdb) core db.core
    Core was generated by `db'.
    Program terminated with signal 11, Segmentation fault.
    Reading symbols from /usr/lib32/libstdc++.so.6...done.
    Loaded symbols for /usr/lib32/libstdc++.so.6
    Reading symbols from /usr/lib32/libm.so.5...done.
    Loaded symbols for /usr/lib32/libm.so.5
    Reading symbols from /usr/lib32/libgcc_s.so.1...done.
    Loaded symbols for /usr/lib32/libgcc_s.so.1
    Reading symbols from /usr/lib32/libthr.so.3...done.
    Loaded symbols for /usr/lib32/libthr.so.3
    Reading symbols from /usr/lib32/libc.so.7...done.
    Loaded symbols for /usr/lib32/libc.so.7
    Reading symbols from /usr/lib32/libsupc++.so.1...done.
    Loaded symbols for /usr/lib32/libsupc++.so.1
    Reading symbols from /libexec/ld-elf.so.1...done.
    Loaded symbols for /libexec/ld-elf.so.1
    #0  0x28260d52 in std::string::assign () from /usr/lib32/libstdc++.so.6
    [New Thread 2880433428805800 (LWP 101557/dbmio3)]
    [New Thread 2831ff4028805500 (LWP 101556/dbmio3)]
    [New Thread 2880583428805200 (LWP 101552/dbmio3)]
    [New Thread 2880553428804f00 (LWP 101551/dbmio3)]
    [New Thread 2880523428804c00 (LWP 101547/dbmio3)]
    [New Thread 28804f3428804900 (LWP 101546/dbmio3)]
    [New Thread 28804c3428804300 (LWP 101382/dbmio3)]
    Cannot find new threads: generic error
    (gdb) bt
    #0  0x28260d52 in std::string::assign () from /usr/lib32/libstdc++.so.6
    #1  0x080dba9f in CAsyncSQL2::SetLocale ()
    #2  0x080511e2 in CDBManager::SetLocale (this=0xffffcab8,
        szLocale=0x2884d84c "latin1") at DBManager.cpp:172
    #3  0x0805db82 in CClientManager::InitializeLocalization (this=0xffffc2cc)
        at ClientManager.cpp:3705
    #4  0x0805e87d in CClientManager::Initialize (this=0xffffc2cc)
        at ClientManager.cpp:109
    #5  0x0804ff5e in Start () at Main.cpp:386
    #6  0x080501c5 in main () at Main.cpp:88
    (gdb) quit
    root@jailbait64:/usr/game/db #
    You're using `dev|novaline/Srcs/Server/db/src/Main.cpp`.
    In those branches Main.cpp is bugged because g_bHotBackup disable HotBackup.
    `mainline/Srcs/Server/db/src/Main.cpp` works very well.
Considering nova branch, you should also replace mainline/Srcs/Server/db/src/DBManager.cpp as well as *.h for proper dbcache functionality/work.
Jоe is offline  
Old 01/05/2014, 08:28   #39
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Quote:
Originally Posted by Jоe View Post
Considering nova branch, you should also replace mainline/Srcs/Server/db/src/DBManager.cpp as well as *.h for proper dbcache functionality/work.
Yeah, only nova branch. (it's a simple CAsyncSQL to CAsyncSQL2)

How to compile some tools: (release mode with vs2008sp1)
Code:
libserverkey (from Srcs\Server\m2server.2008.sln)
//base64_ssl.cpp
change
#include <openssl/sha.h>
#include <openssl/hmac.h>
#include <openssl/evp.h>
#include <openssl/bio.h>
#include <openssl/buffer.h>
#include <base64_ssl.h>
to
#include "openssl/sha.h"
#include "openssl/hmac.h"
#include "openssl/evp.h"
#include "openssl/bio.h"
#include "openssl/buffer.h"
#include "base64_ssl.h"

//RSACrypto.cpp
change
#include <openssl/aes.h>
#include <openssl/rsa.h>
#include <openssl/rand.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/engine.h>
#include <openssl/sha.h>
#include <openssl/pem.h>
to
#include "openssl/aes.h"
#include "openssl/rsa.h"
#include "openssl/rand.h"
#include "openssl/crypto.h"
#include "openssl/err.h"
#include "openssl/engine.h"
#include "openssl/sha.h"
#include "openssl/pem.h"
libserverkey -> Properties -> Configuration Properties:
@C/C++ -> General -> Additional Include Directories: ../../Extern/openssl/include;
(quick workaround regarding global includes on vs2008)

Code:
ServerKeyGenerator (from Srcs\Tools\ServerKeyGenerator\ServerKeyGenerator.sln)
ServerKeyGenerator -> Properties -> Configuration Properties:
@C/C++ -> Precompiled Headers -> Create/Use Precompiled Header: Not Using Precompiled Headers
@C/C++ -> General -> Additional Include Directories: ../../Server/libserverkey
@Linker -> General -> Additional Library Directories: ../../Extern/OpenSSL/lib
@Linker -> Input -> Additional Dependencies: ..\..\Server\Release\libserverkey.lib
Code:
DumpProto (from Srcs\Tools\DumpProto\Importer.sln)
@already time to build
Code:
Metin2MSAMaker (from Srcs\Tools\Metin2MSAMaker\Metin2MSAMaker.sln)
@already time to build
lollo_9_1 is offline  
Thanks
2 Users
Old 01/05/2014, 10:59   #40
 
-TÜRK-'s Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 434


After lot of tryings I did it finally. And also I found one tip.

One tip from me:

FreeBSD needs minimum 2gb Swap space for compiling. Add swap space for linking processes! If you do not do that you will can not compile game.

-TÜRK- is offline  
Old 01/05/2014, 11:11   #41
 
Jоe's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 749
Received Thanks: 188
Quote:
Originally Posted by -TÜRK- View Post


After lot of tryings I did it finally. And also I found one tip.

One tip from me:

FreeBSD needs minimum 2gb Swap space for compiling. Add swap space for linking processes! If you do not do that you will can not compile game.

I compile it local without any swap space
Jоe is offline  
Old 01/05/2014, 11:13   #42
 
elite*gold: 0
Join Date: May 2011
Posts: 45
Received Thanks: 0
Quote:
/usr/bin/ld: cannot find -lgtest
Im installed mnc, tiff, cms and now im still getting that error. I dont know what package should i install, but if you know please tell me the name.
Pawelmol is offline  
Old 01/05/2014, 11:19   #43
 
-TÜRK-'s Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 328
Received Thanks: 434
Quote:
Originally Posted by Jоe View Post
I compile it local without any swap space
If you give 2gb ram you do not need to do that

I gave 512mb ram always..
-TÜRK- is offline  
Old 01/05/2014, 11:22   #44
 
[uLow]NTX?!'s Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 1,266
Received Thanks: 627
Whats about gtest?

use google.
[uLow]NTX?! is offline  
Old 01/05/2014, 11:25   #45
 
elite*gold: 0
Join Date: May 2011
Posts: 45
Received Thanks: 0
Cant find anything about it



#edit:
Maybe it is it:
Pawelmol is offline  
Reply


Similar Threads Similar Threads
Reverse Crypt Systems [Tips/Hints/Tuts needed]]
03/01/2012 - CO2 Private Server - 8 Replies
Hello PVPers, So the Title says it all, Since i came here and i am trying to learn how to be a good Coder and Co2 P.Server Specially , i guess i dd well so far but i'v noticed that all my prev experience ddnt came near Encrypting/Decrypting systems , i also aware of that most of good coders around here are very busy coding stuff and so ,i was away for sometime and about 2 months ago i came back from AD (work trip) and a friend asked for an up to date P.Server , actually i miss that fun so...



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


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.