Raised This Month: $51 Target: $400
 12% 

[EXTENSION] Left 4 Downtown (0.4.6) - L4D2 is here and supported


Post New Thread Reply   
 
Thread Tools Display Modes
nowakpl
Junior Member
Join Date: Jan 2009
Old 12-07-2009 , 13:09   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #401

Another hint, for the client rejects when over 4 or 8 players:

005c3d48 <_Z20GetNumPlayersForMode8GameMode>:
5c3d48: 8b 54 24 04 mov 0x4(%esp),%edx
5c3d4c: b8 04 00 00 00 mov $0x4,%eax
5c3d51: 83 fa 06 cmp $0x6,%edx
5c3d54: 77 07 ja 5c3d5d <_Z20GetNumPlayersForMode8GameMode+0x15>
5c3d56: 8b 04 95 94 5f f0 00 mov 0xf05f94(,%edx,4),%eax
5c3d5d: f3 c3 repz ret
5c3d5f: 90 nop

which is basically "return game_mode < 6 ? player_limit_table[game_mode] : 4"
by either patching this function or the table at 0xf05f94 i was able to get more than 8 players in. I think its a better 'hack' vector than current approach.
nowakpl is offline
savagekid
Senior Member
Join Date: Apr 2009
Location: Canada
Old 12-07-2009 , 16:01   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #402

So when is version 4 coming out?
__________________

Use Coupon Code "GLOBAL50" To Get 50% Off Every Month.
savagekid is offline
Send a message via MSN to savagekid
kiraibrasil
Member
Join Date: Jun 2009
Old 12-07-2009 , 18:53   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #403

This not woking in l4d2!!!!!!
kiraibrasil is offline
DDR Khat
SourceMod Donor
Join Date: Feb 2006
Old 12-07-2009 , 19:29   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #404

Quote:
Originally Posted by kiraibrasil View Post
This not woking in l4d2!!!!!!
Maybe you should look through this thread properly.
__________________
Nothing but a whisper in the wind~~
DDR Khat is offline
Riffy
Junior Member
Join Date: Nov 2009
Old 12-07-2009 , 20:16   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #405

Quote:
Originally Posted by DDR Khat View Post
So loading these files onto my server will unlock it to 18 or is there a cfg file for it so I can make it 10 or 12 people till I am sure how it effects things?
__________________
Riffy is offline
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 12-07-2009 , 21:38   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #406

need an update for windows servers please!
nguyenbaodanh is offline
Riffy
Junior Member
Join Date: Nov 2009
Old 12-08-2009 , 18:43   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #407

Still can't seem to get it to allow the 9th person in, could anyone offer some advise to me please?

Left 4 Dead 2
Map: c1m1_hotel
Players: 8 (0 bots) / 16 humans
Build: 4045
Server Number: 2
__________________
Riffy is offline
sonnzy
Member
Join Date: Nov 2009
Old 12-08-2009 , 20:51   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #408

Quote:
Originally Posted by [X]BetaAlpha View Post
Updated Left4Downtown L4D2 Extension (Linux only)

Compiled against Sourcemod 1.3 and Metamod 1.8.
can u do a win one?
sonnzy is offline
Downtown1
Veteran Member
Join Date: Mar 2004
Old 12-08-2009 , 22:43   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #409

Quote:
Originally Posted by nowakpl View Post
Another hint, for the client rejects when over 4 or 8 players:

005c3d48 <_Z20GetNumPlayersForMode8GameMode>:
5c3d48: 8b 54 24 04 mov 0x4(%esp),%edx
5c3d4c: b8 04 00 00 00 mov $0x4,%eax
5c3d51: 83 fa 06 cmp $0x6,%edx
5c3d54: 77 07 ja 5c3d5d <_Z20GetNumPlayersForMode8GameMode+0x15>
5c3d56: 8b 04 95 94 5f f0 00 mov 0xf05f94(,%edx,4),%eax
5c3d5d: f3 c3 repz ret
5c3d5f: 90 nop

which is basically "return game_mode < 6 ? player_limit_table[game_mode] : 4"
by either patching this function or the table at 0xf05f94 i was able to get more than 8 players in. I think its a better 'hack' vector than current approach.
You're saying by only hacking just ONE function we can change the player limits AND get it above 18 all in one?

That definitely sounds pretty sweet..

---------

Windows port is making good progress, should have something real soon now.
Downtown1 is offline
nowakpl
Junior Member
Join Date: Jan 2009
Old 12-09-2009 , 09:00   Re: [EXTENSION] Left 4 Downtown (0.3.1) - now with unlocked player slots
Reply With Quote #410

No, not one, three. But all three are really simple functions that only return player counts.

Total clients (including bots), go to 32 here:
Code:
00752638 <_ZNK18CServerGameClients15GetPlayerLimitsERiS0_S0_>:
  752638:       8b 4c 24 08             mov    0x8(%esp),%ecx
  75263c:       c7 01 12 00 00 00       movl   $0x12,(%ecx)
  752642:       8b 44 24 0c             mov    0xc(%esp),%eax
  752646:       c7 00 12 00 00 00       movl   $0x12,(%eax)
  75264c:       8b 11                   mov    (%ecx),%edx
  75264e:       8b 44 24 10             mov    0x10(%esp),%eax
  752652:       89 10                   mov    %edx,(%eax)
  752654:       c3                      ret
Number of human clients after which server begins to reject new human clients:
Code:
005c3d48 <_Z20GetNumPlayersForMode8GameMode>:
  5c3d48:       8b 54 24 04             mov    0x4(%esp),%edx
  5c3d4c:       b8 04 00 00 00          mov    $0x4,%eax
  5c3d51:       83 fa 06                cmp    $0x6,%edx
  5c3d54:       77 07                   ja     5c3d5d <_Z20GetNumPlayersForMode8GameMode+0x15>
  5c3d56:       8b 04 95 94 5f f0 00    mov    0xf05f94(,%edx,4),%eax
  5c3d5d:       f3 c3                   repz ret
And finally number of human client slots visible in server queries:
Code:
005a79d0 <_ZNK16CTerrorGameRules18GetMaxHumanPlayersEv>:
...
  5a7aa6:       ba 04 00 00 00          mov    $0x4,%edx
  5a7aab:       85 c0                   test   %eax,%eax
  5a7aad:       75 06                   jne    5a7ab5 <_ZNK16CTerrorGameRules18GetMaxHumanPlayersEv+0xe5>
  5a7aaf:       90                      nop
  5a7ab0:       ba 08 00 00 00          mov    $0x8,%edx
  5a7ab5:       89 d0                   mov    %edx,%eax
  5a7ab7:       83 c4 0c                add    $0xc,%esp
  5a7aba:       c3                      ret
Ok, there is also a 4th non-essential one, for max players visible in steam group servers:
Code:
0002982c <_ZN11CMatchTitle27GetTotalNumPlayersSupportedEv>:
   2982c:       b8 08 00 00 00          mov    $0x8,%eax
   29831:       c3                      ret
nowakpl is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode