Elite Diviner
- Joined
- Oct 10, 2005
- Messages
- 453
- Reaction score
- 0
Ok I "think" I narrowed down the code that kicks the 9th person trying to connect to the server..
So basically this code I think ...... when someone connect to server it checks if there = to a 9th person and if so kicks them with kick Msg: server has reached limit %d which is = 8
I put a few lines of code ahead and before the lines I think deal with what I want to change
just incase I missed something....... if any 1 understands this a little better then me pls reply =) I have almost no idea what to change here basically going on trying jump points and deleting random code in this area for an hour now most of the time I think I dot the server crashes when a user connects not much of a sigh of progress but I think it is because its the line of code dealing with connecting users took me a while to find this =( Any Help is greatly thanked this code is almost :death:
* Possible StringData Ref from Data Obj ->"You are on the ban list."
|
:0041529F 68A4214300 push 004321A4
:004152A4 55 push ebp
:004152A5 56 push esi
:004152A6 89473C mov dword ptr [edi+3C], eax
:004152A9 E882080000 call 00415B30
:004152AE 83C40C add esp, 0000000C
:004152B1 EBA9 jmp 0041525C
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:0041520B(C)
|
:004152B3 A1DC604300 mov eax, dword ptr [004360DC]
:004152B8 83F809 cmp eax, 00000009
:004152BB 8B463C mov eax, dword ptr [esi+3C]
:004152BE 7C4E jl 0041530E
:004152C0 3BC5 cmp eax, ebp
:004152C2 7505 jne 004152C9
:004152C4 B8D8A14200 mov eax, 0042A1D8
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:004152C2(C)
|
:004152C9 33C9 xor ecx, ecx
:004152CB 90 nop <----(I deleted that it used to be" push 00000009" something like that...)
:004152CC 09668B or dword ptr [esi-75], esp
:004152CF 4E dec esi
:004152D0 0450 add al, 50
:004152D2 51 push ecx
* Possible StringData Ref from Data Obj ->"MSG_CONN: ID %u, IP %s, Server "
->"is at physical limit %d."
|
:004152D3 686C214300 push 0043216C
:004152D8 E8D30C0000 call 00415FB0
:004152DD 83C410 add esp, 00000010
:004152E0 8BCE mov ecx, esi
:004152E2 E81990FFFF call 0040E300
:004152E7 8BCE mov ecx, esi
:004152E9 E8D289FFFF call 0040DCC0
:004152EE 56 push esi
:004152EF E822920000 call 0041E516
:004152F4 83C404 add esp, 00000004
:004152F7 B8FAFFFFFF mov eax, FFFFFFFA
:004152FC 5F pop edi
:004152FD 5E pop esi
:004152FE 5D pop ebp
:004152FF 8B4C2428 mov ecx, dword ptr [esp+28]
:00415303 64890D00000000 mov dword ptr fs:[00000000], ecx
:0041530A 83C434 add esp, 00000034
:0041530D C3 ret
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:004152BE(C)
|
:0041530E 3BC5 cmp eax, ebp
:00415310 7505 jne 00415317
:00415312 B8D8A14200 mov eax, 0042A1D8
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:00415310(C)
|
:00415317 8B54240C mov edx, dword ptr [esp+0C]
:0041531B 8B4C2410 mov ecx, dword ptr [esp+10]
:0041531F 52 push edx
:00415320 8B542418 mov edx, dword ptr [esp+18]
:00415324 51 push ecx
:00415325 8B4C2420 mov ecx, dword ptr [esp+20]
:00415329 52 push edx
:0041532A 33D2 xor edx, edx
:0041532C 668B5604 mov dx, word ptr [esi+04]
:00415330 51 push ecx
:00415331 50 push eax
:00415332 52 push edx
* Possible StringData Ref from Data Obj ->"MSG_CONN: ID %u, IP %s, Accepted. "
->"(%d,%d) (%d,%d)"
|
:00415333 6838214300 push 00432138
:00415338 E8730C0000 call 00415FB0
:0041533D 8B3D5C664300 mov edi, dword ptr [0043665C]
:00415343 83C41C add esp, 0000001C
:00415346 3BFD cmp edi, ebp
:00415348 7415 je 0041535F
:0041534A 55 push ebp
:0041534B E87CA00000 call 0041F3CC
:00415350 83C404 add esp, 00000004
:00415353 898698000000 mov dword ptr [esi+00000098], eax
:00415359 89BE9C000000 mov dword ptr [esi+0000009C], edi
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:00415348(C)
|
:0041535F 55 push ebp
:00415360 56 push esi
:00415361 E84A000000 call 004153B0
:00415366 8B4C243C mov ecx, dword ptr [esp+3C]
:0041536A 83C408 add esp, 00000008
:0041536D 33C0 xor eax, eax
:0041536F 64890D00000000 mov dword ptr fs:[00000000], ecx
:00415376 5F pop edi
:00415377 5E pop esi
:00415378 5D pop ebp
:00415379 83C434 add esp, 00000034
:0041537C C3 ret
:0041537D 90 nop
:0041537E 90 nop
:0041537F 90 nop
* Referenced by a CALL at Addresses:
|:00415169 , :004151C2
|
:00415380 8B442408 mov eax, dword ptr [esp+08]
:00415384 85C0 test eax, eax
:00415386 740E je 00415396
:00415388 50 push eax
* Possible StringData Ref from Data Obj ->"ERROR: %s"
|
:00415389 682C224300 push 0043222C
:0041538E E81D0C0000 call 00415FB0
:00415393 83C408 add esp, 00
So basically this code I think ...... when someone connect to server it checks if there = to a 9th person and if so kicks them with kick Msg: server has reached limit %d which is = 8
I put a few lines of code ahead and before the lines I think deal with what I want to change
just incase I missed something....... if any 1 understands this a little better then me pls reply =) I have almost no idea what to change here basically going on trying jump points and deleting random code in this area for an hour now most of the time I think I dot the server crashes when a user connects not much of a sigh of progress but I think it is because its the line of code dealing with connecting users took me a while to find this =( Any Help is greatly thanked this code is almost :death:
* Possible StringData Ref from Data Obj ->"You are on the ban list."
|
:0041529F 68A4214300 push 004321A4
:004152A4 55 push ebp
:004152A5 56 push esi
:004152A6 89473C mov dword ptr [edi+3C], eax
:004152A9 E882080000 call 00415B30
:004152AE 83C40C add esp, 0000000C
:004152B1 EBA9 jmp 0041525C
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:0041520B(C)
|
:004152B3 A1DC604300 mov eax, dword ptr [004360DC]
:004152B8 83F809 cmp eax, 00000009
:004152BB 8B463C mov eax, dword ptr [esi+3C]
:004152BE 7C4E jl 0041530E
:004152C0 3BC5 cmp eax, ebp
:004152C2 7505 jne 004152C9
:004152C4 B8D8A14200 mov eax, 0042A1D8
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:004152C2(C)
|
:004152C9 33C9 xor ecx, ecx
:004152CB 90 nop <----(I deleted that it used to be" push 00000009" something like that...)
:004152CC 09668B or dword ptr [esi-75], esp
:004152CF 4E dec esi
:004152D0 0450 add al, 50
:004152D2 51 push ecx
* Possible StringData Ref from Data Obj ->"MSG_CONN: ID %u, IP %s, Server "
->"is at physical limit %d."
|
:004152D3 686C214300 push 0043216C
:004152D8 E8D30C0000 call 00415FB0
:004152DD 83C410 add esp, 00000010
:004152E0 8BCE mov ecx, esi
:004152E2 E81990FFFF call 0040E300
:004152E7 8BCE mov ecx, esi
:004152E9 E8D289FFFF call 0040DCC0
:004152EE 56 push esi
:004152EF E822920000 call 0041E516
:004152F4 83C404 add esp, 00000004
:004152F7 B8FAFFFFFF mov eax, FFFFFFFA
:004152FC 5F pop edi
:004152FD 5E pop esi
:004152FE 5D pop ebp
:004152FF 8B4C2428 mov ecx, dword ptr [esp+28]
:00415303 64890D00000000 mov dword ptr fs:[00000000], ecx
:0041530A 83C434 add esp, 00000034
:0041530D C3 ret
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:004152BE(C)
|
:0041530E 3BC5 cmp eax, ebp
:00415310 7505 jne 00415317
:00415312 B8D8A14200 mov eax, 0042A1D8
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:00415310(C)
|
:00415317 8B54240C mov edx, dword ptr [esp+0C]
:0041531B 8B4C2410 mov ecx, dword ptr [esp+10]
:0041531F 52 push edx
:00415320 8B542418 mov edx, dword ptr [esp+18]
:00415324 51 push ecx
:00415325 8B4C2420 mov ecx, dword ptr [esp+20]
:00415329 52 push edx
:0041532A 33D2 xor edx, edx
:0041532C 668B5604 mov dx, word ptr [esi+04]
:00415330 51 push ecx
:00415331 50 push eax
:00415332 52 push edx
* Possible StringData Ref from Data Obj ->"MSG_CONN: ID %u, IP %s, Accepted. "
->"(%d,%d) (%d,%d)"
|
:00415333 6838214300 push 00432138
:00415338 E8730C0000 call 00415FB0
:0041533D 8B3D5C664300 mov edi, dword ptr [0043665C]
:00415343 83C41C add esp, 0000001C
:00415346 3BFD cmp edi, ebp
:00415348 7415 je 0041535F
:0041534A 55 push ebp
:0041534B E87CA00000 call 0041F3CC
:00415350 83C404 add esp, 00000004
:00415353 898698000000 mov dword ptr [esi+00000098], eax
:00415359 89BE9C000000 mov dword ptr [esi+0000009C], edi
* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:00415348(C)
|
:0041535F 55 push ebp
:00415360 56 push esi
:00415361 E84A000000 call 004153B0
:00415366 8B4C243C mov ecx, dword ptr [esp+3C]
:0041536A 83C408 add esp, 00000008
:0041536D 33C0 xor eax, eax
:0041536F 64890D00000000 mov dword ptr fs:[00000000], ecx
:00415376 5F pop edi
:00415377 5E pop esi
:00415378 5D pop ebp
:00415379 83C434 add esp, 00000034
:0041537C C3 ret
:0041537D 90 nop
:0041537E 90 nop
:0041537F 90 nop
* Referenced by a CALL at Addresses:
|:00415169 , :004151C2
|
:00415380 8B442408 mov eax, dword ptr [esp+08]
:00415384 85C0 test eax, eax
:00415386 740E je 00415396
:00415388 50 push eax
* Possible StringData Ref from Data Obj ->"ERROR: %s"
|
:00415389 682C224300 push 0043222C
:0041538E E81D0C0000 call 00415FB0
:00415393 83C408 add esp, 00