PDA

View Full Version : [Tutorial] How to setup dual server support for l2


Digital
08.02.2005, 17:16
just pasting it here for abit.. will do the translation later. :)

第一步..先确定..单机架设成功..
第二步..复制整个服务器端文件到第2ä¸ ª服务器
第3步..

将你C:\Program Files\Common Files\ODBC\Data Sources
中的lin2db 同lin2world 复制到第2台机子里(用来开l2server.exeï ¼Œl2npc.exe)
在第二个机器上建立dsn
lin2db

[ODBC]
DRIVER=SQL Server
UID=sa
DATABASE=lin2db
WSID=第一个服务器的IP
APP=Microsoft Data Access Components
SERVER=第一个服务器的IP

lin2world

[ODBC]
DRIVER=SQL Server
UID=sa
DATABASE=lin2world
WSID=第一个服务器的IP
APP=Microsoft Data Access Components
SERVER=第一个服务器的IP

第4步
l2server.ini和l2npc.ini的ip

l2server.ini的ip都改成第一个机器的ip
2号机上的L2SERVER.INI里的IP全都修改成1å �·几的IP其中有一段可以先去掉,可以è §£决PetitionD载入失败的问题。
[PetitionD]
address="1xx.xx8.2.9"
port=2107
WorldName="publish03"
;world name must be exact 9 characters.

l2npc里的Ip除了...[server]改成..第2个机器的Ip意外..

其他的也改成第一个机器的Ip..
L2NPC.INI里的这段要修改成2号机IP

[server]
address="1xx.xx8.0.2"
port=2002
第5步----
修改第一个服务器的sql数据库表..lin2db 里的server
id name ip inner_ip ageLimit pk_flag kind port
1 lgs 第2个机器的IP 第2个机器的IP 1 1 1 7777

NPC和L2server都是放在2#服务器上,但是有 一点最关键就是在1#服务器数据库里的 Lin2DB数据库中的server表中IP设置两个IPé ƒ½应该设置为2#服务器的庋涂梢缘é ”¹搅?br>注意 :(luhongyu)告诉大家我就用的173m的si na原版AUTH 没有用台湾的 ,估计大家刚开始的时候,没有发现çš „原因 最近正在研究用sina的公测版本直接进å …¥
SINA版的那个是加密的,我就是用的那个 ,好像是460KB大小吧,不加密的是410KB左å� ³.
我用ASP注册,那里面是填erpxxx的,就是加 密的那个,不加密的是填 none的.我用加密的,可以的,用None注册的 话就提示密码错误了
数据库server 表端口是7777.不用打补丁直接用SINA最æ– °客户端

关键的一步
CHN_Server_20040604\NewAuth\etc\config 把 DevServerIP="10.1.2.250" 改位第2个机子的ip

还有NewAuth\etc\config.txt、里的DevConnectOut er=true

第6步..启动第一个机器的前3个服务..ç„ ¶后启动第2个机器的后2个服务器

Shawnmb
18.02.2005, 17:15
It shouldn't need translation, if you can't point ODBC to a new source on your own you shouldn't be running a server...

doemondo
18.02.2005, 17:29
By Dual Server support do you mean when you connect to the login screen there is more than 1 option (Like 2 different servers there) or do you mean a server that supports both C1 and C2 clients?

Im very confused :)

theRAGE
18.02.2005, 17:32
By Dual Server support do you mean when you connect to the login screen there is more than 1 option (Like 2 different servers there) or do you mean a server that supports both C1 and C2 clients?

Im very confused :)

I'm pretty sure he means to span the server applications between 2 computers.

Digital
18.02.2005, 17:39
i do have some info on having 2 different servers tho... but untested... so fear of releasing :p

Shawnmb
18.02.2005, 17:44
Run it through me, what is it ?

Dubie
13.04.2005, 18:53
First step. First determines. The single plane erects successfully..
Second step. Duplicates the entire server end document to the 2nd server
3rd step.

Duplicates in the 2nd loom in your C:\Program Files\Common Files\ODBC\Data Sources lin2db with lin2world (to use for l2server.exe, l2npc.exe) establishes dsn on the second machine

lin2db

[ODBC]
DRIVER=SQL Server
UID=sa
DATABASE=lin2db
WSID=First server IP
APP=Microsoft Data Access Components
SERVER=First server IP

lin2world

[ODBC]
DRIVER=SQL Server
UID=sa
DATABASE=lin2world
WSID=First server IP
APP=Microsoft Data Access Components
SERVER=First server IP

4th step
L2server.ini and l2npc.ini ip

L2server.ini ip all alters to the first machine ip
In 2 machine on L2SERVER.INI IP all revises 1 several IP to have a section to be allowed first to remove, may solve PetitionD to write down the defeat the question.
[PetitionD]
address="1xx.xx8.2.9"
port=2107
WorldName="publish03"
;world name must be exact 9 characters.

In l2npc Ip except that... [ server ] alters to. 2nd machine Ip accident..

Other also alters to the first machine Ip..
In L2NPC.INI this section must revise 2 machine IP

[server]
address="1xx.xx8.0.2"
port=2002

5th step ----
Revises the first server sql database table. lin2db in server
id name ip inner_ip ageLimit pk_flag kind port
1 lgs 2nd machine IP 2nd machine IP 1.117777 million

NPC and L2server all are puts on the 2# server, but has point most is essential is table IP establishes two IP in 1# server database Lin2DB in the database server both to be supposed to establish is the 2# server □a shelf □spreads the tree top reason spade to stir? Br attention: (luhongyu) tells 173m sina which everybody I uses first edition AUTH not useful Taiwan, estimated everybody just started, had not discovered the reason recently was studying with sina male measured the edition directly entered
SINA version that is the encryption, I am that which uses, looks like is the 460KB size, does not encrypt is about 410KB
I use ASP to register, inside that fills in erpxxx, is encryption that, does not encrypt is fills in none I use the encryption, may, registered the speech with None to be wrong on the prompt password
The database server table port is 7777. Does not need to have the patch straight to take over the use of the SINA newest customer end

An essential step
CHN_Server_20040604\NewAuth\etc\config changes DevServerIP= "10.1.2.250" the position 2nd loom ip

Also has NewAuth\etc\config.txt, in DevConnectOuter=true

6th step. Starts the first machine the first 3 services. Then starts the 2nd machine the latter 2 servers

Eliot
13.04.2005, 20:20
Yeah, we all know babelfish... :)

klemka
07.06.2005, 06:42
I use router and lan members can join and from wan can't join.... what port need forwading? sry for bad eng

Ameron
07.06.2005, 07:19
try to open 7777 and 2106 tcp ports

toolpunk
07.06.2005, 08:29
wonder if this is a MOD
--> moved!
oh digital posted it...

IGNORE WHAT I SAID! ITS A MOD!

klemka
07.06.2005, 11:24
try to open 7777 and 2106 tcp ports

Not working i know if server on 1 box when need forwad 2106 and 7777 tpc

imaznumkay
07.06.2005, 16:52
i do have some info on having 2 different servers tho... but untested... so fear of releasing :p

i'll test it xD