-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client unable to load save files larger than 10 MB #353
Comments
I am also facing this issue. I have found the value in cause inside the code and I raised it a bit . But I have some troubles during compiling the mod in order to test. :-( |
I also was unable to get a working mod compiled, but found I could use dnSpy to edit the Steam version of the mod. Although it is a bit trickier as the compiled version bakes in the constant, so I changed SendBufferSize to always set m_val to 20 MB. I've also attached my modified steam MultiplayerMod.dll if you just want to swap in a replacement. |
oh thanks a lot @SordX, I will try your change with my friend this evening. |
Hi @SordX, @doctorcito0013, Also what happened with the compilation? 🤔 echo "<Project><PropertyGroup><SteamLibraryPath>PATH_TO_STEAM_LIBRARY</SteamLibraryPath></PropertyGroup></Project>" > Directory.Build.props.user
dotnet restore
dotnet build --disable-build-servers src/MultiplayerMod/MultiplayerMod.csproj --configuration Release And you can use Edit:
Just terminate the mentioned process and run the build again - I've tried it now and the build was successful. |
@polycone While trying to trace back the source of the problem, I noted that the SteamGameServerNetworkingSockets.CreateListenSocketP2P(0, networkConfig.Length, networkConfig) returns 0, which maps to invalid socket. Not sure if that is a problem, or an irrelevant result. In any case, I can't setup a p2p session while running the mod after I build it. |
Does the distributed DLL work fine for you? |
Yes, the DLL available on github works fine. Just did a test installing the github mod and was able to start the host without issue. Swapped in the MultiplayerMod.dll I built and the game gets stuck on "Starting Host" and my Player.log file has the "[ERROR] [SteamClient] Failed to send Command [49bb0b9971464aebb01f76520df502e7] InitializeClientCommand: k_EResultInvalidParam" error in it. |
When a save file exceeds 10 MB, the game gets stuck on the waiting for 2nd player to load screen. There is an error in the Player.log
[ERROR] [SteamServer] Failed to send message, result: k_EResultLimitExceeded
The problem appears to be caused by defaultBufferSize value in MultiplayerMod.Platform.Steam.Network.Configuration, which is set to 10 MB. Changing this value to a size larger than the save file allows the save file to load.
Attached is an example save file that is larger than 10 MB.
The Data Dump 2 Cycle 745.zip
The text was updated successfully, but these errors were encountered: