Aller au contenu

Nouveau membre ?! Pense à te présenter pour accéder au contenu du forum !

New member ?! Introduce yourself to get access to the forum !

Reaper

 tutorial Set up your client for the first time.

Messages recommandés

 

Required Level  : Beginner

Estimated Time : Between 5 & 10 minutes

 

Hello everyone,

 

The configuration of your client is a crucial step to the creation of a private server Metin2, it should be known for example that we do not yet have solutions to run the 2013+ files under no-ip and Hamachi publicly. (with players)

 

About: You will need to bring of Notepadd++, and Eternexus (Files 2013-). or EterManager (Files 2013+).

 

Notepad++ : https://notepad-plus-plus.org/fr/

EterManager : Download

Eternexus : Download

 

I°/Configure your client

To get started please depack your root file located in your client's pack folder.

After that, open the serverinfo.py file with Notepadd ++ and let's analyze the lines a bit.

import app

app.ServerName = None

STATE_NONE = '...'
		
STATE_DICT = {
	0 : '....',
	1 : 'NORM',
	2 : 'BUSY',
	3 : 'FULL'	}

SERVER1_CHANNEL_DICT = {
	1:{'key':11,'name':'CH1   ','ip':'YOUR-IP','tcp_port':13001,'udp_port':13001,'state':STATE_NONE,},
	2:{'key':12,'name':'CH2   ','ip':'YOUR-IP','tcp_port':62210,'udp_port':62210,'state':STATE_NONE,},
	4:{'key':14,'name':'CH3   ','ip':'YOUR-IP','tcp_port':62310,'udp_port':62310,'state':STATE_NONE,},
}
REGION_NAME_DICT = {
	0 : 'TAIWAN',
}

REGION_AUTH_SERVER_DICT = {
	0 : {
		1 : { 'ip':'YOUR-IP', 'port':11002, }, 
		
		}	
}

REGION_DICT = {
	0 : {
		1 : { 'name' : 'SERVERNAME', 'channel' : SERVER1_CHANNEL_DICT, },
		},
}

MARKADDR_DICT = {
	10 : { 'ip' : 'YOUR-IP', 'tcp_port' : 13001, 'mark' : '10.tga', 'symbol_path' : '10', },
	}

TESTADDR = { 'ip' : 'YOUR-IP', 'tcp_port' : 50000, 'udp_port' : 50000, }

STATE_NONE = The status of your Server when it is closed (Default ... which you can change to Closed)

STATE_DICT = The different status of your server writes ( ... = Reboot, NORM = Open, BUSY = BUSY, Full = FULL)

 

Let's go to the most important, the lines below. First of all did not put the same figure for two CH.

 

CH1,CH2 = The names of the channels that you can modify (Example: Channel, Channel, World, Dimension etc ...)

YOUR-IP = This is important because it's the first thing to change!

  • Local: You will need to set your IP address from 192.168, (it is the IP that you return the console when you run the ifconfig command).
  • Hamachi: For you and only you (admin) you have to put your ip hamachi ending with .100 (Example your ip is 23.65.124.27 you will have to put 23.65.124.100) If you have players (2013- files) put your normal ip hamachi (using the example before 23.65.124.27)
  • NoIP: For you and for you alone (admin), you must place your ip router (192.168.X.X) and for your players, you must put the no-ip domain which provides you no-ip.org. (Example: exemplemt2.no-ip.org)
  • Dedicated: Just put the IP that gives you your host, whether it's for you or your players.

 

tcp_port & udp_port = This must correspond to the port used by the channel (take the port of core2 if you are under 2013+) the port is available in the CONFIG files of your channel

HOSTNAME: channel1_core2
CHANNEL: 1
PORT: 13001
P2P_PORT: 14001
DB_PORT: 15000
DB_ADDR: localhost
MAP_ALLOW: 21 22 23 24 25 26

Go down a little further, you will find YOUR-IP replace them as explained above.

Also check the auth port at this code:

REGION_AUTH_SERVER_DICT = {
	0 : {
		1 : { 'ip':'YOUR-IP', 'port':11002, }, 
		
		}

Check if the port is the same as the one declared in the CONFIG file of your auth.

HOSTNAME: auth
CHANNEL: 1
PORT: 11002
P2P_PORT: 12000
DB_PORT: 15000

So, if you go down, you will find YOUR-IP replace again depending on your type of server!

At this code, you can add the name of your server:

REGION_DICT = {
	0 : {
		1 : { 'name' : 'SERVERNAME', 'channel' : SERVER1_CHANNEL_DICT, },
		},

Once this done all your serverinfo is configured! In this case save your work and repack it!

 

End of the tutorial!

 

If you have any problem with this topic, I invite you to create a help request in the support section.

This tutorial is based on that of Calypso with some additions

Partager ce message


Lien à poster
Partager sur d’autres sites

Tip :

You can replace all :

'YOUR-IP'

With :

IP

And add at the top of the file :

IP = "192.168.0.0"

With this you will only have to change it once

Partager ce message


Lien à poster
Partager sur d’autres sites

×

Information importante

By using this site, you agree to our Conditions d’utilisation.