Team Spartan Cookies & Milk Forums
Unhandled error message in the lua net library - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Unhandled error message in the lua net library (/thread-3661.html)



Unhandled error message in the lua net library - The17thDoctor - 17-06-2021

Everything's in the title, here's the error :
Code:
lua/includes/extensions/net.lua:182: net.ReadType: Couldn't read type 82



RE: Unhandled error message in the lua net library - Person8880 - 18-06-2021

This is likely caused by using either net.readTable() or net.readType() in the wrong order compared to what was written which will result in data being interpreted incorrectly, hence the error. It's not really practical to re-implement everything just to catch this and output the same error message.


RE: Unhandled error message in the lua net library - The17thDoctor - 18-06-2021

(18-06-2021, 03:29 PM)Person8880 Wrote: This is likely caused by using either net.readTable() or net.readType() in the wrong order compared to what was written which will result in data being interpreted incorrectly, hence the error. It's not really practical to re-implement everything just to catch this and output the same error message.

Right, I did fix the error anyway on my side, thanks for the info though.