![]() |
Detail to make 2 server Lineage2 in different comp
I try to learn how to make 2 server in different comp like 1 main server and 1 sub server .
In PC1 , I load all 6 link server , good fine , and I can see 2 server in server list when I login game . but I cant run PC 2 , I set PC 2 connect to PC 1 to using PC1 database (I run log , cache , l2server and l2npc in PC2 , and sure I set some IP in PC2 to PC 1 ) . Log , cache run fine but when I run l2server.exe , It's say : cant connect to AuthD server . Can anyone give me a detail for that ? THX I try to ask BoTGoD , but I dont see his reply . |
THX for ur reply , and here is my l2server.ini in PC2 :
[LogD] address="2xx.xx0.2xx.xx0" port=3999 [CacheD] address="1xx.xx8.1.33" port=2006 [AuthD] address="2xx.xx0.2xx.xx0" port=2104 [petitionD] address="2xx.xx0.2xx.xx0" port=2107 worldname="Lineage3" 2xx.xx0.2xx.xx0 is WAN IP of PC1 , and I add it in lin2db ---- server too . But l2server say : cant connect to AuthD server . Can u give me a tutorial for setting this ? I know u very busy , but If u can , very thank u . Anyway , THX for ur times |
5 post down from this one.
https://postpacific.mmorpg-game.onli...opic.php?t=416 |
Sure I read this ,and I set
[AuthD] address="2xx.xx0.2xx.xx0" WAN IP of PC1 port=2104 but it say cant connect to AuthD server . this is my prob |
My AuthD not have any error , because I run 6 link in PC1 normaly , I just try to set more server connect to PC1 . In PC2 I try to run Log , Cache , L2Server and L2NPC , and here is my set in PC2 Ini's files :
l2logd.ini [LogD] address=1xx.xx8.1.33 (LAN IP of PC2) port=3999 sendable=true [LogTable] Daily=1 BCPFolder=1 [Start] BCPInt=3600000 ServerInt=3600000 AutoBCP=0 [World] WorldId=2 [SQL] SQLExecLimit=5000 PollingInterval=6000 BCPThreadCount=5 l2Cache.ini [LogD] address="1xx.xx8.1.33" (LAN IP of PC2) port=3999 [World] WorldId=2 Pair=0 [ItemAudit] DefaultPriceLimit=100000000 DefaultPriceCheck=50000000 AdenaLimit=100000000 AdenaCheck=50000000 ChgRatioLimit=30 [SQL] SQLExecLimit = 9000 ;clear unowned item data[0:false, 1:true] ItemClearOnStart=1 DiffBBSConn = 0 SaveQsData=0 BBSDBTimeOut=60 USEBBS=0 [Setting] country=1 ExceptionMailing=false MailServer=mail.ncsoft.co.kr l2server.ini [LogD] address="2xx.xx0.2xx.xx0" (WAN IP of PC1) port=3999 [CacheD] address="1xx.xx8.1.33" (LAN IP of PC2) port=2006 [AuthD] address="2xx.xx0.2xx.xx0" (WAN IP of PC1) port=2104 (I open this port in router in PC1 network and forward it to PC1) [petitionD] address="2xx.xx0.2xx.xx0" (WAN IP of PC1) port=2107 worldname="Lineage3" (in PC1 is Lineage2) [World] WorldId=2 UserLimit=2000 LetBuilder=1 [Report] ;minute Interval=60 [Setting] ;Country=0 KR ;Country=1 US ;Country=2 JP ;Country=3 TW ;Country=4 CN Country=1 UserPathFind=true WorldCollision=false ExceptionMailing=false MailServer=mail.ncsoft.co.kr AcceptLowerProtocol=true IOBufferCount=3000 ;limit hour for week, (number means hour. 0 means don't use. default is 0) playtimelimit=0 ;use auth reconn (1:use, 0:don't. default is 0) reconnectauth=1 l2npc.ini [CacheD] address="2xx.xx0.2xx.xx0" (WAN IP of PC1) port=2008 [server] address="1xx.xx8.1.33" (LAN IP of PC2) port=2002 [db] address="2xx.xx0.2xx.xx0" (WAN IP of PC1) port=2005 user="sa" password="abcde" [map] directory="map" [LogD] address="2xx.xx0.2xx.xx0" (WAN IP of PC1) port=3999 [World] WorldId=2 [Setting] country=1 ExceptionMailing=false MailServer=ncs-mail.ncsoft.co.kr in PC 1 , I add this line to \\Newauth\etc\serverlist 2,Lineage3,2xx.xx5.1xx.xx,2,2xx.xx5.1xx.xx,2 (2xx.xx5.1xx.xx is WAN IP of PC2) And add more line to lin2db ------ table------server : 2 Lineage3 2xx.xx5.1xx.xx 2xx.xx5.1xx.xx 0 1 0 7778 Here is wat I set , I can see 2 server in game , Have I lost something BoTGoD ? Can u tell me wat I set wrong ? THX for u times |
yeah exactly . But the prob is I cant make l2server.exe connect to AuthD server in PC1 , how u can do that ? How u can make CacheD and AuThD link have 2 IP server ?I cant do that . Can u plz tell me how u can make PC3 connect to PC1 like I see in ur post . I cant complete this step so I cant do anything . THX
|
Very thank BoTGoD , I follow this for along times , now I have more detail for my ProJect .
Have I set IP of PC1 in lin2db and lin2world in PC2 and PC3? One more times , THX u |
Now I can run 2 server fine like u . But when I connect , I see 2 server in list
01 Bartz 35 02 SeHargt 350 But I cant log in both of them . Why is that , can U show me the way , BoTGod ? THX for reading |
Siegehardt shows up in list... However, its status will be either full (despite if u're running a server on PC2 or not) if kind=1 or down in other cases. I think it's authD issue... Oк maybe Im wrong...
All other servers (except Bartz) are down... |
shit this is hard. nice teaching guys. I'll test it in my server :D
|
Try to connect on LAN interface. Authd listen on all interfaces, and you mast connect from LAN to LAN, check it. My server configs (all) points to 127.0.0.1. All work. You can point LAN ip of PC1 in PC2 serever config.
Q: you have different DBs on different PCs? |
It using the same DB , Pc1 have SQL and store DB , PC2 and PC3 using DB in PC1 . Have u make it worked ? how u can do this ? U can see 2 server in serverlist and u can join both of them?
|
hmm.. after looking thru the chinese guide
it seems to me that this might be an ideal setup PC1: authd, mssql, and wadever crap PC2: cache1,l2server1,l2npc1 PC3: cache2,l2server2,l2npc2 or cache1 might be on PC1 instead.. unsure... but i do think after reading thru... cache have to be seperated for each new server as well. good luck testing. |
and why u still need L2LogD ?
servers are working fine without him |
RmzVoid: You know, it sounds like you didn't got the idea. Idea is that we can't get 2nd (3rd etc) server to work. I tried to run
PC1: log, auth, db, petition PC2: cache1, server1, npc1 PC3: cache1, server1, npc1 No result... Only can login to bartz. If inner_ip & ip is set to PC2 then bartz is pc2, & siegehardt do not work. If inner_ip & ip is set to PC3 then bartz is pc3, & siegehardt do not work. |
? u lost me there livid...
in ur db there should be 2 entry for example entry: inner_ip, outer_ip, bah_bah_etc 1, 1.2.3.4, 2.3.4.5 2, 1.2.3.5, 2.3.4.6 should work i believe.. just be sure that u make extra world2 db n point PC3 to world2 db and all cache, server, npc should point to their own unique ones e.g cache1, server1, npc1 and cache2, server2, npc2 P.S ur petition is a working c1 copy? |
Ups... sry :)
PC2: cache1, server1, npc1 PC3: cache2, server2, npc2 Here's contents of my db... (ip is local bcuz I tes it in local network) #|Name|inner_ip|etcetc|ip 1|Lineage1|10.0.4.2|...|10.0.4.2 2|Lineage2|10.0.4.3|...|10.0.4.3 What I get: Bartz|Good|2ms Sieghardt|Full|320ms Even if I will shut server on PC3 (which is 10.0.4.3), it will still be Sieghardt|Full|320ms I think it`s authd issue... PS I run petition only to avoid error - anyway, it crashes every time some1 tries to /gm :) |
hmm... not really sure tho... cuz there's ppl who have done it
but then... their config is this way PC1: authd, mssql, cache1, logd, iis - 10.1.2.250 PC2: server1, npc1 - 10.1.2.210 PC3: cache2, server2, npc2 - 10.1.2.222 of cuz the lin2db -> server is as per normal setup http://www.loy.cn/l2show/UploadFile/...2794751964.jpg then setup lin2world2_Data n lin2world2_log and DSN for PC3 on PC1's mssql db PC3 l2cache.ini [LogD] address="10.1.2.250" port=3999 [World] WorldId=3 Pair=0 [ItemAudit] DefaultPriceLimit=2000000 DefaultPriceCheck=1000000 ChgRatioLimit=30 [SQL] SQLExecLimit = 5000 ;clear unowned item data[0:false, 1:true] ItemClearOnStart=0 DiffBBSConn = 1 SaveQsData=1 BBSDBTimeOut=60 USEBBS=1 [Setting] country=3 ExceptionMailing=true MailServer=mail.ncsoft.co.kr PC3 l2server.ini [CacheD] address="10.1.2.222" port=2006 [AuthD] address="10.1.2.250" port=2104 [LogD] address="10.1.2.250" port=3999 [World] WorldId=3 UserLimit=100 ;LetBuilder=1 [PetitionD] address="1xx.xx.xx.xx5" port=2107 WorldName="publish03" ;world name must be exact 9 characters. [Report] Interval=60 ;minute [Setting] country=3 UserPathFind=true WorldCollision=false ExceptionMailing=true MailServer=mail.ncsoft.co.kr AcceptLowerProtocol=true IOBufferCount=1500 ;limit hour for week, (number means hour. 0 means don't use. default is 0) playtimelimit=0 reconnectauth=1 ;use auth reconn (1:use, 0:don't. default is 0) PC3 l2npc.ini [CacheD] address="10.1.2.222" port=2008 [server] address="10.1.2.222" port=2002 [db] address="10.1.2.250" port=2005 user="gamma" password="gemini042158!@#$" [map] directory="map" [LogD] address="10.1.2.250" port=3999 [World] WorldId=3 [Setting] country=3 ExceptionMailing=false MailServer=ncs-mail.ncsoft.co.kr PC1 - authd PacketSizeType = 3 ReadLocalServerList=false OneTimeLogOut=true CountryCode=2 DevConnectOuter=true DevServerIP="10.1.2.250" SocketTimeOut = 60 ;SocketLimit绰 SocketLimit=5000 AcceptCallNum=1 ;UseOneIOCom=true UseOneIOCom=false AcceptThread=1 WaitingUserLimit=1000 dumppacket=true UserData=false UseLogD=true logdip="10.1.2.250" logdport=3999 logdconnectinterval=120 |
ok... found the problem :)
http://www.loy.cn/l2show/UploadFile/...2793843814.jpg when u first run ur PC3 cached.exe u'll have to change C:\Program Files\Common Files\ODBC\Data Sources\lin2world to C:\Program Files\Common Files\ODBC\Data Sources\lin2world000 and this will ensure lin2world2 works!!! so when u run cache2, etc on PC3 just make sure it connects to lin2world2! http://www.loy.cn/l2show/UploadFile/...2794239419.jpg |
Oh, crap...
Ok, what do I have. PC1 10.0.4.67 authd & SQL. lin2db.server: 1 publish01 10.0.4.2 10.0.4.2 0 1 1 7777 2 publish02 10.0.4.3 10.0.4.3 0 1 1 7777 I did not start any servers, cacheDs, etcetc. Only authD. And here is what I get. (1280x1024 JPEG 171K) |
that's odd...
if it works correctly, authd would show 2 interactive server connected. i wonder what went wrong for ya tho O_o P.S ok... i think i know what went wrong for ya u change lin2world to lin2world000 DSN on PC1/2 did ya? well u shouldnt this only has to be done for PC3 |
Quote:
Quote:
I never tries it yet, but i have some experience with another server. |
It seems OK on C! authD, so... it IS AuthD. All right, gotta hex it up.
|
go livid go! :D
lol... everybody's happiness is on ya.. huhuhu :) |
Ok... some clues...
00438E11: B003 mov al,003 we see it in 411 authD, but there is no such thing in 311... Dammit, some1 gimme SoftIce :) al contains a little changed value of esp... which is loste somewhere in backcalling... can't trace it without nice debugger I think. I played w/this value a little, got some interesting results. More than 3 leads to unability to login... Well, 0, 1, 2 also give some funny things... Still searching. Or I need to get in touch w/ hexing god :) Well, I will continue my search... Wish me luck ;) |
Good luck Livid
|
Some new clues...
al seems to contain protocol ID or smth like that. What I found out, there is no such thing as new protocol implemented in patched 411 authd. Well, actually authd411 is more likely workaround than a solvation. Shrugs... It is more work than I expected. All right, may be by the end of the week i'll get it to work. Or should I say "by the end of the month"? |
lol.. dun worry abt it.. :)
on a side note.... i've just completed and handed in my assignment... after spending 4 days non stop, wacking 4328 lines of code and non-stop debugging... also many big thxs to ultra super duper caffinated coffee and super duper size me up mcdonals meals to complete the feat. ok.. it's 4:47am i'm to bed >_> |
very cool man
|
Lol. Got it. Only have to change code according to my findings.
|
!!WARNING!! THIS IS NOT A SOLUTION, THIS IS WORKAROUND!!
First of all, main idea. 0044AD03 F3A5 REP MOVS DWORD PTR ES:[EDI],DWORD PTR DS:[ESI] which actually copies packet data from somewhere to WSAsend buffer (sorry for rough explanation, if u want better one, debug this shit yourself) Here is packet format (there are some uncertain points...) 2D - packet size 00 04 02 01 - header (dunno, can be also 00 04 02 02) 01 - server id 0A 00 04 01 - outer IP (10.0.4.1 here) 61 1E - port (7777 here) 00 00 00 01 00 - something :). I think it is various stuff like agelimit, pk etc - have no need to get into. 00 00 00 00 - status, ping (in this case down, 9999ms) 01 00 00 00 - kind (1) 02 - server number ... And what do stupid client expect: ... 01 00 00 00 00 - kind (1) 02 - server number ... So, we just need to add extra 00 and we're done. The problem is that part of code is used not only to copy packet data, but also to print strings into the log (shrugs...) ok, we'll just need a selector. Normal solution would include adding a bunch of code, modifying data tables etc etc. I have no intention to do it. If you wish - please. What we actually need to change will be posted soon. |
Ok, as I promised earlier.
Code:
CHANGEAnd what do we have at 00045E6B2 Code:
.0045E6B2: 807E0204 cmp b,[esi][02],004 ;"♦".0045E6B6: 90 nop .0045E6B7: 90 nop .0045E6B8: 90 nop are certainly not needed, remove them if you wish. I'm gonna change .0045E6B2: 807E0204 cmp b,[esi][02],004 ;"♦" a little later, so I need some extra space. I think that's all. I changed some other things a bit, but it has no link to this code. And, one more. I recommend you to take AuthD311 as a base. If you follow this recomendation, you will also need to change following: Code:
.00438E11: B003 mov al,003 ;"♥" |
Oh, almost forgot. I tested it for two & three servers. Should work also for one :)
Theoretically, it will handle up to 200 servers... but i'm not shure about it. UPDATED: reread the code... Maximum is 12 servers. Thatts because I assumed that maximal packet length is 255... when it is 65535... So, basically few changes are needed. 'll post 'em later. may be. |
Yes, tested with one server, works perfectly.
|
Small revision on packet struct.
2D 00 - packet size = 20*N+5 where N is number of servers. 04 02 - header 01 - primary server 01 - server id 0A 00 04 01 - outer IP (10.0.4.1 here) 61 1E - port (7777 here) 00 00 00 01 00 - smth 00 00 00 00 - status, ping 01 00 00 00 - kind (1) 02 - server number ... |
According to this above info,
.0045E6CF: A4 movsb .0045E6D0: A5 movsd would rather be .0045E6CF: A5 movsd .0045E6D0: A4 movsb but it actually doesn't matter. So, it will work with N>12 p.s. sorry for flooding... But it's already 3:37 am on the clock... I feel laggy..... well... think i gotta goto sleep. |
AnyOne want SoftIce can download here , include crack .
http://s31.yousendit.com/d.aspx?id=2...81YAJNN23CVAD2 So, Livid THX a lot abt ur hard work . And have I hex step by step like this ? : 2D 00 - packet size = 20*N+5 where N is number of servers. 04 02 - header 01 - primary server 01 - server id 0A 00 04 01 - outer IP (10.0.4.1 here) have I put WAN ip here ? or host here? or only my LAN ip? 61 1E - port (7777 here) 00 00 00 01 00 - smth 00 00 00 00 - status, ping (leave this alone ?) 01 00 00 00 - kind (1) 02 - server number .0045E6CF: A5 movsd .0045E6D0: A4 movsb THX . |
livid... i'm lost with the last part... lol
what is this suppose to do again? so if we are not using 311 we dun have to do this step? and all ur code is to work on authd311 i take it? cuz i wasnt able to find the same code using c2server_xx (411) well.. most of us are using this as a base copy to hex stuff into lol.. :) Quote:
|
THIS
Quote:
Digital: quoted code is shamelessly "borrowed" from 411 auth. Well, 411 is abit crappy, so I changed 311. Oh, thx for reminding. One more to hex in 311... Code:
.0046C6B0: 5B 34 31 39-5D 39 34 2D-33 31 3D 3D-2D 25 26 40 |
And one more, do not hex directly into 311, make a copy & call it something 412 for example.
|
| All times are GMT. The time now is 23:01. |