Enet 4k client limit?
Asked Answered
C

3

0

Is the limit for 4k clients still the limit for Godot networking?
If so, what can I do to have more?

Childhood answered 15/8, 2023 at 18:20 Comment(0)
C
0

That is, I am using godot 3.5.2

Childhood answered 15/8, 2023 at 18:20 Comment(0)
C
0

I was able to get godot to create the host with more than 4k clients by modding the source code.
I know that there is something about speed problems with more than 4k clients but I think I want to do this anyways. I might have a way to make it work with say, 40k clients.

The farest I tested was getting godot to start the scene and create the server. No error messages.

First edit two source files.
thrid party addons enet, the enet header file called, protocal.h
ENET_PROTOCOL_MAXIMUM_PEER_ID = 0xFFF
change this too,
ENET_PROTOCOL_MAXIMUM_PEER_ID = 0xFFFE

then another source code file needs changed,
under modules, the file called networked_multiplayer_enet.cpp
Hunt for the create_server function.
Then change the Error checking code from 4095 to 65500

I have not fully tested this to see if it will be stable and run.

Childhood answered 17/8, 2023 at 13:54 Comment(0)
C
0

It will not work with those changes for unknown reasons. I think it has something to do with a 16 bit variable or data.

I have to find another way to do this, and I think I have it.

Childhood answered 18/8, 2023 at 19:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.