Is the limit for 4k clients still the limit for Godot networking?
If so, what can I do to have more?
That is, I am using godot 3.5.2
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.
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.
© 2022 - 2024 — McMap. All rights reserved.