ror2-server icon indicating copy to clipboard operation
ror2-server copied to clipboard

it doesn't seem to work with players more than 4, despite adding the environment variable

Open aimen08 opened this issue 3 years ago • 8 comments

hello, i like the ease of use when it comes to this server, everything works well, this is the command i'm using docker run -p 27015:27015/udp -p 27016:27016/udp -e R2_PSW='autism' -e R2_PLAYERS=16 -e R2_HEARTBEAT=1 -e R2_HOSTNAME='Autism Nation' avivace/ror2server:latest

the server appears with 16 players but it wont work with more than 4. image

please help.

aimen08 avatar Apr 20 '22 00:04 aimen08

hello, i like the ease of use when it comes to this server, everything works well, this is the command i'm using docker run -p 27015:27015/udp -p 27016:27016/udp -e R2_PSW='autism' -e R2_PLAYERS=16 -e R2_HEARTBEAT=1 -e R2_HOSTNAME='Autism Nation' avivace/ror2server:latest

the server appears with 16 players but it wont work with more than 4. image

please help.

Hey! Thanks for the heads up, I think you are right and we're missing an additional setting required to allow more than 4 players in a lobby.

Can you try the morethan4players-fix branch and see if that works for you?

avivace avatar Apr 20 '22 08:04 avivace

no still nothing , the server.cfg inside the docker image shows the additional setting, but still same problem ,

image

this is the error that appears when the 5th person try to login from console

image

aimen08 avatar Apr 20 '22 08:04 aimen08

@aimen08, can you try :

# clone this repository
git clone https://github.com/avivace/ror2-server/
# checkout to 
git checkout morethan4players-fix
# build docker image 
docker build . -t fixmulti
# run it with your desired settings
docker run -d -p 27015:27015/udp -p 27016:27016/udp -e R2_PSW='autism' -e R2_PLAYERS=16 -e R2_HEARTBEAT=1 -e R2_HOSTNAME='Autism Nation' fixmulti

avivace avatar Apr 20 '22 11:04 avivace

@aimen08 any news on this?

avivace avatar Apr 28 '22 08:04 avivace

@avivace hello, just didn't get 5 people to test this yet, we are currently 4 . i will update when the 5th person test it.

aimen08 avatar Apr 28 '22 11:04 aimen08

@avivace hello, just didn't get 5 people to test this yet, we are currently 4 . i will update when then the 5th person test it.

Great! Thanks :pray:

avivace avatar Apr 28 '22 19:04 avivace

It may be the official problem.When you run dedicated server on windows,it also doesn't work with players more than 4,we should submit this problem to the game official developer.

lu0se avatar May 06 '22 06:05 lu0se

fixmulti branch still not ok, got error like this

<color=#FF0000>UNet Client Disconnect Error: NoResources</color>
NetworkManagerSystem.desiredHost={ hostType=None }
<color=#FF0000>ClientDisconnected due to error: NoResources</color>

xxxsen avatar Jun 04 '22 03:06 xxxsen

Can confirm that this is still an issue, any more than 4 are booted with the no resources error, even with the fixmulti branch.

LittleKingDW avatar Sep 09 '22 04:09 LittleKingDW

I looked this up a bit, and I couldn't find any time where more than 4 players were ever supported without a mod, so I guess it's just a visual value, but has no real effect. I'm closing this till we have new information.

avivace avatar Sep 09 '22 09:09 avivace

sv_maxplayers 16; steam_lobby_max_members 16; My server is run in Windows System.It need two

sbblg avatar Jan 12 '24 12:01 sbblg