Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Detail to make 2 server Lineage2 in different comp (https://postpacific.loc-online.com/showthread.php?t=432)

lamnh 18.04.2005 07:40

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 .

lamnh 18.04.2005 16:07

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

Dubie 18.04.2005 16:11

5 post down from this one.
https://postpacific.loc-online.com/f...opic.php?t=416

lamnh 18.04.2005 17:05

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

lamnh 19.04.2005 05:21

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

lamnh 19.04.2005 13:24

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

lamnh 19.04.2005 17:46

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

lamnh 20.04.2005 20:06

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

Livid 21.04.2005 07:53

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

RmzVoid 22.04.2005 00:12

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?

lamnh 22.04.2005 05:53

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?

Digital 29.04.2005 06:35

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

Livid 29.04.2005 15:47

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.

Digital 29.04.2005 16:30

? 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?

Livid 29.04.2005 17:05

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 :)

Digital 29.04.2005 17:57

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

Digital 29.04.2005 18:02

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

Livid 29.04.2005 18:22

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)

Digital 29.04.2005 19:14

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

Quote:

Originally Posted by BoTGoD
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 :
Quote:

WorldId=1
( In PC2 )
I never tries it yet, but i have some experience with another server.

Livid 30.04.2005 14:37

It seems OK on C! authD, so... it IS AuthD. All right, gotta hex it up.

Digital 30.04.2005 15:44

go livid go! :D
lol... everybody's happiness is on ya.. huhuhu :)

Livid 30.04.2005 18:16

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 ;)

lamnh 30.04.2005 18:35

Good luck Livid

Livid 01.05.2005 18:45

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"?

Digital 01.05.2005 20:33

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 >_>

lamnh 01.05.2005 21:17

very cool man

Livid 02.05.2005 15:00

Lol. Got it. Only have to change code according to my findings.

Livid 02.05.2005 19:21

!!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.

Livid 02.05.2005 19:41

Ok, as I promised earlier.
Code:

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
Code:

.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:
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

Compare to original and you will understand what does it mean (I hope)

Livid 02.05.2005 19:43

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.

Livid 02.05.2005 19:57

Yes, tested with one server, works perfectly.

Livid 02.05.2005 23:30

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
...

Livid 02.05.2005 23:38

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.

lamnh 03.05.2005 02:38

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 .

Digital 03.05.2005 04:53

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:

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

Livid 03.05.2005 06:38

THIS
Quote:

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...
Code:

.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.

Livid 03.05.2005 06:55

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 16:25.