Page 1 of 1

Battlefield Heroes playercount increase

Posted: 2020-01-22 01:13
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

Re: Battlefield Heroes playercount increase

Posted: 2020-01-22 09:38
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)