Jump to content
Forgot your email address? ×
×
×
  • Create New...

Metin2 Serverfiles Windows + Client + Source


Recommended Posts

  • Premium

This tutorial is going to teach you how to compilerun and configure a server on Windows.

I needed something like this a few days ago and since it doesn't exist, I decided to make it
There is no addition or modification in the source or client (except for small bonuses).

 

0. Beginning

At the end of the topic there will be two links where you will need to download:

Client + Server + Source 

22140444EtEk9.png

 

MySQL

221404ylHz4se.png

 

The client is based on the

Hidden Content

    Give reaction to this post to see the hidden content.
, I just edited it to have the classic format.

Regardless the Server and Client source.

 

1. The files

We will need to download the following files:

 

2. Installing

The installation is easy enough for me to consider that I don't need to spend much time on this, however I hope this two pictures will facilitate (more) on what you need to do:

Visual Studio Community

2214222m7Ypro.png

 

252310GreenCheck.pngNote: You actually just need the MSVC v142, C++ CMake, C++ ATL, C++ MFC and C++/CLI for this to work

 

MySQL:

221443oxTfHOm.png

252730RedInfo.pngWarning: In this tutorial we're going to use Mysql Server 5.7.33 X64 but you can (must) upgrade it to 8.0

 

 2.1 Installing Server / Client / Database

Here you need to pay attention because there's a limitation:

252730RedInfo.pngWarningYou must unzip the file "dev" on C:\

If you don't want, follow the Mali61's topic and you need to create manually the symlinks for each core on the server.

221443WyA2gIx.png

This is how it should be.

 

Client:

221458bFzGfWH.png

There isn't much to say, in pack/ you already have root and locale_de unpacked but since this is going to be localhost only, you don't need to change nothing on the serverinfo.py

252310GreenCheck.pngBonus: I translated the client to English, just because

 

Database:

1) Windows Key + R and write services.msc

221532KUJa9tj.png

 

2) Search for MySQL57 (or the version you installed) and click on Stop

221532yrBV5Uz.png

Since Im portuguese, yeah

 

3) Go to directory C:\ProgramData\MySQL

221603C8f3FRA.png

 

4) In the folder MySQL Server 5.7 (or the version you installed) and in the folder Data, paste the files you previously downloaded and unziped from mysql_dev.rar

221603Fq0bWUj.png

 

5) On services.msc, start the MySQL process

221635PSkiGvf.png

Back it again with the portuguese

 

Server:

 221635CSbHUNr.png

2216357DEjN2J.png

These images are referenced in each core's CONFIG and conf.txt, respectively where the location is on directory C:\dev\2. Server.

 

252730RedInfo.pngWarning: Don't forget to change the MySQL's user password! You need to put the same password you had when installing the MySQL.

  3. Compile Server / Client Source

There is nothing introductory since it is something very simple that you will be able to.

Server:

It's quite simple, to build the server source, we just need to open the file dev_server.sln which is located in C:\dev\1. Svn\Server\build

221706uaqgrnO.png

You can build all at once or separately.

 

252310GreenCheck.pngBonus: I linked the files to go to the directory C:\dev\2. Server\share\ so you don't need to c&p multiple times.

 

Client:

Same as before, open the dev_solution.sln which is located in C:\dev\1. Svn\Client

221717hPUXBq3.png

 

252709OrangeWarning.png Since I have a good computer, I enabled the multi-processor compilation option. If your computer is very slow while you are compiling, I suggest you deactivate by going to Properties in all the builds.

221728rnATdeX.png

 

 

4. Starting the Server

On the main directory of the server (C:\dev\2. Server) you'll have 2 bat files:

  • start.bat* - As the name says, it will start the server
  • clear.bat - It will clear all the server's logs

* I forgot the make it dynamic so if you don't want to have on the C:\dev, you'll need to change the directory.

 

Execute start.bat and it will show up first the db.exe, then auth's game.exe and last channel1's game.exe

221759uFL6g7O.png

221759VxfIg9D.png

And there you have it, your server is now online!

 

5. Debug

You can debug by going to Debug -> Start New Instance

 

221814yttutrS.png

 

252310GreenCheck.pngBonus: I linked everything so you don't have to worry about anything

   

5. Credits

I like to say that I don't know anything about anything and as such, everything here has its credits.

@Mali61 - Client/Server compilable with VS2019 (Server & Client)

@Karbust - If it wasn't for him, I couldn't have done this

ThatGuyPT - The base was from his Windows Serverfiles

 

 

6. FAQ

Q: Why didn't you use xampp instead of MySQL?

A: At the moment I use MySQL a lot even outside of Metin2, so it makes more sense to me that it be this way.
However, it is exactly the same, especially on localhost.

 

