View Full Version : 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.online/forum/viewtopic.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...
Silentz0r
21.04.2005, 19:42
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.
djvogans
29.04.2005, 13:34
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/2004-11/2004112794751964.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/2004-11/2004112793843814.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/2004-11/2004112794239419.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
Michelle
30.04.2005, 08:03
You must have 2 Different CacheD running and add a new DB lin2world2
So setup must be like this
PC1: LogD, AuthD, SQL (IE:Outter_IP=(WANIP) Inner_IP=1xx.xx8.0.1)
PC2: L2Server.exe, L2NPC.exe, CacheD.exe (IE: LAN_IP=1xx.xx8.0.2)
PC3: L2Server.exe, L2NPC.exe, CacheD.exe (IE: LAN_IP=1xx.xx8.0.3)
PC1:
LogD.ini
[LogD]
address=1xx.xx8.0.1
port=3999
sendable=true
[LogTable]
Daily=1
BCPFolder=1
[Start]
BCPInt=600000
ServerInt=60000
AutoBCP=1
[World]
WorldId=1
[SQL]
SQLExecLimit=5000
PollingInterval=6000
BCPThreadCount=2
etc\config.txt
serverPort=2104
serverExPort=2106
serverIntPort=2108
worldport=7777
DBConnectionNum=10
encrypt=true
numServerThread=2
numServerExThread=2
numServerIntThread=2
logDirectory="log"
ProtocolVersion=30810
GameID=8
DesApply=false
PacketSizeType=3
ReadLocalServerList=false <- Put this False or you will have SQL error.
OneTimeLogOut=true
CountryCode=2
DevConnectOuter=true
DevServerIP="WAN IP" = Your WAN IP of PC1
SocketTimeOut=400
SocketLimit=5000
AcceptCallNum=1
UseOneIOCom=true
AcceptThread=1
WaitingUserLimit=100
dumppacket=false
UserData=false
UseLogD=false
logdip="1xx.xx8.0.1" PC1 LAN IP
logdport=3999
logdconnectinterval=120
SupportReconnect=true
AutokickAccount=true
NewEncrypt=false
In SQL -> lin2db -> Server
ID:1, Name:Lineage2, ip:PC2 WAN IP, inner_ip:1xx.xx8.0.2, agelimit: 0, pk_flag: 1, kind: 0, port: 7777
ID:2, Name:Lineage3, ip:PC3 WAN IP, inner_ip:1xx.xx8.0.3, agelimit: 0, pk_flag: 1, kind: 0, port: 7777
PC2:
L2Server.ini
[CacheD]
address="1xx.xx8.0.2" = PC2 LAN IP
port=2006
[AuthD]
address="1xx.xx8.0.1" = PC1 LAN IP
port=2104
[LogD]
address="1xx.xx8.0.1" = PC1 LAN IP
port=3999
[World]
WorldId=1
UserLimit=2500
LetBuilder=1
[Report]
Interval=60
[Setting]
Country=1
UserPathFind=true
WorldCollision=false
ExceptionMailing=false
MailServer=mail.com
AcceptLowerProtocol=true
IOBufferCount=6000
playtimelimit=0
reconnectauth=1
L2NPC.ini
[CacheD]
address="1xx.xx8.0.2" = PC2 LAN IP
port=2008
[server]
address="1xx.xx8.0.2" = PC2 LAN IP
port=2002
[LogD]
address="1xx.xx8.0.1" = PC1 LAN IP
port=3999
[map]
directory="map"
[World]
WorldId=1
[db]
address="1xx.xx8.0.1" = PC1 LAN IP
port=2005
user="sa"
password="password"
[Setting]
Country=1
ExceptionMailing=false
MailServer=mail.com
CacheD.ini
[Setting]
Country=1
ExceptionMailing=false
MailServer=mail.com
[Logd]
address="1xx.xx8.0.1" = PC1 LAN IP
port=3999
[World]
WorldId=1
Pair=0
[ItemAudit]
DefaultPriceLimit=100000000
DefaultPriceCheck=50000000
ChgRatioLimit=30
AdenaLimit=100000000
AdenaCheck=50000000
AdenaChgRatioLimit=30
[SQL]
SQLExecLimit=5000
ItemClearOnStart=1
DiffBBSConn=0
SaveQsData=0
BBSDBTimeOut=0
USEBBS=0
PC3
L2Server.ini
[CacheD]
address="1xx.xx8.0.3" = PC3 LAN IP
port=2006
[AuthD]
address="1xx.xx8.0.1" = PC1 LAN IP
port=2104
[LogD]
address="1xx.xx8.0.1" = PC1 LAN IP
port=3999
[World]
WorldId=1
UserLimit=2500
LetBuilder=1
[Report]
Interval=60
[Setting]
Country=1
UserPathFind=true
WorldCollision=false
ExceptionMailing=false
MailServer=mail.com
AcceptLowerProtocol=true
IOBufferCount=6000
playtimelimit=0
reconnectauth=1
L2NPC.ini
[CacheD]
address="1xx.xx8.0.3" = PC3 LAN IP
port=2008
[server]
address="1xx.xx8.0.3" = PC3 LAN IP
port=2002
[LogD]
address="1xx.xx8.0.1" = PC1 LAN IP
port=3999
[map]
directory="map"
[World]
WorldId=1
[db]
address="1xx.xx8.0.1" = PC1 LAN IP
port=2005
user="sa"
password="password"
[Setting]
Country=1
ExceptionMailing=false
MailServer=mail.com
CacheD.ini
[Setting]
Country=1
ExceptionMailing=false
MailServer=mail.com
[Logd]
address="1xx.xx8.0.1" = PC1 LAN IP
port=3999
[World]
WorldId=1
Pair=0
[ItemAudit]
DefaultPriceLimit=100000000
DefaultPriceCheck=50000000
ChgRatioLimit=30
AdenaLimit=100000000
AdenaCheck=50000000
AdenaChgRatioLimit=30
[SQL]
SQLExecLimit=5000
ItemClearOnStart=1
DiffBBSConn=0
SaveQsData=0
BBSDBTimeOut=0
USEBBS=0
Once you got this setup like this, everything should be ok :)
This is ur wrong :
WorldId=1 ( In PC2 )
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 ;)
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 >_>
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.
CHANGE
.0044AD03: F3A5 repe movsd
.0044AD05: FF249518AE4400 jmp d,[0044AE18][edx]*4
to
.0044AD03: E9AA390100 jmp .00045E6B2 ---↓ (6)
.0044AD08: 90 nop
.0044AD09: 90 nop
.0044AD0A: 90 nop
.0044AD0B: 90 nop
Dun worry, hiew sometimes gives some error, specifficaly when trying to asm repe & jmp d,[0044AE18][edx]*4 - just hex it in.
And what do we have at 00045E6B2
.0045E6B2: 807E0204 cmp b,[esi][02],004 ;"♦"
.0045E6B6: 90 nop
.0045E6B7: 90 nop
.0045E6B8: 90 nop
.0045E6B9: 7409 je .00045E6C4 ---↓ (1)
.0045E6BB: F3A5 repe movsd
.0045E6BD: FF249518AE4400 jmp d,[0044AE18][edx]*4
.0045E6C4: 6649 dec cx
.0045E6C6: 668BC1 mov ax,cx
.0045E6C9: B505 mov ch,005 ;"♣"
.0045E6CB: F6F5 div ch
.0045E6CD: 0006 add [esi],al
.0045E6CF: A4 movsb
.0045E6D0: A5 movsd
.0045E6D1: 66B90500 mov cx,00005 ;" ♣"
.0045E6D5: F3A5 repe movsd
.0045E6D7: C60700 mov b,[edi],000
.0045E6DA: 47 inc edi
.0045E6DB: FEC8 dec al
.0045E6DD: 3C00 cmp al,000
.0045E6DF: 7FF0 jg .00045E6D1 ---↑ (2)
.0045E6E1: FF249518AE4400 jmp d,[0044AE18][edx]*4
this nops
.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:
.00438E11: B003 mov al,003 ;"♥"
.00438E13: 8885C0F7FFFF mov [ebp][-00000840],al
.00438E19: 0FBE85C0F7FFFF movsx eax,b,[ebp][-00000840]
.00438E20: 90 nop
.00438E21: 90 nop
.00438E22: 90 nop
Compare to original and you will understand what does it mean (I hope)
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=2PXS2T0ZDMDM81YAJNN23CVAD2
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.. :)
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 ;"♥"
.00438E13: 8885C0F7FFFF mov [ebp][-00000840],al
.00438E19: 0FBE85C0F7FFFF movsx eax,b,[ebp][-00000840]
.00438E20: 90 nop
.00438E21: 90 nop
.00438E22: 90 nop
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
is just information. You don't need to hex it ;) All you need to hex up is inside code sections
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...
.0046C6B0: 5B 34 31 39-5D 39 34 2D-33 31 3D 3D-2D 25 26 40
.0046C6C0: 33 5E 2B 5D
Of course you can use 411. But i didnt test it.
And one more, do not hex directly into 311, make a copy & call it something 412 for example.
Ok, lol, complete final etc changelist for AuthD411 (just tested it, works fine)
1)
BEFORE:
.0044AD03: F3A5 repe movsd
.0044AD05: FF249518AE4400 jmp d,[0044AE18][edx]*4
AFTER:
.0044AD03: E9AA390100 jmp .00045E6B2 ---↓ (6)
.0044AD08: 90 nop
.0044AD09: 90 nop
.0044AD0A: 90 nop
.0044AD0B: 90 nop
2)
BEFORE:
.0045E6B2: 0000 add [eax],al
.0045E6B4: 0000 add [eax],al
.0045E6B6: 0000 add [eax],al
.0045E6B8: 0000 add [eax],al
.0045E6BA: 0000 add [eax],al
.0045E6BC: 0000 add [eax],al
.0045E6BE: 0000 add [eax],al
.0045E6C0: 0000 add [eax],al
.0045E6C2: 0000 add [eax],al
.0045E6C4: 0000 add [eax],al
.0045E6C6: 0000 add [eax],al
.0045E6C8: 0000 add [eax],al
.0045E6CA: 0000 add [eax],al
.0045E6CC: 0000 add [eax],al
.0045E6CE: 0000 add [eax],al
.0045E6D0: 0000 add [eax],al
.0045E6D2: 0000 add [eax],al
.0045E6D4: 0000 add [eax],al
.0045E6D6: 0000 add [eax],al
.0045E6D8: 0000 add [eax],al
.0045E6DA: 0000 add [eax],al
.0045E6DC: 0000 add [eax],al
.0045E6DE: 0000 add [eax],al
.0045E6E0: 0000 add [eax],al
.0045E6E2: 0000 add [eax],al
.0045E6E4: 0000 add [eax],al
.0045E6E6: 00
AFTER:
.0045E6B2: 66817E020402 cmp w,[esi][02],00204 ;"☻♦"
.0045E6B8: 7409 je .00045E6C3 ---↓ (1)
.0045E6BA: F3A5 repe movsd
.0045E6BC: FF249518AE4400 jmp d,[0044AE18][edx]*4
.0045E6C3: 6649 dec cx
.0045E6C5: 668BC1 mov ax,cx
.0045E6C8: B505 mov ch,005 ;"♣"
.0045E6CA: F6F5 div ch
.0045E6CC: 0006 add [esi],al
.0045E6CE: A5 movsd
.0045E6CF: A4 movsb
.0045E6D0: 66B90500 mov cx,00005 ;" ♣"
.0045E6D4: F3A5 repe movsd
.0045E6D6: C60700 mov b,[edi],000
.0045E6D9: 47 inc edi
.0045E6DA: FEC8 dec al
.0045E6DC: 3C00 cmp al,000
.0045E6DE: 7FF0 jg .00045E6D0 ---↑ (2)
.0045E6E0: FF249518AE4400 jmp d,[0044AE18][edx]*4
ok.. only one thing to say.
livid is a genius! lol.. :)
so the whole problem was regarding the missing 00 at the end of the packet? is that right? :)
Allright... original EXE and modified one.
<DLOADs REMOVED>
Im sorry, any errors or just like there's no auth started at all? Link will be posted soon...
http://livid.sytes.net:85/system.rar
Woops. sorry. ftp://livid.sytes.net:85/system.rar
Hmm? Is that really a big difference? Ok, I'll try original engine.dll.
Just tried original 98.rar from Project C2 Beta3 distribution - everything works just great.
I have 2 PC on my LAN , PC1 have logD, cacheD, AuthD412 (Livid modded) , L2server411 , MS SQL , everything just fine .
In PC2 I have CacheD , L2server411 . Load fine , see all perfect in LogD , AuthD in PC1 .
In DB lin2db - table - server I have :
1 Lineage2 2xx.xx5.xx.xx(WANIP) 1xx.xx8.1.33 1 1 1 7777
2 Lineage3 2xx.xx5.xx.xx(WANIP) 1xx.xx8.1.14 1 1 1 7777
And I used Client in the Internet connect to server by my WAN IP (2xx.xx5.xx.xx) , I can connect to server 1 Barzt (ping 56) but cant connect to Seahargt (ping 355) why I cant connect to server 2 , have anything wrong ?
Lol. you should set second WAN IP to PC2 Wan IP. So, there should be something like this:
1 Lineage2 PC1_WAN PC1_LAN 1 1 1 7777
2 Lineage3 PC2_WAN PC2_LAN 1 1 1 7777
But I have one DSL connection . Client in the Internet cant connect to 2 server on LAN network ?
BIG thanks to everyone, got it working too!
Finally :D <3
Askey have you tested with more then 2 Servers connected?
I believe this the c2 auth i posted :p
not tested ....
downloaded this from http://bbs.t2bbs.com/read.php?tid=9761&fpage=4
also is a short description about this prog in page ... btw BoTGoD , is work or not ? :wink:
Sprinkle@work
15.07.2005, 14:09
Can you post a link to this file Livid, Or BotGod. I am new to IDA and am having difficulties inserting the changes correctly
Sprinkle
16.07.2005, 15:24
Can someone pls explain to me how to edit code with IDA.
I just need a small run thru.
PM me and we can set up a small class.
toolpunk
17.07.2005, 13:43
u can edit things quite well with ue32...
its quite useful and not 2 expensive.
try it out
Sprinkle
18.07.2005, 22:25
What do you use Livid?
l2online
31.12.2005, 16:59
Trying to get 3 servers but it doesn't seem to work... tried everything jmp, call you name it changed a few things into 3(server 3)... can't seem to get it working... any tips/hints to get this fixed?
TheOrder
31.12.2005, 17:11
Sun Jul 17 Very very very Old !!!
l2online
31.12.2005, 18:11
I dont care what do you want me to do make a new thread about it?
Oh wells, seems that some of my posts died here... I dun fucking rememner what did I do, and you can stick with askey's file...
And change
cmp w,[esi][02],00204
to
cmp b,[esi][02],04
at
0045E6B2
Should do the trick.
Hate to bump it, But I've checked, I have all the hexes, and still with 3 servers, 1 Online 2 offline. That last hex, I am not sure I did 100%. Not sure how to do ASM, but I know how to hex. Sorry for such a late bump.
Phantom2005
10.02.2006, 08:12
BEFORE:
.0045E6B2: 0000 add [eax],al
.0045E6B4: 0000 add [eax],al
.0045E6B6: 0000 add [eax],al
.0045E6B8: 0000 add [eax],al
.0045E6BA: 0000 add [eax],al
.0045E6BC: 0000 add [eax],al
.0045E6BE: 0000 add [eax],al
.0045E6C0: 0000 add [eax],al
.0045E6C2: 0000 add [eax],al
.0045E6C4: 0000 add [eax],al
.0045E6C6: 0000 add [eax],al
.0045E6C8: 0000 add [eax],al
.0045E6CA: 0000 add [eax],al
.0045E6CC: 0000 add [eax],al
.0045E6CE: 0000 add [eax],al
.0045E6D0: 0000 add [eax],al
.0045E6D2: 0000 add [eax],al
.0045E6D4: 0000 add [eax],al
.0045E6D6: 0000 add [eax],al
.0045E6D8: 0000 add [eax],al
.0045E6DA: 0000 add [eax],al
.0045E6DC: 0000 add [eax],al
.0045E6DE: 0000 add [eax],al
.0045E6E0: 0000 add [eax],al
.0045E6E2: 0000 add [eax],al
.0045E6E4: 0000 add [eax],al
.0045E6E6: 00
AFTER:
.0045e6b2: 807E0204
.0045e6b6: 7409
.0045e6b8: F3A5
.0045e6bA: FF249518AE4400
.0045e6C1: 6649
.0045e6C3: 668BC1
.0045e6C6: B505
.0045e6C8: F6F5
.0045e6CA: 0006
.0045e6CC: A5
.0045e6CD: A4
.0045e6CE: 66B90500
.0045e6D2: F3A5
.0045e6D4: C60700
.0045e6D7: 47
.0045e6D8: FEC8
.0045e6DA: 3C00
.0045e6DC: 7FF0
.0045e6DE: FF249518AE4400
Works, but the down side is. Players don't keep buffs after they relog? Odd?
Phantom2005
10.02.2006, 18:09
Haven't encountered that before heh... guess you changed something else perhaps?
Mephisto
21.04.2006, 23:30
Can someone share C3 multi auth? tnx.
Mephisto
24.04.2006, 07:31
Up! Need multi auth C3!
Mephisto
01.05.2006, 06:23
Up....
Phantom2005
01.05.2006, 10:34
Hex it yourself. it has been shared.