sirskunkalot / PlanBuild

Valheim mod enabling you to plan buildings, copy structures and terraform
Do What The F*ck You Want To Public License
8 stars 13 forks source link

Server Upload / Download is not working with big preview images #8

Closed himpich closed 2 years ago

himpich commented 3 years ago

I am using Planbuild 0.6.8 on the server and the client.

I uploaded local plans before, but with one of the latest updates it broke. My Client Console is spammed with

src\steamnetworkingsockets\clientlib\steamnetworkingsockets_connections.cpp (2076) : Assertion Failed: Message size 1489722 is too big.  Max is 524288
src\steamnetworkingsockets\clientlib\steamnetworkingsockets_connections.cpp (2076) : Assertion Failed: Message size 1489722 is too big.  Max is 524288
[Info   : Unity Log] 09/28/2021 14:13:03: Failed to send data k_EResultInvalidParam

until I get disconnected.

thanks in advance, Stefan

ps: I only tried one blueprint upload, the file is actually 2kb on my local storage

himpich commented 3 years ago

Update: the reason seem to be my thumbnails. I made new ones manually and with ~1mb they are to big. I downsized them to ~40kb (160 pixel width) and now the blueprints upload fine.

But a following download (or "refresh server list") failes:

10/02/2021 22:22:35: Failed to send data k_EResultInvalidParam
src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp (2076) : Assertion Failed: Message size 577156 is too big.  Max is 524288
src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp (2076) : Assertion Failed: Message size 577156 is too big.  Max is 524288
10/02/2021 22:22:35: Failed to send data k_EResultInvalidParam
src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp (2076) : Assertion Failed: Message size 577156 is too big.  Max is 524288
10/02/2021 22:22:35: Failed to send data k_EResultInvalidParam
src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp (2076) : Assertion Failed: Message size 577156 is too big.  Max is 524288
src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp (2076) : Assertion Failed: Message size 577156 is too big.  Max is 524288
10/02/2021 22:22:35: Failed to send data k_EResultInvalidParam

I'll try to manually put smaller files on the server in the next days

sirskunkalot commented 3 years ago

No need to, next version will have automatic thumbnail resize and blueprint compression in it ;) It should fix that issue.

sirskunkalot commented 3 years ago

0.6.9 is released. Please test if that fixes the problem for you.

himpich commented 3 years ago

Looking good!