Q: Can I migrate the source to FreeBSD?

A: Yes, you can! As long as you have cmake configured, you can distribute to FreeBSD and use it there.

 

Q: What is the id and password to enter the game?

(I put this question because I know there will be someone asking this)

A: You can create an account in the database, but you can use id: admin pw: 123

 

 

 

7. Links

Hidden Content

    Give reaction to this post to see the hidden content.
 - 

Hidden Content

    Give reaction to this post to see the hidden content.

Hidden Content

    Give reaction to this post to see the hidden content.

If you have any questions that I can answer, feel free to write a post here.

 

  • Metin2 Dev 39
  • Love 57
  • Love 8
  • Good 29
  • Lmao 1
  • Scream 2
  • Sad 1
  • Dislove 1
Link to comment
  • 4 weeks later...
mysql_real_connect: Access denied for user 'admin'@'localhost' (using password: YES)
AsyncSQL: closing mysql connection.
   failed, retrying in 5 seconds
   failed, retrying in 5 secondsSuccess COMMON
connecting to MySQL server (hotbackup)
CREATING DIRECT_SQL
AsyncSQL: locale euckr
mysql_real_connect: Access denied for user 'admin'@'localhost' (using password: YES)
AsyncSQL: closing mysql connection.

i dont know how i can edit this fixed!!!!!

 

but server source compile

https://gyazo.com/3696a37a2e360aa9569cbef6b44ff477

Edited by Bizzy
  • Metin2 Dev 6
  • Love 3
  • Love 2
  • Good 5
  • Confused 1
  • Sad 1
Link to comment
3 hours ago, Bizzy said:


mysql_real_connect: Access denied for user 'admin'@'localhost' (using password: YES)
AsyncSQL: closing mysql connection.
   failed, retrying in 5 seconds
   failed, retrying in 5 secondsSuccess COMMON
connecting to MySQL server (hotbackup)
CREATING DIRECT_SQL
AsyncSQL: locale euckr
mysql_real_connect: Access denied for user 'admin'@'localhost' (using password: YES)
AsyncSQL: closing mysql connection.

i dont know how i can edit this fixed!!!!!

 

but server source compile

https://gyazo.com/3696a37a2e360aa9569cbef6b44ff477

Bad username and password for mysql

Edited by Cunoo
  • Metin2 Dev 2
  • Love 1
  • Good 2
Link to comment
  • 2 weeks later...

I can't seem to figure out the mysql part, where do I change the root password? And like, how do I connect my server to the mysql? It keep saying access denied for user [email protected] (using Password:YES) and something about trying again in 5 seconds.

Link to comment
  • 1 month later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...

@ReFreshall defines are complete in locale_string.txt encoding is also good

it reads only "You have got %d yang" communicate, if you download all-in-one package you will get the same issue.

Link to comment
  • 1 month later...

How are we supposed to compile quests ? 😮 

nvm. starting to understand windows files, never used them before. how cringe xD you have no linkings like on freebsd ? 

Link to comment
  • Administrator
28 minutes ago, Kafa said:

How are we supposed to compile quests ? 😮 

nvm. starting to understand windows files, never used them before. how cringe xD you have no linkings like on freebsd ? 

 

Batch file (example: quest.bat)

@echo off

CD share\locale\france\quest\ && RD /S /Q object && TIMEOUT /NOBREAK /T 1 && CLS
for /F %%I IN (locale_list) DO (qc.exe %%I)

qc.exe in quest folder

I don't respond to requests for personal help (Unless it concerns Metin2 Dev)...
Please use the  Metin2 Dev Discord  or  Dedicated Forum  ...
Please use the  Disputes Forum  if you have a problem with a member...

213456Link-of-the-Wild.png

Link to comment
  • 2 weeks later...

 

 

The tutorial is perfectly written and understandable!
But i have one or kind of more errors they seem not to be fixable..

As soon as i want to compile the Server it throws hella many Errors. that the .h files cant be found.
Is there any solution for this?

I Installed all necessary sdk's but still encountering this problem

 

#Edit -  I fixed it, i didnt unpacked it on C at first. But i deleted all and unpacked rightaway in C

#Edit2 - it compiles but doesnt generate any .exe or something. any fix for that?
it also throws an error with CMakeList.txt

Edited by Kingston
  • Metin2 Dev 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 17

      Official Transmutation / Change Look

    2. 0

      Block riding on mount with wedding armor equipped

    3. 13

      Official Move Channel

    4. 3

      Anti Cheat

    5. 3

      Anti Cheat

    6. 0

      Looking for a team

    7. 3

      Anti Cheat

  • Recently Browsing

    • No registered users viewing this page.

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.