Results 1 to 10 of 28

Thread: Increase download speed COD2 1.0

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Could you give it a try please? And how to change to maxclients 128?

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Ni3ls View Post
    Could you give it a try please? And how to change to maxclients 128?
    You change it by editing the hex 40 (64) to 80 (128) at offset 4BBAE (1.3).

    pseudocode:
    PHP Code:
    dword_849F74C sub_80B403A((int)"sv_maxclients", (char *)201644133u); 
    But the more clients you have the faster you will reach limits. (like visible ents limit according to IzNoGod)

    Click image for larger version. 

Name:	Capture.PNG 
Views:	221 
Size:	10.5 KB 
ID:	651

  3. The Following User Says Thank You to Mitch For This Useful Post:

    Ni3ls (24th February 2014)

  4. #3
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Mitch View Post
    You change it by editing the hex 40 (64) to 80 (128) at offset 4BBAE (1.3).

    pseudocode:
    PHP Code:
    dword_849F74C sub_80B403A((int)"sv_maxclients", (char *)201644133u); 
    But the more clients you have the faster you will reach limits. (like visible ents limit according to IzNoGod)

    Click image for larger version. 

Name:	Capture.PNG 
Views:	221 
Size:	10.5 KB 
ID:	651
    But the more clients you have the faster you will reach limits. (like visible ents limit according to IzNoGod)
    That is correct. The engine basically assigns a hunk of memory to each player slot - note that: the player slot, not the player. Even though you may not have a full server (you may only have 1 on), the game still assigns this hunk of memory to the slot when it compiles the game, so that it can cater for all players if and when they actually join. This means that if your player numbers exceed what the game can handle in terms of memory and limits, it will crash the server even though there may be 1 or even no one online at the time. The engine will know it can't handle the full quota of players.

    This is why if you have hit a limit, such as max script varibles, or server commands, reducing your player slots can sometimes help. Particularly with COD4, if you keep your player slots down to below 20, you can cram more into your mods. However, if you go over 22 players, a lot of mods around today for COD4 crash servers because of limits. The Openwarfare mod - one that I am actively involved with - is notorious for crashing out at anything above 26 players. Keeping the number down to below 22 or even 20 allows us to put more into the mod.

  5. #4
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by Mitch View Post
    You change it by editing the hex 40 (64) to 80 (128) at offset 4BBAE (1.3).
    Can you show how to do this with Hex Editor? Some SS would be very helpfull

  6. #5
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Ni3ls View Post
    Can you show how to do this with Hex Editor? Some SS would be very helpfull
    in IDA you search for sv_maxRate. When the search is done you will find something like this:
    Click image for larger version. 

Name:	ida.PNG 
Views:	98 
Size:	34.3 KB 
ID:	654
    The 40h says that the max value of sv_maxclients is 64.

    Now switch to hex view and click on the 40. Now you will see the offset at the left bottom in IDA:
    Click image for larger version. 

Name:	ida-hexview.PNG 
Views:	90 
Size:	23.5 KB 
ID:	655

    In your hex editor go to the offset and change the 40 into 80.
    Click image for larger version. 

Name:	hex.PNG 
Views:	89 
Size:	42.4 KB 
ID:	652
    Click image for larger version. 

Name:	hex2.PNG 
Views:	84 
Size:	3.4 KB 
ID:	653
    (the offset in the screenshots is for 1.0)

  7. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    Ni3ls (24th February 2014),smect@ (24th February 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •