|
You last visited: Today at 18:02
Advertisement
clientside item_proto question/problem
Discussion on clientside item_proto question/problem within the Metin2 Private Server forum part of the Metin2 category.
10/18/2010, 09:58
|
#1
|
elite*gold: 0
Join Date: Jul 2010
Posts: 827
Received Thanks: 153
|
clientside item_proto question/problem
Is it possible to make some kind of item proto selector based on which server a player logs in to? I need this because I will host 2 servers on 1 root, each with very different item_proto.
Example:
1 root host
server 1: elitepvpers1
server 2: elitepvpers2
on server1 (elitepvpers1) select client item_proto 1 when logging in.
on server2 (elitepvpers2) select client tiem_proto 2 when logging in.
ty
|
|
|
10/18/2010, 09:59
|
#2
|
elite*gold: 77
Join Date: Jan 2009
Posts: 9,732
Received Thanks: 5,599
|
You must Configure our CONFIGS and Duplicate your databases vom Player
You need
Databases Player
And Databases Player1
Then the Second Root you must Configure that he connect to first Roots Databases
Best Regards,
.RiisK#
|
|
|
10/18/2010, 10:07
|
#3
|
elite*gold: 0
Join Date: Jul 2010
Posts: 827
Received Thanks: 153
|
Quote:
Originally Posted by .RiisK#
You must Configure our CONFIGS and Duplicate your databases vom Player
You need
Databases Player
And Databases Player1
Then the Second Root you must Configure that he connect to first Roots Databases
Best Regards,
.RiisK#
|
thankyou but what about on the client side? I need the player1 to match the client item_proto1 .. how would I synchronize the client with server then?
|
|
|
10/18/2010, 10:09
|
#4
|
elite*gold: 77
Join Date: Jan 2009
Posts: 9,732
Received Thanks: 5,599
|
You edit only our serverinfo.py
And make there your Second Server then start it and it's okay
So you can join to your Server1 and 2
Best Regards,
.RiisK#
|
|
|
10/18/2010, 10:27
|
#5
|
elite*gold: 0
Join Date: Jul 2010
Posts: 827
Received Thanks: 153
|
Quote:
Originally Posted by .RiisK#
You edit only our serverinfo.py
And make there your Second Server then start it and it's okay
So you can join to your Server1 and 2
Best Regards,
.RiisK#
|
ok let's say this is my serverinfo.py:
Code:
if (locale.IsEUROPE() and app.GetLocalePath() == "locale/ca"):
STATE_NONE = "..."
STATE_DICT = {
0 : "....",
1 : "Normal",
2 : "BUSY",
3 : "FULL"
}
SERVER01_CHANNEL_DICT = {
1:{"key":11,"name":"CH1 ","ip":"0.0.0.0","tcp_port":6000,"udp_port":6000,"state":STATE_NONE,},
2:{"key":12,"name":"CH2 ","ip":"0.0.0.0","tcp_port":8000,"udp_port":8000,"state":STATE_NONE,},
}
SERVER02_CHANNEL_DICT = {
1:{"key":11,"name":"CH1 ","ip":"0.0.0.0","tcp_port":6000,"udp_port":6000,"state":STATE_NONE,},
2:{"key":12,"name":"CH2 ","ip":"0.0.0.0","tcp_port":8000,"udp_port":8000,"state":STATE_NONE,},
}
REGION_NAME_DICT = {
0 : "CANADA",
}
REGION_AUTH_SERVER_DICT = {
0 : {
1 : { "ip":"0.0.0.0", "port":21002, },
2 : { "ip":"0.0.0.0", "port":10000, },
}
}
REGION_DICT = {
0 : {
1 : { "name" : "Phenom", "channel" : SERVER01_CHANNEL_DICT, },
2 : { "name" : "Trinity", "channel" : SERVER02_CHANNEL_DICT, },
},
}
MARKADDR_DICT = {
10 : { "ip" : "0.0.0.0", "tcp_port" : 6000, "mark" : "10.tga", "symbol_path" : "10", },
20 : { "ip" : "0.0.0.0", "tcp_port" : 6000, "mark" : "20.tga", "symbol_path" : "20", },
}
TESTADDR = { "ip" : "0.0.0.0", "tcp_port" : 50000, "udp_port" : 50000, }
and this is my first item_proto in clientside (elitepvpers1):
PHP Code:
<Item vnum="10" hashName="'µµ+0'" name="Sword+0" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="0" buy_price="0" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="21" applytype1="0" applyvalue1="11" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="0" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="11" refine_set="1" magic_pct="15" specular="0" socket_pct="1" />
<Item vnum="11" hashName="'µµ+1'" name="Sword+1" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="100" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="220" applytype1="17" applyvalue1="12" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="7" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="12" refine_set="2" magic_pct="15" specular="0" socket_pct="1" />
<Item vnum="12" hashName="'µµ+2'" name="Sword+2" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="100" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="230" applytype1="17" applyvalue1="13" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="14" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="13" refine_set="3" magic_pct="15" specular="0" socket_pct="1" />
<Item vnum="13" hashName="'µµ+3'" name="Sword+3" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="150" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="240" applytype1="17" applyvalue1="14" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="21" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="14" refine_set="4" magic_pct="15" specular="0" socket_pct="1" />
<Item vnum="14" hashName="'µµ+4'" name="Sword+4" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="150" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="250" applytype1="17" applyvalue1="15" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="28" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="15" refine_set="5" magic_pct="15" specular="30" socket_pct="1" />
<Item vnum="15" hashName="'µµ+5'" name="Sword+5" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="200" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="260" applytype1="17" applyvalue1="16" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="35" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="16" refine_set="6" magic_pct="15" specular="40" socket_pct="1" />
<Item vnum="16" hashName="'µµ+6'" name="Sword+6" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="250" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="270" applytype1="17" applyvalue1="17" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="42" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="17" refine_set="7" magic_pct="15" specular="50" socket_pct="1" />
<Item vnum="17" hashName="'µµ+7'" name="Sword+7" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="350" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="280" applytype1="17" applyvalue1="18" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="49" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="18" refine_set="8" magic_pct="15" specular="65" socket_pct="1" />
<Item vnum="18" hashName="'µµ+8'" name="Sword+8" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="500" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="290" applytype1="17" applyvalue1="19" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="56" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="19" refine_set="9" magic_pct="15" specular="80" socket_pct="1" />
<Item vnum="19" hashName="'µµ+9'" name="Sword+9" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="750" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="1" applyvalue0="300" applytype1="71" applyvalue1="20" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="63" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="15" specular="100" socket_pct="1" />
and here is my second clientside item_proto (elitepvpers2):
PHP Code:
<Item vnum="10" hashName="'µµ+0'" name="Sword+0" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="0" buy_price="0" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="0" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="11" refine_set="1" magic_pct="15" specular="0" socket_pct="1" />
<Item vnum="11" hashName="'µµ+1'" name="Sword+1" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="100" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="7" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="12" refine_set="2" magic_pct="15" specular="0" socket_pct="1" />
<Item vnum="12" hashName="'µµ+2'" name="Sword+2" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="100" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="14" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="13" refine_set="3" magic_pct="15" specular="0" socket_pct="1" />
<Item vnum="13" hashName="'µµ+3'" name="Sword+3" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="150" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="21" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="14" refine_set="4" magic_pct="15" specular="0" socket_pct="1" />
<Item vnum="14" hashName="'µµ+4'" name="Sword+4" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="150" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="28" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="15" refine_set="5" magic_pct="15" specular="30" socket_pct="1" />
<Item vnum="15" hashName="'µµ+5'" name="Sword+5" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="200" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="35" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="16" refine_set="6" magic_pct="15" specular="40" socket_pct="1" />
<Item vnum="16" hashName="'µµ+6'" name="Sword+6" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="250" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="42" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="17" refine_set="7" magic_pct="15" specular="50" socket_pct="1" />
<Item vnum="17" hashName="'µµ+7'" name="Sword+7" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="350" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="49" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="18" refine_set="8" magic_pct="15" specular="65" socket_pct="1" />
<Item vnum="18" hashName="'µµ+8'" name="Sword+8" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="500" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="56" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="19" refine_set="9" magic_pct="15" specular="80" socket_pct="1" />
<Item vnum="19" hashName="'µµ+9'" name="Sword+9" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="0" gold="100" buy_price="750" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="63" socket0="0" socket1="65008" socket2="127" socket3="64992" socket4="21631" socket5="4855" refine_vnum="0" refine_set="0" magic_pct="15" specular="100" socket_pct="1" />
As you see, I have elitepvpers1 server sword with HP and demi-human bonus. On elitepvpers2 server sword I have normal sword bonus. Where in the serverinfo.py do I tell my client to select another item_proto from the locale?
Do I do it this way? :
client
/pack/locale_elitepvpers1.epk
/pack/locale_elitepvpers1.eix
/pack/locale_elitepvpers2.epk
/pack/loacle_elitepvpers2.eix
serverinfo.py
PHP Code:
if (locale.IsEUROPE() and app.GetLocalePath() == "locale/elitepvpers1"):
PHP Code:
if (locale.IsEUROPE() and app.GetLocalePath() == "locale/elitepvpers2"):
locale.cfg
10002 1252 elitepvpers1
then tell users if they want to play on server 2 to edit their locale.cfg to:
10002 1252 elitepvpers2
is there a way that I can make it so it loads a new locale when they select or login to the second server? So a restart of client is unnecessary?
|
|
|
 |
