adamko-dev / kafkatorio

GNU General Public License v3.0
10 stars 0 forks source link

Mod: Large messages are corrupted when printing to console #6

Closed aSemy closed 1 year ago

aSemy commented 2 years ago

While I can try and make all messages sent from the Factorio mod small, some are just too large. This leads to the messages being split by another log message when they're printed to console.

Options:

Other serialization and encoding libraries that might help:

aSemy commented 1 year ago

all messages are now encoded using encode_string(), and decoded in the server. This works really well! I've not noticed any more corrupted messages.