Battlefield Heroes playercount increase

General discussion of the Project Reality: BF2 modification.
Post Reply
ProDigyIgi
Posts: 1
Joined: 2020-01-22 01:00

Battlefield Heroes playercount increase

Post by ProDigyIgi »

Hello good people, excuse me if this is inappropriate place to post such a thread.
I am bfh dev that seeks help.

There is ongoing revive project for game that shares refractor 2 called battlefield heroes if anyone still remembers :-?

it is 8v8 16 players in total format. I would like to ask You, whether it is possible
to increase playercount via coding. If im not mistaken PR supports 100 players
which isnt standard 64 BF2 player count.

Any answer is appreciated and thanks in advance :p
Last edited by ProDigyIgi on 2020-01-22 05:14, edited 1 time in total.
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Battlefield Heroes playercount increase

Post by AlonTavor »

IIRC there were a couple of places that need changing, I'll have to look it up.


Are your servers Linux or Windows?
Do you have any debug information on your server binaries? (Linux probably has ELF info)


One of the checks is in a function called ServerSettings::setMaxPlayers. Look for the string

Code: Select all

Cannot change sv.maxPlayers while running
, it should be referenced by just that function. Look for the hardcoded 64 there (0x40)

Try that and see if its enough (check if sv.maxplayers now allows more than 64)
Post Reply

Return to “PR:BF2 General Discussion”