Similar Threads
|
Clientside item_proto entpacken ?
08/28/2010 - Metin2 Private Server - 1 Replies
Hallo
Ich hab eine Frage undzwar wie kann ich den die item_proto entpacken ?? also Clientside ??
|
Item_proto clientside
07/27/2010 - Metin2 Private Server - 5 Replies
wie lasse ich die itemproto aus dem clienten übersichtlich aussehen?
auf dem bild habe ich sie mit Notepad++ geöffnet
thx und mfg nice
|
Serverside item_proto mit Clientside item_proto abgleichen?
07/26/2010 - Metin2 Private Server - 6 Replies
Da ich nichts spezifisches dazu gefunden habe, frage ich einfach mal:
Kann ich irgendwie meine item_proto von Navicat Clientside "entpacken"(?), ohne, dass ich alles manuell eingeben muss?
Beispiel:
Serverside habe ich für Item A 50kk eingegeben. Ingame werden
Clientside 10kk angezeigt, aber trotzdem 50kk abgezogen.
Wie man item_proto bearbeitet weiss ich, aber ich habe keine Lust, alles manuell einzugeben. Gibt es eine Möglichkeit?
edit: Irgendwie funzt das nicht mit dem...
|
item_proto clientside und serverside
06/14/2010 - Metin2 Private Server - 0 Replies
hi leutz,
ich frage mich, wieso die entwickler von M2 lokal auf dem client den inhalt der tabelle item_proto gespeichert haben. normalerweise macht man sowas nicht, weil die datenbank tabelle ja immer zentral verfügbar ist und die aktuellsten daten enthalten sollte.
durch die vielen threads zum thema "item_proto clientside" und den tipps zum ändern der lokalen daten, frage ich mich, ob der client die lokale item_proto nicht aus der datenbank tabelle generieren kann.
hat dazu jemand eine...
|
item_proto Clientside
05/07/2010 - Metin2 Private Server - 0 Replies
Hallo,
könnte mir bitte jemand die item_proto von NeonBlue entpacken, damit ich sie bearbeiten kann?
Ich hab mir das TuT schon paar mal durchgelesen aber irgendwie klappt das nicht...
Wäre echt nett wenn mir das jemand über TeamViewer machen könnte.
lG
|
All times are GMT +1. The time now is 18:02.
|
|